From 7a7bb06377c96f7bfc2c371aa2ff726ee364a9db Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Fri, 24 Feb 2017 16:48:05 +0800 Subject: Make block-device-mapping more stable and clear The patch fix the following issues: 1. ValueError is raised if input don't contain "=". Sometimes the whole "server create" command is very complex, it's difficult to find out root reason directly. 2. Don't support to add block device from snapshot, like: --block-device-mapping vdb=0c8ae9d8-cadc-4a23-8337-4254614d277e:snapshot:1, it's supported by novaclient, but not in osc. 3. If input "vdb=", not add any mapping information, the server will be launched successfully, not raise error message to let use add volume/snapshot id, just ignore "--block-device-mapping" option. 4. The help message of "block-device-mapping" option is so simple, need to add some details about how to add , contains. Change-Id: Ib7f7a654c3dc2a8272545f168b4c4ced230ce39e Depends-On: Ib37913891bbf7a31b570404c4668c490d5ac859b Closes-Bug: #1667266 --- doc/source/command-objects/server.rst | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'doc/source') diff --git a/doc/source/command-objects/server.rst b/doc/source/command-objects/server.rst index dc78080b..26bb77ca 100644 --- a/doc/source/command-objects/server.rst +++ b/doc/source/command-objects/server.rst @@ -193,7 +193,23 @@ Create a new server .. option:: --block-device-mapping - Map block devices; map is ::: (optional extension) + Create a block device on the server. + + Block device mapping in the format + + =::: + + : block device name, like: vdb, xvdc (required) + + : UUID of the volume or snapshot (required) + + : volume or snapshot; default: volume (optional) + + : volume size if create from snapshot (optional) + + : true or false; default: false (optional) + + (optional extension) .. option:: --nic -- cgit v1.2.1