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
62
62
echo " Forcing down the subnode so we can evacuate from it"
63
63
openstack --os-compute-api-version 2.11 compute service set --down ${subnode} nova-compute
64
64
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
+
65
78
echo " Stopping libvirt on the localhost before evacuating to trigger failure"
66
79
sudo systemctl stop libvirt-bin
67
80
You can’t perform that action at this time.
0 commit comments