[Pkg-libvirt-maintainers] Bug#803714: Bug#803714: libvirt-guests shutdown timeout ignored by systemd service stop timeout
Guido Günther
agx at sigxcpu.org
Tue Nov 17 07:36:16 UTC 2015
On Mon, Nov 02, 2015 at 11:36:04AM +1300, Sebastian Schweizer wrote:
> Package: libvirt-daemon-system
> Version: 1.2.9-9+deb8u1
>
> In /etc/default/libvirt-guests the default timeout for guests shutting
> down or suspending on host shutdown/reboot is 300 seconds. However,
> systemd has timeouts for service units to stop. The default is 90
> seconds, as viewable by:
> systemctl show libvirt-guests | grep Timeout
>
> We should specify a timeout in the libvirt-guests.service file, ideally
> take directly the configured timeout from /etc/default/libvirt-guests .
This could be done using a generator _but_ since we don't know the
number of guests and the overall timeout is VMs * SHUTDOWN_TIMEOUT we
don't know the value beforehand so the only way would be to disable the
timeout.
Cheers,
-- Guido
>
> As workaround, I created a systemd drop-in file:
> /etc/systemd/system/libvirt-guests.service.d/local-timeout.conf:
> [Service]
> TimeoutStopSec=300
>
> The bug was already reported to Fedora, see
> https://bugzilla.redhat.com/show_bug.cgi?id=1195544 for further details
> and consequences.
>
> _______________________________________________
> Pkg-libvirt-maintainers mailing list
> Pkg-libvirt-maintainers at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-libvirt-maintainers
>
More information about the Pkg-libvirt-maintainers
mailing list