MaaS deployment generates incorrect multipath bindings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Currently MaaS (1.9.2+
This is because the installer generates an incorrect /etc/multipath/
# This file was created by curtin while installing the system.
mpath0 1IBM IPR-0 5EC3390000000080
# End of content generated by curtin.
# Everything below is maintained by multipath subsystem.
However the output of /lib/udev/scsi_id --export --whitelisted -d <device> changed. For example
ID_SCSI=1
ID_VENDOR=IBM
ID_VENDOR_
ID_MODEL=
ID_MODEL_
ID_REVISION=
ID_TYPE=disk
ID_SERIAL=
ID_SERIAL_
ID_TARGET_PORT=c339
The ID_SERIAL matches the real string used to create /dev/disk/by-id/... and the multipath device-mapper volumes. So the bindings file does not create a mpath0 volume and the root filesystem is not found.
Temporary workaround (for above example):
multipath -F
echo "mpath0 1IBM_IPR-
multipath
exit
affects: | ubuntu → curtin (Ubuntu) |
Same (or similar problem) on a Wily deployment. Only that there the non working mapping is followed by correct ones but different alias names:
cat /etc/multipath/ bindings 0_5EC3390000000 080 0_5EC3390000000 060 0_5EC3390000000 040 0_5EC3390000000 020 0_5EC3390000000 0C0 0_5EC3390000000 0A0 ENC=IBM\ x20\x20\ x20\x20\ x20 IPR-0_5EC33900 ENC=IPR- 0\x20\x20\ x205EC33900 1IBM_IPR- 0_5EC3390000000 080 SHORT=IBM_ IPR-0_5EC339000 0000080
# This file was created by curtin while installing the system.
mpath0 1IBM IPR-0 5EC3390000000080
# End of content generated by curtin.
# Everything below is maintained by multipath subsystem.
mpatha 1IBM_IPR-
mpathb 1IBM_IPR-
mpathc 1IBM_IPR-
mpathd 1IBM_IPR-
mpathe 1IBM_IPR-
mpathf 1IBM_IPR-
(initramfs) /lib/udev/scsi_id -g --export /dev/sda
ID_SCSI=1
ID_VENDOR=IBM
ID_VENDOR_
ID_MODEL=
ID_MODEL_
ID_REVISION=
ID_TYPE=disk
ID_SERIAL=
ID_SERIAL_
ID_TARGET_PORT=c339