Nova boot doesn't tell positional argument completely
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
Nova help text for nova boot says that only mandatory arg for cli is name but thats not true.
=======
[root@greglinux2 ~(keystone_admin)]#
[root@greglinux2 ~(keystone_admin)]# nova help boot
usage: nova boot [--flavor <flavor>] [--image <image>]
Boot a new server.
Positional arguments:
<name> Name for the new server.
Optional arguments:
--flavor <flavor> Name or ID of flavor (see 'nova flavor-list').
--image <image> Name or ID of image (see 'nova image-list').
--image-with <key=value> Image metadata property (see 'nova image-
--boot-volume <volume_id> Volume ID to boot from.
--snapshot <snapshot_id> Snapshot ID to boot from (will create a
--min-count <number> Boot at least <number> servers (limited by
--max-count <number> Boot up to <number> servers (limited by
--meta <key=value> Record arbitrary key/value metadata to
--file <dst-path=src-path> Store arbitrary files from <src-path> locally
--key-name <key-name> Key name of keypair that should be created
--user-data <user-data> user data file to pass to be exposed by the
--availabilit
--security-groups <security-groups>
--block-
--block-device key1=value1[
--swap <swap_size> Create and attach a local swap block device of
--ephemeral size=<size>
--hint <key=value> Send arbitrary key/value pairs to the
--nic <net-id=
--config-drive <value> Enable config drive.
--poll Report the new server boot progress until it
--admin-pass <value> Admin password for the instance.
--access-ip-v4 <value> Alternative access IPv4 of the instance.
--access-ip-v6 <value> Alternative access IPv6 of the instance.
--description <description> Description for the server. (Supported by API
[root@greglinux2 ~(keystone_admin)]# nova boot rajib_instance
ERROR (CommandError): you need to specify a Flavor ID. >>>>>>>
[root@greglinux2 ~(keystone_admin)]# nova boot --flavor m1.tiny rajib_instance
ERROR (CommandError): you need to specify at least one source ID (Image, Snapshot, or Volume), a block device mapping or provide a set of properties to match against an image
>>>>>>>
[root@greglinux2 ~(keystone_admin)]# nova boot --flavor m1.tiny --image e0b99f5c-
ERROR (Conflict): Multiple possible networks found, use a Network ID to be more specific. (HTTP 409) (Request-ID: req-de90003e-
>>>>>>>>>>>>>>>> Its asks for network id
[root@greglinux2 ~(keystone_admin)]# nova boot --flavor m1.tiny --image e0b99f5c-
>>>>>>>
+------
| Property | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | building |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| adminPass | f3axzeBG3dsh |
| config_drive | |
| created | 2017-04-
| flavor | m1.tiny (1) |
| hostId | |
| id | 20a7cda5-
| image | cirros (e0b99f5c-
| key_name | - |
| metadata | {} |
| name | rajib_instance |
| os-extended-
| progress | 0 |
| security_groups | default |
| status | BUILD |
| tenant_id | f29439bb99d54db
| updated | 2017-04-
| user_id | c2a01ca6f6f84d3
+------
[root@greglinux2 ~(keystone_admin)]#
[root@greglinux2 ~(keystone_admin)]#
[root@greglinux2 ~(keystone_admin)]#
Hence it looks like
Positional arguments should be : name,flavor, nic, image or boot-volume or snapshot
affects: | nova → python-novaclient |
Changed in python-novaclient: | |
assignee: | nobody → NidhiMittalHada (nidhimittal19) |
status: | New → In Progress |
I appreciate where this is coming from, but this is an issue with argparse that we're not going to be able to easily fix, unfortunately. I'm marking this as wontfix just to avoid giving false promises.