[Pkg-libvirt-maintainers] Bug#907444: libvirt-daemon: systemd runs (sort-of) in container even when disable
Peter.Chubb at data61.csiro.au
Peter.Chubb at data61.csiro.au
Tue Aug 28 06:34:28 BST 2018
Package: libvirt-daemon
Version: 4.6.0-2
Severity: normal
Dear Maintainer,
I replaced systemd with sysvinit-core inside a libvirt-lxc container
containing a stretch rootfs.
I expected not to see any systemd messages in the in-container logs.
But I see (even though anacron isn't installed in the container):
Aug 28 15:05:14 stage systemd[1]: Started Run anacron jobs.
Aug 28 15:05:14 stage systemd[30916]: anacron.service: Failed at step EXEC spawning /usr/sbin/anacron: No such file or directory
Aug 28 15:05:14 stage systemd[1]: anacron.service: Main process exited, code=exited, status=203/EXEC
Aug 28 15:05:14 stage systemd[1]: anacron.service: Unit entered failed state.
Aug 28 15:05:14 stage systemd[1]: anacron.timer: Adding 1min 49.830702s random time.
Aug 28 15:05:14 stage systemd[1]: anacron.service: Failed with result 'exit-code'.
Inside the container:
# dpkg -l | grep systemd
ii libsystemd0:amd64 232-25+deb9u4 amd64 systemd utility library
# dpkg -l | grep sysv
ii sysv-rc 2.88dsf-59.9 all System-V-like runlevel change mechanism
ii sysvinit-core 2.88dsf-59.9 amd64 System-V-like init utilities
ii sysvinit-utils 2.88dsf-59.9 amd64 System-V-like utilities
# dpkg -l anacron
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
un anacron <none> <none> (no description available)
The other thing that seems to be happening is cron jobs all run twice.
If I stop the in-container cron daemon, they run once but partially in
the wrong namespace (for example, they cannot see the ethernet adapter
but can see the filesystem)
My guess is that somehow either the host systemd-timer or libvirt-daemon
is reading the in-container /etc/crontab and executing the commands there,
-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.16.0-2-amd64 (SMP w/56 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages libvirt-daemon depends on:
ii libacl1 2.2.52-3+b1
ii libapparmor1 2.13-8
ii libaudit1 1:2.8.3-1+b1
ii libavahi-client3 0.7-4
ii libavahi-common3 0.7-4
ii libblkid1 2.32.1-0.1
ii libc6 2.27-5
ii libcap-ng0 0.7.9-1
ii libcurl3-gnutls 7.61.0-1
ii libdbus-1-3 1.12.10-1
ii libdevmapper1.02.1 2:1.02.145-4.1
ii libfuse2 2.9.8-2
ii libgcc1 1:8.2.0-4
ii libgnutls30 3.5.19-1
ii libnetcf1 1:0.2.8-1+b2
ii libnl-3-200 3.4.0-1
ii libnl-route-3-200 3.4.0-1
ii libnuma1 2.0.11-2.2
ii libparted2 3.2-21+b1
ii libpcap0.8 1.8.1-6
ii libpciaccess0 0.14-1
ii libsasl2-2 2.1.27~101-g0780600+dfsg-3.1
ii libselinux1 2.8-1+b1
ii libssh2-1 1.8.0-2
ii libudev1 239-7
ii libvirt0 4.6.0-2
ii libxen-4.8 4.8.3+xsa267+shim4.10.1+xsa267-1+deb9u9
ii libxenstore3.0 4.8.3+xsa267+shim4.10.1+xsa267-1+deb9u9
ii libxml2 2.9.4+dfsg1-7+b1
ii libyajl2 2.1.0-2+b3
Versions of packages libvirt-daemon recommends:
ii libxml2-utils 2.9.4+dfsg1-7+b1
ii netcat-openbsd 1.190-2
ii qemu-kvm 1:2.12+dfsg-3
Versions of packages libvirt-daemon suggests:
pn libvirt-daemon-driver-storage-gluster <none>
pn libvirt-daemon-driver-storage-rbd <none>
pn libvirt-daemon-driver-storage-sheepdog <none>
pn libvirt-daemon-driver-storage-zfs <none>
ii libvirt-daemon-system 4.6.0-2
ii numad 0.5+20150602-5
-- no debconf information
--
Dr Peter Chubb Tel: +61 2 9490 5852 http://ts.data61.csiro.au/
Trustworthy Systems Group Data61, CSIRO (formerly NICTA)
More information about the Pkg-libvirt-maintainers
mailing list