summaryrefslogtreecommitdiff
path: root/gate
diff options
context:
space:
mode:
authorLee Yarwood <lyarwood@redhat.com>2020-09-18 10:03:21 +0100
committerLee Yarwood <lyarwood@redhat.com>2020-09-18 13:45:39 +0100
commit6c62830ae802379e20651ffe14b10809d1122792 (patch)
tree460192b1accd33c4e97daf8e02fa251b4b26f2e3 /gate
parent75250d6b17de674b2bbf7da6568cbe75f8fdb0fc (diff)
downloadnova-6c62830ae802379e20651ffe14b10809d1122792.tar.gz
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
Diffstat (limited to 'gate')
-rwxr-xr-xgate/test_evacuate.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/gate/test_evacuate.sh b/gate/test_evacuate.sh
index 3ef1caeabd..0b0d9135a6 100755
--- a/gate/test_evacuate.sh
+++ b/gate/test_evacuate.sh
@@ -64,6 +64,7 @@ openstack --os-compute-api-version 2.11 compute service set --down ${subnode} no
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
@@ -98,6 +99,7 @@ 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.