kpartx 0.5.0-7ubuntu11 fails to remove loop mapping on kpartx -d
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
multipath-tools (Ubuntu) |
Fix Released
|
Critical
|
Mathieu Trudel-Lapierre | ||
Trusty |
Fix Released
|
Critical
|
Unassigned |
Bug Description
I've observed in livefs build logs that with kpartx 0.5.0-7ubuntu12, 'kpartx -d' is not removing the loop mapping (losetup -d). E.g., build log diff:
+ kpartx -v -d binary/
del devmap : loop0p1
-loop deleted : /dev/loop0
This doesn't seem to be causing any immediate practical problems because each livefs build gets a dedicated VM which is torn down afterwards, so the mappings do not persist. But it's definitely incorrect for these mappings to persist.
The good build log used kpartx 0.5.0-7ubuntu9. Testing the intermediate versions, 0.5.0-7ubuntu11 shows the same buggy behavior as 12. 10 clears the loop mapping, but also appears to fail to correctly set up partitions in my test case so I'm not sure if this bug is present or not in 0.5.0-7ubuntu10.
Changed in multipath-tools (Ubuntu): | |
assignee: | nobody → Mathieu Trudel-Lapierre (mathieu-tl) |
importance: | Undecided → Critical |
Changed in multipath-tools (Ubuntu): | |
status: | New → In Progress |
Changed in multipath-tools (Ubuntu Trusty): | |
status: | New → Fix Committed |
Changed in multipath-tools (Ubuntu Trusty): | |
importance: | Undecided → Critical |
Well, it's a problem on s390x, where they are not dedicated VMs.
wgrant has run a cleanup of loopsetup devices now, on those builders.
adding a check to test that losetup -f matches after a kpartx -a / -d round trip.