-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
None
-
False
-
-
False
-
?
-
None
-
-
-
Moderate
When disconnecting a FC volume, os-brick calls lsscsi[1][2] to fetch the HCTL values of individual devices.
lsscsi is executed on each device and can cause slow performance if there are too many devices connected to the system.
Based on the workflow, the HCTL values aren't even needed for the disconnect and only the /dev/sdX path is used[3] so the lsscsi call is unnecessary.
Related SE: https://issues.redhat.com/browse/SUPPORTEX-24934
Original analysis: https://issues.redhat.com/browse/SUPPORTEX-24934?focusedId=26689427&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-26689427
LP: https://bugs.launchpad.net/os-brick/+bug/2102053
Fix: https://review.opendev.org/c/openstack/os-brick/+/943123
[1] https://opendev.org/openstack/os-brick/src/commit/6e83ac6eeee8f3a4b3265a4e927dca1bc190e088/os_brick/initiator/connectors/fibre_channel.py#L393
[2] https://opendev.org/openstack/os-brick/src/commit/6e83ac6eeee8f3a4b3265a4e927dca1bc190e088/os_brick/initiator/linuxscsi.py#L190
[3] https://opendev.org/openstack/os-brick/src/commit/6e83ac6eeee8f3a4b3265a4e927dca1bc190e088/os_brick/initiator/connectors/fibre_channel.py#L434-L437