OS brick does not have a check for all types of multipath device paths
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-brick |
Confirmed
|
Undecided
|
Sudipta Biswas |
Bug Description
Per the docstring on the find_multipath_
Multipath devices can show up in several places on
a linux system.
1) When multipath friendly names are ON:
a device file will show up in
2) When multipath friendly names are OFF:
However in the code: https:/
We use only a couple of patterns amongst the 7 patterns listed.
On my host the multpath devices show up as scsi-* however, they go undetected by this code due to the missing pattern match.
This method should be enhanced to fix all device path types.
Changed in cinder: | |
assignee: | nobody → Sudipta Biswas (sbiswas7) |
affects: | cinder → os-brick |
Changed in os-brick: | |
status: | New → Confirmed |
Hi, name' to 'no'.
I am using Ubuntu 16.04.2 system.
My setup has multipathd service in active state and there is no multipath.conf explicitly created in the system. Hence it is defaulting the 'user_friendly_
For initial mount/unmount operations for same volume through our FC driver /dev/disk/ by-id/dm- uuid-mpath- <WWN> entry is populated. by-id/dm- uuid-mpath- <WWN> entry is not populated. But it can be seen that /dev/disk/ by-id/scsi- <WWN> path entry is available in all cases.
Whereas after retrying few more number of times it is found that /dev/disk/
Ask here is to have path checks for all the possible multipath device path to avoid the failure of operation.
In short, for default multipath configuration on Ubuntu, sometimes /dev/disk/ by-id/dm- uuid-mpath- <WWN> by-id/scsi- <WWN> entry is populated after the scan. Hence OS_brick needs to check entries for all the the possible paths.
and /dev/mapper/<WWN> path entries are not populated but /dev/disk/
Or Is there any other reason why path check is restricted to only /dev/disk/ by-id/dm- uuid-mpath- <WWN>
and /dev/mapper/<WWN>.