~raharper/curtin/trunk.add-syslog-handler

Viewing all changes in revision 525.

  • Committer: Ryan Harper
  • Date: 2017-09-07 22:05:03 UTC
  • mfrom: (522.2.6 trunk.fix-lvm-over-raid)
  • Revision ID: ryan.harper@canonical.com-20170907220503-34aq9m3aoa0vkl41
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

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: