cinder/cinder/tests/unit/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 Merge "VMAX Driver - Fix for get-pools and returned Service Levels" 2018-08-07 23:26:58 +00:00
flows Set bootable when creating volume from snapshot 2018-08-01 05:35:15 +00:00
__init__.py Fix volume retype with migration as non-admin 2017-02-15 17:31:59 -02:00
test_availability_zone.py Make service object UUID not nullable 2017-10-26 10:17:50 -06:00
test_capabilities.py Trivial fix typos 2017-05-17 10:57:40 +07:00
test_connection.py Add ability to specify minimum value when using capacity based QoS 2018-08-03 11:00:40 -04:00
test_driver.py Fix cinder quota-usage error 2018-01-27 16:41:33 +08:00
test_image.py Cloning image fails results duplicate cache entry 2018-06-07 15:44:06 +05:30
test_init_host.py Handle migrating encryption key IDs in Backup table 2018-04-03 12:23:38 -04:00
test_manage_volume.py [3/11] Refactor test_volume file 2017-02-08 23:38:23 +00:00
test_replication_manager.py Fix: Incorrect replication status on clusters 2018-03-22 12:01:40 +01:00
test_rpcapi.py Transfer snapshots with volumes 2018-07-19 09:42:43 +08:00
test_snapshot.py Sync snapshot's encryption_key_id with volume's value 2018-03-20 11:18:25 -04:00
test_volume.py Fix _attachment_reserve to not allow attaching an invalid status volume 2018-08-08 16:44:33 -04:00
test_volume_migration.py Fix AZ not matching backend after migration 2018-02-08 15:59:41 +01:00
test_volume_retype.py Handling type's multiattach extra specs in API task flow 2018-06-28 09:48:08 +08:00
test_volume_usage_audit.py [5/11] Refactor test_volume file 2017-02-08 23:38:42 +00:00