<div dir="ltr"><div>On Thu, 8 Jul 2021 at 21:47, J-P Methot <<a href="mailto:jp.methot@planethoster.info">jp.methot@planethoster.info</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On 7/8/21 2:31 PM, Sean Mooney wrote:<br>
> the script and systemd service file need to be installed on the host outside the containers really for it to work<br>
> so i would not expect it to be in the contianer it self.<br>
<br>
The systemd script does call another script in the container. Here, lets <br>
look at this snippet from the systemd script at <br>
<a href="https://github.com/openstack/kolla-ansible/blob/master/tools/kolla-libvirt-guests.service" rel="noreferrer" target="_blank">https://github.com/openstack/kolla-ansible/blob/master/tools/kolla-libvirt-guests.service</a> <br>
:<br>
<br>
ExecStart=-/usr/bin/docker exec nova_libvirt /bin/rm -f <br>
/var/lib/libvirt/libvirt-guests<br>
ExecStart=-/usr/bin/docker start nova_compute<br>
ExecStop=/usr/bin/docker stop nova_compute<br>
<br>
ExecStop=/usr/bin/docker exec nova_libvirt /bin/sh -x <br>
/usr/libexec/libvirt-guests.sh shutdown<br>
<br>
It looks like it removes the libvirt-guests regular script if it's <br>
present when it starts and starts a different script with the shutdown <br>
argument when it stops. This second script is the one missing from my <br>
installed container image, hence why I am confused.</blockquote><div><br></div><div>The /usr/libexec/libvirt-guests.sh script is available on CentOS images, at least those that I checked: train (centos7) and ussuri (centos8). However, in Ubuntu the script lives at /usr/lib/libvirt/libvirt-guests.sh in both bionic [1] and focal [2]. It is possible that this has simply never been tested on Ubuntu.</div><div><br></div><div>[1] <a href="https://packages.ubuntu.com/bionic/amd64/libvirt-daemon/filelist">https://packages.ubuntu.com/bionic/amd64/libvirt-daemon/filelist</a></div><div>[2] <a href="https://packages.ubuntu.com/focal/amd64/libvirt-daemon/filelist">https://packages.ubuntu.com/focal/amd64/libvirt-daemon/filelist</a></div></div></div>