summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Yarwood <lyarwood@redhat.com>2020-09-18 10:03:21 +0100
committerLee Yarwood <lyarwood@redhat.com>2020-09-22 11:44:42 +0100
commit66ad40c1e33f17b50d7039235de0fa21c3bceab2 (patch)
tree277f5fb3c9140bd1031302b70a16ab61af9d506e
parent6474d83ec031a18dd44f38742343712c4838b63b (diff)
downloadnova-66ad40c1e33f17b50d7039235de0fa21c3bceab2.tar.gz
test_evacuate.sh: Stop using libvirt-bin
I49dc963ada17a595232d3eb329d94632d07b874b missed that call_hook_if_defined will actually cause the entire run to fail [1] if we attempt to stop the non-existent libvirt-bin service so just remove it now we are using the train UCA. [1] https://opendev.org/openstack/devstack-gate/src/commit/7a70f559c559e22b498d735b4ed20aadc71b7f39/functions.sh#L74 NOTE(lyarwood): The following change is also squashed into this one to unblock the nova-live-migration job on stable/ussuri. test_evacuate.sh: Support libvirt-bin and libvirtd systemd services The systemd service unit for libvirtd has changed name from libvirt-bin to libvirtd, as such the evacuation test script needs to be changed to support both as we move between these versions. Change-Id: I49dc963ada17a595232d3eb329d94632d07b874b (cherry picked from commit 6c62830ae802379e20651ffe14b10809d1122792) Change-Id: Ife26f1ceb6208e12328ccdccbab0681ee55d5a2a (cherry picked from commit 5ab9b28161291047b8de2cc9c27edc87b319a7bc)
-rwxr-xr-xgate/test_evacuate.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/gate/test_evacuate.sh b/gate/test_evacuate.sh
index 3ef1caeabd..9abbb40d70 100755
--- a/gate/test_evacuate.sh
+++ b/gate/test_evacuate.sh
@@ -63,7 +63,7 @@ echo "Forcing down the subnode so we can evacuate from it"
openstack --os-compute-api-version 2.11 compute service set --down ${subnode} nova-compute
echo "Stopping libvirt on the localhost before evacuating to trigger failure"
-sudo systemctl stop libvirt-bin
+sudo systemctl stop libvirtd
# Now force the evacuation to *this* host; we have to force to bypass the
# scheduler since we killed libvirtd which will trigger the libvirt compute
@@ -97,7 +97,7 @@ evacuate_and_wait_for_error evacuate-test
evacuate_and_wait_for_error evacuate-bfv-test
echo "Now restart libvirt and perform a successful evacuation"
-sudo systemctl start libvirt-bin
+sudo systemctl start libvirtd
sleep 10
# Wait for the compute service to be enabled.