From 82277d7832bbb10ee5bb6906c0ab3c89ff7c0844 Mon Sep 17 00:00:00 2001
From: caoyuan <cao.yuan@99cloud.net>
Date: Thu, 8 Dec 2016 23:22:20 +0800
Subject: [PATCH] [admin-guide] Update the "cinder create" to "openstack"

Change-Id: I2275924359fd0653b17e0356f83faee828f2ed0e
Implements: blueprint use-openstack-command
---
 .../source/blockstorage-consistency-groups.rst | 12 +++++++++---
 .../source/cli-cinder-scheduling.rst           | 18 ++++++++++++------
 2 files changed, 21 insertions(+), 9 deletions(-)

diff --git a/doc/admin-guide/source/blockstorage-consistency-groups.rst b/doc/admin-guide/source/blockstorage-consistency-groups.rst
index c41f109b3b..ac49bb278a 100644
--- a/doc/admin-guide/source/blockstorage-consistency-groups.rst
+++ b/doc/admin-guide/source/blockstorage-consistency-groups.rst
@@ -123,6 +123,12 @@ consistency group snapshot:
 
 The details of consistency group operations are shown in the following.
 
+   .. note::
+
+      Currently, no OpenStack client command is available to run in
+      place of the cinder consistency group creation commands. Use the
+      cinder commands detailed in the following examples.
+
 **Create a consistency group**:
 
 .. code-block:: console
@@ -195,11 +201,11 @@ The details of consistency group operations are shown in the following.
 
 .. code-block:: console
 
-   $ cinder create --volume-type volume_type_1 --name cgBronzeVol\
-     --consisgroup-id 1de80c27-3b2f-47a6-91a7-e867cbe36462 1
+   $ openstack volume create --type volume_type_1 --consistency-group \
+     1de80c27-3b2f-47a6-91a7-e867cbe36462 --size 1 cgBronzeVol
 
    +---------------------------------------+--------------------------------------+
-   |                Property               |                Value                 |
+   | Field                                 | Value                                |
    +---------------------------------------+--------------------------------------+
    |              attachments              |                  []                  |
    |           availability_zone           |                 nova                 |
diff --git a/doc/admin-guide/source/cli-cinder-scheduling.rst b/doc/admin-guide/source/cli-cinder-scheduling.rst
index 51a2370682..d33dd7c993 100644
--- a/doc/admin-guide/source/cli-cinder-scheduling.rst
+++ b/doc/admin-guide/source/cli-cinder-scheduling.rst
@@ -18,35 +18,41 @@ Example Usages
 
    .. code-block:: console
 
-      $ cinder create --hint same_host=Volume_A-UUID SIZE
+      $ openstack volume create --hint same_host=Volume_A-UUID \
+        --size SIZE VOLUME_NAME
 
 #. Create a new volume on a different back end than Volume_A:
 
    .. code-block:: console
 
-      $ cinder create --hint different_host=Volume_A-UUID SIZE
+      $ openstack volume create --hint different_host=Volume_A-UUID \
+        --size SIZE VOLUME_NAME
 
 #. Create a new volume on the same back end as Volume_A and Volume_B:
 
    .. code-block:: console
 
-      $ cinder create --hint same_host=Volume_A-UUID --hint same_host=Volume_B-UUID SIZE
+      $ openstack volume create --hint same_host=Volume_A-UUID \
+        --hint same_host=Volume_B-UUID --size SIZE VOLUME_NAME
 
    Or:
 
    .. code-block:: console
 
-      $ cinder create --hint same_host="[Volume_A-UUID, Volume_B-UUID]" SIZE
+      $ openstack volume create --hint same_host="[Volume_A-UUID, \
+        Volume_B-UUID]" --size SIZE VOLUME_NAME
 
 #. Create a new volume on a different back end than both Volume_A and
    Volume_B:
 
    .. code-block:: console
 
-      $ cinder create --hint different_host=Volume_A-UUID --hint different_host=Volume_B-UUID SIZE
+      $ openstack volume create --hint different_host=Volume_A-UUID \
+        --hint different_host=Volume_B-UUID --size SIZE VOLUME_NAME
 
    Or:
 
    .. code-block:: console
 
-      $ cinder create --hint different_host="[Volume_A-UUID, Volume_B-UUID]" SIZE
+      $ openstack volume create --hint different_host="[Volume_A-UUID, \
+        Volume_B-UUID]" --size SIZE VOLUME_NAME