boot-and-services test_no_failed fails if gdm failed to start in testbed

Bug #1830484 reported by Dan Streetman on 2019-05-25
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Dan Streetman

Bug Description


gdm on cosmic running in the autopkgtest is flaky and sometimes fails to start; when it does it causes other systemd service failures like 'user@118.service' or other services, which fail the test case.

the test_gdm3 testcase was already skipped because of this in bug 1790478, the test_no_failed testcase needs to be skipped as well if gdm fails to start.

[test case]

the failure is intermittent, but looking through old cosmic systemd autopkgtest logs look for:

May 23 11:13:38 autopkgtest systemd[1]: user@118.service: Killing process 1251 (systemctl) with signal SIGKILL.
May 23 11:13:38 autopkgtest systemd[1]: Stopped User Manager for UID 118.
May 23 11:13:39 autopkgtest systemd[1]: Starting User Manager for UID 118...
May 23 11:13:37 autopkgtest systemd[1280]: pam_unix(systemd-user:session): session opened for user gdm by (uid=0)
May 23 11:13:38 autopkgtest systemd[1280]: Failed to fully start up daemon: Permission denied
May 23 11:13:38 autopkgtest systemd[1]: user@118.service: Failed with result 'protocol'.
May 23 11:13:38 autopkgtest systemd[1]: Failed to start User Manager for UID 118.
test_rsyslog (__main__.ServicesTest) ... ok
test_tmp_cleanup (__main__.ServicesTest) ... ok
test_tmp_mount (__main__.ServicesTest) ... ok
test_udev (__main__.ServicesTest) ... ok

FAIL: test_no_failed (__main__.ServicesTest)
No failed units
Traceback (most recent call last):
  File "/tmp/autopkgtest.jGFP4N/build.FWq/src/debian/tests/boot-and-services", line 62, in test_no_failed
    self.assertEqual(failed, [])
AssertionError: Lists differ: ['user@118.service loaded failed failed User Manager for UID 118'] != []

First list contains 1 additional elements.
First extra element 0:
'user@118.service loaded failed failed User Manager for UID 118'

- ['user@118.service loaded failed failed User Manager for UID 118']
+ []

[regression potential]

low; testcase skipping due to flaky gdm inside autopkgtest, only on cosmic.

Dan Streetman (ddstreet) on 2019-05-25
Changed in systemd (Ubuntu):
status: New → Fix Released
Changed in systemd (Ubuntu Cosmic):
status: New → In Progress
assignee: nobody → Dan Streetman (ddstreet)
importance: Undecided → Medium

Hello Dan, or anyone else affected,

Accepted systemd into cosmic-proposed. The package will build now and be available at in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See 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-cosmic to verification-done-cosmic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-cosmic. 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 . 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.

Changed in systemd (Ubuntu Cosmic):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-cosmic
Dan Streetman (ddstreet) wrote :

autopkgtest failures for this upload analyzed in bug 1825997

Dan Streetman (ddstreet) wrote :

testcase pass on cosmic upload

tags: added: verification-done verification-done-cosmic
removed: verification-needed verification-needed-cosmic
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package systemd - 239-7ubuntu10.14

systemd (239-7ubuntu10.14) cosmic; urgency=medium

  * d/p/resolved-rework-how-we-determine-which-scope-to-send.patch
    - fix DNS leakage (LP: 1754671)
  * d/t/boot-and-services:
    - skip test_no_failed if gdm failed to start (LP: #1830484)
  * d/p/ask-password-prevent-buffer-overrow-when-reading-fro.patch:
    - prevent buffer overflow when reading keyring (LP: #1814373)
  * d/t/boot-smoke:
    - Fix false negative checking for running jobs after boot
      (LP: #1825997)

 -- Dan Streetman <email address hidden> Wed, 24 Apr 2019 17:08:26 -0400

Changed in systemd (Ubuntu Cosmic):
status: Fix Committed → Fix Released

The verification of the Stable Release Update for systemd has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers