Iterating units fails on NoneType

Bug #1787882 reported by Chris MacNaughton
6
This bug affects 1 person
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.Sw98pgauK0/LOCAL/mojo-openstack-specs/specs/storage/ceph/radosgw_ha/liberty to /tmp/tmp.Sw98pgauK0/mojo-openstack-specs/trusty/osci-mojo/local
2018-08-15 15:35:45 [WARNING] Automatic secrets phase ran but secrets directory /tmp/tmp.Sw98pgauK0/LOCAL/mojo-openstack-specs/specs/storage/ceph/radosgw_ha/liberty does not exist!
2018-08-15 15:35:45 [INFO] Running script delete_crm_leader.py
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.17.102.7:17070/model/9d7f3932-af3f-481a-8a67-21645dd9025f/api
2018-08-15 15:35:49 [INFO] Driver connected to juju wss://172.17.102.7:17070/model/9d7f3932-af3f-481a-8a67-21645dd9025f/api
2018-08-15 15:35:50 [INFO] Driver connected to juju wss://172.17.102.7:17070/model/9d7f3932-af3f-481a-8a67-21645dd9025f/api
2018-08-15 15:35:51 [INFO] Driver connected to juju wss://172.17.102.7:17070/model/9d7f3932-af3f-481a-8a67-21645dd9025f/api
2018-08-15 15:35:52 [INFO] Driver connected to juju wss://172.17.102.7:17070/model/9d7f3932-af3f-481a-8a67-21645dd9025f/api
Traceback (most recent call last):
  File "/tmp/tmp.Sw98pgauK0/mojo-openstack-specs/trusty/osci-mojo/spec/specs/storage/ceph/radosgw_ha/liberty/delete_crm_leader.py", line 29, in <module>
    sys.exit(main(sys.argv))
  File "/tmp/tmp.Sw98pgauK0/mojo-openstack-specs/trusty/osci-mojo/spec/specs/storage/ceph/radosgw_ha/liberty/delete_crm_leader.py", line 25, in main
    mojo_os_utils.delete_crm_leader(service, resource)
  File "/tmp/tmp.Sw98pgauK0/mojo-openstack-specs/trusty/osci-mojo/spec/helper/setup/utils/mojo_os_utils.py", line 471, in delete_crm_leader
    unit = mojo_utils.convert_machineno_to_unit(mach_no)
  File "/tmp/tmp.Sw98pgauK0/mojo-openstack-specs/trusty/osci-mojo/spec/helper/setup/utils/mojo_utils.py", line 102, in convert_machineno_to_unit
    for unit in juju_status['applications'][svc]['units']:
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/serverstack 2.4.0 unsupported 15:35:54Z

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-hacluster/1* active idle 172.17.102.14 Unit is ready and clustered
ceph-radosgw/1* active idle 7 172.17.102.18 80/tcp Unit is ready
  cephrgw-hacluster/0 active idle 172.17.102.18 Unit is ready and clustered
ceph-radosgw/2 active idle 8 172.17.102.12 80/tcp Unit is ready
  cephrgw-hacluster/2 active idle 172.17.102.12 Unit is ready and clustered
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-dff7-4a42-b9fe-6b4113cd3687 trusty nova ACTIVE
1 started 172.17.102.13 67d45fc1-8edb-45c7-8e9c-3f2adcb80d2d trusty nova ACTIVE
2 started 172.17.102.4 27f42b8a-3f5f-46a8-b875-e85888d8cff0 trusty nova ACTIVE
3 started 172.17.102.17 55148343-3c27-4e3a-b871-4b6a738f9354 trusty nova ACTIVE
4 started 172.17.102.9 57fe9c8d-7577-4afd-9624-76a7379dde53 trusty nova ACTIVE
5 started 172.17.102.11 c5b5f1c3-5a96-4c77-8da5-7da8bffde5a9 trusty nova ACTIVE
6 started 172.17.102.14 f0b93320-b805-45d8-95e0-a09ede5ba4b7 trusty nova ACTIVE
7 started 172.17.102.18 6aad5bde-8bf7-4de9-886d-f20339ff7720 trusty nova ACTIVE
8 started 172.17.102.12 8f654325-372f-4c5f-849d-9de48c0bcc3d trusty nova ACTIVE
9 started 172.17.102.16 25cfe1b4-0238-4d3b-81e2-d9bf68f93909 trusty nova ACTIVE
10 started 172.17.102.8 a74e56ec-dadc-4e76-b1a9-70aa444e9f3e trusty nova ACTIVE

http://10.245.162.58:8080/job/mojo_runner/9995/ is the run

Revision history for this message
Chris MacNaughton (chris.macnaughton) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.