]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Allow specified backend capabilities to be retrieved
authorMitsuhiro Tanino <mitsuhiro.tanino@hds.com>
Mon, 10 Aug 2015 20:44:25 +0000 (16:44 -0400)
committerMitsuhiro Tanino <mitsuhiro.tanino@hds.com>
Tue, 1 Sep 2015 04:56:41 +0000 (04:56 +0000)
commite7b93bee03040606e72b3978433c58574b11ad67
treeed86a0b45e403af678137a4fd7db6defb89cee5d
parent0e2783360ce730beed3423bee31ad9726a51c8e1
Allow specified backend capabilities to be retrieved

This change adds a new admin-api extension to allow admin to
fetch specified backend capabilities.
With this extension, admin can obtain what the current deployed
backend in Cinder is able to do from the endpoint.

The extension takes "host" as an parameter.
GET http://CINDER_API_ENDPOINT/v2/TENANT_ID/capabilities/<host>

DocImpact
Implements: blueprint get-volume-type-extra-specs
Change-Id: Ie8c3a3e554983f2e0819d52cf6d2db5efe7a0983
cinder/api/contrib/capabilities.py [new file with mode: 0644]
cinder/api/views/capabilities.py [new file with mode: 0644]
cinder/tests/unit/api/contrib/test_capabilities.py [new file with mode: 0644]
cinder/tests/unit/policy.json
etc/cinder/policy.json