[admin-guide] Update the "cinder create" to "openstack"

Change-Id: I2275924359fd0653b17e0356f83faee828f2ed0e
Implements: blueprint use-openstack-command
This commit is contained in:
caoyuan 2016-12-08 23:22:20 +08:00 committed by Joseph Robinson
parent c278492dc7
commit 82277d7832
2 changed files with 21 additions and 9 deletions

View File

@ -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 |

View File

@ -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