add-model fails erroneously when a cloud is specified and a credential is specified and needs to be uploaded.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Horacio Durán |
Bug Description
if you try to add a model using a command like:
juju add-model --credential cred test-model google/europe-west1
Then this results in the error message:
ERROR region "google/
Some digging around shows that this correctly resolves the region the first time, but it tries to do it again when retrieving the credential from local storage to upload it to the controller. At this point it uses the originally specified region and finds it doesn't match any of the regions valid for the cloud.
For reference the error details are:
(error details: [{github.
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Alexis Bruemmer (alexis-bruemmer) |
milestone: | none → 2.0-rc2 |
Changed in juju: | |
assignee: | Alexis Bruemmer (alexis-bruemmer) → Horacio Durán (hduran-8) |
status: | Triaged → In Progress |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
I proposed https:/ /github. com/juju/ juju/pull/ 6300