2017-02-13 16:31:26 |
Aaron Bentley |
description |
Juju 2 rejects unexpected values from credentials.yaml, including tenant-id for Azure-arm.
environments.yaml for azure-arm contains tenant-id.
Since we typically use environments.yaml even for Juju 2, this means that JujuData.config typically contains 'tenant-id'.
However, make_model_config strips tenant-id, so it is never written to a Juju 2 bootstrap config. It is more-or-less a stowaway that sneaks into substrate through config.
Ideally, we would change substrates.py to not require tenant-id. Failing that, we could provide tenant-id through an alternative mechanism such as an environment variable, commandline arg, or additional credentials file. |
Juju 2 rejects unexpected values from credentials.yaml, including tenant-id for Azure-arm.
environments.yaml for azure-arm contains tenant-id.
substrates.py requires tenant-id, so it gets it from JujuData._config.
Ideally, we would change substrates.py to not require tenant-id (if there's a way to do that and still support Azure storage). Failing that, we could provide tenant-id through an alternative mechanism such as an environment variable, commandline arg, or additional credentials file. |
|