TEST-13-ENC-RAID-LVM fails with 256~rc3-5ubuntu1

Bug #2069290 reported by Benjamin Drung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dracut
Fix Released
Unknown
dracut (Ubuntu)
Fix Released
High
Unassigned
systemd (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

TEST-13-ENC-RAID-LVM from dracut 102-3ubuntu1 fails with systemd 256~rc3-5ubuntu1:

```
dracut[I]: Executing: /usr/bin/dracut --kernel-cmdline "panic=1 oops=panic softlockup_panic=1 systemd.crash_reboot quiet rd.retry=10 rd.info rd.shell=0 selinux=0 console=ttyS0,115200n81 " --local --no-hostonly --no-hostonly-cmdline --no-early-microcode --add test --force --kver 6.8.0-31-generic -i ./cryptroot-ask.sh /sbin/cryptroot-ask -i /tmp/crypttab /etc/crypttab -i /tmp/key /etc/key /tmp/autopkgtest.qrz2pl/autopkgtest_tmp/dracut-test.jMkBhK/initramfs.testing
dracut[E]: Module 'systemd-pcrphase' depends on 'tpm2-tss', which can't be installed
```

The 91tpm2-tss module fails to setup, because it "require_binaries tpm2" but the tpm2-tools package (shipping /usr/bin/tpm2) is not installed. systemd neither depends, recommends, or suggests tpm2-tools.

Note: The next dracut upload will include the autopkgtest changes to show those failure logs.

Benjamin Drung (bdrung)
description: updated
Benjamin Drung (bdrung)
description: updated
Revision history for this message
Benjamin Drung (bdrung) wrote :
Download full text (4.8 KiB)

Adding tpm2-tools to the autopkgtest dependencies is not enough. It fails then with:

```
CLIENT TEST START: Any LUKS
run-qemu: /usr/bin/qemu-system-x86_64 '-cpu' 'IvyBridge-v2' '-M' 'q35' '-smp' '2' '-m' '1024' '-nodefaults' '-vga' 'none' '-display' 'none' '-no-reboot' '-device' 'i6300esb' '-watchdog-action' 'poweroff' '-device' 'virtio-rng-pci' '-serial' 'stdio' '-kernel' '/boot/vmlinuz-6.8.0-31-generic' '-device' 'virtio-scsi-pci,id=scsi0' '-drive' 'if=none,format=raw,file=/tmp/autopkgtest.K7X3aG/autopkgtest_tmp/dracut-test.0XmPM3/marker.img,id=drive-data0' '-device' 'scsi-hd,bus=scsi0.0,drive=drive-data0,id=data0,serial=marker' '-device' 'virtio-scsi-pci,id=scsi1' '-drive' 'if=none,format=raw,file=/tmp/autopkgtest.K7X3aG/autopkgtest_tmp/dracut-test.0XmPM3/disk-1.img,id=drive-data1' '-device' 'scsi-hd,bus=scsi1.0,drive=drive-data1,id=data1,serial=disk1' '-device' 'virtio-scsi-pci,id=scsi2' '-drive' 'if=none,format=raw,file=/tmp/autopkgtest.K7X3aG/autopkgtest_tmp/dracut-test.0XmPM3/disk-2.img,id=drive-data2' '-device' 'scsi-hd,bus=scsi2.0,drive=drive-data2,id=data2,serial=disk2' '-device' 'virtio-scsi-pci,id=scsi3' '-drive' 'if=none,format=raw,file=/tmp/autopkgtest.K7X3aG/autopkgtest_tmp/dracut-test.0XmPM3/disk-3.img,id=drive-data3' '-device' 'scsi-hd,bus=scsi3.0,drive=drive-data3,id=data3,serial=disk3' '-append' 'root=/dev/dracut/root rw rd.auto rd.retry=20' '-initrd' '/tmp/autopkgtest.K7X3aG/autopkgtest_tmp/dracut-test.0XmPM3/initramfs.testing'
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.tsc-deadline [bit 24]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EDX.spec-ctrl [bit 26]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.tsc-deadline [bit 24]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EDX.spec-ctrl [bit 26]
TEST: root filesystem on LVM on encrypted partitions of a RAID-5  [FAILED] 
tail: cannot open '/tmp/autopkgtest.K7X3aG/autopkgtest_tmp/dracut-test.5QdgWqOeba/TEST-13-ENC-RAID-LVM/server.log' for reading: No such file or directory
==> /tmp/autopkgtest.K7X3aG/autopkgtest_tmp/dracut-test.5QdgWqOeba/TEST-13-ENC-RAID-LVM/test.log <==
[...]
CLIENT TEST START: Any LUKS
run-qemu: /usr/bin/qemu-system-x86_64 '-cpu' 'IvyBridge-v2' '-M' 'q35' '-smp' '2' '-m' '1024' '-nodefaults' '-vga' 'none' '-display' 'none' '-no-reboot' '-device' 'i6300esb' '-watchdog-action' 'poweroff' '-device' 'virtio-rng-pci' '-serial' 'stdio' '-kernel' '/boot/vmlinuz-6.8.0-31-generic' '-device' 'virtio-scsi-pci,id=scsi0' '-drive' 'if=none,format=raw,file=/tmp/autopkgtest.K7X3aG/autopkgtest_tmp/dracut-test.0XmPM3/marker.img,id=drive-data0' '-device' 'scsi-hd,bus=scsi0.0,drive=drive-data0,id=data0,serial=marker' '-device' 'virtio-scsi-pci,id=scsi1' '-drive' 'if=none,format=raw,file=/tmp/autopkgtest.K7X3aG/autopkgtest_tmp/dracut-test.0XmPM3/disk-1.img,id=drive-data1' '-device' 'scsi-hd,bus=scsi1.0,drive=drive-data1,id=data1,seri...

Read more...

affects: systemd → dracut
Changed in dracut:
status: Unknown → New
Revision history for this message
Benjamin Drung (bdrung) wrote :

Same failure with systemd/256-1ubuntu1.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dracut - 102-3ubuntu2

---------------
dracut (102-3ubuntu2) oracular; urgency=medium

  * dracut: use await variant of update-initramfs trigger
  * fix(shell-completion): remove hashbang from bash completions
  * drop udevsettle patch (these kind of patches should be applied upstream)
  * drop nm-path patch (network-manager ships the helpers in /usr/libexec)
  * drop 90overlay-root in favor of 90overlayfs (Closes: #1017039)
  * run autopkgtest with V=2
  * autopkgtest: depend on tpm2-tools for systemd-pcrphase (LP: #2069290)
  * run autopkgtest on all architectures
  * autopkgtest: disable using KVM for ppc64el

 -- Benjamin Drung <email address hidden> Fri, 14 Jun 2024 01:57:17 +0200

Changed in dracut (Ubuntu):
status: New → Fix Released
Revision history for this message
Benjamin Drung (bdrung) wrote :

I had to add `console=ttyS0,115200n81` to the `-append` parameter on the `run-qemu` call to get the boot logs. The failure:
```
$ make -C test V=2 check TESTS="13"
[...]
[FAILED] Failed to mount sysusr-usr.mount - /sysusr/usr.
See 'systemctl status sysusr-usr.mount' for details.
[DEPEND] Dependency failed for sysroot-usr.mount - /sysroot/usr.
[DEPEND] Dependency failed for initrd-fs.target - Initrd File Systems.
```

Revision history for this message
Benjamin Drung (bdrung) wrote :

The upstream commit https://github.com/dracut-ng/dracut-ng/pull/381 fixes the test failure with systemd 256.

Changed in dracut (Ubuntu):
status: Fix Released → In Progress
importance: Undecided → High
Changed in systemd (Ubuntu):
status: New → Invalid
Revision history for this message
Benjamin Drung (bdrung) wrote :

With that upstream patch, test 13 succeeds but test 14 fails (that failure was hidden by test 13 failing):

```
CLIENT TEST START: rd.md.uuid=f6e54874:e2661c8f:57ae19ca:b0225339 rd.dm=0 rd.md.imsm rd.md.conf=0
run-qemu: /usr/bin/qemu-system-amd64 '-cpu' 'IvyBridge-v2' '-M' 'q35' '-smp' '2' '-m' '1024' '-nodefaults' '-vga' 'none' '-display' 'none' '-no-reboot' '-device' 'i6300esb' '-watchdog-action' 'poweroff' '-device' 'virtio-rng-pci' '-serial' 'stdio' '-kernel' '/boot/vmlinuz-6.8.0-31-generic' '-device' 'virtio-scsi-pci,id=scsi0' '-drive' 'if=none,format=raw,file=/tmp/autopkgtest.SoyKYs/autopkgtest_tmp/dracut-test.ebXaRq/marker.img,id=drive-data0' '-device' 'scsi-hd,bus=scsi0.0,drive=drive-data0,id=data0,serial=marker' '-device' 'virtio-scsi-pci,id=scsi1' '-drive' 'if=none,format=raw,file=/tmp/autopkgtest.SoyKYs/autopkgtest_tmp/dracut-test.ebXaRq/disk-1.img,id=drive-data1' '-device' 'scsi-hd,bus=scsi1.0,drive=drive-data1,id=data1,serial=disk1' '-device' 'virtio-scsi-pci,id=scsi2' '-drive' 'if=none,format=raw,file=/tmp/autopkgtest.SoyKYs/autopkgtest_tmp/dracut-test.ebXaRq/disk-2.img,id=drive-data2' '-device' 'scsi-hd,bus=scsi2.0,drive=drive-data2,id=data2,serial=disk2' '-append' 'rd.md.uuid=f6e54874:e2661c8f:57ae19ca:b0225339 rd.dm=0 rd.md.imsm rd.md.conf=0 root=LABEL=root rw rd.retry=5' '-initrd' '/tmp/autopkgtest.SoyKYs/autopkgtest_tmp/dracut-test.ebXaRq/initramfs.testing'
qemu-system-amd64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
qemu-system-amd64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.tsc-deadline [bit 24]
qemu-system-amd64: warning: TCG doesn't support requested feature: CPUID.07H:EDX.spec-ctrl [bit 26]
qemu-system-amd64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
qemu-system-amd64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.tsc-deadline [bit 24]
qemu-system-amd64: warning: TCG doesn't support requested feature: CPUID.07H:EDX.spec-ctrl [bit 26]
CLIENT TEST END: rd.md.uuid=f6e54874:e2661c8f:57ae19ca:b0225339 rd.dm=0 rd.md.imsm rd.md.conf=0 [FAIL]
TEST: root filesystem on LVM PV on a isw dmraid  [FAILED] 
make[1]: *** [../Makefile.testdir:4: all] Error 1
make[1]: Leaving directory '/tmp/autopkgtest.SoyKYs/autopkgtest_tmp/dracut-test.pzHXYxcNSA/TEST-14-IMSM'
make: *** [Makefile:4: TEST-14-IMSM] Error 2
```

Revision history for this message
Benjamin Drung (bdrung) wrote :

Disabling test 14 lets the upstream-dracut-core test pass. So only test 14 is broken.

Revision history for this message
Benjamin Drung (bdrung) wrote :

Reported test 14 failure upstream: https://github.com/dracut-ng/dracut-ng/issues/423

Changed in dracut:
status: New → Fix Released
Benjamin Drung (bdrung)
Changed in dracut (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dracut - 102-3ubuntu4

---------------
dracut (102-3ubuntu4) oracular; urgency=medium

  * Cherry-pick upstream fixes for systemd 256 (LP: #2069290):
    - fix(test): use --add instead of --modules to create test-makeroot
    - test: avoid writing to rootfs as it might be read-only
  * fix(dracut-initramfs-restore.sh): correct initrd globbing
  * feat(lsinitrd.sh): support configurable initrd filenames
  * Default initrdname to initrd.img-${kernel}
  * Cherry-pick upstream performance fixes (LP: #2065180):
    - perf(dracut-install): memoize find_kmod_module_from_sysfs_node
    - perf(dracut-install): use driver/module sysfs dirs for module name
  * test: virtual hardware watchdog not available on s390x

 -- Benjamin Drung <email address hidden> Mon, 08 Jul 2024 20:37:51 +0200

Changed in dracut (Ubuntu):
status: Fix Committed → 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.