File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,19 @@ $ANSIBLE subnodes --become -f 5 -i "$WORKSPACE/inventory" -m shell -a "for domai
6262echo " Forcing down the subnode so we can evacuate from it"
6363openstack --os-compute-api-version 2.11 compute service set --down ${subnode} nova-compute
6464
65+ count=0
66+ status=$( openstack compute service list --host ${subnode} --service nova-compute -f value -c State)
67+ while [ " ${status} " != " down" ]
68+ do
69+ sleep 1
70+ count=$(( count+ 1 ))
71+ if [ ${count} -eq 30 ]; then
72+ echo " Timed out waiting for subnode compute service to be marked as down"
73+ exit 5
74+ fi
75+ status=$( openstack compute service list --host ${subnode} --service nova-compute -f value -c State)
76+ done
77+
6578echo " Stopping libvirt on the localhost before evacuating to trigger failure"
6679sudo systemctl stop libvirt-bin
6780
You can’t perform that action at this time.
0 commit comments