]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Stop volume_type_encryption creation when in use
authorBrianna Poulos <Brianna.Poulos@jhuapl.edu>
Wed, 29 Jan 2014 20:49:20 +0000 (15:49 -0500)
committerBrianna Poulos <Brianna.Poulos@jhuapl.edu>
Wed, 29 Jan 2014 20:49:20 +0000 (15:49 -0500)
commit9afbd3fbba201ee606cf6e3b57675d3fbf9514b2
tree9a5089401e135449aad0baa6cbecc0d3ae9bf0e8
parent617f2969679cda86fd6320796ceb7b124c0ae5fd
Stop volume_type_encryption creation when in use

This bug fix addresses bug #1274252.  It requires a volume
type to have no volumes with the type before allowing it
to be made encrypted.  This prevents a situation where
non-encrypted volumes could have an encrypted volume type.
This fix also adds a unit test to confirm functionality.

Change-Id: Iab0954c2d0af73bce28be7fa319b8b34ca20e720
Closes-Bug: #1274252
cinder/api/contrib/volume_type_encryption.py
cinder/tests/api/contrib/test_volume_type_encryption.py