Folsom - Error message for "Create Flavor" when Flavor ID is duplicate is not proper
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Andy McCrae | ||
python-novaclient |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Description:
------------------
Error message thrown while Creating Flavor with duplicate Flavor ID i.e Flavor ID that already exists is not proper.
Environment:
--------------
Folsom
Actual Error Message:
-------
Message from API:"message": "Instance Type PS_flavor_2 already exists."
Message from Python Client: ERROR: Instance Type ps_abd already exists. (HTTP 409) (Request-ID: req-b8f6821a-
Expected Error Message:
-------
Should be something like(When Flavor ID is X)
"message": "Flavor with ID X already exists."
Python Nova client output:
-------
rajalakshmi_
+-----+
| 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 | {} |
+-----+
rajalakshmi_
ERROR: Instance Type ps_abd already exists. (HTTP 409) (Request-ID: req-417f6ed5-
rajalakshmi_
CURL COMMAND OUTPUTS:
-------
rajalakshmi_
+-----+
| 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 | {} |
+-----+
rajalakshmi_
HTTP/1.1 409 Conflict
Content-Length: 93
Content-Type: application/json; charset=UTF-8
X-Compute-
Date: Wed, 26 Sep 2012 14:48:35 GMT
{"conflictingRe
description: | updated |
description: | updated |
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/13751
Review: https:/