Volume discovery and local storage management lib
00caa73776
On Change-Id Ib3b066a7da071b1c2de78a1a4e569676539bd335 we improved the RBDVolumeIOWrapper's flush and close methods, and this patch improves them even further. If the IOWrapper's close is not explicitly called and it's just dereferenced (happens in unit tests) then during Garbage Collection the wrapped image may be destroyed before the wrapper, which would trigger the image being closed without the wrapper knowing, so when the wrapper gets destroyed it will fail because it calls its close method, which calls its flush, which calls the underlying image's flush, which will fail because the underlying image was already closed. We need to check if the underlying image has already being flushed before calling the flush. Calling the underlying close method for the Image or IOWrapper classes is not a problem because they are idempotent. Change-Id: Ib5a517d58427df0d1d1b22ad3dc66f673da147fe |
||
---|---|---|
doc | ||
etc/os-brick/rootwrap.d | ||
os_brick | ||
releasenotes | ||
tools | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.stestr.conf | ||
.zuul.yaml | ||
bindep.txt | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
mypy-files.txt | ||
pylintrc | ||
README.rst | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
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