azure-integrator crashes while missing tenant-id
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Azure Integrator Charm |
Fix Released
|
Medium
|
Adam Dyess |
Bug Description
azure-integrator fails if the azure credential is `service-
unit-azure-
Traceback (most recent call last):
File "/var/lib/
bus.
File "/var/lib/
_invoke(
File "/var/lib/
handler.
File "/var/lib/
self.
File "/var/lib/
layer.
File "/var/lib/
tenant_
KeyError: 'tenant-id'
tags: | added: backport-needed |
tags: | removed: backport-needed |
Changed in charm-azure-integrator: | |
status: | Fix Committed → Fix Released |
I've found a work-around to this bug
juju ssh azure-integrator/0 juju/agents/ unit-azure- integrator- 0/charm/ lib/charms/ layer/azure. py
sudo vim /var/lib/
add the following to login_cli(...)
```python id(sub_ id)
creds_ data["tenant- id"] = tenant_id
tenant_id = _get_tenant_
if tenant_id:
```