~raharper/curtin:fix/clear-holders-os-listdir-v2

Last commit made on 2018-07-23
Get this branch:
git clone -b fix/clear-holders-os-listdir-v2 https://git.launchpad.net/~raharper/curtin
Only Ryan Harper can upload to this branch. If you are Ryan Harper please log in for upload directions.

Branch merges

Branch information

Name:
fix/clear-holders-os-listdir-v2
Repository:
lp:~raharper/curtin

Recent commits

39a199f... by Ryan Harper

Drop exception variable, unused

a47f3c7... by Ryan Harper

Remove WARK strings, reduce sleep time between partition rereads.

7f5f77f... by Ryan Harper

Drop rescan on all devices, preferring to rescan only devices which had partitions

0192f7b... by Ryan Harper

Fix parameters to debug log string

d69b4d4... by Ryan Harper

block: ensure devpath parameters when calling blockdev --rereadpt

b3b97f5... by Ryan Harper

Fixes for waiting on wiped partition to sync

Refactor sleep outside of try: except clause; we always want to
wait if we found existing partitions.

Use the device dev_path (/dev/foo) for blockdev --rereadpt, on Trusty
it does not handle /sys paths.

Add unittests to cover the reread exception paths.

Fix use of /dev/null in clear-holders unittests; we shouldn't rely
on accessing host devices during the unittest.

5e813e2... by Ryan Harper

Switch to rereading the partition table and checking

We still may race and need more than one reread of the partition table.
Drop using util.wait_for_removal and instead loop, sleep while triggering
partition table rereads until the partitions are cleared.

2f79b09... by Ryan Harper

clear-holders: wait for partition removal when wiping disks with partitions

When wiping a disk with partitions curtin races the kernel in removing
sysfs entries for the partitions. This shows up as a OSError when
asserting the disk is clear as partition sysfs paths are unexpectidly gone
during the building of the holder tree.

To prevent the race, wipe_superblock will check if the device has partitions
and if so after wiping the the superblock, rescan the device partition table
and then use util.wait_for_removal for each of the partition sysfs paths.

This ensures that after wiping the disk, none of the partition sysfs paths
are still present.

03587d3... by Scott Moser

vmtest: Skip proposed pocket on dev release when 'proposed' in ADD_REPOS.

The -proposed pocket for an Ubuntu development release is somewhat
expected to be broken. So, when testing proposed with via setting
CURTIN_VMTEST_ADD_REPOS=proposed, this will skip adding the repo for
the development release.

It allows testing of development release with:
  CURTIN_VMTEST_ADD_REPOS=PROPOSED

32b1c6f... by Joshua Powers

tests: remove Ubuntu Artful

Ubuntu Artful has reached EOL and as such this removes the Artful tests.