a6e789f27e
iSCSI multipath rescan uses iscsiadm --rescan option for nodes and sessions, which can end up recreating devices that had just been removed if there's a race condition between the removal of a SCSI device and the connection of a volume. The race condition happens if a rescan done when attaching happens right between us removing the path and removing the exported lun, because the rescan will add not only the new path we are attaching, but the old path we are removing, since the lun still hasn't been removed. This would leave orphaned devices that unnecessarily pollute our environment, This patch narrows the rescan to only rescan for the specific target id, channel, and lun number if we can find this information. When we cannot find this information we do the scan as we were doing it before. Closes-Bug: #1664032 Change-Id: I1b3bd34db260165a6ea9ca061f946d6dfcf8553f |
||
---|---|---|
doc/source | ||
etc/os-brick/rootwrap.d | ||
os_brick | ||
releasenotes | ||
tools | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.testr.conf | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
README.rst | ||
babel.cfg | ||
bindep.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: http://git.openstack.org/cgit/openstack/os-brick
- Bugs: http://bugs.launchpad.net/os-brick