KeyError for units that were added by add_unit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Amulet |
Fix Released
|
Critical
|
Tim Van Steenburgh |
Bug Description
I am using the new add_unit() method in amulet and I can not access any of the additional units as I would the normal units.
Traceback (most recent call last):
File "tests/
osd_
KeyError: 'ceph-osd/1'
The juju status command shows me that there is a unit named "ceph-osd/1" in my deployment.
$ juju status
environment: hp-mbruzek
machines:
"0":
agent-state: started
agent-version: 1.17.6
dns-name: 15.185.121.156
instance-id: "3821995"
instance-state: ACTIVE
series: precise
hardware: arch=amd64 cpu-cores=1 mem=1024M root-disk=30720M
"1":
agent-state: started
agent-version: 1.17.6
dns-name: 15.185.92.50
instance-id: "3822055"
instance-state: ACTIVE
series: precise
hardware: arch=amd64 cpu-cores=1 mem=1024M root-disk=30720M
"2":
agent-state: started
agent-version: 1.17.6
dns-name: 15.185.126.75
instance-id: "3822059"
instance-state: ACTIVE
series: precise
hardware: arch=amd64 cpu-cores=1 mem=1024M root-disk=30720M
"3":
agent-state: started
agent-version: 1.17.6
dns-name: 15.185.90.136
instance-id: "3822061"
instance-state: ACTIVE
series: precise
- 9001/tcp
ceph-
charm: local:precise/
exposed: true
relations:
juju-info:
- ceph-radosgw
subordinate-to:
- ceph-radosgw
ceph-sentry:
charm: local:precise/
exposed: true
relations:
juju-info:
- ceph
subordinate-to:
- ceph
relation-sentry:
charm: local:precise/
exposed: true
relations:
provides-
- ceph
provides-
- ceph
requires-
- ceph-osd
requires-
- ceph-radosgw
units:
relation-
machine: "4"
open-ports:
- 9001/tcp
Please let me know if you need any other information.
Changed in amulet: | |
status: | New → Triaged |
assignee: | nobody → Marco Ceppi (marcoceppi) |
importance: | Undecided → High |
milestone: | none → 1.4.1 |
Changed in amulet: | |
importance: | High → Critical |
Changed in amulet: | |
milestone: | 1.4.1 → 1.5.0 |
Changed in amulet: | |
assignee: | Marco Ceppi (marcoceppi) → Tim Van Steenburgh (tvansteenburgh) |
status: | Triaged → In Progress |
Changed in amulet: | |
status: | Fix Committed → Fix Released |
Fix pushed to https:/ /github. com/marcoceppi/ amulet/ pull/29