nova boot help should have flavor as a positional parameter

Bug #1415319 reported by Amandeep
6
This bug affects 1 person
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
Revision history for this message
melanie witt (melwitt) wrote :

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

melanie witt (melwitt)
Changed in python-novaclient:
importance: Undecided → Wishlist
status: New → Opinion
Revision history for this message
Joe Gordon (jogo) wrote :

I think the flavor is still required. Also novaclients documentation on what is needed isn't very useful. To figure out what is needed googling is often required, but it shouldn't be.

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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-novaclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/295681

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-novaclient (master)

Change abandoned by Sean Dague (<email address hidden>) on branch: master
Review: https://review.openstack.org/295681
Reason: This review is > 6 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.