nova flavor-create raises 500 error if large value passed to flavor properties
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Dinesh Bhor |
Bug Description
If large value is provided for properties other than name and ID then 500 error is raised.
All integral flavor properties are validated against db.MAX_
As exception.
Expected result:
Instead of 500 InternalServerError it should return 400 HTTPBadRequest with message 'Invalid input received: ram must be <= 2147483647'.
Command:
nova flavor-create new_flavor 35 234782791832913
Output:
ERROR (ClientException): Unexpected API Error. Please report this at http://
<class 'nova.exception
n-api LOG:
2016-05-04 06:15:20.072 ERROR nova.api.
2016-05-04 06:15:20.072 TRACE nova.api.
2016-05-04 06:15:20.072 TRACE nova.api.
2016-05-04 06:15:20.072 TRACE nova.api.
2016-05-04 06:15:20.072 TRACE nova.api.
2016-05-04 06:15:20.072 TRACE nova.api.
2016-05-04 06:15:20.072 TRACE nova.api.
2016-05-04 06:15:20.072 TRACE nova.api.
2016-05-04 06:15:20.072 TRACE nova.api.
2016-05-04 06:15:20.072 TRACE nova.api.
2016-05-04 06:15:20.072 TRACE nova.api.
2016-05-04 06:15:20.072 TRACE nova.api.
2016-05-04 06:15:20.072 TRACE nova.api.
2016-05-04 06:15:20.072 TRACE nova.api.
2016-05-04 06:15:20.072 TRACE nova.api.
2016-05-04 06:15:20.072 TRACE nova.api.
Changed in nova: | |
assignee: | nobody → Dinesh Bhor (dinesh-bhor) |
summary: |
- nova flavor-create raises 500 error if long value passed to flavor + nova flavor-create raises 500 error if large value passed to flavor properties |
description: | updated |
Can you please reply with why you are using long value? Attributes of nova flavor-create command including uuid, amount of ram, vcpus etc. should be positive integers. From the command in the bug description, it seems like you are passing long value for ram. It expects an integer value. Hence, above is an expected error. docs.openstack. org/admin- guide/cli_ manage_ flavors. html
kindly refer, http://