← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1577727] Re: nova flavor-create raises 500 error if long value passed to flavor properties

 

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. 
kindly refer, http://docs.openstack.org/admin-guide/cli_manage_flavors.html


** Changed in: nova
       Status: New => Invalid

** Tags added: api

-- 
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):
  Invalid

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


References