[Bug 1967576] Re: systemd: autopkgtest: tests-in-lxd fails because of remaining snap .mount units
Launchpad Bug Tracker
1967576 at bugs.launchpad.net
Wed Apr 13 22:51:09 UTC 2022
This bug was fixed in the package systemd - 248.3-1ubuntu8.5
---------------
systemd (248.3-1ubuntu8.5) impish; urgency=medium
* debian/tests/boot-and-services: Ignore failed snap mount units in
test_no_failed (LP: #1967576)
systemd (248.3-1ubuntu8.4) impish; urgency=medium
[ Lukas Märdian ]
* Fix deadlock between pid1 and dbus-daemon (LP: #1871538)
Author: Lukas Märdian
File: debian/patches/pid1-set-SYSTEMD_NSS_DYNAMIC_BYPASS-1-env-var-for-dbus-da.patch
https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=f79535077473902bad911dc2652a2fff4066fa30
* Don't override Ubuntu's default sysctl values (LP: #1962038)
Author: Lukas Märdian
File: debian/patches/debian/UBUNTU-Don-t-override-Ubuntu-s-default-sysctl-values-LP-1962038.patch
https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=3ba2764d8f77e616461c9722923f685fad79f8c6
systemd (248.3-1ubuntu8.3) impish; urgency=medium
[ Jeremy Szu ]
* Add a allowlist to unblock intel-hid on new HP machines (LP: #1955997)
Author: Jeremy Szu
File: debian/patches/lp1955997-add-a-allowlist-to-unblock-intel-hid-on-HP-mach.patch
https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=554d46e6a6ab80befd424ead7ffa8e6f993b5f66
-- Nick Rosbrook <nick.rosbrook at canonical.com> Fri, 01 Apr 2022
16:39:25 -0400
** Changed in: systemd (Ubuntu Impish)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1967576
Title:
systemd: autopkgtest: tests-in-lxd fails because of remaining snap
.mount units
Status in systemd package in Ubuntu:
New
Status in systemd source package in Impish:
Fix Released
Bug description:
This build log provides an example of the problem:
https://autopkgtest.ubuntu.com/results/autopkgtest-
impish/impish/ppc64el/s/systemd/20220331_190433_fdbbe@/log.gz.
During setup for tests-in-lxd, an attempt is made to purge snapd, but
this fails:
[ ... ]
Purging configuration files for snapd (2.54.3+21.10.1ubuntu0.2) ...
Stopping snap.lxd.activate.service
Stopping unit snap.lxd.activate.service
Waiting until unit snap.lxd.activate.service is stopped [attempt 1]
snap.lxd.activate.service is stopped.
Removing snap.lxd.activate.service
Stopping snap.lxd.daemon.service
Stopping unit snap.lxd.daemon.service
Waiting until unit snap.lxd.daemon.service is stopped [attempt 1]
snap.lxd.daemon.service is stopped.
Removing snap.lxd.daemon.service
Stopping snap.lxd.user-daemon.service
Stopping unit snap.lxd.user-daemon.service
Waiting until unit snap.lxd.user-daemon.service is stopped [attempt 1]
snap.lxd.user-daemon.service is stopped.
Removing snap.lxd.user-daemon.service
Stopping snap-core20-1378.mount
Stopping unit snap-core20-1378.mount
Waiting until unit snap-core20-1378.mount is stopped [attempt 1]
snap-core20-1378.mount is stopped.
Removing snap core20 and revision 1378
Removing snap-core20-1378.mount
Stopping snap-lxd-22672.mount
Stopping unit snap-lxd-22672.mount
Waiting until unit snap-lxd-22672.mount is stopped [attempt 1]
snap-lxd-22672.mount is stopped.
Removing snap lxd and revision 22672
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/proc/cpuinfo': Function not implemented
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/proc/meminfo': Function not implemented
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/proc/stat': Function not implemented
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/proc/uptime': Function not implemented
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/proc/diskstats': Function not implemented
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/proc/swaps': Function not implemented
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/proc/loadavg': Function not implemented
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/proc/slabinfo': Function not implemented
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/sys/devices/system/cpu/cpu0': Operation not permitted
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/sys/devices/system/cpu/cpuidle': Operation not permitted
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/sys/devices/system/cpu/uevent': Function not implemented
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/sys/devices/system/cpu/svm': Function not implemented
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/sys/devices/system/cpu/hotplug': Operation not permitted
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/sys/devices/system/cpu/offline': Function not implemented
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/sys/devices/system/cpu/present': Function not implemented
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/sys/devices/system/cpu/power': Operation not permitted
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/sys/devices/system/cpu/dscr_default': Function not implemented
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/sys/devices/system/cpu/probe': Function not implemented
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/sys/devices/system/cpu/smt': Operation not permitted
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/sys/devices/system/cpu/vulnerabilities': Operation not permitted
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/sys/devices/system/cpu/cpufreq': Operation not permitted
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/sys/devices/system/cpu/isolated': Function not implemented
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/sys/devices/system/cpu/kernel_max': Function not implemented
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/sys/devices/system/cpu/modalias': Function not implemented
rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/cgroup': Input/output error
dpkg: error processing package snapd (--purge):
installed snapd package post-removal script subprocess returned error exit status 1
[ ... ]
This appears to result in some snap .mount units being left over in
/etc/systemd/system. These leftover mount units will now always fail
because snapd etc. is no longer installed. Thus, the 'test_no_failed'
test, which checks for any failed units after boot, will fail:
[ ... ]
======================================================================
FAIL: test_no_failed (__main__.ServicesTest)
No failed units
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/autopkgtest.s5bwuE/build.2Vb/real-tree/debian/tests/boot-and-services", line 69, in test_no_failed
self.assertEqual(failed, [])
AssertionError: Lists differ: ['snap-lxd-22672.mount loaded failed fai[119 chars]180'] != []
First list contains 2 additional elements.
First extra element 0:
'snap-lxd-22672.mount loaded failed failed Mount unit for lxd, revision 22672'
+ []
- ['snap-lxd-22672.mount loaded failed failed Mount unit for lxd, revision '
- '22672',
- 'snap-snapd-15180.mount loaded failed failed Mount unit for snapd, revision '
- '15180']
----------------------------------------------------------------------
Ran 23 tests in 3.771s
FAILED (failures=1, skipped=7)
autopkgtest [18:16:43]: test boot-and-services: -----------------------]
autopkgtest [18:16:44]: test boot-and-services: - - - - - - - - - - results - - - - - - - - - -
boot-and-services FAIL non-zero exit status 1
autopkgtest [18:16:44]: @@@@@@@@@@@@@@@@@@@@ summary
boot-and-services FAIL non-zero exit status 1
autopkgtest [18:16:52]: test tests-in-lxd: -----------------------]
autopkgtest [18:16:54]: test tests-in-lxd: - - - - - - - - - - results - - - - - - - - - -
tests-in-lxd FAIL non-zero exit status 1
[ ... ]
The underlying snapd bug appears to be related to bug 1903967 and bug 1950864. In the mean time, the test should be fixed so this does not block systemd autopktests.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1967576/+subscriptions
More information about the foundations-bugs
mailing list