~raharper/curtin:fix/dname-warning-missing-serial

Last commit made on 2019-02-05
Get this branch:
git clone -b fix/dname-warning-missing-serial 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/dname-warning-missing-serial
Repository:
lp:~raharper/curtin

Recent commits

2443c36... by Ryan Harper

Add unittests for additional udevinfo values used when creating dname byid for disks

4a28903... by Ryan Harper

drop name change in dname test case

509e751... by Ryan Harper

dname: prefer wwn over serial, add additional wwn/serial udev variables if present.

c939a28... by Ryan Harper

dname: relax dname requirement for disk serial/wwn presence for compatibility

Allow disks without serial/wwn values to have dnames and do not raise
a RuntimeError exception; this prevented legacy KVM pods from deploying
as their VM configuration lacked disk serial numbers. Per discussion
in the bug, for compatibility with these systems, all dname to remain
unstable and provide a warning in the install log but do not fail
deployment.

LP: #1735839

45187fc... by Paride Legovini

flake8: fix some E117 over-indented issues

b473fd5... by Ryan Harper

bcache: ensure partitions on bcache devices are detected as partition

In some cases, when curtin is discovering existing storage devices, a
bcache device with partitions created on top of it, may be recognized
as a bcache device, rather than a partition. If curtin treats a
bcache partition as a bcache device, it will attempt to write to
non-existent files on /sys which results in a failure after timing
out. Resolve this issue by detecting if the target device is a
partition inside the bcache identity function.

77082ab... by Ryan Harper

vmtest: bump skip_by_date out a year for trusty bcache bug

a523246... by Paride Legovini

Fix typo in doc/topics/integration-testing.rst.

1a262a7... by Ryan Harper

flake8: Fix two issues found with new version of flake8

Fixed two issues found by updated flake8.
 - use ==/!= to compare str, bytes, and int literals
 - fix reference before assignment using common util
   FileMissingError.

81bf02e... by Ryan Harper

clear-holders: handle FileNotFound when probing for bcache device slaves

In some cases, when detecting if a bcache has any slave devices which
need removal the path to the sysfs directory may not be found; this is
non-fatal; it indicates that the existing device has been removed by the
kernel. Allow clear-holders to tolerate this failure.

Updated curtin.block.partition_kname to indicate that bcache partitions
have 'p' in the value. This is needed for the vmtest to recreate bcache
partitions.

LP: #1811117