]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
CG API should return volume type IDs
authorDeepti Ramakrishna <deepti.ramakrishna@intel.com>
Thu, 19 Nov 2015 08:43:49 +0000 (00:43 -0800)
committerDeepti Ramakrishna <deepti.ramakrishna@intel.com>
Tue, 24 Nov 2015 07:09:02 +0000 (23:09 -0800)
commit926c6f9fb5da28cc09499d7539581581e825e62c
tree63a96e051e39c55bc533f958975e83034a337c9a
parentb981262064cc27323fbd1faa0b231c7a4e427aad
CG API should return volume type IDs

The create method of consistency group API requires a list of
volume type ids; volumes belonging to only these types can be added
to the consistency group. The get method of the consistency group API
does not, however, return the volume type id information.

Horizon needs this value for its "Add volumes to consistency group"
panel so that it can filter the "available volumes" list to only
show volumes that match the volume type associated with the consistency
group.

This was fixed by propagating the volume type id information in
the api layer (this information is stored in the db, it just wasn't
being propagated).

APIImpact
The get method of the consistency group API now returns the volume
type ids information.

DocImpact
The screenshots in the admin guide (see
http://docs.openstack.org/admin-guide-cloud/blockstorage-consistency-groups.html)
should be updated to show this new field.

Change-Id: Icc3206c67227af38a7bf89ea0145942f750b506b
Closes-Bug: #1489957
cinder/api/views/consistencygroups.py
cinder/tests/unit/api/contrib/test_consistencygroups.py