50ef90251c
When provided an initiator target map and attempting a rescan in LinuxFibreChannel.rescan_hosts(...) if the system doesn't yet have /sys/class/fc_host/fc_transport/** directories then we can get into a position where the call to LinuxFibreChannel._get_hba_channel_scsi_target will return "None". Later on when we iterate through "process" and attempt to iterate on "cts" this will raise an exception. We used to fall back to a wildcard scan, and still do if no target map is provided. This fix will do just that, for cases where we don't have enough other information we just use wildcards. In testing it seems like this happens on first-time connections to a target after the ACLs have been setup on the arrays for the initiator. After that we can get the HBA channel and SCSI target with the grep call in _get_hba_channel_scsi_target Change-Id: Ifd79b055882bb513fccf21d584baaeb1d60e67f2 Closes-Bug: #1774283 |
||
---|---|---|
doc/source | ||
etc/os-brick/rootwrap.d | ||
os_brick | ||
releasenotes | ||
tools | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.stestr.conf | ||
.zuul.yaml | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
README.rst | ||
babel.cfg | ||
bindep.txt | ||
lower-constraints.txt | ||
pylintrc | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
README.rst
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-gdbm (for Debian derived distributions), Python 2.7 and Python 3.4. A recent tox is required, as is a recent virtualenv (13.1.0 or newer).
If "tox -e py34" fails with the error "db type could not be determined", remove the .testrepository/ directory and then run "tox -e py34".
- For any other information, refer to the developer documents:
- OR refer to the parent project, Cinder:
- License: Apache License, Version 2.0
- Source: https://git.openstack.org/cgit/openstack/os-brick
- Bugs: https://bugs.launchpad.net/os-brick