multipath discovery failed during install due to missing udev properties defined by sg3-utils udev rules

Bug #1549456 reported by Mauricio Faria de Oliveira
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
hw-detect (Ubuntu)
Fix Released
Medium
Mathieu Trudel-Lapierre

Bug Description

During a Xenial installation, the multipath devices from an IBM IPR controller were not discovered, as the block devices lacked the SCSI_IDENT_* udev properties.

The fix was to simply reload udev rules and re-add the devices w/ update-dev; and the devices were correctly multipathed.

Adding a patch to do that in /bin/disk-detect.

~ # multipath -l
~ #

~ # multipath -v3
Feb 22 13:38:33 | libdevmapper version 1.02.110 (2015-10-30)
Feb 22 13:38:33 | DM multipath kernel driver v1.10.0
Feb 22 13:38:33 | loading /lib/multipath/libcheckdirectio.so checker
Feb 22 13:38:33 | loading /lib/multipath/libprioconst.so prioritizer
Feb 22 13:38:33 | sda: blacklisted, udev property missing
Feb 22 13:38:33 | sdb: blacklisted, udev property missing
Feb 22 13:38:33 | sdc: blacklisted, udev property missing
Feb 22 13:38:33 | sdd: blacklisted, udev property missing
Feb 22 13:38:33 | sde: blacklisted, udev property missing
Feb 22 13:38:33 | sdf: blacklisted, udev property missing
Feb 22 13:38:33 | sdg: blacklisted, udev property missing
Feb 22 13:38:33 | sr0: blacklisted, udev property missing
Feb 22 13:38:33 | sdh: blacklisted, udev property missing
Feb 22 13:38:33 | sdi: blacklisted, udev property missing
Feb 22 13:38:33 | sdj: blacklisted, udev property missing
Feb 22 13:38:33 | sdk: blacklisted, udev property missing
Feb 22 13:38:33 | sdl: blacklisted, udev property missing
Feb 22 13:38:33 | sdm: blacklisted, udev property missing
Feb 22 13:38:33 | sdn: blacklisted, udev property missing
<...>
===== no paths =====
<...>

~ # udevadm info -q all /dev/sda
P: /devices/pci0001:00/0001:00:00.0/0001:01:00.0/0001:02:08.0/0001:08:00.0/host0/target0:2:0/0:2:0:0/block/sda
N: sda
S: disk/by-id/scsi-1IBM_IPR-10_5ED5AD0000000020
S: disk/by-path/pci-0001:08:00.0-scsi-0:2:0:0
E: DEVLINKS=/dev/disk/by-path/pci-0001:08:00.0-scsi-0:2:0:0 /dev/disk/by-id/scsi-1IBM_IPR-10_5ED5AD0000000020
E: DEVNAME=/dev/sda
E: DEVPATH=/devices/pci0001:00/0001:00:00.0/0001:01:00.0/0001:02:08.0/0001:08:00.0/host0/target0:2:0/0:2:0:0/block/sda
E: DEVTYPE=disk
E: ID_BUS=scsi
E: ID_MODEL=IPR-10_5ED5AD00
E: ID_MODEL_ENC=IPR-10\x20\x205ED5AD00
E: ID_PART_TABLE_TYPE=gpt
E: ID_PART_TABLE_UUID=dfd65ab5-bba4-4785-87d5-c7477a296e9e
E: ID_PATH=pci-0001:08:00.0-scsi-0:2:0:0
E: ID_PATH_TAG=pci-0001_08_00_0-scsi-0_2_0_0
E: ID_SCSI=1
E: ID_SERIAL=1IBM_IPR-10_5ED5AD0000000020
E: ID_SERIAL_SHORT=IBM_IPR-10_5ED5AD0000000020
E: ID_TARGET_PORT=d5ad
E: ID_TYPE=disk
E: ID_VENDOR=IBM
E: ID_VENDOR_ENC=IBM\x20\x20\x20\x20\x20
E: MAJOR=8
E: MINOR=0
E: SUBSYSTEM=block
E: USEC_INITIALIZED=148820631

~ # udevadm control --reload
~ # /bin/update-dev

~ # udevadm info -q property /dev/sda
DEVLINKS=/dev/disk/by-id/scsi-1IBM_IPR-10_5ED5AD0000000020 /dev/disk/by-path/pci-0001:08:00.0-scsi-0:2:0:0
DEVNAME=/dev/sda
DEVPATH=/devices/pci0001:00/0001:00:00.0/0001:01:00.0/0001:02:08.0/0001:08:00.0/host0/target0:2:0/0:2:0:0/block/sda
DEVTYPE=disk
ID_BUS=scsi
ID_MODEL=IPR-10_5ED5AD00
ID_MODEL_ENC=IPR-10\x20\x205ED5AD00
ID_PART_TABLE_TYPE=gpt
ID_PART_TABLE_UUID=dfd65ab5-bba4-4785-87d5-c7477a296e9e
ID_PATH=pci-0001:08:00.0-scsi-0:2:0:0
ID_PATH_TAG=pci-0001_08_00_0-scsi-0_2_0_0
ID_SCSI=1
ID_SERIAL=1IBM_IPR-10_5ED5AD0000000020
ID_SERIAL_SHORT=IBM_IPR-10_5ED5AD0000000020
ID_TYPE=disk
ID_VENDOR=IBM
ID_VENDOR_ENC=IBM\x20\x20\x20\x20\x20
MAJOR=8
MINOR=0
SCSI_IDENT_LUN_T10=IBM_IPR-10_5ED5AD0000000020
SCSI_IDENT_LUN_VENDOR=0
SCSI_IDENT_PORT_RELATIVE=54701
SCSI_IDENT_PORT_TARGET_PORT_GROUP=0xd5ad
SCSI_MODEL=IPR-10_5ED5AD00
SCSI_MODEL_ENC=IPR-10\x20\x205ED5AD00
SCSI_TPGS=1
SCSI_TYPE=disk
SCSI_VENDOR=IBM
SCSI_VENDOR_ENC=IBM\x20\x20\x20\x20\x20
SUBSYSTEM=block
USEC_INITIALIZED=400476526

~ # multipath -v3
Feb 22 14:45:07 | sda: udev property SCSI_IDENT_LUN_T10 whitelisted
<...>
===== paths list =====
uuid hcil dev dev_t pri dm_st chk_st vend/prod/rev
1IBM_IPR-10_5ED5AD0000000020 0:2:0:0 sda 8:0 50 undef ready IBM,IPR-10 5E
1IBM_IPR-0_5ED5930000000040 0:2:1:0 sdb 8:16 50 undef ready IBM,IPR-0 5E
1IBM_IPR-0_5ED5930000000020 0:2:2:0 sdc 8:32 50 undef ready IBM,IPR-0 5E
1IBM_IPR-0_5ED5930000000100 0:2:3:0 sdd 8:48 50 undef ready IBM,IPR-0 5E
1IBM_IPR-0_5ED59300000000E0 0:2:4:0 sde 8:64 50 undef ready IBM,IPR-0 5E
1IBM_IPR-0_5ED59300000000C0 0:2:5:0 sdf 8:80 50 undef ready IBM,IPR-0 5E
1IBM_IPR-0_5ED59300000000A0 0:2:6:0 sdg 8:96 50 undef ready IBM,IPR-0 5E
1IBM_IPR-10_5ED5AD0000000020 1:2:0:0 sdh 8:112 10 undef ready IBM,IPR-10 5E
1IBM_IPR-0_5ED5930000000040 1:2:1:0 sdi 8:128 10 undef ready IBM,IPR-0 5E
1IBM_IPR-0_5ED5930000000020 1:2:2:0 sdj 8:144 10 undef ready IBM,IPR-0 5E
1IBM_IPR-0_5ED5930000000100 1:2:3:0 sdk 8:160 10 undef ready IBM,IPR-0 5E
1IBM_IPR-0_5ED59300000000E0 1:2:4:0 sdl 8:176 10 undef ready IBM,IPR-0 5E
1IBM_IPR-0_5ED59300000000C0 1:2:5:0 sdm 8:192 10 undef ready IBM,IPR-0 5E
1IBM_IPR-0_5ED59300000000A0 1:2:6:0 sdn 8:208 10 undef ready IBM,IPR-0 5E
<...>

Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :
Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

Hi @mathieu-tl,
Can you check this bug/patch, please?
Thanks!

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "hw-detect_1_reload_udev.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
tags: added: xenial
tags: added: rls-x-incoming
Mathew Hodson (mhodson)
Changed in hw-detect (Ubuntu):
importance: Undecided → Medium
Changed in hw-detect (Ubuntu):
status: New → Triaged
assignee: nobody → Mathieu Trudel-Lapierre (mathieu-tl)
Revision history for this message
Luciano Chavez (lnx1138) wrote :

.

Revision history for this message
Kevin W. Rudd (kevinr) wrote :

.

Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2016-03-14 16:15 EDT-------

tags: added: architecture-ppc64le bugnameltc-138921 severity-medium targetmilestone-inin1604
Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2016-03-21 09:47 EDT-------
Hi @mathieu-tl,

Can you confirm the milestone for this is 16.04?

Thank you!

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Yes, the milestone for this is 16.04; I'm finishing some smoketesting on these this week prior to uploading the whole thing.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hw-detect - 1.114ubuntu4

---------------
hw-detect (1.114ubuntu4) xenial; urgency=medium

  [ Mauricio Faria de Oliveira ]
  * disk-detect.sh: multipath: reload udev rules before re-add devices
    to guarantee all devices may get new udev properties (LP: #1549456)
  * disk-detect.sh: multipath: deactivate LVM volumes before multipath
    discovery to unlock individual paths (LP: #1549504)
  * disk-detect.sh: multipath: deactivate md arrays before multipath
    discovery to unlock individual paths (LP: #1549506)

 -- Mathieu Trudel-Lapierre <email address hidden> Mon, 21 Mar 2016 14:24:03 -0400

Changed in hw-detect (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.