From 57f5a899e02652fa8e04fe4776f4b6f6f120df99 Mon Sep 17 00:00:00 2001 From: David Hill Date: Wed, 23 Dec 2020 09:59:39 -0500 Subject: [PATCH] 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 93b5c3a20e113a38aa99ab8266681f4554b1ac97) (cherry picked from commit 28a26099b8bb31dfa3e5af1ea64cf83c5dd30c6c) (cherry picked from commit 9998bfc5d1b9e6d309b3389df0377544bdf30649) --- deployment/nova/nova-compute-container-puppet.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/deployment/nova/nova-compute-container-puppet.yaml b/deployment/nova/nova-compute-container-puppet.yaml index bbb82700a5..23eeeba3df 100644 --- a/deployment/nova/nova-compute-container-puppet.yaml +++ b/deployment/nova/nova-compute-container-puppet.yaml @@ -995,6 +995,13 @@ outputs: [Install] 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 systemd: name: libvirt-guests @@ -1029,6 +1036,13 @@ outputs: [Install] 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 systemd: name: tripleo_nova_libvirt_guests