'nova list --flavor <id>' outputs the same empty list, even if there is not any instance or flavor.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Ken'ichi Ohmichi |
Bug Description
'nova list --flavor <id>' command outputs empty list, if there is not
any instance or flavor. A user cannot know the reason of empty list easily.
The attached patch changes a response to error if the specified flavor-id does not
exist instead of empty list.
Example:
$ nova flavor-list
+-
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | extra_specs |
+-
| 1 | m1.tiny | 512 | 0 | 0 | | 1 | 1.0 | True | {} |
| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True | {} |
| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True | {} |
| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True | {} |
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True | {} |
+-
Before applying this patch:
$ nova list --flavor 10
$
After applying this patch:
$ nova list --flavor 10
ERROR: Flavor could not be found (HTTP 400) (Request-ID: req-2d03cd43-
$
Changed in nova: | |
status: | New → Confirmed |
tags: | added: low-hanging-fruit |
Changed in nova: | |
assignee: | nobody → Ken'ichi Ohmichi (oomichi) |
status: | Confirmed → In Progress |
Changed in nova: | |
milestone: | none → grizzly-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-1 → 2013.1 |
you can submit a patch for this . follow http:// wiki.openstack. org/HowToContri bute to be an openstack contributer.