lp:~raharper/curtin/trunk.fix-bcache-sysfs-write-failures-on-remove

Created by Ryan Harper and last modified
Get this branch:
bzr branch lp:~raharper/curtin/trunk.fix-bcache-sysfs-write-failures-on-remove
Only Ryan Harper can upload to this branch. If you are Ryan Harper please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Ryan Harper
Project:
curtin
Status:
Merged

Recent revisions

534. By Ryan Harper

Use common bcache_maybe_remove handler for simpler unittests

533. By Ryan Harper

Ensure we don't swallow all exceptions, only ENOENT

532. By Ryan Harper

merge from trunk

531. By Ryan Harper

Update unittest, using errno means we skip the os.path.exists check (which can race)

530. By Ryan Harper

Use errno.ENOENT to check for missing bcache stop file

529. By Ryan Harper

Add exception for logging

528. By Ryan Harper

merge from trunk

527. By Ryan Harper

merge from trunk

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
This branch contains Public information 
Everyone can see this information.

Subscribers