Merge lp://staging/~raharper/curtin/trunk.vmtest-multipath into lp://staging/~curtin-dev/curtin/trunk
Status: | Merged |
---|---|
Merged at revision: | 396 |
Proposed branch: | lp://staging/~raharper/curtin/trunk.vmtest-multipath |
Merge into: | lp://staging/~curtin-dev/curtin/trunk |
Diff against target: |
846 lines (+513/-68) 10 files modified
curtin/block/__init__.py (+9/-3) curtin/commands/block_meta.py (+7/-2) curtin/commands/curthooks.py (+17/-1) curtin/util.py (+56/-0) examples/tests/basic_scsi.yaml (+72/-0) examples/tests/multipath.yaml (+38/-0) tests/vmtests/__init__.py (+97/-45) tests/vmtests/test_basic.py (+117/-0) tests/vmtests/test_multipath.py (+63/-0) tools/launch (+37/-17) |
To merge this branch: | bzr merge lp://staging/~raharper/curtin/trunk.vmtest-multipath |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Server Team CI bot | continuous-integration | Approve | |
Scott Moser (community) | Approve | ||
Christian Ehrhardt | Needs Fixing | ||
Review via email: mp+297007@code.staging.launchpad.net |
Commit message
Add multipath testing
Add multipath testing via a test-case option, cls.multipath which will
if set to true, duplicate all disks in a test class. This has the effect
of looking exactly like multipath setups where we see the same device
with two paths.
To handle devices with wwn or serial numbers with spaces in them
curtin.block was updated to ensure it supports finding devices via there
serial or wwn attribute. Specifically for serial numbers with spaces, we
currently will escape the spaces to underscores; this is supported by
observing the names that show up in /dev/disk/by-id/* for those devices.
For wwn, /dev/disk/
obtain a kernel devname for use with sysfs.
For serial with spaces, curtin attempts to remove whitespace like udev to
find the disk under /dev/disk/by-id/ and determine a devname.
Xenial multipath fails without ensuring the multipath/bindings file is
written with whitespace removed; this is triggered on in-target mulitpath
versions >= 1.5.0 fixing LP:1551937.
Description of the change
Add multipath testing
Add multipath testing via a test-case option, cls.multipath which will
if set to true, duplicate all disks in a test class. This has the effect
of looking exactly like multipath setups where we see the same device
with two paths.
To handle devices with wwn or serial numbers with spaces in them
curtin.block was updated to ensure it supports finding devices via there
serial or wwn attribute. Specifically for serial numbers with spaces, we
currently will escape the spaces to underscores; this is supported by
observing the names that show up in /dev/disk/by-id/* for those devices.
For wwn, /dev/disk/
obtain a kernel devname for use with sysfs.
For serial with spaces, curtin attempts to remove whitespace like udev to
find the disk under /dev/disk/by-id/ and determine a devname.
Xenial multipath fails without ensuring the multipath/bindings file is
written with whitespace removed; this is triggered on in-target mulitpath
versions >= 1.5.0 fixing LP:1551937.
PASSED: Continuous integration, rev:392 /server- team-jenkins. canonical. com/job/ curtin- ci/250/ /server- team-jenkins. canonical. com/job/ generic- update- mp/247/ console
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild: /server- team-jenkins. canonical. com/job/ curtin- ci/250/ rebuild
https:/