From 6c62830ae802379e20651ffe14b10809d1122792 Mon Sep 17 00:00:00 2001 From: Lee Yarwood Date: Fri, 18 Sep 2020 10:03:21 +0100 Subject: [PATCH] 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 --- gate/test_evacuate.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gate/test_evacuate.sh b/gate/test_evacuate.sh index 3ef1caeabd78..0b0d9135a6d5 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.