boot-smoke fails due to running jobs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Low
|
Dan Streetman | ||
Xenial |
Invalid
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Low
|
Dan Streetman | ||
Cosmic |
Fix Released
|
Low
|
Dan Streetman | ||
Disco |
Fix Released
|
Low
|
Dan Streetman | ||
Eoan |
Fix Released
|
Low
|
Dan Streetman |
Bug Description
[impact]
boot-smoke test reboots 5 times and verifies systemd is fully started up after each boot, including checking if there are any running jobs (with list-jobs). However, this test makes the assumption that no further jobs will be started after systemd reaches 'running' (or 'degraded') state, which is a false assumption.
[test case]
see various boot-smoke failures in autopkgtest.
[regression potential]
possible false-positive or false-negative autopkgtest results.
[other info]
Note: This patch is not required for debian, because debian's boot-smoke does not include the wait for systemctl is-system-running.
The problem appears to be that systemd reaches 'running' (or 'degraded') state, and then other systemd services are started. This confuses the boot-smoke test, because it sees that 'is-system-running' is done, but then it sees running jobs, which fails the test.
What is starting jobs after systemd reaches running state appears to be X inside the test system. There are various services started by gnome-session and dbus-daemon. Additionally, from the artifacts of one example:
the artifacts/
Another wait is needed when checking for remaining running jobs. Or, the running jobs check could be removed entirely, and we can just trust that systemd correctly knows when it has reached running|degraded state.
Changed in systemd (Ubuntu Eoan): | |
status: | New → In Progress |
Changed in systemd (Ubuntu Disco): | |
status: | New → In Progress |
Changed in systemd (Ubuntu Cosmic): | |
status: | New → In Progress |
Changed in systemd (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in systemd (Ubuntu Eoan): | |
importance: | Undecided → Low |
Changed in systemd (Ubuntu Disco): | |
importance: | Undecided → Low |
Changed in systemd (Ubuntu Cosmic): | |
importance: | Undecided → Low |
Changed in systemd (Ubuntu Bionic): | |
importance: | Undecided → Low |
Changed in systemd (Ubuntu Eoan): | |
assignee: | nobody → Dan Streetman (ddstreet) |
Changed in systemd (Ubuntu Disco): | |
assignee: | nobody → Dan Streetman (ddstreet) |
Changed in systemd (Ubuntu Cosmic): | |
assignee: | nobody → Dan Streetman (ddstreet) |
Changed in systemd (Ubuntu Bionic): | |
assignee: | nobody → Dan Streetman (ddstreet) |
summary: |
- boot-smoke test timeout too short for overloaded autopkgtest.ubuntu.com + boot-smoke running jobs test based on bad assumption |
summary: |
- boot-smoke running jobs test based on bad assumption + boot-smoke fails due to running jobs |
description: | updated |
description: | updated |
description: | updated |
tags: | added: ddstreet-next |
Changed in systemd (Ubuntu Eoan): | |
assignee: | Dan Streetman (ddstreet) → nobody |
Changed in systemd (Ubuntu Eoan): | |
assignee: | nobody → Dan Streetman (ddstreet) |
Changed in systemd (Ubuntu Xenial): | |
status: | New → Invalid |
description: | updated |
Changed in systemd (Ubuntu Eoan): | |
status: | In Progress → Fix Committed |
tags: | removed: ddstreet-next |
Hello Dan, or anyone else affected,
Accepted systemd into disco-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/systemd/240-6ubuntu5.1 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 and change the tag from verification-needed-disco to verification-done-disco. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-disco. 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/PerformingSRUVerification . 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.