LTP uevent01 will fail on GCP n2d-standard-64
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
New
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
udev (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Because udev takes too long to release the loop device, LTP test uevent01 (and some other tests) may warn about not being able to detach the loop device. This is identified as a failure.
ubuntu@
tst_test.c:1423: TINFO: Timeout per run is 0h 05m 00s
tst_device.c:88: TINFO: Found free device 6 '/dev/loop6'
uevent01.c:24: TINFO: Attaching device /dev/loop6
uevent.h:49: TINFO: Got uevent:
uevent.h:52: TINFO: change@
uevent.h:52: TINFO: ACTION=change
uevent.h:52: TINFO: DEVPATH=
uevent.h:52: TINFO: SUBSYSTEM=block
uevent.h:52: TINFO: DISK_MEDIA_CHANGE=1
uevent.h:52: TINFO: MAJOR=7
uevent.h:52: TINFO: MINOR=6
uevent.h:52: TINFO: DEVNAME=loop6
uevent.h:52: TINFO: DEVTYPE=disk
uevent.h:52: TINFO: DISKSEQ=7
uevent.h:52: TINFO: SEQNUM=2959
uevent.h:140: TPASS: Got expected UEVENT
uevent.h:49: TINFO: Got uevent:
uevent.h:52: TINFO: change@
uevent.h:52: TINFO: ACTION=change
uevent.h:52: TINFO: DEVPATH=
uevent.h:52: TINFO: SUBSYSTEM=block
uevent.h:52: TINFO: MAJOR=7
uevent.h:52: TINFO: MINOR=6
uevent.h:52: TINFO: DEVNAME=loop6
uevent.h:52: TINFO: DEVTYPE=disk
uevent.h:52: TINFO: DISKSEQ=7
uevent.h:52: TINFO: SEQNUM=2960
uevent.h:140: TPASS: Got expected UEVENT
uevent01.c:26: TINFO: Detaching device /dev/loop6
tst_device.c:254: TWARN: ioctl(/dev/loop6, LOOP_CLR_FD, 0) no ENXIO for too long
Summary:
passed 2
failed 0
broken 0
skipped 0
warnings 1
Changed in linux (Ubuntu): | |
status: | Expired → Confirmed |
tags: | added: sru-20230227 |
tags: | added: gcp gke sru-20221010 |
On focal, this reproduces with 5.4 and 5.15 kernels.
One of the causes for the delay is that udev is reading efivars for secure boot, which takes 0.3 seconds. And it does it multiple times.
When running a 5.19 kernel on focal, however, the test seems to be able to detach the device before udev starts reading the efivars. Same udev version here. Perhaps events are pushed in a different order?
Cascardo.