diff options
author | Lee Yarwood <lyarwood@redhat.com> | 2020-03-20 09:19:55 +0000 |
---|---|---|
committer | Lee Yarwood <lyarwood@redhat.com> | 2020-03-21 17:08:47 +0000 |
commit | 1e16b3184d4e298c454ede7c56040f6d70276a0c (patch) | |
tree | 5433471b14b61c18598bad5d7a4cd4878fee394a /gate | |
parent | 53775aa81957b4c78045e631027c5576a5ab5693 (diff) | |
download | nova-1e16b3184d4e298c454ede7c56040f6d70276a0c.tar.gz |
nova-live-migration: Only stop n-cpu and q-agt during evacuation testing
I8af2ad741ca08c3d88efb9aa817c4d1470491a23 started to correctly fence the
subnode ahead of evacuation testing but missed that c-vol and g-api
where also running on the host. As a result the BFV evacuation test will
fail if the volume being used is created on the c-vol backend hosted on
the subnode.
This change now avoids this by limiting the services stopped ahead of
the evacuation on the subnode to n-cpu and q-agt.
Change-Id: Ia7c317e373e4037495d379d06eda19a71412d409
Closes-Bug: #1868234
Diffstat (limited to 'gate')
-rwxr-xr-x | gate/test_evacuate.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gate/test_evacuate.sh b/gate/test_evacuate.sh index 19c339342a..3ef1caeabd 100755 --- a/gate/test_evacuate.sh +++ b/gate/test_evacuate.sh @@ -55,8 +55,8 @@ nova boot --flavor ${flavor_id} --poll \ --nic net-id=${network_id} --availability-zone nova:${subnode} evacuate-bfv-test # Fence the subnode -echo "Stopping all services and guest domains on subnode" -$ANSIBLE subnodes --become -f 5 -i "$WORKSPACE/inventory" -m shell -a "systemctl stop devstack@*" +echo "Stopping n-cpu, q-agt and guest domains on subnode" +$ANSIBLE subnodes --become -f 5 -i "$WORKSPACE/inventory" -m shell -a "systemctl stop devstack@n-cpu devstack@q-agt" $ANSIBLE subnodes --become -f 5 -i "$WORKSPACE/inventory" -m shell -a "for domain in \$(virsh list --all --name); do virsh destroy \$domain; done" echo "Forcing down the subnode so we can evacuate from it" |