This easily reproduces in a VM with
sudo apt-get install libvirt-bin
sudo apt-get install --reinstall libvirt-bin
During the second operation you can see this in the journal:
Jan 15 12:39:43 autopkgtest systemd[1]: Stopped Stop Active Libvirt
Guests.
/var/lib/dpkg/info/libvirt-bin.prerm has
# Automatically added by dh_systemd_start
if [ -d /run/systemd/system ]; then
deb-systemd-invoke stop libvirt-guests.service >/dev/null
fi
[...]
# Automatically added by dh_systemd_start
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
deb-systemd-invoke stop libvirt-guests.service >/dev/null
fi
# End automatically added section
# Automatically added by dh_installinit
if ([ -x "/etc/init.d/libvirt-guests" ] || [ -e "/etc/init/libvirt-guests.conf"
]) && \
[ "$1" = remove ]; then
invoke-rc.d libvirt-guests stop || exit $?
fi
which is unconditionally run regardless of the operation. So this
explains why libvirt-guests get stopped. So the prerm needs to be fixed.
This sounds like a bug in dh_systemd_start --no-restart-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/1533839
Title:
vms shutting down on libvirt upgrade
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1533839/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs