Remove unnecessary check after removing libvirt rpm dependencies

After removing libvirt dependencies default libvirt-client
systemd units are no longer on the host deployment fails
when using podman as container cli and NovaResumeGuestsStateOnHostBoot
enabled

Closes-Bug: #1880002

Change-Id: I2c899e80ddb42479322c948daddd67f990d5d5e6
This commit is contained in:
Piotr Kopec 2020-05-21 19:28:35 +02:00
parent 80888cf742
commit ffab078d94
1 changed files with 2 additions and 8 deletions

View File

@ -954,12 +954,6 @@ outputs:
- resume_guests_state_on_host_boot_enabled|bool
- container_cli == 'podman'
block:
- name: make sure default libvirt-guests is disabled
systemd:
name: libvirt-guests
enabled: no
masked: yes
daemon_reload: yes
- name: libvirt-guests unit to stop nova_compute container before shutdown VMs
copy:
dest: /etc/systemd/system/tripleo_nova_libvirt_guests.service
@ -975,8 +969,8 @@ outputs:
[Service]
EnvironmentFile=-/etc/sysconfig/libvirt-guests
ExecStart=/usr/bin/podman exec nova_libvirt /bin/rm -f /var/lib/libvirt/libvirt-guests
ExecStop=/usr/bin/podman exec nova_libvirt /bin/sh -x /usr/libexec/libvirt-guests.sh shutdown
ExecStart=/bin/{{container_cli}} exec nova_libvirt /bin/rm -f /var/lib/libvirt/libvirt-guests
ExecStop=/bin/{{container_cli}} exec nova_libvirt /bin/sh -x /usr/libexec/libvirt-guests.sh shutdown
Type=oneshot
RemainAfterExit=yes
StandardOutput=journal+console