Browse Source

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
changes/84/754684/3
Lee Yarwood 12 months ago
parent
commit
226250beb6
  1. 14
      roles/run-evacuate-hook/tasks/main.yaml

14
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

Loading…
Cancel
Save