yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #04042
[Bug 1059414] Re: Folsom - Able to create flavor with invalid "is-public" parameter
** Changed in: python-novaclient
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1059414
Title:
Folsom - Able to create flavor with invalid "is-public" parameter
Status in OpenStack Compute (Nova):
Fix Released
Status in Python client library for Nova:
Fix Released
Bug description:
Description:
-------------------
We are able to create a flavor even if the "is-public" parameter is
given invalid. It accepts value as False if junk value is given for
"is-public" parameter.
Environment:
-----------------
Folsom
Actual Result:
-------------------
Accepted as option "False" when invalid characters are given.
Expected Result:
-----------------------
Should give an error message stating that the "is-public" parameter
can be either "True" or "False"
CURL COMMANDS:
-----------------------------
rajalakshmi_ganesan@ubuntu:~/source/csbu-qa/AutomatedTests/python_tests/hp_regression/nova/nova_api_tests/flavors$ curl -i http://15.184.64.226:8774/v2/30832a492d3548918482624bd4bbc00f/flavors -X POST -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 6949797cc5264108bdede64013309177" -d '{"flavor": {"vcpus": 4, "ram": "512", "name": "invalid_ram_flavor27655", "os-flavor-access:is_public": "@#$%!^&*())_+:<>?sss", "rxtx_factor": 2, "OS-FLV-EXT-DATA:ephemeral": 2, "disk": 2, "id": 25340, "swap": 512}}'
HTTP/1.1 200 OK
X-Compute-Request-Id: req-9739d88c-86b0-4ea6-bb17-4588b16f5472
Content-Type: application/json
Content-Length: 452
Date: Mon, 01 Oct 2012 07:21:56 GMT
{"flavor": {"name": "invalid_ram_flavor27655", "links": [{"href":
"http://15.184.64.226:8774/v2/30832a492d3548918482624bd4bbc00f/flavors/25340",
"rel": "self"}, {"href":
"http://15.184.64.226:8774/30832a492d3548918482624bd4bbc00f/flavors/25340",
"rel": "bookmark"}], "ram": 512, "OS-FLV-DISABLED:disabled": false,
"vcpus": 4, "swap": 512, "os-flavor-access:is_public": false,
"rxtx_factor": 2, "OS-FLV-EXT-DATA:ephemeral": 2, "disk": 2, "id":
"25340"}}rajalakshmi_ganesan@ubuntu:~/source/csbu-
qa/AutomatedTests/python_tests/hp_regression/nova/nova_api_tests/flavors$
PYTHON NOVA-CLIENT COMMAND:
--------------------------------------------------
rajalakshmi_ganesan@ubuntu:~/source/csbu-qa/AutomatedTests/python_tests/hp_regression/nova/nova_api_tests/flavors$ nova flavor-create test-1 335533 512 2 4 --is-public "invalid_option"
+--------+--------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | extra_specs |
+--------+--------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| 335533 | test-1 | 512 | 2 | 0 | | 4 | 1 | False | {} |
+--------+--------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
rajalakshmi_ganesan@ubuntu:~/source/csbu-qa/AutomatedTests/python_tests/hp_regression/nova/nova_api_tests/flavors$
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1059414/+subscriptions