From b9ef6efa975f8a88bb7b3f61bdedc577bc141b3c Mon Sep 17 00:00:00 2001
From: Cao Shufeng <caosf.fnst@cn.fujitsu.com>
Date: Fri, 2 Sep 2016 05:12:42 -0400
Subject: [PATCH] Remove doc for promote/reenable replica

Cinder v2 api no longer supports replication 1.0 and the apis for
os-promote-replica and os-reenable-replica [1][2].
These 2 api had been removed in this patch[3].

We should update the doc about it.
Trivial Fix

[1]: http://developer.openstack.org/api-ref-blockstorage-v2.html#promotereplicaVolume
[2]: http://developer.openstack.org/api-ref-blockstorage-v2.html#reenablereplicaVolume
[3]: https://review.openstack.org/#/c/275797/35/cinder/api/contrib/volume_replication.py

Change-Id: I6e4f0174b4ac5d7861925354ac3860b8f1c55b84
---
 api-ref/source/v2/parameters.yaml             | 12 ----
 .../volume-replica-promote-request.json       |  3 -
 .../volume-replica-reenable-request.json      |  3 -
 .../source/v2/volumes-v2-volumes-actions.inc  | 64 -------------------
 4 files changed, 82 deletions(-)
 delete mode 100644 api-ref/source/v2/samples/volume-replica-promote-request.json
 delete mode 100644 api-ref/source/v2/samples/volume-replica-reenable-request.json

diff --git a/api-ref/source/v2/parameters.yaml b/api-ref/source/v2/parameters.yaml
index 241507fee48..c1c690d36fa 100644
--- a/api-ref/source/v2/parameters.yaml
+++ b/api-ref/source/v2/parameters.yaml
@@ -1037,18 +1037,6 @@ os-force_detach:
   in: body
   required: true
   type: object
-os-promote-replica:
-  description: |
-    The ``os-promote-replica`` action.
-  in: body
-  required: true
-  type: object
-os-reenable-replica:
-  description: |
-    The ``os-reenable-replica`` action.
-  in: body
-  required: true
-  type: object
 os-reset_status:
   description: |
     The ``os-reset_status`` action.
diff --git a/api-ref/source/v2/samples/volume-replica-promote-request.json b/api-ref/source/v2/samples/volume-replica-promote-request.json
deleted file mode 100644
index 9ed522325bb..00000000000
--- a/api-ref/source/v2/samples/volume-replica-promote-request.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
-    "os-promote-replica": {}
-}
diff --git a/api-ref/source/v2/samples/volume-replica-reenable-request.json b/api-ref/source/v2/samples/volume-replica-reenable-request.json
deleted file mode 100644
index d622b08ca7b..00000000000
--- a/api-ref/source/v2/samples/volume-replica-reenable-request.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
-    "os-reenable-replica": {}
-}
diff --git a/api-ref/source/v2/volumes-v2-volumes-actions.inc b/api-ref/source/v2/volumes-v2-volumes-actions.inc
index f0b25ae8258..a76a4ed3528 100644
--- a/api-ref/source/v2/volumes-v2-volumes-actions.inc
+++ b/api-ref/source/v2/volumes-v2-volumes-actions.inc
@@ -267,67 +267,3 @@ Request Example
 
 
 
-Promote replicated volume
-=========================
-
-.. rest_method::  POST /v2/{tenant_id}/volumes/{volume_id}/action
-
-Promotes a replicated volume. Specify the ``os-promote-replica`` action in the request body.
-
-Error response codes:202,
-
-
-Request
--------
-
-.. rest_parameters:: parameters.yaml
-
-   - os-promote-replica: os-promote-replica
-   - tenant_id: tenant_id
-   - volume_id: volume_id
-
-Request Example
----------------
-
-.. literalinclude:: ./samples/volume-replica-promote-request.json
-   :language: javascript
-
-
-
-
-
-
-
-Reenable volume replication
-===========================
-
-.. rest_method::  POST /v2/{tenant_id}/volumes/{volume_id}/action
-
-Re-enables replication of a volume. Specify the ``volume-replica-reenable`` action in the request body.
-
-Error response codes:202,
-
-
-Request
--------
-
-.. rest_parameters:: parameters.yaml
-
-   - os-reenable-replica: os-reenable-replica
-   - size: size
-   - os-volume-replication:driver_data: os-volume-replication:driver_data
-   - os-volume-replication:extended_status: os-volume-replication:extended_status
-   - tenant_id: tenant_id
-   - volume_id: volume_id
-
-Request Example
----------------
-
-.. literalinclude:: ./samples/volume-replica-reenable-request.json
-   :language: javascript
-
-
-
-
-
-