]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add encrypted flag to volumes
authorBrianna Poulos <Brianna.Poulos@jhuapl.edu>
Mon, 10 Feb 2014 21:13:59 +0000 (16:13 -0500)
committerBrianna Poulos <Brianna.Poulos@jhuapl.edu>
Fri, 14 Feb 2014 17:59:47 +0000 (12:59 -0500)
commit3caa76a2b24a586783e22f045d0c40aeffed91b9
treeebdaf6f3520b251ecd5b5434e5350babed3325f0
parentae5ae5079e10f2810b8ba5a29fcddcd10f2f9b38
Add encrypted flag to volumes

Currently, the only way to determine whether a volume is encrypted
is by retrieving the encryption metadata about the volume (through
cinder.api.contrib.volume_encryption_metadata) and checking the
encryption_key_id value.  This patch adds an "encrypted" flag to
the basic volume api to enable other services (like Horizon: see
patch https://review.openstack.org/#/c/71125) to easily tell
whether a volume is encrypted using a basic get call,instead of
requiring an additional call.

Implements blueprint encrypt-cinder-volumes
https://blueprints.launchpad.net/nova/+spec/encrypt-cinder-volumes

Change-Id: Id8e422135f17795de06589930afd0309fde28fd1
cinder/api/v1/volumes.py
cinder/api/v2/views/volumes.py
cinder/tests/api/v1/test_volumes.py
cinder/tests/api/v2/stubs.py
cinder/tests/api/v2/test_volumes.py