From 5553f4f219d381d6bf420dd6cfc3a2bbc7bfcf38 Mon Sep 17 00:00:00 2001 From: wangxiyuan Date: Wed, 27 Jan 2016 14:56:24 +0800 Subject: [PATCH] Fix some error in Cinder v2 This patch fixed some error in Cinder v2: 1. There are more than one "created_at" in volume request. 2. The links's name is "metadata" which is wrong. 3. The request for "Create Volume" should include "scheduler_hints". 4. The volume update request is wrong and is missing in pdf. 5. When create a snapshot, the volume_id is required and size can't be changed. Closes-bug: #1517065 Change-Id: Iaae6a9cf717f8f989eb7ce9def1d6eee56eb5c3a --- api-ref/src/wadls/volume-api/src/common.ent | 51 +++++++++++++++++-- .../volume-api/src/v2/wadl/volumes-v2.wadl | 24 ++------- 2 files changed, 51 insertions(+), 24 deletions(-) diff --git a/api-ref/src/wadls/volume-api/src/common.ent b/api-ref/src/wadls/volume-api/src/common.ent index ccd29709d..b14016d9d 100644 --- a/api-ref/src/wadls/volume-api/src/common.ent +++ b/api-ref/src/wadls/volume-api/src/common.ent @@ -2375,9 +2375,55 @@ The UUID of the consistency group. + + + + + The dictionary of data to send to the scheduler. + + +'> + + + + The volume name. + + + + + + + The volume description. + + + + + + + One or more metadata key and value pairs that are associated with the + volume. + + '> - + -&created_at-ResponseParameter; - + &volumeObjectParameter; + &updateVolumeRequestParameters; @@ -425,8 +427,6 @@ href="../samples/volumes/volume-update-request.json" /> - &volumeObjectParameter; - &createVolumeRequestParameters; @@ -1188,17 +1188,8 @@ - - - - The size for the volume, in gibibytes (GiB). - - - + required="true"> @@ -1430,15 +1421,6 @@ - - - - The size for the volume, in gibibytes (GiB). - - -