Skip to content

Commit 6c62830

Browse files
committed
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
1 parent 75250d6 commit 6c62830

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gate/test_evacuate.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ openstack --os-compute-api-version 2.11 compute service set --down ${subnode} no
6464

6565
echo "Stopping libvirt on the localhost before evacuating to trigger failure"
6666
sudo systemctl stop libvirt-bin
67+
sudo systemctl stop libvirtd
6768

6869
# Now force the evacuation to *this* host; we have to force to bypass the
6970
# scheduler since we killed libvirtd which will trigger the libvirt compute
@@ -98,6 +99,7 @@ evacuate_and_wait_for_error evacuate-bfv-test
9899

99100
echo "Now restart libvirt and perform a successful evacuation"
100101
sudo systemctl start libvirt-bin
102+
sudo systemctl start libvirtd
101103
sleep 10
102104

103105
# Wait for the compute service to be enabled.

0 commit comments

Comments
 (0)