nova boot help should have flavor as a positional parameter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
In Progress
|
Wishlist
|
Abhishek Talwar |
Bug Description
when booting an instance then wrong information of argument shown at cli, Here without with --flavor and --image we unable to boot a vm. So, these parameters should be positional not optional argument.
steps to replicate :
step 1:
$ nova help boot
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').
step 2:
$ nova boot vm_1
ERROR (CommandError): you need to specify a Flavor ID
Step 3
$ nova boot --flavor 42 vm_1
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
$ nova boot --flavor 42 --image <image-id>
then we able to boot a vm
expected result:
$ nova help boot
Boot a new server.
Positional arguments:
<name> Name for the new server
<flavor> Name or ID of flavor (see 'nova flavor-list').
<image> Name or ID of image (see 'nova image-list').
Changed in python-novaclient: | |
assignee: | nobody → Amandeep (rattenpal-amandeep) |
description: | updated |
description: | updated |
Changed in python-novaclient: | |
importance: | Undecided → Wishlist |
status: | New → Opinion |
Changed in python-novaclient: | |
assignee: | Amandeep (rattenpal-amandeep) → Abhishek Talwar (abhishek-talwar) |
summary: |
- wrong information of argument when booting an instance + nova boot help should have flavor as a positional parameter |
Changed in python-novaclient: | |
status: | Opinion → In Progress |
The reason --image isn't a positional argument is because it isn't required.
See example 4 [1] where the command creates a bootable volume from an image before the instance boots. Here, --image is not specified.
[1] http:// docs.openstack. org/user- guide/content/ create_ volume_ from_image_ and_boot. html