Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JUJU-1466] Filter by model uuid when querying azure instances #14329

Merged
merged 1 commit into from
Jul 18, 2022

Conversation

wallyworld
Copy link
Member

@wallyworld wallyworld commented Jul 18, 2022

When querying vm instances created by juju, there was no filtering being done to ensure the instances were tagged with the model uuid. This meant that instances not created by juju were being included in the result. Other providers like Openstack and Oracle include this filter so Azure provider should too.

QA steps

RG_NAME=JujuController
LOCATION=westeurope
az group create --location $LOCATION --name $RG_NAME
az vm create --name bootstrap-vm --resource-group $RG_NAME --location $LOCATION --image $(az vm image list --all --publisher Canonical --sku "18_04-lts" | jq 'max_by(.version) | .urn' | tr -d '"') --size Standard_DS2_v2 --ssh-key-values "~/.ssh/id_rsa.pub" --admin-username azureuser  --public-ip-sku Standard
juju bootstrap azure/westeurope --config resource-group-name=JujuController --no-default-model

Bug reference

https://bugs.launchpad.net/juju/+bug/1979557

@wallyworld wallyworld changed the title Filter by model uuid when querying azure instances [JUJU-1466] Filter by model uuid when querying azure instances Jul 18, 2022
@wallyworld
Copy link
Member Author

/merge

@jujubot jujubot merged commit 21eadef into juju:2.9 Jul 18, 2022
@wallyworld wallyworld mentioned this pull request Jul 20, 2022
jujubot added a commit that referenced this pull request Jul 20, 2022
#14350

Merge 2.9

#14329 [JUJU-1466] Filter by model uuid when querying azure instances
#14318 [JUJU-1196] refactor nw-constraints-aws test
#14333 [JUJU-1468] Fixed test agents lxd
#14339 Fix cli/local_charms test due to deleted GitHub repo
#14342 Update deploy_revision tests to actually check revision
#14337 [JUJU-1475] Added lxd constraints tests
#14335 More unit charm url work
#14343 [JUJU-1480] Add support for retry-provisioning --all
#14345 [JUJU-1480] Fix display of upgrading-from for subordinate units

```
# Conflicts:
# api/client/client/client.go
# cmd/juju/model/retryprovisioning.go
# migration/precheck.go
# migration/precheck_test.go
# rpc/params/internal.go
# tests/suites/agents/key_workers_run.sh
```

## QA steps

See PRs

[JUJU-1466]: https://warthogs.atlassian.net/browse/JUJU-1466?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[JUJU-1196]: https://warthogs.atlassian.net/browse/JUJU-1196?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[JUJU-1468]: https://warthogs.atlassian.net/browse/JUJU-1468?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[JUJU-1475]: https://warthogs.atlassian.net/browse/JUJU-1475?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[JUJU-1480]: https://warthogs.atlassian.net/browse/JUJU-1480?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[JUJU-1480]: https://warthogs.atlassian.net/browse/JUJU-1480?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants