yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #50173
[Bug 1577727] [NEW] nova flavor-create raises 500 error if long value passed to flavor properties
Public bug reported:
If long value is provided for properties other than name and ID then 500
error is raised.
Command:
nova flavor-create new_flavor 35 234276234512334234 200 2
n-api LOG:
2016-05-03 10:44:46.744 ERROR nova.api.openstack.extensions [req-cadc48da-abb0-4dfb-abb8-c18855e45d30 admin admin] Unexpected exception in API method
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions Traceback (most recent call last):
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/openstack/extensions.py", line 478, in wrapped
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions return f(*args, **kwargs)
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/validation/__init__.py", line 73, in wrapper
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions return func(*args, **kwargs)
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/validation/__init__.py", line 73, in wrapper
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions return func(*args, **kwargs)
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/openstack/compute/flavor_manage.py", line 81, in _create
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions is_public=is_public)
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/compute/flavors.py", line 152, in create
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions db.MAX_INT)
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/utils.py", line 1030, in validate_integer
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions 'max_value': max_value})
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions InvalidInput: Invalid input received: ram must be <= 2147483647
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions
** Affects: nova
Importance: Undecided
Assignee: Dinesh Bhor (dinesh-bhor)
Status: New
** Changed in: nova
Assignee: (unassigned) => Dinesh Bhor (dinesh-bhor)
--
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/1577727
Title:
nova flavor-create raises 500 error if long value passed to flavor
properties
Status in OpenStack Compute (nova):
New
Bug description:
If long value is provided for properties other than name and ID then
500 error is raised.
Command:
nova flavor-create new_flavor 35 234276234512334234 200 2
n-api LOG:
2016-05-03 10:44:46.744 ERROR nova.api.openstack.extensions [req-cadc48da-abb0-4dfb-abb8-c18855e45d30 admin admin] Unexpected exception in API method
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions Traceback (most recent call last):
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/openstack/extensions.py", line 478, in wrapped
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions return f(*args, **kwargs)
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/validation/__init__.py", line 73, in wrapper
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions return func(*args, **kwargs)
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/validation/__init__.py", line 73, in wrapper
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions return func(*args, **kwargs)
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/openstack/compute/flavor_manage.py", line 81, in _create
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions is_public=is_public)
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/compute/flavors.py", line 152, in create
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions db.MAX_INT)
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/utils.py", line 1030, in validate_integer
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions 'max_value': max_value})
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions InvalidInput: Invalid input received: ram must be <= 2147483647
2016-05-03 10:44:46.744 TRACE nova.api.openstack.extensions
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1577727/+subscriptions
Follow ups