From f242907f0135eb1d1bc3fa12fd9a312f82b80c85 Mon Sep 17 00:00:00 2001 From: wangzhenyu Date: Tue, 14 Mar 2017 10:18:04 +0800 Subject: [PATCH] Add missing and incorrect response and error codes in cinder api-ref Closes-bug: 1674161 Change-Id: I963f0aa7de6c3df95c1341cac15da178032db1d3 --- api-ref/source/v3/consistencygroups-v3.inc | 8 ++++---- api-ref/source/v3/os-cgsnapshots-v3.inc | 4 ++-- api-ref/source/v3/os-vol-image-meta-v3.inc | 2 +- api-ref/source/v3/os-vol-transfer-v3.inc | 6 +++--- api-ref/source/v3/qos-specs-v3-qos-specs.inc | 10 +++++----- api-ref/source/v3/volume-manage.inc | 2 +- api-ref/source/v3/volume-type-access.inc | 4 ++-- api-ref/source/v3/volumes-v3-snapshots.inc | 4 ++-- api-ref/source/v3/volumes-v3-types.inc | 2 +- api-ref/source/v3/volumes-v3-volumes-actions.inc | 14 +++++++------- api-ref/source/v3/volumes-v3-volumes.inc | 6 +++--- 11 files changed, 31 insertions(+), 31 deletions(-) diff --git a/api-ref/source/v3/consistencygroups-v3.inc b/api-ref/source/v3/consistencygroups-v3.inc index 20f7004dc76..3d1094ee21f 100644 --- a/api-ref/source/v3/consistencygroups-v3.inc +++ b/api-ref/source/v3/consistencygroups-v3.inc @@ -60,7 +60,7 @@ Create a consistency group Creates a consistency group. -Error response codes:202, +Normal response codes: 202 Request @@ -144,7 +144,7 @@ Create a consistency group from source Creates a consistency group from source. -Error response codes:202, +Normal response codes: 202 Request @@ -175,7 +175,7 @@ Delete a consistency group Deletes a consistency group. -Error response codes:202, +Normal response codes: 202 Request @@ -245,7 +245,7 @@ Update a consistency group Updates a consistency group. -Error response codes:202, +Normal response codes: 202 Request diff --git a/api-ref/source/v3/os-cgsnapshots-v3.inc b/api-ref/source/v3/os-cgsnapshots-v3.inc index 494a1674d81..a665aa940df 100644 --- a/api-ref/source/v3/os-cgsnapshots-v3.inc +++ b/api-ref/source/v3/os-cgsnapshots-v3.inc @@ -14,7 +14,7 @@ Delete a consistency group snapshot Deletes a consistency group snapshot. -Error response codes:202, +Normal response codes: 202 Request @@ -149,7 +149,7 @@ Create a consistency group snapshot Creates a consistency group snapshot. -Error response codes:202, +Normal response codes: 202 Request ------- diff --git a/api-ref/source/v3/os-vol-image-meta-v3.inc b/api-ref/source/v3/os-vol-image-meta-v3.inc index ee95e11cc99..b3d83abdda5 100644 --- a/api-ref/source/v3/os-vol-image-meta-v3.inc +++ b/api-ref/source/v3/os-vol-image-meta-v3.inc @@ -19,7 +19,7 @@ may interpret the existing storage volume reference differently but should accept a reference structure containing either a ``source- volume-id`` or ``source-volume-name`` element, if possible. -Error response codes:202, +Normal response codes: 202 Request diff --git a/api-ref/source/v3/os-vol-transfer-v3.inc b/api-ref/source/v3/os-vol-transfer-v3.inc index d57c902e93b..778bf247dad 100644 --- a/api-ref/source/v3/os-vol-transfer-v3.inc +++ b/api-ref/source/v3/os-vol-transfer-v3.inc @@ -13,7 +13,7 @@ Accept a volume transfer Accepts a volume transfer. -Error response codes:202, +Normal response codes: 202 Request @@ -51,7 +51,7 @@ Create a volume transfer Creates a volume transfer. -Error response codes:202, +Normal response codes: 202 Request @@ -168,7 +168,7 @@ Delete a volume transfer Deletes a volume transfer. -Error response codes:202, +Normal response codes: 202 Request diff --git a/api-ref/source/v3/qos-specs-v3-qos-specs.inc b/api-ref/source/v3/qos-specs-v3-qos-specs.inc index bba67967714..5847222595f 100644 --- a/api-ref/source/v3/qos-specs-v3-qos-specs.inc +++ b/api-ref/source/v3/qos-specs-v3-qos-specs.inc @@ -17,7 +17,7 @@ Disassociate a QoS specification from all associations Disassociates a QoS specification from all associations. -Error response codes:202, +Normal response codes: 202 Request @@ -100,7 +100,7 @@ Associate QoS specification with a volume type Associates a QoS specification with a volume type. -Error response codes:202, +Normal response codes: 202 Request @@ -119,7 +119,7 @@ Disassociate QoS specification from a volume type Disassociates a QoS specification from a volume type. -Error response codes:202, +Normal response codes: 202 Request @@ -215,7 +215,7 @@ Delete a QoS specification Deletes a QoS specification. -Error response codes:202, +Normal response codes: 202 Request @@ -237,7 +237,7 @@ Creates a QoS specification. Specify one or more key and value pairs in the request body. -Error response codes:202, +Normal response codes: 202 Request diff --git a/api-ref/source/v3/volume-manage.inc b/api-ref/source/v3/volume-manage.inc index 0b17df9efb6..72c769e663f 100644 --- a/api-ref/source/v3/volume-manage.inc +++ b/api-ref/source/v3/volume-manage.inc @@ -27,7 +27,7 @@ Prior to microversion 3.16 host field was required, with the possibility of defining the cluster it is no longer required, but we must have either a host or a cluster field but we cannot have them both with values. -Error response codes:202, +Normal response codes: 202 Request diff --git a/api-ref/source/v3/volume-type-access.inc b/api-ref/source/v3/volume-type-access.inc index f4d80310ca5..d1bfa11214e 100644 --- a/api-ref/source/v3/volume-type-access.inc +++ b/api-ref/source/v3/volume-type-access.inc @@ -20,7 +20,7 @@ Add private volume type access to project Adds private volume type access to a project. -Error response codes:202, +Normal response codes: 202 Request @@ -46,7 +46,7 @@ Remove private volume type access from project Removes private volume type access from a project. -Error response codes:202, +Normal response codes: 202 Request diff --git a/api-ref/source/v3/volumes-v3-snapshots.inc b/api-ref/source/v3/volumes-v3-snapshots.inc index e3304f85283..eb18c0750cc 100644 --- a/api-ref/source/v3/volumes-v3-snapshots.inc +++ b/api-ref/source/v3/volumes-v3-snapshots.inc @@ -76,7 +76,7 @@ Create a snapshot Creates a volume snapshot, which is a point-in-time, complete copy of a volume. You can create a volume from a snapshot. -Error response codes:202, +Normal response codes: 202 Request @@ -346,7 +346,7 @@ Delete a snapshot Deletes a snapshot. -Error response codes:202, +Normal response codes: 202 Request diff --git a/api-ref/source/v3/volumes-v3-types.inc b/api-ref/source/v3/volumes-v3-types.inc index 95e40275f40..00d73de6e85 100644 --- a/api-ref/source/v3/volumes-v3-types.inc +++ b/api-ref/source/v3/volumes-v3-types.inc @@ -159,7 +159,7 @@ Delete a volume type Deletes a volume type. -Error response codes:202, +Normal response codes: 202 Request diff --git a/api-ref/source/v3/volumes-v3-volumes-actions.inc b/api-ref/source/v3/volumes-v3-volumes-actions.inc index 8b090abcc6a..6c18309c7a8 100644 --- a/api-ref/source/v3/volumes-v3-volumes-actions.inc +++ b/api-ref/source/v3/volumes-v3-volumes-actions.inc @@ -32,7 +32,7 @@ Troubleshooting request. If the request fails again, investigate the storage back end. -Error response codes:202, +Normal response codes: 202 Request @@ -64,7 +64,7 @@ Reset a volume's statuses Administrator only. Resets the status, attach status, and migration status for a volume. Specify the ``os-reset_status`` action in the request body. -Error response codes:202, +Normal response codes: 202 Request @@ -98,7 +98,7 @@ Set image metadata for a volume Sets the image metadata for a volume. Specify the ``os-set_image_metadata`` action in the request body. -Error response codes:202, +Normal response codes: 202 Request @@ -130,7 +130,7 @@ Remove image metadata from a volume Removes image metadata, by key, from a volume. Specify the ``os-unset_image_metadata`` action in the request body and the ``key`` for the metadata key and value pair that you want to remove. -Error response codes:202, +Normal response codes: 202 Request @@ -168,7 +168,7 @@ Preconditions - You should set ``instance_uuid`` or ``host_name``. -Error response codes:202, +Normal response codes: 202 Request @@ -206,7 +206,7 @@ Preconditions - Volume status must be ``available``. -Error response codes:202, +Normal response codes: 202 Request @@ -240,7 +240,7 @@ Forces a volume to detach. Specify the ``os-force_detach`` action in the request Rolls back an unsuccessful detach operation after you disconnect the volume. -Error response codes:202, +Normal response codes: 202 Request diff --git a/api-ref/source/v3/volumes-v3-volumes.inc b/api-ref/source/v3/volumes-v3-volumes.inc index 1ec89b38e2f..acaff99283c 100644 --- a/api-ref/source/v3/volumes-v3-volumes.inc +++ b/api-ref/source/v3/volumes-v3-volumes.inc @@ -147,7 +147,7 @@ Troubleshooting - The storage node needs enough free storage space to match the size of the volume creation request. -Error response codes:202, +Normal response codes: 202 Request @@ -428,7 +428,7 @@ Troubleshooting - The volume managed by OpenStack Block Storage is not deleted from the storage system. -Error response codes:202, +Normal response codes: 202 Request @@ -451,7 +451,7 @@ Create metadata for volume Creates metadata for a volume. -Error response codes:202, +Normal response codes: 202 Request