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
This commit is contained in:
Lee Yarwood 2020-09-18 10:03:21 +01:00
parent 75250d6b17
commit 6c62830ae8
1 changed files with 2 additions and 0 deletions

View File

@ -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.