~wesley-wiedenmeier/curtin/1598310

Viewing all changes in revision 396.

  • Committer: Ryan Harper
  • Date: 2016-06-24 19:45:04 UTC
  • mfrom: (389.5.13 trunk.vmtest-multipath)
  • Revision ID: ryan.harper@canonical.com-20160624194504-vlexvzp38lobcjnj
fix multipath configuration and add multipath tests

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. This fixes LP:1551937

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/by-id/wwn-$wwn ; curtin resolves the symlink target to
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.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: