lp:~raharper/curtin/trunk.fix-bcache-sysfs-write-failures-on-remove
- Get this branch:
- bzr branch lp:~raharper/curtin/trunk.fix-bcache-sysfs-write-failures-on-remove
Branch merges
- Server Team CI bot: Approve (continuous-integration)
- Chad Smith: Approve
- Scott Moser (community): Needs Information
-
Diff: 150 lines (+100/-4)2 files modifiedcurtin/block/clear_holders.py (+18/-4)
tests/unittests/test_clear_holders.py (+82/-0)
Related bugs
Bug #1700564: under heavy IO encounter TOCTOU bug with bcache removal | Medium | Fix Released |
Related blueprints
Branch information
Recent revisions
- 531. By Ryan Harper
-
Update unittest, using errno means we skip the os.path.exists check (which can race)
- 526. By Ryan Harper
-
bcache: accept sysfs write failure in shutdown handler if path missing
Bcache device shutdown is asynchronus. The kernel may remove the
device after we've tested to see if the device needs to be stopped but
before we issue a 'stop' command to the bcache sysfs file.When that happens, curtin throws an exception; this patch catches
those and tests if the target path is missing; and if so, ignores the
error as it's expected due to device removal.All other write failures where the path is still present are still
valid and reported.LP: #1700564
- 525. By Ryan Harper
-
mdadm: handle write failures to sysfs entries when stopping mdadm
mdadm_stop command tries a number of methods to stop an existing
array. Writes to sysfs fail differently, this patch catches both
IOErrors and OSErrors when writing to sysfs entries, logs and continues
with the stop operation.Updating the LVM over RAID vmtest to run in dirty_disk mode reproduces
a failure reported and is resolved with this branch.LP: #1708052
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:~curtin-dev/curtin/trunk