Add metadefs for Cinder volume type configuration

The following Cinder patch adds support to specify Cinder volume type
via cinder_img_volume_type parameter in glance properties on image
metadata. The property should be added in the Metadata Definitions
catalog.

https://review.openstack.org/#/c/258649/

DocImpact: Add cinder_img_volume_type to Image service property
           keys list at CLI reference.
           http://docs.openstack.org/cli-reference/glance.html
Change-Id: I3bbb20fdf153e12b7461fa9ea9fa172a8d603093
Depends-On: I62f02d817d84d3a7b651db36d7297299b1af2fe3
This commit is contained in:
Mitsuhiro Tanino 2016-01-15 17:12:35 -05:00
parent 7d5c3710ce
commit 44629deb81

View File

@ -0,0 +1,20 @@
{
"namespace": "OS::Cinder::Volumetype",
"display_name": "Cinder Volume Type",
"description": "The Cinder volume type configuration option. Volume type assignment provides a mechanism not only to provide scheduling to a specific storage back-end, but also can be used to specify specific information for a back-end storage device to act upon.",
"visibility": "public",
"protected": true,
"resource_type_associations": [
{
"name": "OS::Glance::Image",
"prefix": "cinder_"
}
],
"properties": {
"img_volume_type": {
"title": "Image Volume Type",
"description": "Specifies the volume type that should be applied during new volume creation with a image. This value is passed to Cinder when creating a new volume. Priority of volume type related parameters are 1.volume_type(via API or CLI), 2.cinder_img_volume_type, 3.default_volume_type(via cinder.conf). If not specified, volume_type or default_volume_type will be referred based on their priority.",
"type": "string"
}
}
}