7eec31b6c4
To avoid issues with the scsi_id command getting stuck and blocking the attachment we use sysfs to search for the WWN, but it can happen that we fail to detect the WWN even if it's present in sysfs. This happens when the storage array has multiple designators and the multipath daemon detects the multipaths very fast. The flow is: - os-brick attaches volumes using iscsiadm --login - udev generates the symlink with the WWN (this is the one we want) - multipathd detects the volumes and forms the DM - udev replaces the previous symlink to point to the multipath DM - os-brick checks the symlink This patch adds code to get_sysfs_wwn that checks the individual devices belonging to a multipath DM if the symlink points to a DM. Closes-Bug: #1881608 Change-Id: I05f94d31277efec28ad50ae2f3502ab6fccfe37c (cherry picked from commit |
||
---|---|---|
doc | ||
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:
- 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