From 44629deb81d153b673d520af44d384b59bfb1a31 Mon Sep 17 00:00:00 2001 From: Mitsuhiro Tanino Date: Fri, 15 Jan 2016 17:12:35 -0500 Subject: [PATCH] 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 --- etc/metadefs/storage-volume-type.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 etc/metadefs/storage-volume-type.json diff --git a/etc/metadefs/storage-volume-type.json b/etc/metadefs/storage-volume-type.json new file mode 100644 index 0000000000..76d26e5172 --- /dev/null +++ b/etc/metadefs/storage-volume-type.json @@ -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" + } + } +}