yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #00697
[Bug 1101331] Re: resource creation fails when per-tenant quota is enabled
** Changed in: quantum
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to quantum.
https://bugs.launchpad.net/bugs/1101331
Title:
resource creation fails when per-tenant quota is enabled
Status in OpenStack Quantum (virtual network service):
Fix Released
Bug description:
When per-tenant quota is enabled, net-create fails with the following
error.
It can be fixed by changing the last line of _get_quotas() in quantum/db/quota_db.py to "return quotas".
There seems to be no tests for quota_db.
2013-01-19 01:33:02.525 10907 ERROR quantum.api.v2.resource [-] create failed
2013-01-19 01:33:02.525 10907 TRACE quantum.api.v2.resource Traceback (most recent call last):
2013-01-19 01:33:02.525 10907 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/api/v2/resource.py", line 96, in
resource
2013-01-19 01:33:02.525 10907 TRACE quantum.api.v2.resource result = method(request=request, **args)
2013-01-19 01:33:02.525 10907 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/api/v2/base.py", line 302, in cr
eate
2013-01-19 01:33:02.525 10907 TRACE quantum.api.v2.resource **kwargs)
2013-01-19 01:33:02.525 10907 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/quota.py", line 257, in limit_ch
eck
2013-01-19 01:33:02.525 10907 TRACE quantum.api.v2.resource self._resources, values)
2013-01-19 01:33:02.525 10907 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/db/quota_db.py", line 185, in li
mit_check
2013-01-19 01:33:02.525 10907 TRACE quantum.api.v2.resource quotas = self._get_quotas(context, tenant_id, resources, values
.keys())
2013-01-19 01:33:02.525 10907 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/db/quota_db.py", line 154, in _g
et_quotas
2013-01-19 01:33:02.525 10907 TRACE quantum.api.v2.resource return dict((k, v['limit']) for k, v in quotas.items())
2013-01-19 01:33:02.525 10907 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/db/quota_db.py", line 154, in <g
enexpr>
2013-01-19 01:33:02.525 10907 TRACE quantum.api.v2.resource return dict((k, v['limit']) for k, v in quotas.items())
2013-01-19 01:33:02.525 10907 TRACE quantum.api.v2.resource TypeError: 'int' object has no attribute '__getitem__'
2013-01-19 01:33:02.525 10907 TRACE quantum.api.v2.resource
To manage notifications about this bug go to:
https://bugs.launchpad.net/quantum/+bug/1101331/+subscriptions