Browse Source

nova-live-migration: Disable *all* virt services during negative tests

libvirtd was being restarted on the controller during negative
evacuation tests that rely on the service being to cause an
evacuation failure.

This change adds various virt services to the list of services stopped
and now disabled on the host to ensure these don't cause systemd to
restart libvirtd:

* virtlogd.service
* virtlogd-admin.socket
* virtlogd.socket
* virtlockd.service
* virtlockd-admin.socket
* virtlockd.socket

Closes-Bug: #1903979
Change-Id: Ic83252bbda76c205bcbf0eef184ce0b201e224fc
changes/23/762623/4
Lee Yarwood 11 months ago
parent
commit
76360e566b
  1. 14
      roles/run-evacuate-hook/tasks/main.yaml

14
roles/run-evacuate-hook/tasks/main.yaml

@ -36,11 +36,18 @@
systemd:
name: "{{ item }}"
state: stopped
enabled: no
with_items:
- libvirtd.service
- libvirtd.socket
- libvirtd-admin.socket
- libvirtd-ro.socket
- virtlogd.service
- virtlogd-admin.socket
- virtlogd.socket
- virtlockd.service
- virtlockd-admin.socket
- virtlockd.socket
- name: Run negative evacuate tests
become: true
@ -54,11 +61,18 @@
systemd:
name: "{{ item }}"
state: started
enabled: yes
with_items:
- libvirtd.service
- libvirtd.socket
- libvirtd-admin.socket
- libvirtd-ro.socket
- virtlogd.service
- virtlogd-admin.socket
- virtlogd.socket
- virtlockd.service
- virtlockd-admin.socket
- virtlockd.socket
- name: Run evacuate tests
become: true

Loading…
Cancel
Save