
When we want to find the HCTL values for a device, we grep the target_WWN in /sys/class/fc_transport/target8:*/port_name path. If we find it then we use the HCTL values from the path like, target8:0:1 where 8 -> host, 0 -> channel, 1 -> target and LUN number is received from the storage array. If we fail to find the device in fc_transport path, we search in fc_remote_ports path which contains info about all connected devices whether it be storage array port or switch port. We found an issue with the exception handling when we don't find a valid path in fc_transport location eventually raising an exception and skipping the search in fc_remote_ports path. This patch adds exception handling for both fc_transport and fc_remote_ports paths so any errors in individual path doesn't affect the other. Closes-Bug: #2098954 Change-Id: I2843cb672de816439bb60094421960f195ab561d
Team and repository tags
brick
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:
- OR refer to the parent project, Cinder:
- Release notes for the project can be found at:
- License: Apache License, Version 2.0
- Source: https://opendev.org/openstack/os-brick
- Bugs: https://bugs.launchpad.net/os-brick
Description
Languages
Python
99.6%
Shell
0.4%