systemd: autopkgtest: tests-in-lxd fails because of remaining snap .mount units
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Nick Rosbrook | ||
Impish |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Lukas Märdian |
Bug Description
[Impact]
* The "tests-
* it did not stand out due to LP: #1976607
* we want to have proper autopkgtest coverage for systemd in Jammy LTS
[Test Plan]
* check autopkgtest logs on autopkgtest.
[Where problems could occur]
* other/new snapd-*.mount regressions could be hidden.
* but snapd is being removed during systemd's tests anyway (introducing this failure)
[Other Info]
* The issue was not visible up to now, as the whole tests-in-lxd autopkgtests has been skipped: LP: #1976607
=== original description ===
This build log provides an example of the problem: https:/
During setup for tests-in-lxd, an attempt is made to purge snapd, but this fails:
[ ... ]
Purging configuration files for snapd (2.54.3+
Stopping snap.lxd.
Stopping unit snap.lxd.
Waiting until unit snap.lxd.
snap.lxd.
Removing snap.lxd.
Stopping snap.lxd.
Stopping unit snap.lxd.
Waiting until unit snap.lxd.
snap.lxd.
Removing snap.lxd.
Stopping snap.lxd.
Stopping unit snap.lxd.
Waiting until unit snap.lxd.
snap.lxd.
Removing snap.lxd.
Stopping snap-core20-
Stopping unit snap-core20-
Waiting until unit snap-core20-
snap-core20-
Removing snap core20 and revision 1378
Removing snap-core20-
Stopping snap-lxd-
Stopping unit snap-lxd-
Waiting until unit snap-lxd-
snap-lxd-
Removing snap lxd and revision 22672
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
rm: cannot remove '/var/snap/
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/
[ ... ]
=======
FAIL: test_no_failed (__main_
No failed units
-------
Traceback (most recent call last):
File "/tmp/autopkgte
self.
AssertionError: Lists differ: ['snap-
First list contains 2 additional elements.
First extra element 0:
'snap-lxd-
+ []
- ['snap-
- '22672',
- 'snap-snapd-
- '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]: @@@@@@@
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.
CVE References
description: | updated |
Changed in systemd (Ubuntu Jammy): | |
status: | New → In Progress |
assignee: | nobody → Lukas Märdian (slyon) |
Hello Nick, or anyone else affected,
Accepted systemd into impish-proposed. The package will build now and be available at https:/ /launchpad. net/ubuntu/ +source/ systemd/ 248.3-1ubuntu8. 5 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification- needed- impish to verification- done-impish. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed- impish. In either case, without details of your testing we will not be able to proceed.
Further information regarding the verification process can be found at https:/ /wiki.ubuntu. com/QATeam/ PerformingSRUVe rification . Thank you in advance for helping!
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.