Public bug reported: In libvirt 4.6 virtlogd has a pair of sockets.
/lib/systemd/system/virtlogd-admin.socket [Unit] Description=Virtual machine log manager socket Before=libvirtd.service [Socket] ListenStream=/var/run/libvirt/virtlogd-admin-sock Service=virtlogd.service [Install] WantedBy=sockets.target /lib/systemd/system/virtlogd.socket [Unit] Description=Virtual machine log manager socket Before=libvirtd.service [Socket] ListenStream=/var/run/libvirt/virtlogd-sock [Install] WantedBy=sockets.target Together with the service: $ cat /lib/systemd/system/virtlogd.service [Unit] Description=Virtual machine log manager Requires=virtlogd.socket Requires=virtlogd-admin.socket Before=libvirtd.service Documentation=man:virtlogd(8) Documentation=https://libvirt.org [Service] EnvironmentFile=-/etc/default/virtlogd ExecStart=/usr/sbin/virtlogd $VIRTLOGD_ARGS ExecReload=/bin/kill -USR1 $MAINPID [Install] Also=virtlogd.socket On an upgrade this starts out as: - virtlogd.service and virtlogd.socket running and happy - the upgrade updates virtlogd.service (noe requires virtlogd-admin.socket) - the upgrade brings virtlogd.service (noe requires virtlogd-admin.socket) This fails due to: Aug 09 07:09:37 dradis systemd[1]: virtlogd-admin.socket: Socket service virtlogd.service already active, refusing. Aug 09 07:09:37 dradis systemd[1]: Failed to listen on Virtual machine log manager socket. This can be resolved by an ordering like: $ sudo systemctl restart virtlogd.socket $ sudo systemctl restart virtlogd-admin.socket $ sudo systemctl start virtlogd.service For now resolved manually, we likely need to modify postinst and/or dh_* calls in d/rules for this. ** Affects: libvirt (Ubuntu) Importance: Undecided Status: New ** Summary changed: - double virtlogd services can trigger issues on upgrade + double virtlogd sockets with services running can trigger issues on upgrade -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1786179 Title: double virtlogd sockets with services running can trigger issues on upgrade To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1786179/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
