Race condition when mounting loop devices
Metadata
Current evaluation
Loop partition nodes can disappear during asynchronous udev processing, intermittently breaking mounts. Although the code now waits for initial node creation, the race remains triaged and open.
Suggested action: keep open
Reason: mwhudson identified that partition devices can disappear while udevd is processing and suggested flocking the parent device through mount; a later comment reports the same failure class in #402. The current _wait_for_partition_nodes only polls for node existence, and no identified change prevents the device from disappearing before mount completion.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
56
Quick Win:
13
Complexity:
67
Confidence:
91
Actionability:
70
|
keep open | Loop partition nodes can disappear during asynchronous udev processing, intermittently breaking mounts. Although the code now waits for initial node creation, the race remains triaged and open. | |
| qwen/qwen3.6-35b-a3b |
Impact:
70
Quick Win:
34
Complexity:
40
Confidence:
75
Actionability:
80
|
close resolved | Race condition when mounting loop devices before partition nodes fully exist; triaged bug with maintainer confirmation. PR #428 claims to have resolved this race condition. | |
| qwen/qwen3.8-27b |
Impact:
55
Quick Win:
19
Staleness:
25
Complexity:
65
Confidence:
72
Support Request:
5
|
keep open | Race condition where loop partition devices (/dev/loopXpN) don't exist yet when mount is called after losetup --partscan. Triaged, maintainer suggested flock on parent device. Partial fix (wait for nodes) added in services/image.py via PR #428, but same failure still hit in pack path CI (19 days ago). | |
| qwen/qwen3.6-35b-a3b |
Staleness:
10
Complexity:
45
Confidence:
90
Support Request:
5
|
keep open | Intermittent race condition causes loop device partitions to disappear before mounting, leading to CI test failures. Triaged and acknowledged by maintainers, with a proposed workaround but no fix yet. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
45
Complexity:
65
Confidence:
85
Support Request:
5
|
keep open | Race condition causing mount failures on loop devices due to udev processing delays. Triaged bug with maintainer suggesting flock-based synchronization. Awaiting implementation or further investigation. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
45
Complexity:
45
Confidence:
90
Support Request:
5
|
keep open | Race condition causes mount failures when loop partition devices disappear before udevd finishes processing. Triaged bug with a maintainer-proposed fix, awaiting implementation. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
45
Complexity:
65
Confidence:
85
Support Request:
5
|
keep open | Race condition during loop device mounting causes failures when partitions disappear before udevd finishes processing. Triaged, with a maintainer suggesting flock-based synchronization. |
Update history
| Date | Change |
|---|---|
| updated |
Related work
-
Related To:
canonical/imagecraft#402
(confidence 95%)
A later issue comment reports the same class of loop-device mount failure during this PR's test run.
-
Related To:
canonical/imagecraft#428
(confidence 82%)
This change introduced the current partition-node wait, but it does not hold a parent-device lock through the mount.
Related issues
No related issues found above the similarity threshold.