]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add user defined extra capabilities
authorOllie Leahy <oliver.leahy@hp.com>
Thu, 9 Jan 2014 15:14:11 +0000 (15:14 +0000)
committerOllie Leahy <oliver.leahy@hp.com>
Tue, 4 Mar 2014 17:47:46 +0000 (17:47 +0000)
commit9bcd7285b575cdcf0fe521bf01609bd21c48fd1c
treee606216ed24fec23e6ef09f5b8d500d38d0e015a
parentee371dfc56e9a633ba56bd05f7a32a1e3744fef2
Add user defined extra capabilities

Provide a mechanism that will allow sys admins who are managing cinder
installations with multiple backends to assign key/value pairs to
backends. The key/value pairs can be used by the capabilities scheduler
to select between backends when requests specify volume types.

For example a sysadmin could specify the key 'service_level' with the
values 'high', 'medium' and 'low' for different backends. The sys admin
specifies the 'service_level' for each backend in cinder.conf as a json
string, for example:

extra_capabilities='{"service_level"="high"}'

or

extra_capabilities='{"service_level"="medium"}'

DocImpact
Implements: blueprint admin-defined-capabilities
Change-Id: I1ee9dcb22b3f097c3f3b2a70b0cb672930407cc9
cinder/tests/test_volume.py
cinder/volume/manager.py
etc/cinder/cinder.conf.sample