commit 226250beb6858bb3094c005fbc335a7378531df1 Author: Lee Yarwood Date: Mon Sep 28 11:41:28 2020 +0100 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 diff --git a/roles/run-evacuate-hook/tasks/main.yaml b/roles/run-evacuate-hook/tasks/main.yaml index 755dcdf..fffc374 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