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
This commit is contained in:
Lee Yarwood 2020-11-13 09:30:39 +00:00
parent 836e13cd57
commit 76360e566b
1 changed files with 14 additions and 0 deletions

View File

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