Curtin fails to deploy on S390X DPM
Bug #1813228 reported by
Lee Trager
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Fix Released
|
High
|
Unassigned | ||
curtin |
Fix Released
|
High
|
Unassigned |
Bug Description
When I try to deploy Ubuntu with MAAS on S390X DPM the installation fails when running vgchange --activate=y. This may be due to the system using multipath and related to LP:1813227
Related branches
~oddbloke/curtin/+git/curtin:ubuntu/devel
- Server Team CI bot: Approve (continuous-integration)
- curtin developers: Pending requested
-
Diff: 2413 lines (+739/-486)62 files modifiedcurtin/__init__.py (+1/-1)
curtin/block/__init__.py (+35/-2)
curtin/block/clear_holders.py (+21/-2)
curtin/block/multipath.py (+111/-0)
curtin/commands/curthooks.py (+14/-0)
curtin/config.py (+1/-1)
debian/changelog (+19/-0)
doc/topics/config.rst (+50/-0)
examples/tests/basic_scsi.yaml (+1/-1)
examples/tests/no-grub-file.yaml (+9/-0)
helpers/common (+13/-12)
pylintrc (+10/-0)
tests/unittests/helpers.py (+5/-0)
tests/unittests/test_apt_custom_sources_list.py (+4/-3)
tests/unittests/test_block.py (+33/-3)
tests/unittests/test_block_mdadm.py (+3/-7)
tests/unittests/test_block_multipath.py (+149/-0)
tests/vmtests/__init__.py (+5/-4)
tests/vmtests/releases.py (+7/-0)
tests/vmtests/test_apt_config_cmd.py (+6/-2)
tests/vmtests/test_apt_source.py (+2/-2)
tests/vmtests/test_basic.py (+12/-13)
tests/vmtests/test_basic_dasd.py (+6/-0)
tests/vmtests/test_bcache_basic.py (+4/-8)
tests/vmtests/test_bcache_bug1718699.py (+4/-0)
tests/vmtests/test_bcache_ceph.py (+4/-8)
tests/vmtests/test_bcache_partitions.py (+4/-0)
tests/vmtests/test_fs_battery.py (+4/-10)
tests/vmtests/test_install_umount.py (+1/-1)
tests/vmtests/test_iscsi.py (+4/-4)
tests/vmtests/test_journald_reporter.py (+4/-0)
tests/vmtests/test_lvm.py (+4/-8)
tests/vmtests/test_lvm_iscsi.py (+4/-4)
tests/vmtests/test_lvm_raid.py (+4/-0)
tests/vmtests/test_lvm_root.py (+1/-17)
tests/vmtests/test_mdadm_bcache.py (+34/-68)
tests/vmtests/test_mdadm_iscsi.py (+4/-4)
tests/vmtests/test_multipath.py (+6/-9)
tests/vmtests/test_network.py (+4/-23)
tests/vmtests/test_network_alias.py (+4/-23)
tests/vmtests/test_network_bonding.py (+4/-20)
tests/vmtests/test_network_bridging.py (+4/-0)
tests/vmtests/test_network_enisource.py (+0/-9)
tests/vmtests/test_network_ipv6.py (+4/-19)
tests/vmtests/test_network_ipv6_enisource.py (+0/-9)
tests/vmtests/test_network_ipv6_static.py (+4/-27)
tests/vmtests/test_network_ipv6_vlan.py (+4/-9)
tests/vmtests/test_network_mtu.py (+8/-32)
tests/vmtests/test_network_static.py (+4/-27)
tests/vmtests/test_network_static_routes.py (+5/-26)
tests/vmtests/test_network_vlan.py (+4/-8)
tests/vmtests/test_nvme.py (+9/-9)
tests/vmtests/test_old_apt_features.py (+3/-2)
tests/vmtests/test_pollinate_useragent.py (+4/-4)
tests/vmtests/test_raid5_bcache.py (+4/-21)
tests/vmtests/test_simple.py (+40/-4)
tests/vmtests/test_uefi_basic.py (+7/-16)
tests/vmtests/test_vmtests.py (+1/-1)
tests/vmtests/test_zfsroot.py (+8/-0)
tools/vmtest-system-setup (+1/-0)
tools/xkvm (+9/-2)
tox.ini (+1/-1)
~raharper/curtin:fix/get-path-to-storage-mpath
Merged
into
curtin:master
- Server Team CI bot: Approve (continuous-integration)
- Chad Smith: Approve
- Lee Trager (community): Needs Fixing
-
Diff: 597 lines (+369/-19)10 files modifiedcurtin/block/__init__.py (+35/-2)
curtin/block/clear_holders.py (+21/-2)
curtin/block/multipath.py (+111/-0)
examples/tests/basic_scsi.yaml (+1/-1)
tests/unittests/helpers.py (+5/-0)
tests/unittests/test_block.py (+33/-3)
tests/unittests/test_block_mdadm.py (+3/-7)
tests/unittests/test_block_multipath.py (+149/-0)
tests/vmtests/test_basic.py (+2/-2)
tools/xkvm (+9/-2)
tags: | added: s390x |
Changed in ubuntu-z-systems: | |
importance: | Undecided → High |
status: | New → Fix Released |
To post a comment you must log in.
Curtin generally expects vgchange -ay to exit with 0, non-zero exit indicates as failure.
In this install[1], multipath is installed and when it is present, vgchange detects that
the lvm devices it found were created using device names that were not multipath names.
It is not yet clear whether this is fatal to curtin. Curtin probes the LVM subsystem
to discover any LVM devices present; at this early stage, it is possible that *none* of
the devices discovered will be related to the storage config sent to curtin, and curtin
should then ignore all of these devices.
This approach argues for curtin it ignore the error return code, and possible not even log
the warning/error from vgchange -ay.
On the counter side, if a node is able to detect multiple paths to devices and potentially
discovers misconfiguration, it may not be prudent to continue; if any of the devices in storage config are part of the detected LVM devices.
1. ROOT_lvm_ 473D86E3" now active ROOT_lvm_ BBD0E8D4" now active ROOT_lvm_ 382F5B8E" now active
Stdout: Unexpected error while running command.
Command: ['vgchange', '--activate=y']
Exit code: 5
Reason: -
Stdout: 0 logical volume(s) in volume group "zkvm4" now active
0 logical volume(s) in volume group "zkvm1" now active
0 logical volume(s) in volume group "Z_APPL_
0 logical volume(s) in volume group "Z_APPL_
0 logical volume(s) in volume group "Z_APPL_
Stderr: WARNING: Not using lvmetad because duplicate PVs were found.
WARNING: Use multipath or vgimportclone to resolve duplicate PVs?
WARNING: After duplicates are resolved, run "pvscan --cache" to enable lvmetad.
WARNING: PV tIvQUe- wsuE-RWlZ- Wmdo-uzws- qL5H-Y9zW5l on /dev/sdb2 was already found on /dev/sdfe2.
WARNING: PV 3zsO6H- QCQq-eyJZ- 8aLc-TGU1- q91J-LFWsKs on /dev/sde2 was already found on /dev/sdfh2.
WARNING: PV VEyfqe- Vln5-zMp5- wCeK-hkQN- u8Wp-LkPTMF on /dev/sdba2 was already found on /dev/sdhd2.
WARNING: PV H7Ucbo- TJSw-tS4y- AwKT-xdql- NiMp-YvZC1S on /dev/sdfj2 was already found on /dev/sddi2.
WARNING: PV H7Ucbo- TJSw-tS4y- AwKT-xdql- NiMp-YvZC1S on /dev/sdg2 was already found on /dev/sddi2.
WARNING: PV tIvQUe- wsuE-RWlZ- Wmdo-uzws- qL5H-Y9zW5l on /dev/sdbc2 was already found on /dev/sdfe2.
WARNING: PV 3zsO6H- QCQq-eyJZ- 8aLc-TGU1- q91J-LFWsKs on /dev/sdbf2 was already found on /dev/sdfh2.
WARNING: PV VEyfqe- Vln5-zMp5- wCeK-hkQN- u8Wp-LkPTMF on /dev/sddb2 was already found on /dev/sdhd2.
WARNING: PV 6ZwSAD- cFkP-Qjeg- WIDt-g3Hc- m8Tt-i3ex81 on /dev/sddr2 was already found on /dev/sdbq2.
WARNING: PV H7Ucbo- TJSw-tS4y- AwKT-xdql- NiMp-YvZC1S on /dev/sdbh2 was already found on /dev/sddi2.
WARNING: PV tIvQUe- wsuE-RWlZ- Wmdo-uzws- qL5H-Y9zW5l on /dev/sddd2 was already found on /dev/sdfe2.
WARNING: PV 3zsO6H- QCQq-eyJZ- 8aLc-TGU1- q91J-LFWsKs on /dev/sddg2 was already found on /dev/sdfh2.
WARNING: PV VEyfq...