<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 10, 2019 at 12:41 PM Henning Schild <<a href="mailto:henning.schild@siemens.com">henning.schild@siemens.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Am Tue, 10 Dec 2019 12:01:24 +0100<br>
schrieb Christian Ehrhardt <<a href="mailto:christian.ehrhardt@canonical.com" target="_blank">christian.ehrhardt@canonical.com</a>>:<br>
<br>
> On Tue, Dec 10, 2019 at 10:46 AM Henning Schild<br>
> <<a href="mailto:henning.schild@siemens.com" target="_blank">henning.schild@siemens.com</a>> wrote:<br>
> <br>
> > Hi all,<br>
> ><br>
> > the systemd shutdown scripts work sequentially with a 300s timeout<br>
> > (seen on Debian). If a VM does not have ACPI support, or the ACPI<br>
> > support failed for some reason, you are looking at a 300s timeout<br>
> > per instance for a host shutdown/reboot.<br>
> > i.e. 10 instances without working ACPI = 3000s to shut down<br>
> ><br>
> > I think the systemd scripting should be parallel instead of<br>
> > sequentially. So if you have many VMs without working ACPI you just<br>
> > have to wait 300s in total for the host to shut down.<br>
> >  <br>
> <br>
> Hi Henning,<br>
> this is configurable in /etc/default/libvirt-guests<br>
> For example Ubuntu (otherwise using the same bits) changes that to run<br>
> PARALLEL_SHUTDOWN=10<br>
> SHUTDOWN_TIMEOUT=120<br>
<br>
Sweet. I went for the PARALLEL_SHUTDOWN=10 and left the 300. Maybe the<br>
default PARALLEL_SHUTDOWN value should not be 0 ?<br>
<br>
> I never got bugs about that config being too aggressive.<br>
> The change is old and as easy as:<br>
> <a href="https://git.launchpad.net/ubuntu/+source/libvirt/tree/debian/patches/ubuntu/parallel-shutdown.patch?h=ubuntu/focal-devel" rel="noreferrer" target="_blank">https://git.launchpad.net/ubuntu/+source/libvirt/tree/debian/patches/ubuntu/parallel-shutdown.patch?h=ubuntu/focal-devel</a><br>
> Maybe you just want to open a bug with Debian to change the default<br>
> config there as well?<br>
<br>
No it is a bug in libvirt having the "wrong" defaults. And a bug in<br>
ubuntu not fixing it upstream ;).<br></blockquote><div><br></div><div>No it isn't as it was discussed and nacked (years ago)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Thanks,<br>
Henning<br>
<br>
> Steps to reproduce:<br>
> >  - star a VM that does not support ACPI<br>
> >  - reboot the host and wait 300s for the VM to be shut down<br>
> >  - now start it multiple times<br>
> >  - wait multiples of 300s for the shutdown<br>
> ><br>
> > Expected behaviour:<br>
> >  - no matter how many instances do not support ACPI, make it 300s<br>
> > max because we shut them down in parallel<br>
> ><br>
> ><br>
> > regards,<br>
> > Henning<br>
> ><br>
> ><br>
> > --<br>
> > libvir-list mailing list<br>
> > <a href="mailto:libvir-list@redhat.com" target="_blank">libvir-list@redhat.com</a><br>
> > <a href="https://www.redhat.com/mailman/listinfo/libvir-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/libvir-list</a><br>
> ><br>
> >  <br>
> <br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Christian Ehrhardt<br>Staff Engineer, Ubuntu Server<br>Canonical Ltd</div></div>