cinder/cinder/volume
Matt Riedemann 9c0123eb70 Fix _attachment_reserve to not allow attaching an invalid status volume
It is currently possible to create a volume attachment for a server
when the volume is in error status because of the override logic
in the _attachment_reserve method. What results is that the volume
attach operation fails in nova-compute which rolls back and deletes
the volume attachment, which puts the volume into 'available' status
because it no longer has any attachments, which in fact it should
have never allowed the attachment create/reserve in the first place.

This updates the override logic such that a volume without any
attachments which is in an invalid status will result in an error
being raised.

Change-Id: Id9cf2f510684cd296ffbcaf53d11889cfe8973b9
Closes-Bug: #1785050
2018-08-08 16:44:33 -04:00
..
drivers Fix one help description of rbd driver 2018-08-08 15:51:22 +08:00
flows Set bootable when creating volume from snapshot 2018-08-01 05:35:15 +00:00
targets Fix Port nvmet driver to use privsep 2018-07-16 15:04:04 +00:00
__init__.py Fix dynamic import of CONF.volume_api_class 2016-02-12 10:50:31 -06:00
api.py Fix _attachment_reserve to not allow attaching an invalid status volume 2018-08-08 16:44:33 -04:00
configuration.py Add support for shared "backend_defaults" config 2017-07-11 18:58:58 +00:00
driver.py Fix invalid escape sequence warnings 2018-06-20 16:22:26 -05:00
driver_utils.py Remove log translations 2017-03-19 14:59:57 +00:00
group_types.py handle no default_cgsnapshot_type 2017-11-28 21:55:29 +00:00
manager.py Add ability to specify minimum value when using capacity based QoS 2018-08-03 11:00:40 -04:00
qos_specs.py [Doc] Handle Sphinx warnings as errors 2017-08-29 16:00:09 -05:00
rpcapi.py Transfer snapshots with volumes 2018-07-19 09:42:43 +08:00
throttling.py Implement privsep boilerplate in cinder. 2018-06-06 09:42:54 +08:00
utils.py Fix invalid escape sequence warnings 2018-06-20 16:22:26 -05:00
volume_types.py Volume type with encryption comparison 2017-07-25 05:08:12 +00:00