← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1111327] Re: update quota with invalid value(not integer) raise 500 error

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => grizzly-3

-- 
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/1111327

Title:
  update quota with invalid value(not integer) raise 500 error

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  Update  the quota with a string cause ValueError.

  http put http://localhost:8774/v2/c385278dc70b4b1cbb2c87c7892db7b5/os-
  quota-sets/c385278dc70b4b1cbb2c87c7892db7b5 x-auth-
  token:606d3179c1b746239f1c7ace994a75a0 quota_set:='{"key_pairs": ""}'

  2013-01-31 18:45:59.711 ERROR nova.api.openstack [req-c2bb64d1-05c7-47b8-a4dc-0d56cadd9b6d admin admin] Caught error: invalid literal for int() with base 10: ''
  2013-01-31 18:45:59.711 TRACE nova.api.openstack Traceback (most recent call last):
  2013-01-31 18:45:59.711 TRACE nova.api.openstack   File "/opt/stack/nova/nova/api/openstack/__init__.py", line 81, in __call__
  2013-01-31 18:45:59.711 TRACE nova.api.openstack     return req.get_response(self.application)
  2013-01-31 18:45:59.711 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1296, in send
  2013-01-31 18:45:59.711 TRACE nova.api.openstack     application, catch_exc_info=False)
  2013-01-31 18:45:59.711 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1260, in call_application
  2013-01-31 18:45:59.711 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
  2013-01-31 18:45:59.711 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
  2013-01-31 18:45:59.711 TRACE nova.api.openstack     return resp(environ, start_response)
  2013-01-31 18:45:59.711 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/python_keystoneclient-0.2.2.20.g3573672-py2.7.egg/keystoneclient/middleware/auth_token.py", line 348, in __call__
  2013-01-31 18:45:59.711 TRACE nova.api.openstack     return self.app(env, start_response)
  2013-01-31 18:45:59.711 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
  2013-01-31 18:45:59.711 TRACE nova.api.openstack     return resp(environ, start_response)
  2013-01-31 18:45:59.711 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
  2013-01-31 18:45:59.711 TRACE nova.api.openstack     return resp(environ, start_response)
  2013-01-31 18:45:59.711 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
  2013-01-31 18:45:59.711 TRACE nova.api.openstack     return resp(environ, start_response)
  2013-01-31 18:45:59.711 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
  2013-01-31 18:45:59.711 TRACE nova.api.openstack     response = self.app(environ, start_response)
  2013-01-31 18:45:59.711 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
  2013-01-31 18:45:59.711 TRACE nova.api.openstack     return resp(environ, start_response)
  2013-01-31 18:45:59.711 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
  2013-01-31 18:45:59.711 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
  2013-01-31 18:45:59.711 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
  2013-01-31 18:45:59.711 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
  2013-01-31 18:45:59.711 TRACE nova.api.openstack   File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 897, in __call__
  2013-01-31 18:45:59.711 TRACE nova.api.openstack     content_type, body, accept)
  2013-01-31 18:45:59.711 TRACE nova.api.openstack   File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 957, in _process_stack
  2013-01-31 18:45:59.711 TRACE nova.api.openstack     action_result = self.dispatch(meth, request, action_args)
  2013-01-31 18:45:59.711 TRACE nova.api.openstack   File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 1046, in dispatch
  2013-01-31 18:45:59.711 TRACE nova.api.openstack     return method(req=request, **action_args)
  2013-01-31 18:45:59.711 TRACE nova.api.openstack   File "/opt/stack/nova/nova/api/openstack/compute/contrib/quotas.py", line 90, in update
  2013-01-31 18:45:59.711 TRACE nova.api.openstack     for key in body['quota_set'].keys():
  2013-01-31 18:45:59.711 TRACE nova.api.openstack ValueError: invalid literal for int() with base 10: ''

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1111327/+subscriptions