[Pkg-libvirt-maintainers] Bug#905772: For me it needs sysV drop and --no-stop-on-upgrade and --no-restart-after-upgrade

Karl Goetz karl at kgoetz.id.au
Fri Aug 30 13:02:54 BST 2019


On Tue, 11 Jun 2019 21:05:43 +0200 Christian Ehrhardt 
<christian.ehrhardt at canonical.com> wrote:
> Testing now confirmed, that for the version in experimental I need to do both:
> 
> a) drop the sysV
> - as Ubuntu has done for a while
> - without the sysV to systemd mapping still restarts the services
> - something like [1], I haven an MP up for that on salsa, might be
> slightly outdated
> 
> b) Specify both --no-stop-on-upgrade and --no-restart-after-upgrade
> Otherwise dh_installsystemd snippets will restart the service
> 
> [1]: https://git.launchpad.net/~libvirt-maintainers/ubuntu/+source/libvirt/commit/?id=0b5b15b390903e5c282a8bb2c27d53d63e442f31
> 

Hi,
A quick word of thanks - removing the sysv script made the upgrade from 
stretch to buster complete for me.

In case you notice its missing, I had previously commented out 
'virtlogd-admin.socket' from line 386 of the postinst. I'm unsure if it 
was related to having the install complete but will test another time.

thanks,
Karl.

> root at mainserver:/etc# apt dist-upgrade
> Reading package lists... Done
> Building dependency tree       
> Reading state information... Done
> Calculating upgrade... Done
> The following packages were automatically installed and are no longer required:
>   adwaita-icon-theme arch-test at-spi2-core busybox-static cloud-image-utils dconf-gsettings-backend dconf-service dh-python distro-info e2fsprogs-l10n ebtables fontconfig freeipmi-common glib-networking glib-networking-common
>   glib-networking-services gnupg-agent gsettings-desktop-schemas gstreamer1.0-libav gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-x gtk-update-icon-cache guile-2.0-libs hicolor-icon-theme
>   i965-va-driver ibverbs-providers intel-media-va-driver irqbalance liba52-0.7.4 libaa1 libaacs0 libaom0 libass9 libasyncns0 libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatspi2.0-0 libavc1394-0 libavcodec58 libavfilter7
>   libavformat58 libavutil56 libbdplus0 libblockdev-crypto2 libbluray2 libboost-atomic1.67.0 libboost-filesystem1.62.0 libboost-iostreams1.62.0 libboost-random1.62.0 libboost-regex1.67.0 libboost-system1.62.0 libboost-thread1.62.0
>   libboost-thread1.67.0 libbs2b0 libcaca0 libcdio18 libcdparanoia0 libchromaprint1 libcodec2-0.8.1 libcolord2 libcroco3 libcrystalhd3 libcups2 libdatrie1 libdconf1 libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdv4
>   libdvdnav4 libdvdread4 libevent-2.0-5 libevtlog0 libfftw3-double3 libflac8 libflite1 libfreeipmi17 libgdbm3 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0
>   libglx0 libgme0 libgomp1 libgpg-error-l10n libgpgme11 libgraphite2-3 libgsm1 libgtk-3-0 libgtk-3-bin libgtk-3-common libharfbuzz0b libice6 libicu57 libiec61883-0 libigdgmm5 libjack-jackd2-0 libjansson4 libjbig0 libjson-glib-1.0-0
>   libjson-glib-1.0-common liblcms2-2 liblilv-0-0 libllvm7 liblvm2app2.2 liblvm2cmd2.02 libminiupnpc10 libmp3lame0 libmpeg2-4 libmpg123-0 libmysofa0 libnftables0 libnorm1 libnss-systemd libntfs-3g871 libogg0 libopencore-amrnb0
>   libopencore-amrwb0 libopenipmi0 libopenjp2-7 libopenmpt0 libpam-cap libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libperl5.24 libpgm-5.2-0 libpostproc55 libproxy1v5 libpulse0 libpython3.5-minimal libpython3.5-stdlib librados2
>   libraw1394-11 librbd1 librest-0.7-0 librsvg2-2 librsvg2-common librubberband2 libsamplerate0 libsdl1.2debian libsensors-config libsensors5 libserd-0-0 libshine3 libshout3 libsidplay1v5 libslang2 libsm6 libsnappy1v5 libsndfile1
>   libsnmp-base libsnmp30 libsodium23 libsord-0-0 libsoup-gnome2.4-1 libsoup2.4-1 libsoxr0 libspeex1 libsratom-0-0 libssh-gcrypt-4 libswresample3 libswscale5 libtag1v5 libtag1v5-vanilla libthai-data libthai0 libtheora0 libtiff5
>   libtwolame0 libunistring0 libv4l-0 libv4lconvert0 libva-drm2 libva-x11-2 libva2 libvdpau-va-gl1 libvdpau1 libvidstab1.1 libvisual-0.4-0 libvolume-key1 libvorbis0a libvorbisenc2 libvorbisfile3 libvpx5 libvte-2.91-0 libvte-2.91-common
>   libwavpack1 libwayland-client0 libwayland-cursor0 libwayland-egl1 libwebp6 libwebpmux3 libx11-xcb1 libx264-155 libx265-165 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-sync1 libxcb-xfixes0 libxcomposite1 libxcursor1
>   libxdamage1 libxen-4.8 libxfixes3 libxi6 libxinerama1 libxkbcommon0 libxml2-utils libxrandr2 libxshmfence1 libxtst6 libxv1 libxvidcore4 libxxf86vm1 libzmq5 libzvbi-common libzvbi0 linux-image-4.9.0-7-amd64 lxc-templates
>   mesa-va-drivers mesa-vdpau-drivers netcat-openbsd nftables openipmi ovmf pigz python-certifi python-chardet python-gi python-idna python-ipaddr python-libvirt python-libxml2 python-pkg-resources python-requests python-six
>   python-urllib3 python3.5 python3.5-minimal qemu-system-gui runit-helper sgml-base shared-mime-info thin-provisioning-tools transmission-cli uuid-runtime va-driver-all vdpau-driver-all x11-common xkb-data xml-core
> Use 'apt autoremove' to remove them.
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> 1 not fully installed or removed.
> After this operation, 0 B of additional disk space will be used.
> Do you want to continue? [Y/n] 
> Setting up libvirt-daemon-system (5.0.0-4) ...
> + [ configure = configure ]
> + [ -d /run/systemd/system ]
> + systemctl --system daemon-reload
> + [ -n 3.0.0-4+deb9u4 ]
> + _dh_action=restart
> + deb-systemd-invoke restart virtlockd.socket
> + [ configure = configure ]
> + [ -d /run/systemd/system ]
> + systemctl --system daemon-reload
> + deb-systemd-invoke start virtlockd-admin.socket virtlockd.service virtlockd.socket
> virtlockd.service is a disabled or a static unit, not starting it.
> + dpkg-maintscript-helper rm_conffile /etc/logrotate.d/libvirtd.uml 5.0.0-2~ -- configure 3.0.0-4+deb9u4
> + [ configure = configure ]
> + [ -x /etc/init.d/virtlogd ]
> + update-rc.d virtlogd defaults
> + invoke-rc.d virtlogd start
> A dependency job for virtlogd.service failed. See 'journalctl -xe' for details.
> invoke-rc.d: initscript virtlogd, action "start" failed.
> ● virtlogd.service - Virtual machine log manager
>    Loaded: loaded (/lib/systemd/system/virtlogd.service; indirect; vendor preset: enabled)
>    Active: active (running) since Fri 2019-08-30 10:26:16 UTC; 1h 28min ago
>      Docs: man:virtlogd(8)
>            https://libvirt.org
>  Main PID: 5885 (virtlogd)
>     Tasks: 2 (limit: 4915)
>    Memory: 5.6M
>    CGroup: /system.slice/virtlogd.service
>            └─5885 /usr/sbin/virtlogd
> 
> Aug 30 11:51:08 mainserver systemd[1]: Dependency failed for Virtual machine log manager.
> Aug 30 11:51:08 mainserver systemd[1]: virtlogd.service: Job virtlogd.service/start failed with result 'dependency'.
> Aug 30 11:53:14 mainserver systemd[1]: Reloading Virtual machine log manager.
> Aug 30 11:53:14 mainserver systemd[1]: Reloaded Virtual machine log manager.
> Aug 30 11:53:19 mainserver systemd[1]: Dependency failed for Virtual machine log manager.
> Aug 30 11:53:19 mainserver systemd[1]: virtlogd.service: Job virtlogd.service/start failed with result 'dependency'.
> Aug 30 11:54:48 mainserver systemd[1]: Reloading Virtual machine log manager.
> Aug 30 11:54:48 mainserver systemd[1]: Reloaded Virtual machine log manager.
> Aug 30 11:54:53 mainserver systemd[1]: Dependency failed for Virtual machine log manager.
> Aug 30 11:54:53 mainserver systemd[1]: virtlogd.service: Job virtlogd.service/start failed with result 'dependency'.
> + exit 1
> dpkg: error processing package libvirt-daemon-system (--configure):
>  installed libvirt-daemon-system package post-installation script subprocess returned error exit status 1
> Errors were encountered while processing:
>  libvirt-daemon-system
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> root at mainserver:/etc# ls -lh /etc/init.d/virtlogd
> -rwxr-xr-x 1 root root 4.0K Mar 12  2018 /etc/init.d/virtlogd
> root at mainserver:/etc# rm /etc/init.d/virtlogd
> root at mainserver:/etc# apt dist-upgrade
> Reading package lists... Done
> Building dependency tree       
> Reading state information... Done
> Calculating upgrade... Done
> The following packages were automatically installed and are no longer required:
>   adwaita-icon-theme arch-test at-spi2-core busybox-static cloud-image-utils dconf-gsettings-backend dconf-service dh-python distro-info e2fsprogs-l10n ebtables fontconfig freeipmi-common glib-networking glib-networking-common
>   glib-networking-services gnupg-agent gsettings-desktop-schemas gstreamer1.0-libav gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-x gtk-update-icon-cache guile-2.0-libs hicolor-icon-theme
>   i965-va-driver ibverbs-providers intel-media-va-driver irqbalance liba52-0.7.4 libaa1 libaacs0 libaom0 libass9 libasyncns0 libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatspi2.0-0 libavc1394-0 libavcodec58 libavfilter7
>   libavformat58 libavutil56 libbdplus0 libblockdev-crypto2 libbluray2 libboost-atomic1.67.0 libboost-filesystem1.62.0 libboost-iostreams1.62.0 libboost-random1.62.0 libboost-regex1.67.0 libboost-system1.62.0 libboost-thread1.62.0
>   libboost-thread1.67.0 libbs2b0 libcaca0 libcdio18 libcdparanoia0 libchromaprint1 libcodec2-0.8.1 libcolord2 libcroco3 libcrystalhd3 libcups2 libdatrie1 libdconf1 libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdv4
>   libdvdnav4 libdvdread4 libevent-2.0-5 libevtlog0 libfftw3-double3 libflac8 libflite1 libfreeipmi17 libgdbm3 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0
>   libglx0 libgme0 libgomp1 libgpg-error-l10n libgpgme11 libgraphite2-3 libgsm1 libgtk-3-0 libgtk-3-bin libgtk-3-common libharfbuzz0b libice6 libicu57 libiec61883-0 libigdgmm5 libjack-jackd2-0 libjansson4 libjbig0 libjson-glib-1.0-0
>   libjson-glib-1.0-common liblcms2-2 liblilv-0-0 libllvm7 liblvm2app2.2 liblvm2cmd2.02 libminiupnpc10 libmp3lame0 libmpeg2-4 libmpg123-0 libmysofa0 libnftables0 libnorm1 libnss-systemd libntfs-3g871 libogg0 libopencore-amrnb0
>   libopencore-amrwb0 libopenipmi0 libopenjp2-7 libopenmpt0 libpam-cap libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libperl5.24 libpgm-5.2-0 libpostproc55 libproxy1v5 libpulse0 libpython3.5-minimal libpython3.5-stdlib librados2
>   libraw1394-11 librbd1 librest-0.7-0 librsvg2-2 librsvg2-common librubberband2 libsamplerate0 libsdl1.2debian libsensors-config libsensors5 libserd-0-0 libshine3 libshout3 libsidplay1v5 libslang2 libsm6 libsnappy1v5 libsndfile1
>   libsnmp-base libsnmp30 libsodium23 libsord-0-0 libsoup-gnome2.4-1 libsoup2.4-1 libsoxr0 libspeex1 libsratom-0-0 libssh-gcrypt-4 libswresample3 libswscale5 libtag1v5 libtag1v5-vanilla libthai-data libthai0 libtheora0 libtiff5
>   libtwolame0 libunistring0 libv4l-0 libv4lconvert0 libva-drm2 libva-x11-2 libva2 libvdpau-va-gl1 libvdpau1 libvidstab1.1 libvisual-0.4-0 libvolume-key1 libvorbis0a libvorbisenc2 libvorbisfile3 libvpx5 libvte-2.91-0 libvte-2.91-common
>   libwavpack1 libwayland-client0 libwayland-cursor0 libwayland-egl1 libwebp6 libwebpmux3 libx11-xcb1 libx264-155 libx265-165 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-sync1 libxcb-xfixes0 libxcomposite1 libxcursor1
>   libxdamage1 libxen-4.8 libxfixes3 libxi6 libxinerama1 libxkbcommon0 libxml2-utils libxrandr2 libxshmfence1 libxtst6 libxv1 libxvidcore4 libxxf86vm1 libzmq5 libzvbi-common libzvbi0 linux-image-4.9.0-7-amd64 lxc-templates
>   mesa-va-drivers mesa-vdpau-drivers netcat-openbsd nftables openipmi ovmf pigz python-certifi python-chardet python-gi python-idna python-ipaddr python-libvirt python-libxml2 python-pkg-resources python-requests python-six
>   python-urllib3 python3.5 python3.5-minimal qemu-system-gui runit-helper sgml-base shared-mime-info thin-provisioning-tools transmission-cli uuid-runtime va-driver-all vdpau-driver-all x11-common xkb-data xml-core
> Use 'apt autoremove' to remove them.
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> 1 not fully installed or removed.
> After this operation, 0 B of additional disk space will be used.
> Do you want to continue? [Y/n] 
> [master b0be562] saving uncommitted changes in /etc prior to apt run
>  2 files changed, 162 deletions(-)
>  delete mode 100755 init.d/virtlogd
> Setting up libvirt-daemon-system (5.0.0-4) ...
> + [ configure = configure ]
> + [ -d /run/systemd/system ]
> + systemctl --system daemon-reload
> + [ -n 3.0.0-4+deb9u4 ]
> + _dh_action=restart
> + deb-systemd-invoke restart virtlockd.socket
> + [ configure = configure ]
> + [ -d /run/systemd/system ]
> + systemctl --system daemon-reload
> + deb-systemd-invoke start virtlockd-admin.socket virtlockd.service virtlockd.socket
> virtlockd.service is a disabled or a static unit, not starting it.
> + dpkg-maintscript-helper rm_conffile /etc/logrotate.d/libvirtd.uml 5.0.0-2~ -- configure 3.0.0-4+deb9u4
> + [ configure = configure ]
> + [ -x /etc/init.d/virtlogd ]
> + [ configure = configure ]
> + [ -x /etc/init.d/libvirtd ]
> + update-rc.d libvirtd defaults 28 72
> + [ -n 3.0.0-4+deb9u4 ]
> + _dh_action=restart
> + invoke-rc.d libvirtd restart
> + [ configure = configure ]
> + [ -x /etc/init.d/libvirt-guests ]
> + update-rc.d libvirt-guests defaults 29 71
> + invoke-rc.d libvirt-guests start
> + exit 0
> root at mainserver:/etc# 



More information about the Pkg-libvirt-maintainers mailing list