Update the usage of "cinder snapshot-create" and the output of "cinder"

Change-Id: I1c7a0bd8b51eb999079b3deafadcf131029783a8
This commit is contained in:
caoyuan 2016-10-06 15:04:18 +00:00
parent d74be5b6c5
commit 06b6a91c0a

View File

@ -870,11 +870,11 @@ volumes and the instances they are connected to, if any:
.. code-block:: console .. code-block:: console
$ cinder list $ cinder list
+------------+---------+--------------------+------+-------------+-------------+ +------------+-----------+-------------+------+-------------+----------+-------------+
| ID | Status | Display Name | Size | Volume Type | Attached to | | ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+------------+---------+--------------------+------+-------------+-------------+ +------------+-----------+-------------+------+-------------+----------+-------------+
| 0821...19f | active | | 10 | None | | | 0821...19f | available | - | 10 | - | false | |
+------------+---------+--------------------+------+-------------+-------------+ +------------+-----------+-------------+------+-------------+----------+-------------+
OpenStack Block Storage also allows creating snapshots of volumes. OpenStack Block Storage also allows creating snapshots of volumes.
Remember that this is a block-level snapshot that is crash consistent, Remember that this is a block-level snapshot that is crash consistent,
@ -891,20 +891,28 @@ or run this from the command line:
.. code-block:: console .. code-block:: console
$ cinder help snapshot-create $ cinder help snapshot-create
usage: cinder snapshot-create [--force <True|False>] usage: cinder snapshot-create [--force [<True|False>]] [--name <name>]
[--display-name <display-name>] [--description <description>]
[--display-description <display-description>] [--metadata [<key=value> [<key=value> ...]]]
<volume-id> <volume>
Add a new snapshot.
Positional arguments: <volume-id> ID of the volume to snapshot Creates a snapshot.
Optional arguments: --force <True|False> Optional flag to indicate whether to
snapshot a volume even if its Positional arguments:
attached to an instance. <volume-id> Name or ID of volume to snapshot.
(Default=False)
--display-name <display-name> Optional snapshot name. Optional arguments:
(Default=None) --force [<True|False>]
--display-description <display-description> Allows or disallows snapshot of a volume when the
Optional snapshot description. (Default=None) volume is attached to an instance. If set to True,
ignores the current status of the volume when
attempting to snapshot it rather than forcing it to be
available. Default=False.
--name <name> Snapshot name. Default=None.
--description <description>
Snapshot description. Default=None.
--metadata [<key=value> [<key=value> ...]]
Snapshot metadata key and value pairs. Default=None.
.. note:: .. note::