cinder/cinder/api
Zhiteng Huang 80b14a5471 Allow scheduler pool information to be retrieved
With pool support added to Cinder, now we are kind of in an awkward
situation where we require admin to input exact location for volumes
to-be managed (imported) or migrated, which must have pool info, but
there is no way to find out what pools are there for backends except
looking at the scheduler log.  That causes bad user experience, and
thus is a bug from UX POV.

This change simply adds a new admin-api extension to allow admin to
fetch all the pool information from scheduler cache (memory), which
closes the gap for end users.

This extension provides two level of pool information: names only or
detailed information:

Pool name only:
GET http://CINDER_API_ENDPOINT/v2/TENANT_ID/scheduler-stats/get_pools

Detailed Pool info:
GET http://CINDER_API_ENDPOINT/v2/TENANT_ID/scheduler-stats/get_pools
\?detail\=True

Closes-bug: #1364279

Change-Id: I445d4e472c83db2f2d8db414de139c87d09f8fda
2014-09-20 11:04:12 -07:00
..
contrib Allow scheduler pool information to be retrieved 2014-09-20 11:04:12 -07:00
middleware Use oslo.i18n 2014-08-08 17:26:41 -05:00
openstack Deprecate the V1 API 2014-09-04 20:24:37 -07:00
schemas Add XML deserializer for qos_manage delete_keys API 2014-05-25 11:37:30 +08:00
v1 Fix variable name in api/v<n>/snapshot.py 2014-08-20 13:12:09 -06:00
v2 Consistency Groups 2014-08-27 01:47:31 -04:00
views Allow scheduler pool information to be retrieved 2014-09-20 11:04:12 -07:00
__init__.py Deprecate the V1 API 2014-09-04 20:24:37 -07:00
auth.py Use oslo.i18n 2014-08-08 17:26:41 -05:00
common.py Merge "Fixed Typo - from hypens to hyphens" 2014-09-10 09:21:15 +00:00
extensions.py Use oslo.i18n 2014-08-08 17:26:41 -05:00
sizelimit.py Use oslo.i18n 2014-08-08 17:26:41 -05:00
urlmap.py Enable import group hacking rule 2014-08-14 13:10:58 +08:00
versions.py Deprecate the V1 API 2014-09-04 20:24:37 -07:00
xmlutil.py Deprecate the V1 API 2014-09-04 20:24:37 -07:00