Rajat Dhasmana cc7e8ea978 FC: Fix multipath wait issue with slow connections
With change[1], we added a mechanism to wait for multipath
device to be ready for I/O. see more info in [2].
Sometimes the connection to the storage array is slow and
the multipath device doesn't get discovered during the
os-brick operation.
This leads to failure while waiting for the multipath device
where we don't even have the multipath device populated yet
in /sys/block/<dev>/holders/dm-* resulting in the following
command executing and failing.

'multipath -C None'

This does indicate some issue with the connection but we
should not fail the operation here since we can still
complete it even with a single device discovered.

This is already handled in the iSCSI connector[3] with a check
for the sysfs dm name being populated or not.
This patch adds the same logic to FC where the dm name is
not populated but we don't want to fail the operation
because of slow connection.

Closes-Bug: #2097388

[1] https://review.opendev.org/c/openstack/os-brick/+/920516
[2] https://launchpad.net/bugs/2067949
[3] 5f5a8f7563/os_brick/initiator/connectors/iscsi.py (L788-L792)

Change-Id: Ie8860d05841cc3222871da55bdddd6b7f8135850
(cherry picked from commit 8ac46333d7)
(cherry picked from commit 557817b9b0)
2025-02-07 19:58:51 +00:00
2023-07-21 08:27:57 -04:00
2023-04-25 09:09:38 -04:00
2016-04-20 15:52:31 +00:00
2024-03-08 13:53:02 +00:00
2015-01-22 19:09:30 +00:00
2023-04-25 09:09:38 -04:00
2017-10-02 17:35:26 -05:00
2023-09-01 17:48:18 -04:00
2019-01-18 21:30:00 -05:00
2015-01-22 19:09:30 +00:00
2022-08-25 14:00:42 +00:00
2016-04-04 18:02:19 -04:00
2020-04-05 17:43:12 +02:00
2023-08-17 15:37:04 -04:00

Team and repository tags

image

brick

Latest Version

Downloads

OpenStack Cinder brick library for managing local volume attaches

Features

  • Discovery of volumes being attached to a host for many transport protocols.
  • Removal of volumes from a host.

Hacking

Hacking on brick requires Python 3.8+. A recent tox is required, as is a recent virtualenv (20.2.2 or newer).

For any other information, refer to the developer documents:

https://docs.openstack.org/os-brick/latest/

OR refer to the parent project, Cinder:

https://docs.openstack.org/cinder/latest/

Release notes for the project can be found at:

https://docs.openstack.org/releasenotes/os-brick

Description
Volume discovery and local storage management lib
Readme 33 MiB
Languages
Python 99.6%
Shell 0.4%