lvm and multipath and xenial not happy together
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
Fix Released
|
High
|
Unassigned | ||
curtin (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Trusty |
Fix Released
|
High
|
Unassigned | ||
Xenial |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
* MaaS deployments to systems with multipath configures cannot
install Xenial releases due to a change in how multipath configures
its friendly names. On older releases (multipath-tools < 0.5.0)
multipath-tools expects that the names of the devices will include
names and parses the file with that expectation. However, on newer
releases (multipath-tools >= 0.5.0) multipath-tools uses spaces to
separate fields in the bindings file and fails if the device name
includes spaces.
Curtin will detect the level of multipath-tools to be used in the
target OS and adjusts how it generates device names for the binding
file accordingly.
[Test Case]
* Install proposed curtin package and deploy custom storage
configuration against a Power8 or similiar configured multipath
system and select Xenial as the target OS.
PASS: The multipath configured machine will successfully install
both Xenial and Trusty.
FAIL: The multipath configured machine will fail to install Xenial
but will successfully install Trusty.
[Regression Potential]
* May impact users of systems with multipath storage configurations.
[Original Description]
tried deploy of xenial with curtin on a powerNV system. the result was failure to mount the root, ending like this:
Begin: Running /scripts/
t activation during sysinit
Volume group "mpath0" not found
Cannot process volume group mpath0
done.
Begin: Running /scripts/
Volume group "mpath0" not found
Cannot process volume group mpath0
done.
done.
Gave up waiting for root device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Check root= (did the system wait for the right device?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/mapper/
Related bugs:
* bug 1429327: Boot from a unique, stable, multipath-dependent symlink
* bug 1432062: multipath-
* bug 1552319: xenial kernel boot slow/timeout on power8 powerNV
$ dpkg-query --show | egrep '(maas|curtin)'
curtin-common 0.1.0~bzr359-
maas 1.9.1+bzr4541-
maas-cli 1.9.1+bzr4541-
maas-cluster-
maas-common 1.9.1+bzr4541-
maas-dhcp 1.9.1+bzr4541-
maas-dns 1.9.1+bzr4541-
maas-provision 2.2.2-0ubuntu4
maas-provision-
maas-proxy 1.9.1+bzr4541-
maas-region-
maas-region-
python-curtin 0.1.0~bzr359-
python-django-maas 1.9.1+bzr4541-
python-maas-client 1.9.1+bzr4541-
python-
python-
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Scott Moser (community): Approve
- Christian Ehrhardt : Needs Fixing
-
Diff: 846 lines (+513/-68)10 files modifiedcurtin/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)
- Scott Moser: Approve
-
Diff: 2457 lines (+1095/-323)35 files modifiedcurtin/block/__init__.py (+9/-3)
curtin/commands/block_meta.py (+7/-2)
curtin/commands/curthooks.py (+19/-3)
curtin/commands/net_meta.py (+39/-28)
curtin/net/__init__.py (+25/-5)
curtin/reporter/handlers.py (+4/-13)
curtin/util.py (+56/-0)
debian/changelog (+19/-0)
examples/tests/basic_network.yaml (+6/-0)
examples/tests/basic_scsi.yaml (+72/-0)
examples/tests/bonding_network.yaml (+2/-0)
examples/tests/multipath.yaml (+38/-0)
examples/tests/simple.yaml (+3/-0)
helpers/common (+14/-6)
tests/unittests/test_net.py (+49/-1)
tests/unittests/test_reporter.py (+23/-2)
tests/vmtests/__init__.py (+121/-58)
tests/vmtests/helpers.py (+169/-0)
tests/vmtests/image_sync.py (+16/-2)
tests/vmtests/releases.py (+5/-0)
tests/vmtests/test_basic.py (+121/-4)
tests/vmtests/test_bcache_basic.py (+4/-0)
tests/vmtests/test_bonding.py (+6/-44)
tests/vmtests/test_lvm.py (+4/-4)
tests/vmtests/test_mdadm_bcache.py (+24/-24)
tests/vmtests/test_multipath.py (+63/-0)
tests/vmtests/test_network.py (+19/-57)
tests/vmtests/test_nvme.py (+4/-4)
tests/vmtests/test_raid5_bcache.py (+8/-4)
tests/vmtests/test_simple.py (+40/-0)
tests/vmtests/test_uefi_basic.py (+8/-8)
tools/jenkins-runner (+10/-0)
tools/launch (+74/-44)
tools/vmtest-sync-images (+5/-1)
tools/xkvm (+9/-6)
Changed in curtin: | |
status: | New → Confirmed |
importance: | Undecided → High |
tags: | added: curtin-sru |
Changed in curtin: | |
status: | Confirmed → In Progress |
Changed in curtin: | |
status: | In Progress → Fix Committed |
description: | updated |
Changed in curtin (Ubuntu): | |
importance: | Undecided → High |
Changed in curtin (Ubuntu Trusty): | |
importance: | Undecided → High |
Changed in curtin (Ubuntu Xenial): | |
importance: | Undecided → High |
tags: |
added: verification-done removed: verification-needed |
attaching output of 9d7f-11e4- 91da-d4bed9a844 93
maas ubuntu node get-curtin-config node-11c03686-