#939835 10 seconds delay when shutting down system caused by libvirt-guests.sh

Package:
libvirt-daemon
Source:
libvirt
Description:
Virtualization daemon
Submitter:
Roderich Schupp
Date:
2021-09-15 08:30:03 UTC
Severity:
normal
#939835#5
Date:
2019-09-09 11:51:53 UTC
From:
To:
When shutting down my system, there's a delay caused by libvirt-guests.sh.
The journal shows:

...
Aug 27 00:08:18 nuc8 systemd[1]: Stopped Permit User Sessions.
Aug 27 00:08:18 nuc8 systemd[1]: Stopped target Remote File Systems.
Aug 27 00:08:18 nuc8 systemd[1]: Stopped target User and Group Name Lookups.
Aug 27 00:08:18 nuc8 libvirt-guests.sh[7884]: Unable to connect to libvirt
currently. Retrying .. 10
Aug 27 00:08:19 nuc8 libvirt-guests.sh[7884]: Unable to connect to libvirt
currently. Retrying .. 9
Aug 27 00:08:20 nuc8 libvirt-guests.sh[7884]: Unable to connect to libvirt
currently. Retrying .. 8
Aug 27 00:08:21 nuc8 libvirt-guests.sh[7884]: Unable to connect to libvirt
currently. Retrying .. 7
Aug 27 00:08:22 nuc8 libvirt-guests.sh[7884]: Unable to connect to libvirt
currently. Retrying .. 6
Aug 27 00:08:23 nuc8 libvirt-guests.sh[7884]: Unable to connect to libvirt
currently. Retrying .. 5
Aug 27 00:08:24 nuc8 libvirt-guests.sh[7884]: Unable to connect to libvirt
currently. Retrying .. 4
Aug 27 00:08:25 nuc8 libvirt-guests.sh[7884]: Unable to connect to libvirt
currently. Retrying .. 3
Aug 27 00:08:26 nuc8 libvirt-guests.sh[7884]: Unable to connect to libvirt
currently. Retrying .. 2
Aug 27 00:08:27 nuc8 libvirt-guests.sh[7884]: Unable to connect to libvirt
currently. Retrying .. 1Can't connect to default. Skipping.
Aug 27 00:08:27 nuc8 systemd[1]: libvirt-guests.service: Succeeded.
Aug 27 00:08:27 nuc8 systemd[1]: Stopped Suspend/Resume Running libvirt Guests.
Aug 27 00:08:27 nuc8 systemd[1]: Stopped target Libvirt guests shutdown.
Aug 27 00:08:27 nuc8 systemd[1]: Stopped target System Time Synchronized.
Aug 27 00:08:27 nuc8 systemd[1]: Stopped target System Time Set.
Aug 27 00:08:27 nuc8 systemd[1]: Stopped target Network.
...

This behaviour started after upgrading libvirt-daemon-system from 5.2.0-2 to
5.6.0-1

#939835#10
Date:
2019-09-23 15:46:29 UTC
From:
To:
Same issue here.
#939835#15
Date:
2019-11-07 06:17:29 UTC
From:
To:
I'm also affected by this bug. Are there any workarounds?
#939835#20
Date:
2020-04-19 02:31:44 UTC
From:
To:
Just FYI, this bug is gone in Debian testing, due to libvirt updates that
happened not long ago.

#939835#25
Date:
2021-09-15 08:26:22 UTC
From:
To:
Dear Maintainer,
The problem is still here.

On shutdown, with no-running virtual machine

libvirt-guests.sh[****]: Running guests on default URI: no running guests.