Fix V:
- drop virtlogd sysV script (to fix the original issue) and drop the dh_systemd__start call to
libvirtd (to avoid the secondary issue)
- Intention: libvirtd (re)start is taken care of by dh_installinit anyway, avoid the bad restarts
on virtlogd with this tweak
- with that it seems to work, but it might have other implications that I missed
- the new virtlogd-admin.socket is down (as it would need to restart the service)
- service itself is up and still has the old PID so all is good
- installation works, no more breaking the upgrade.
I'll add this finding to the Debian report to get their opinion on all of this
Upgrade output with that:
Setting up libvirt-daemon-system (4.6.0-1ubuntu1~ppa8) ...
Installing new version of config file /etc/apparmor.d/abstractions/libvirt-qemu ...
Installing new version of config file /etc/apparmor.d/usr.sbin.libvirtd ...
Installing new version of config file /etc/default/libvirt-guests ...
Installing new version of config file /etc/libvirt/libvirtd.conf ...
Installing new version of config file /etc/libvirt/libxl.conf ...
Installing new version of config file /etc/libvirt/qemu.conf ...
Installing new version of config file /etc/libvirt/virtlockd.conf ...
Installing new version of config file /etc/libvirt/virtlogd.conf ...
Created symlink /etc/systemd/system/sockets.target.wants/virtlockd-admin.socket → /lib/systemd/system/virtlockd-admin.socket.
Created symlink /etc/systemd/system/sockets.target.wants/virtlogd-admin.socket → /lib/systemd/system/virtlogd-admin.socket.
virtlockd.service is a disabled or a static unit, not starting it.
virtlogd.service is a disabled or a static unit, not starting it.
Job for virtlogd-admin.socket failed.
See "systemctl status virtlogd-admin.socket" and "journalctl -xe" for details.
Removing obsolete conffile /etc/init.d/virtlogd ...
Setting up libvirt-daemon dnsmasq configuration.
Setting up libvirt-daemon-driver-storage-rbd (4.6.0-1ubuntu1~ppa8) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
RC is 0
Status check after upgrade:
● virtlogd.service - Virtual machine log manager
Loaded: loaded (/lib/systemd/system/virtlogd.service; indirect; vendor preset: enabled)
Active: active (running) since Fri 2018-08-10 11:21:55 UTC; 56s ago
Docs: man:virtlogd(8) https://libvirt.org
Main PID: 3191 (virtlogd)
Tasks: 2 (limit: 4915)
CGroup: /system.slice/virtlogd.service
└─3191 /usr/sbin/virtlogd
Aug 10 11:22:50 c2 systemd[1]: virtlogd.service: Failed to reset devices.list: Operation not permitted
Aug 10 11:22:50 c2 systemd[1]: virtlogd.service: Failed to reset devices.list: Operation not permitted
● virtlogd.socket - Virtual machine log manager socket
Loaded: loaded (/lib/systemd/system/virtlogd.socket; enabled; vendor preset: enabled)
Active: active (running) since Fri 2018-08-10 11:21:55 UTC; 56s ago
Listen: /var/run/libvirt/virtlogd-sock (Stream)
CGroup: /system.slice/virtlogd.socket
Failed to dump process list, ignoring: No such file or directory
Aug 10 11:21:55 c2 systemd[1]: Listening on Virtual machine log manager socket.
Aug 10 11:22:50 c2 libvirtd[4544]: 2018-08-10 11:22:50.914+0000: 4656: error : virPCIDeviceConfigOpen:307 : Failed to op…le system
Aug 10 11:22:50 c2 libvirtd[4544]: 2018-08-10 11:22:50.914+0000: 4656: error : virPCIDeviceConfigOpen:307 : Failed to op…le system
Hint: Some lines were ellipsized, use -l to show in full.
Fix V: admin.socket is down (as it would need to restart the service)
- drop virtlogd sysV script (to fix the original issue) and drop the dh_systemd__start call to
libvirtd (to avoid the secondary issue)
- Intention: libvirtd (re)start is taken care of by dh_installinit anyway, avoid the bad restarts
on virtlogd with this tweak
- with that it seems to work, but it might have other implications that I missed
- the new virtlogd-
- service itself is up and still has the old PID so all is good
- installation works, no more breaking the upgrade.
I'll add this finding to the Debian report to get their opinion on all of this
Upgrade output with that: daemon- system (4.6.0- 1ubuntu1~ ppa8) ... d/abstractions/ libvirt- qemu ... d/usr.sbin. libvirtd ... libvirt- guests ... libvirtd. conf ... libxl.conf ... qemu.conf ... virtlockd. conf ... virtlogd. conf ... system/ sockets. target. wants/virtlockd -admin. socket → /lib/systemd/ system/ virtlockd- admin.socket. system/ sockets. target. wants/virtlogd- admin.socket → /lib/systemd/ system/ virtlogd- admin.socket. admin.socket failed. admin.socket" and "journalctl -xe" for details. d/virtlogd ... daemon- driver- storage- rbd (4.6.0- 1ubuntu1~ ppa8) ...
Setting up libvirt-
Installing new version of config file /etc/apparmor.
Installing new version of config file /etc/apparmor.
Installing new version of config file /etc/default/
Installing new version of config file /etc/libvirt/
Installing new version of config file /etc/libvirt/
Installing new version of config file /etc/libvirt/
Installing new version of config file /etc/libvirt/
Installing new version of config file /etc/libvirt/
Created symlink /etc/systemd/
Created symlink /etc/systemd/
virtlockd.service is a disabled or a static unit, not starting it.
virtlogd.service is a disabled or a static unit, not starting it.
Job for virtlogd-
See "systemctl status virtlogd-
Removing obsolete conffile /etc/init.
Setting up libvirt-daemon dnsmasq configuration.
Setting up libvirt-
Processing triggers for libc-bin (2.27-3ubuntu1) ...
RC is 0
Status check after upgrade:
● virtlogd.service - Virtual machine log manager system/ virtlogd. service; indirect; vendor preset: enabled) /libvirt. org slice/virtlogd. service
Loaded: loaded (/lib/systemd/
Active: active (running) since Fri 2018-08-10 11:21:55 UTC; 56s ago
Docs: man:virtlogd(8)
https:/
Main PID: 3191 (virtlogd)
Tasks: 2 (limit: 4915)
CGroup: /system.
└─3191 /usr/sbin/virtlogd
Aug 10 11:22:50 c2 systemd[1]: virtlogd.service: Failed to reset devices.list: Operation not permitted
Aug 10 11:22:50 c2 systemd[1]: virtlogd.service: Failed to reset devices.list: Operation not permitted
● virtlogd.socket - Virtual machine log manager socket system/ virtlogd. socket; enabled; vendor preset: enabled) libvirt/ virtlogd- sock (Stream) slice/virtlogd. socket
Loaded: loaded (/lib/systemd/
Active: active (running) since Fri 2018-08-10 11:21:55 UTC; 56s ago
Listen: /var/run/
CGroup: /system.
Failed to dump process list, ignoring: No such file or directory
Aug 10 11:21:55 c2 systemd[1]: Listening on Virtual machine log manager socket.
● virtlogd- admin.socket - Virtual machine log manager socket system/ virtlogd- admin.socket; enabled; vendor preset: enabled) libvirt/ virtlogd- admin-sock (Stream)
Loaded: loaded (/lib/systemd/
Active: inactive (dead)
Listen: /var/run/
Aug 10 11:22:50 c2 systemd[1]: virtlogd- admin.socket: Socket service virtlogd.service already active, refusing.
Aug 10 11:22:50 c2 systemd[1]: Failed to listen on Virtual machine log manager socket.
● virtlockd.service - Virtual machine lock manager system/ virtlockd. service; indirect; vendor preset: enabled) /libvirt. org
Loaded: loaded (/lib/systemd/
Active: inactive (dead)
Docs: man:virtlockd(8)
https:/
● virtlockd.socket - Virtual machine lock manager socket system/ virtlockd. socket; enabled; vendor preset: enabled) libvirt/ virtlockd- sock (Stream) slice/virtlockd .socket
Loaded: loaded (/lib/systemd/
Active: active (listening) since Fri 2018-08-10 11:21:55 UTC; 57s ago
Listen: /var/run/
CGroup: /system.
Failed to dump process list, ignoring: No such file or directory
Aug 10 11:21:55 c2 systemd[1]: Listening on Virtual machine lock manager socket.
● virtlockd- admin.socket - Virtual machine lock manager admin socket system/ virtlockd- admin.socket; enabled; vendor preset: enabled) libvirt/ virtlockd- admin-sock (Stream) slice/virtlockd -admin. socket
Loaded: loaded (/lib/systemd/
Active: active (listening) since Fri 2018-08-10 11:22:50 UTC; 2s ago
Listen: /var/run/
CGroup: /system.
Failed to dump process list, ignoring: No such file or directory
Aug 10 11:22:50 c2 systemd[1]: Listening on Virtual machine lock manager admin socket.
● libvirtd.service - Virtualization daemon system/ libvirtd. service; enabled; vendor preset: enabled) /libvirt. org slice/libvirtd. service file=/var/ lib/libvirt/ dnsmasq/ default. conf --leasefile-ro --dhcp- script= /usr/lib/ lib…er file=/var/ lib/libvirt/ dnsmasq/ default. conf --leasefile-ro --dhcp- script= /usr/lib/ lib…er
Loaded: loaded (/lib/systemd/
Active: active (running) since Fri 2018-08-10 11:22:50 UTC; 1s ago
Docs: man:libvirtd(8)
https:/
Main PID: 4544 (libvirtd)
Tasks: 19 (limit: 32768)
CGroup: /system.
├─3462 /usr/sbin/dnsmasq --conf-
├─3463 /usr/sbin/dnsmasq --conf-
└─4544 /usr/sbin/libvirtd
Aug 10 11:22:50 c2 libvirtd[4544]: 2018-08-10 11:22:50.914+0000: 4656: error : virPCIDeviceCon figOpen: 307 : Failed to op…le system figOpen: 307 : Failed to op…le system
Aug 10 11:22:50 c2 libvirtd[4544]: 2018-08-10 11:22:50.914+0000: 4656: error : virPCIDeviceCon
Hint: Some lines were ellipsized, use -l to show in full.