Iterating units fails on NoneType
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Openstack Mojo Testing |
New
|
Undecided
|
Unassigned |
Bug Description
#######
Delete the unit which is currently the leader (according to corosync)
#######
2018-08-15 15:35:45 [INFO] Pulling secrets from /tmp/tmp.
2018-08-15 15:35:45 [WARNING] Automatic secrets phase ran but secrets directory /tmp/tmp.
2018-08-15 15:35:45 [INFO] Running script delete_
2018-08-15 15:35:52 [WARNING] No debug log matching debug-logs found. Using default.
2018-08-15 15:35:54 [ERROR] 2018-08-15 15:35:48 [INFO] Driver connected to juju wss://172.
2018-08-15 15:35:49 [INFO] Driver connected to juju wss://172.
2018-08-15 15:35:50 [INFO] Driver connected to juju wss://172.
2018-08-15 15:35:51 [INFO] Driver connected to juju wss://172.
2018-08-15 15:35:52 [INFO] Driver connected to juju wss://172.
Traceback (most recent call last):
File "/tmp/tmp.
sys.
File "/tmp/tmp.
mojo_
File "/tmp/tmp.
unit = mojo_utils.
File "/tmp/tmp.
for unit in juju_status[
TypeError: 'NoneType' object is not iterable
The model above is stable:
Model Controller Cloud/Region Version SLA Timestamp
auto-osci-sv02 auto-osci-sv02 serverstack/
App Version Status Scale Charm Store Rev OS Notes
ceph-mon 0.94.10 active 3 ceph-mon local 0 ubuntu
ceph-osd 0.94.10 active 3 ceph-osd local 15 ubuntu
ceph-radosgw 0.94.10 active 3 ceph-radosgw local 26 ubuntu
cephrgw-hacluster active 3 hacluster local 0 ubuntu
keystone 8.1.2 active 1 keystone local 0 ubuntu
mysql 5.5.37-25.10... active 1 percona-cluster local 45 ubuntu
Unit Workload Agent Machine Public address Ports Message
ceph-mon/0* active idle 0 172.17.102.10 Unit is ready and clustered
ceph-mon/1 active idle 1 172.17.102.13 Unit is ready and clustered
ceph-mon/2 active idle 2 172.17.102.4 Unit is ready and clustered
ceph-osd/0 active idle 3 172.17.102.17 Unit is ready (1 OSD)
ceph-osd/1 active idle 4 172.17.102.9 Unit is ready (1 OSD)
ceph-osd/2* active idle 5 172.17.102.11 Unit is ready (1 OSD)
ceph-radosgw/0 active idle 6 172.17.102.14 80/tcp Unit is ready
cephrgw-
ceph-radosgw/1* active idle 7 172.17.102.18 80/tcp Unit is ready
cephrgw-
ceph-radosgw/2 active idle 8 172.17.102.12 80/tcp Unit is ready
cephrgw-
keystone/0* active idle 9 172.17.102.16 5000/tcp Unit is ready
mysql/0* active idle 10 172.17.102.8 3306/tcp Unit is ready
Machine State DNS Inst id Series AZ Message
0 started 172.17.102.10 99433af0-
1 started 172.17.102.13 67d45fc1-
2 started 172.17.102.4 27f42b8a-
3 started 172.17.102.17 55148343-
4 started 172.17.102.9 57fe9c8d-
5 started 172.17.102.11 c5b5f1c3-
6 started 172.17.102.14 f0b93320-
7 started 172.17.102.18 6aad5bde-
8 started 172.17.102.12 8f654325-
9 started 172.17.102.16 25cfe1b4-
10 started 172.17.102.8 a74e56ec-