summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorLee Yarwood <lyarwood@redhat.com>2020-09-28 11:41:28 +0100
committerLee Yarwood <lyarwood@redhat.com>2020-10-02 17:01:57 +0000
commit226250beb6858bb3094c005fbc335a7378531df1 (patch)
treed3d225aeb586b60c4b155161319ce136c9ec0777 /roles
parentd309e3cdf52bb4f8800c59f295a9c2ffb4069369 (diff)
downloadnova-226250beb6858bb3094c005fbc335a7378531df1.tar.gz
nova-evacuate: Disable libvirtd service and sockets during negative tests
The recent switch to Focal introduced a change in behaviour for the libvirtd service that can now be restarted through new systemd socket services associated with it once stopped. As we need it to remain stopped during the initial negative evacuation tests on the controller we now need to also stop these socket services and then later restart them. Change-Id: I2333872670e9e6c905efad7461af4d149f8216b6
Diffstat (limited to 'roles')
-rw-r--r--roles/run-evacuate-hook/tasks/main.yaml14
1 files changed, 12 insertions, 2 deletions
diff --git a/roles/run-evacuate-hook/tasks/main.yaml b/roles/run-evacuate-hook/tasks/main.yaml
index 755dcdf02d..fffc374660 100644
--- a/roles/run-evacuate-hook/tasks/main.yaml
+++ b/roles/run-evacuate-hook/tasks/main.yaml
@@ -34,8 +34,13 @@
- name: Stop libvirtd on "{{ inventory_hostname }}"
become: true
systemd:
- name: libvirtd
+ name: "{{ item }}"
state: stopped
+ with_items:
+ - libvirtd.service
+ - libvirtd.socket
+ - libvirtd-admin.socket
+ - libvirtd-ro.socket
- name: Run negative evacuate tests
become: true
@@ -47,8 +52,13 @@
- name: Start libvirtd on "{{ inventory_hostname }}"
become: true
systemd:
- name: libvirtd
+ name: "{{ item }}"
state: started
+ with_items:
+ - libvirtd.service
+ - libvirtd.socket
+ - libvirtd-admin.socket
+ - libvirtd-ro.socket
- name: Run evacuate tests
become: true