← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1288814] Re: limits API raises TypeError with NoopQuotaDriver

 

*** This bug is a duplicate of bug 1244842 ***
    https://bugs.launchpad.net/bugs/1244842

I was using havana, apparently pre-backport. Marked this as a dup. Thank
you.

** This bug has been marked a duplicate of bug 1244842
   NoopQuotaDriver returns usages incorrect format

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

Title:
  limits API raises TypeError with NoopQuotaDriver

Status in OpenStack Compute (Nova):
  Incomplete

Bug description:
  when quota_driver=nova.quota.NoopQuotaDriver in nova.conf, a GET
  v2/{tenant_id}/limits request fails with HTTP 400 and api.log shows
  the following stacktrace:

  2014-03-03 04:16:31.468 3182 TRACE nova.api.openstack.wsgi Traceback (most recent call last):
  2014-03-03 04:16:31.468 3182 TRACE nova.api.openstack.wsgi File "/usr/lib/python2.6/site-packages/nova/api/openstack/wsgi.py", line 1012, in _process_stack
  2014-03-03 04:16:31.468 3182 TRACE nova.api.openstack.wsgi action_result = self.dispatch(meth, request, action_args)
  2014-03-03 04:16:31.468 3182 TRACE nova.api.openstack.wsgi File "/usr/lib/python2.6/site-packages/nova/api/openstack/wsgi.py", line 1093, in dispatch
  2014-03-03 04:16:31.468 3182 TRACE nova.api.openstack.wsgi return method(req=request, **action_args)
  2014-03-03 04:16:31.468 3182 TRACE nova.api.openstack.wsgi File "/usr/lib/python2.6/site-packages/nova/api/openstack/compute/limits.py", line 96, in index
  2014-03-03 04:16:31.468 3182 TRACE nova.api.openstack.wsgi abs_limits = dict((k, v['limit']) for k, v in quotas.items())
  2014-03-03 04:16:31.468 3182 TRACE nova.api.openstack.wsgi File "/usr/lib/python2.6/site-packages/nova/api/openstack/compute/limits.py", line 96, in <genexpr>
  2014-03-03 04:16:31.468 3182 TRACE nova.api.openstack.wsgi abs_limits = dict((k, v['limit']) for k, v in quotas.items())
  2014-03-03 04:16:31.468 3182 TRACE nova.api.openstack.wsgi TypeError: 'int' object is unsubscriptable

  This appears to be because v = -1 for all resources with the
  NoopQuotaDriver

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


References