systemd 229-4ubuntu7 ADT test failure with linux 4.4.0-33.52

Bug #1607075 reported by Andy Whitcroft
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Auto Package Testing
Fix Released
High
Martin Pitt
autopkgtest (Ubuntu)
Fix Released
High
Martin Pitt
console-setup (Ubuntu)
Fix Released
Undecided
Dimitri John Ledkov
Andy Whitcroft (apw)
description: updated
Revision history for this message
Andy Whitcroft (apw) wrote :

FAIL: test_no_failed (__main__.ServicesTest)
No failed units
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/autopkgtest.qQr62c/build.1BH/systemd-229/debian/tests/boot-and-services", line 54, in test_no_failed
    self.assertEqual(failed, [])
AssertionError: Lists differ: ['keyboard-setup.service loaded failed failed Set console keymap'] != []

First list contains 1 additional elements.
First extra element 0:
'keyboard-setup.service loaded failed failed Set console keymap'

- ['keyboard-setup.service loaded failed failed Set console keymap']
+ []

Revision history for this message
Martin Pitt (pitti) wrote :

The most recent apparmor test (https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-xenial/xenial/ppc64el/s/systemd/20160729_104947@/log.gz) ran against the same -31.50 kernel that the same test on the same base cloud image still succeeded. It's also the same systemd version, the same cloud, and console-setup also did not change in xenial.

- ['autopkgtest.service loaded failed failed autopkgtest root shell on ttyS1',
- 'keyboard-setup.service loaded failed failed Set console keymap']

It is a bit odd that all of a sudden *two* console/tty related jobs fail to start. (autopkgtest.service is uninteresting for the cloud, but it previously succeeded as well). So I suspect that something in the cloud config changed.

Revision history for this message
Martin Pitt (pitti) wrote :

I did a manual run and reproduced the error. It also happens on a current (July 21) xenial cloud image, not just on the rather outdated adt image from April 20.

autopkgtest.service failing is a consequence of https://anonscm.debian.org/cgit/autopkgtest/autopkgtest.git/commit/?id=eff773b -- i. e. previously the error was hidden because it was a backgrounded SysV init job. So there is a /dev/ttyS1 in the VM (otherwise ConditionPathExists=/dev/ttyS1 would fail), but trying to talk to it fails:

$ sudo cat </dev/ttyS1
cat: -: Input/output error

which is reflected in

 Main PID: 1386 (code=exited, status=208/STDIN)

I added a workaround in https://anonscm.debian.org/cgit/autopkgtest/autopkgtest.git/commit/?id=99717f142 .

Changed in autopkgtest (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
importance: Undecided → High
status: New → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

keyboard-setup.service fails with

  loadkeys[723]: Couldn't get a file descriptor referring to the console

which also happens with running "sudo loadkeys /etc/console-setup/cached.kmap.gz" manually. So /dev/tty0 exists which signifies the presence of ttys, but using them is broken. I added a workaround: https://git.launchpad.net/~ubuntu-release/+git/autopkgtest-cloud/commit/?id=09ee670bc

I retried the failed test on http://people.canonical.com/~ubuntu-archive/proposed-migration/xenial/update_excuses.html for apparmor, please feel free to retry it for all kernels that are affected.

affects: systemd (Ubuntu) → auto-package-testing
Changed in auto-package-testing:
assignee: nobody → Martin Pitt (pitti)
importance: Undecided → High
status: New → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :
Changed in autopkgtest (Ubuntu):
status: Fix Committed → Fix Released
Changed in console-setup (Ubuntu):
assignee: nobody → Dimitri John Ledkov (xnox)
Revision history for this message
Steve Langasek (vorlon) wrote :

It appears that keyboard-setup.service works reliably in both xenial and eoan. So closing this bug task now.

Changed in console-setup (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.