From 226250beb6858bb3094c005fbc335a7378531df1 Mon Sep 17 00:00:00 2001 From: Lee Yarwood Date: Mon, 28 Sep 2020 11:41:28 +0100 Subject: 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 --- roles/run-evacuate-hook/tasks/main.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'roles') 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 -- cgit v1.2.1