Making sure virt-guest-shutdown.target exists
libvirt-daemon is part of the default overcloud image but it's also
possible that it's not installed or simply removed by operators. In this
case, tripleo_nova_libvirt_guests will fail.
Related: https://bugzilla.redhat.com/1810319
Change-Id: I0814bd8794ab82792837b27d0128e15c34b90adc
(cherry picked from commit 93b5c3a20e
)
This commit is contained in:
parent
8e9798caf6
commit
28a26099b8
|
@ -1060,6 +1060,13 @@ outputs:
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
- name: Making sure virt-guest-shutdown.target is present
|
||||||
|
copy:
|
||||||
|
dest: /etc/systemd/system/virt-guest-shutdown.target
|
||||||
|
content: |
|
||||||
|
[Unit]
|
||||||
|
Description=Libvirt guests shutdown
|
||||||
|
Documentation=https://libvirt.org
|
||||||
- name: libvirt-guests enable VM shutdown on compute reboot/shutdown
|
- name: libvirt-guests enable VM shutdown on compute reboot/shutdown
|
||||||
systemd:
|
systemd:
|
||||||
name: libvirt-guests
|
name: libvirt-guests
|
||||||
|
@ -1094,6 +1101,13 @@ outputs:
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
- name: Making sure virt-guest-shutdown.target is present
|
||||||
|
copy:
|
||||||
|
dest: /etc/systemd/system/virt-guest-shutdown.target
|
||||||
|
content: |
|
||||||
|
[Unit]
|
||||||
|
Description=Libvirt guests shutdown
|
||||||
|
Documentation=https://libvirt.org
|
||||||
- name: tripleo_nova_libvirt_guests enable VM shutdown on compute reboot/shutdown
|
- name: tripleo_nova_libvirt_guests enable VM shutdown on compute reboot/shutdown
|
||||||
systemd:
|
systemd:
|
||||||
name: tripleo_nova_libvirt_guests
|
name: tripleo_nova_libvirt_guests
|
||||||
|
|
Loading…
Reference in New Issue