Folsom - Unable to create flavor without optional parameters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Sathish Nagappan |
Bug Description
Description:
--------------
We are unable to create Flavor when Optional parameters "swap", "os-flavor-
Though the above mentioned paramters are optional, we get Bad Request on not giving these parameters in request body.
Environment:
--------------
Folsom
Python Nova client output for help:
-------
rajalakshmi_
usage: nova flavor-create [--ephemeral <ephemeral>] [--swap <swap>]
Create a new flavor
Positional arguments:
<name> Name of the new flavor
<id> Unique integer ID for the new flavor
<ram> Memory size in MB
<disk> Disk size in GB
<vcpus> Number of vcpus
Optional arguments:
--ephemeral <ephemeral>
--swap <swap> Swap space size in MB (default 0)
--rxtx-factor <factor>
--is-public <is-public>
rajalakshmi_
CURL COMMAND OUTPUTS:
-------
1. REQUEST WITHOUT OPTIONAL PARAMETERS
rajalakshmi_
HTTP/1.1 400 Bad Request
Content-Length: 141
Content-Type: application/json; charset=UTF-8
X-Compute-
Date: Wed, 26 Sep 2012 14:23:19 GMT
{"badRequest": {"message": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400}}rajalakshm
rajalakshmi_
2. REQUEST WITH OPTIONAL PARAMETERS
rajalakshmi_
HTTP/1.1 200 OK
X-Compute-
Content-Type: application/json
Content-Length: 432
Date: Wed, 26 Sep 2012 14:28:12 GMT
{"flavor": {"name": "PS_flavor", "links": [{"href": "http://
+-----+
| 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 | {} |
| 12 | flavor-12 | 1024 | 10 | 2 | 512 | 2 | 1.0 | True | {} |
| 333 | PS_flavor | 1024 | 10 | 2 | 22 | 2 | 2.0 | True | {} |
+-----+
description: | updated |
Changed in nova: | |
assignee: | nobody → Sathish Nagappan (sathish-nagappan) |
Changed in nova: | |
milestone: | none → grizzly-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-1 → 2013.1 |
Fix proposed to branch: master /review. openstack. org/14547
Review: https:/