[Bug 1837235] Re: systemd 229-4ubuntu21.22 ADT test failure with linux 4.4.0-156.183 (storage)

Kleber Sacilotto de Souza kleber.souza at canonical.com
Mon Jul 22 13:46:49 UTC 2019


systemd relies on some udev properties to craft the message that will be
displayed by the cryptsetup service when a password is required.

For this testcase, the scsi_debug module is loaded and the device
created by it is used for the tests.

With xenial kernel 4.4.0-154-generic, udevadm returns for the scsi_debug
block device:

$ udevadm info /dev/sdb
P: /devices/pseudo_0/adapter0/host2/target2:0:0/2:0:0:0/block/sdb
N: sdb
S: disk/by-id/scsi-35333333000001770
S: disk/by-id/wwn-0x5333333000001770
E: DEVLINKS=/dev/disk/by-id/scsi-35333333000001770 /dev/disk/by-id/wwn-0x5333333000001770
E: DEVNAME=/dev/sdb
E: DEVPATH=/devices/pseudo_0/adapter0/host2/target2:0:0/2:0:0:0/block/sdb
E: DEVTYPE=disk
E: ID_BUS=scsi
E: ID_MODEL=scsi_debug
E: ID_MODEL_ENC=scsi_debug\x20\x20\x20\x20\x20\x20
E: ID_REVISION=0184
E: ID_SCSI=1
E: ID_SCSI_SERIAL=6000
E: ID_SERIAL=35333333000001770
E: ID_SERIAL_SHORT=5333333000001770
E: ID_TARGET_PORT=300
E: ID_TYPE=disk
E: ID_VENDOR=Linux
E: ID_VENDOR_ENC=Linux\x20\x20\x20
E: ID_WWN=0x5333333000001770
E: ID_WWN_WITH_EXTENSION=0x5333333000001770
E: MAJOR=8
E: MINOR=16
E: SUBSYSTEM=block
E: TAGS=:systemd:
E: USEC_INITIALIZED=121942203

However, with kernel 4.4.0-156-generic the output is:

$ udevadm info /dev/sdb
P: /devices/pseudo_0/adapter0/host2/target2:0:0/2:0:0:0/block/sdb
N: sdb
E: DEVNAME=/dev/sdb
E: DEVPATH=/devices/pseudo_0/adapter0/host2/target2:0:0/2:0:0:0/block/sdb
E: DEVTYPE=disk
E: MAJOR=8
E: MINOR=16
E: SUBSYSTEM=block
E: TAGS=:systemd:
E: USEC_INITIALIZED=36737967

systemd expects one of the following properties to be set:
                  "ID_PART_ENTRY_NAME\0"
                  "DM_NAME\0"
                  "ID_MODEL_FROM_DATABASE\0"
                  "ID_MODEL\0";

But none of them is present with the newer kernel.

-- 
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/1837235

Title:
  systemd 229-4ubuntu21.22 ADT test failure with linux 4.4.0-156.183
  (storage)

Status in linux package in Ubuntu:
  Incomplete
Status in systemd package in Ubuntu:
  In Progress
Status in linux source package in Xenial:
  Incomplete
Status in systemd source package in Xenial:
  In Progress
Status in linux source package in Bionic:
  New
Status in systemd source package in Bionic:
  In Progress
Status in linux source package in Disco:
  New
Status in systemd source package in Disco:
  In Progress
Status in linux source package in Eoan:
  Incomplete
Status in systemd source package in Eoan:
  In Progress

Bug description:
  Testing failed on:
      i386: https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-xenial/xenial/i386/s/systemd/20190719_145555_3528c@/log.gz

  The storage testcase is failing on i386. Running the testcase
  manually, it hangs at:

  systemd-229/debian/tests$ sudo ./storage 
  test_luks_by_devname (__main__.CryptsetupTest)
  LUKS device by plain device name, empty ... Please enter passphrase for disk testcrypt1! 

  Looking at the storage testcase, on function start_password_agent(),
  it expects the 'disk scsi_debug' string on the systemd ask-password
  file, however the contains:

  Message=Please enter passphrase for disk testcrypt1!

  That doesn't seems to happen on other architectures. On amd64, the
  testcase output is:

  systemd-229/debian/tests$ sudo ./storage 
  test_luks_by_devname (__main__.CryptsetupTest)
  LUKS device by plain device name, empty ... Please enter passphrase for disk scsi_debug (testcrypt1)! 
  ok
  [...]

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1837235/+subscriptions



More information about the foundations-bugs mailing list