adt failure: '/cdrom not ext4 with todisk'

Bug #1938325 reported by Dan Bungert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
casper (Ubuntu)
New
Undecided
Unassigned

Bug Description

Autopkgtest will sometimes fail in the todisk test with the following error at the end:
++ echo '/cdrom not ext4 with todisk'

Earlier in the log file, you can also see this log message from casper:
Begin: Copying live_media to /dev/disk/by-label/scratch ... Warning: /dev/disk/by-label/scratch is not a block device.

In addition to the test flakiness, it makes one wonder if there is some sort of race here between casper and other components that may be user visible.

Example log:
https://autopkgtest.ubuntu.com/results/autopkgtest-impish/impish/amd64/c/casper/20210623_113006_12e97@/log.gz

Dan Bungert (dbungert)
tags: added: update-excuse
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Yes I guess this is a race where the symlink is not in place by the time the copy runs. It's a bit hard to be believe but it looks like this case threads its way through the casper code without hitting a udevadm settle, so presumably adding one somewhere would make it work. OTOH it can take a surprisingly long time for devices to show up at all (this is why there is a loop around the calls to find_livefs) so maybe we should have a loop waiting for ${live_dest} to appear too.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

PS: petition to rewrite casper entirely in udev rules, or something

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.