Volume discovery and local storage management lib
Go to file
Gorka Eguileor 3aa5d29582 RBD: Fix disconnect_volume for encrypted volumes
After change Ie373ab050dcc0a35c749d9a53b6cf5ca060bcb58 closing bugs
connector was broken for encrypted volumes:

<== disconnect_volume:
   exception (0ms) AttributeError("'RBDVolumeIOWrapper' object has
   no attribute 'startswith'") trace_logging_wrapper
   /usr/lib/python3.9/site-packages/os_brick/utils.py:162

This hapens because "_device_path_from_symlink" doesn't take into
account of the file handle, and we were missing a unit test for this
case.

Closes-Bug: #1981455
Change-Id: Ib001e2b4d1347754c2b46730bc10d86e8cdab7ad
(cherry picked from commit dde8f102b7)
(cherry picked from commit 743002cc26)
2022-07-14 13:12:33 +02:00
doc Merge "Dropping explicit unicode literal" 2021-03-12 23:36:22 +00:00
etc/os-brick/rootwrap.d Trivial rootwrap -> privsep replacement 2016-04-15 15:29:25 +00:00
os_brick RBD: Fix disconnect_volume for encrypted volumes 2022-07-14 13:12:33 +02:00
releasenotes RBD: Fix disconnect_volume for encrypted volumes 2022-07-14 13:12:33 +02:00
tools Update mypy infrastructure 2021-07-15 14:08:28 -04:00
.coveragerc Fix coverage generation 2016-04-20 15:52:31 +00:00
.gitignore Add LIO barbican tests to .zuul.yaml 2018-10-01 10:19:36 -05:00
.gitreview Update .gitreview for stable/xena 2021-08-23 20:48:56 +00:00
.mailmap Created the Brick library from Cinder 2015-01-22 19:09:30 +00:00
.stestr.conf Add .stestr.conf configuration 2017-10-02 17:35:26 -05:00
.zuul.yaml Merge "Drop lower-constraints jobs" 2021-07-15 17:10:19 +00:00
CONTRIBUTING.rst Ussuri contrib docs community goal 2020-03-05 09:11:33 -05:00
HACKING.rst Update hacking version 2019-01-18 21:30:00 -05:00
LICENSE Created the Brick library from Cinder 2015-01-22 19:09:30 +00:00
README.rst Replace git.openstack.org URLs with opendev.org URLs 2019-04-23 20:55:14 +08:00
bindep.txt bindep: remind people to sync the dependencies with devstack 2020-08-14 00:50:08 +02:00
mypy-files.txt Introduce mypy 2021-05-21 16:58:22 -04:00
pylintrc Add pylint tox env 2016-04-04 18:02:19 -04:00
requirements.txt Update requirements for wallaby release 2021-03-04 21:03:58 -05:00
setup.cfg Introduce mypy 2021-05-21 16:58:22 -04:00
setup.py Cleanup py27 support 2020-04-05 17:43:12 +02:00
test-requirements.txt Update mypy infrastructure 2021-07-15 14:08:28 -04:00
tox.ini Update TOX_CONSTRAINTS_FILE for stable/xena 2021-08-23 20:48:58 +00:00

README.rst

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-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:

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