OpenStack Block Storage (Cinder)
Go to file
Eric Harney 90e03570cc Prevent double-attachment race in attachment_reserve
If multiple attachments are requested simultaneously,
a volume can be attached to an instance more than once.

This fixes this problem by detecting that a race has
occurred in _attachment_reserve, and backing out one of
the invalid attachment records.

This means that if the attachment API is called
repeatedly and quickly for the same volume, some requests
may fail, but this is much better than incorrectly
creating multiple attachments.

Closes-Bug: #1833736

Change-Id: Ic2463338b698c5cf805c0ae06d0229f54f64b3fc
(cherry picked from commit 7f3a77b66f)
(cherry picked from commit eadff0df7e)
Conflicts:
	cinder/tests/unit/attachments/test_attachments_api.py
(cherry picked from commit 5f9c93b194)
2019-08-13 14:23:34 -04:00
api-ref/source Correct attachment create success response code 2019-03-25 20:06:41 -03:00
cinder Prevent double-attachment race in attachment_reserve 2019-08-13 14:23:34 -04:00
contrib/block-box Bump up the API microversion in cinder.rc 2017-12-22 06:18:09 -08:00
doc PowerMax Queens docs - clarifying that PowerMax is supported in Queens 2019-06-19 12:44:40 +01:00
etc/cinder Add cg policies and clean up old policy handling 2017-12-04 10:07:54 +08:00
playbooks/legacy/cinder-tempest-dsvm-lvm-lio-barbican OpenDev Migration Patch 2019-04-19 19:27:05 +00:00
rally-jobs Switch Rally Task To format V2 2017-10-13 08:37:57 +00:00
releasenotes Fix "connector=None" issue in Kaminario drivers 2019-05-23 06:30:55 -04:00
tools Add policy documentation and sample file 2017-10-20 10:47:34 +08:00
.coveragerc Update .coveragerc after the removal of openstack directory 2016-10-17 19:09:37 +05:30
.gitignore Add doc/source/_static/cinder.policy.yaml.sample to .gitignore 2017-11-15 16:46:57 +09:00
.gitreview OpenDev Migration Patch 2019-04-19 19:27:05 +00:00
.stestr.conf Add .stestr.conf configuration 2017-10-10 00:46:42 +00:00
.zuul.yaml Remove Sheepdog tests from zuul config 2019-07-05 06:39:59 -05:00
CONTRIBUTING.rst Optimize the link address 2017-04-08 15:03:44 +08:00
HACKING.rst Fix wrong links in Cinder 2017-09-07 11:55:44 +08:00
LICENSE Initial fork out of Nova. 2012-05-03 10:48:26 -07:00
README.rst Update Documentation link 2017-07-13 12:12:20 +00:00
babel.cfg Initial fork out of Nova. 2012-05-03 10:48:26 -07:00
bindep.txt Do not explicitly list thin provisioning tools for RPM 2018-01-02 10:52:44 -06:00
driver-requirements.txt Add driver-requirements entry for storpool 2018-01-02 09:54:49 -05:00
pylintrc Use six to fix imports on Python 3 2015-06-11 17:19:19 +02:00
requirements.txt Updated from global requirements 2018-02-01 07:06:24 +00:00
setup.cfg add resource filters to the included data_files 2019-03-20 17:29:54 +00:00
setup.py Updated from global requirements 2017-03-02 23:53:29 +00:00
test-requirements.txt Updated from global requirements 2018-02-01 07:06:24 +00:00
tox.ini Make sure we install cinder requirements during the correct tox phase 2019-05-13 22:34:13 +02:00

README.rst

Team and repository tags

image

CINDER

You have come across a storage service for an open cloud computing service. It has identified itself as Cinder. It was abstracted from the Nova project.

Getting Started

If you'd like to run from the master branch, you can clone the git repo:

git clone https://git.openstack.org/openstack/cinder.git

For developer information please see HACKING.rst

You can raise bugs here https://bugs.launchpad.net/cinder

Python client

https://git.openstack.org/cgit/openstack/python-cinderclient