summaryrefslogtreecommitdiff
path: root/doc/source/command-objects
diff options
context:
space:
mode:
authorHuanxuan Ao <huanxuan.ao@easystack.cn>2016-09-27 12:27:05 +0800
committerHuanxuan Ao <huanxuan.ao@easystack.cn>2016-09-28 10:13:56 +0800
commitc9e0c01f67a00e63bb5d8b5781d7e8e87b39136c (patch)
treee7eba5ad18742e06fa3232214ab252cb6726ad23 /doc/source/command-objects
parent8d63b8b263ca4011761b062331d53d9b53b5031d (diff)
downloadpython-openstackclient-c9e0c01f67a00e63bb5d8b5781d7e8e87b39136c.tar.gz
Add and modify options for "volume create" command
1.Add mutually exclusive options into a mutually exclusive group. 2.Add "--source-replicated", "--consistency-group", "--hint" and "multi-attach" options 3.Make --size option to be optional under some cases Closes-Bug: #1568005 Closes-Bug: #1627913 Implements: bp implement-cinder-features Co-Authored-By: Roman Vasilets <rvasilets@mirantis.com> Change-Id: I2c4c3073195d33774e477f4d7f22e383b14b41dd
Diffstat (limited to 'doc/source/command-objects')
-rw-r--r--doc/source/command-objects/volume.rst31
1 files changed, 25 insertions, 6 deletions
diff --git a/doc/source/command-objects/volume.rst b/doc/source/command-objects/volume.rst
index f772557f..8f123361 100644
--- a/doc/source/command-objects/volume.rst
+++ b/doc/source/command-objects/volume.rst
@@ -13,21 +13,23 @@ Create new volume
.. code:: bash
os volume create
- --size <size>
+ [--size <size>]
[--type <volume-type>]
- [--image <image>]
- [--snapshot <snapshot>]
- [--source <volume>]
+ [--image <image> | --snapshot <snapshot> | --source <volume> | --source-replicated <replicated-volume>]
[--description <description>]
[--user <user>]
[--project <project>]
[--availability-zone <availability-zone>]
+ [--consistency-group <consistency-group>]
[--property <key=value> [...] ]
+ [--hint <key=value> [...] ]
+ [--multi-attach]
<name>
-.. option:: --size <size> (required)
+.. option:: --size <size>
Volume size in GB
+ (Required unless --snapshot or --source or --source-replicated is specified)
.. option:: --type <volume-type>
@@ -46,10 +48,14 @@ Create new volume
Use :option:`\<snapshot\>` as source of volume (name or ID)
-.. option:: --source <source>
+.. option:: --source <volume>
Volume to clone (name or ID)
+.. option:: --source-replicated <replicated-volume>
+
+ Replicated volume to clone (name or ID)
+
.. option:: --description <description>
Volume description
@@ -66,10 +72,23 @@ Create new volume
Create volume in :option:`\<availability-zone\>`
+.. option:: --consistency-group <consistency-group>
+
+ Consistency group where the new volume belongs to
+
.. option:: --property <key=value>
Set a property on this volume (repeat option to set multiple properties)
+.. option:: --hint <key=value>
+
+ Arbitrary scheduler hint key-value pairs to help boot an instance
+ (repeat option to set multiple hints)
+
+.. option:: --multi-attach
+
+ Allow volume to be attached more than once (default to False)
+
.. _volume_create-name:
.. describe:: <name>