From bf47d9f73000b613157bdaa4cbd60bdd2e7cbba9 Mon Sep 17 00:00:00 2001 From: ZhiQiang Fan Date: Thu, 27 Feb 2014 19:09:13 +0800 Subject: [PATCH] Fix incorrect nova boot command nova boot need a positional parameter for server name, but the example for user guide section of nova boot is wrong, we should fix it. Note that I also correct the output according to the parameter. Change-Id: I5f41d5fdd15ea274222e35705002fc56317f4989 Closes-Bug: #1285559 --- doc/common/section_cli_nova_boot.xml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/doc/common/section_cli_nova_boot.xml b/doc/common/section_cli_nova_boot.xml index 697e0cf880..0c87da6f44 100644 --- a/doc/common/section_cli_nova_boot.xml +++ b/doc/common/section_cli_nova_boot.xml @@ -181,11 +181,9 @@ --user-data USER-DATA-FILE parameter. - $ nova boot --flavor FLAVOR_ID --image IMAGE_ID --key_name KEY_NAME \ - --user-data mydata.file --security_group SEC_GROUP NAME_FOR_INSTANCE \ - --meta KEY=VALUE --meta - KEY=VALUE \ - SERVER_NAME + $ nova boot --flavor FLAVOR_ID --image IMAGE_ID --key-name KEY_NAME \ + --user-data mydata.file --security-groups SEC_GROUP --meta KEY=VALUE \ + myCirrosServer Depending on the parameters that you provide, the command returns a list of server properties. @@ -222,8 +220,8 @@ | adminPass | tVs5pL8HcPGw | | tenant_id | 66265572db174a7aa66eba661f58eb9e | | created | 2013-07-16T16:25:34Z | -| metadata | {} | -+-------------------------------------+-------------------------------------- +| metadata | {u'KEY': u'VALUE'} | ++-------------------------------------+--------------------------------------+ Copy the server ID value from the id field in the output. You use this ID to get details for or delete your @@ -243,7 +241,7 @@ that you want to put on the instance rather than using the regular ssh key injection, you can use the following - command: $ nova boot --image ubuntu-cloudimage --flavor 1 \ + command:$ nova boot --image ubuntu-cloudimage --flavor 1 vm-name \ --file /root/.ssh/authorized_keys=special_authorized_keysfile