Quota deletion on tenants with undefined quotas fails

Bug #1502788 reported by Antoine Eiche
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Undecided
Unassigned
OpenContrail
New
Undecided
Unassigned

Bug Description

On a fresh installed devstack, 'neutron quota-delete admin' fails:
$ neutron quota-delete admin
Request Failed: internal server error while processing your request.

The neutron-api server TB is then:
015-09-30 16:00:57.989 TRACE neutron.api.v2.resource Traceback (most recent call last):
2015-09-30 16:00:57.989 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/resource.py", line 87, in resource
2015-09-30 16:00:57.989 TRACE neutron.api.v2.resource result = method(request=request, **args)
2015-09-30 16:00:57.989 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/extensions/quotasv2.py", line 97, in delete
2015-09-30 16:00:57.989 TRACE neutron.api.v2.resource self._driver.delete_tenant_quota(request.context, id)
2015-09-30 16:00:57.989 TRACE neutron.api.v2.resource File "/opt/stack/contrail/openstack/neutron_plugin/neutron_plugin_contrail/plugins/opencontrail/quota/driver.py", line 166, in delete_tenant_quota
2015-09-30 16:00:57.989 TRACE neutron.api.v2.resource for k,v in quota.__dict__.items():
2015-09-30 16:00:57.989 TRACE neutron.api.v2.resource AttributeError: 'NoneType' object has no attribute '__dict__'

Tags: neutronapi
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/14150
Submitter: Antoine Eiche (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/14150
Committed: http://github.org/Juniper/contrail-neutron-plugin/commit/0f09bc88a2a3e6420e91d279b7781ec3192aabba
Submitter: Zuul
Branch: master

commit 0f09bc88a2a3e6420e91d279b7781ec3192aabba
Author: Antoine Eiche <email address hidden>
Date: Thu Oct 1 17:54:30 2015 +0200

Fix quota deletion operation on tenants with undefined quotas

Change-Id: I18e1dac60e54fd50e686fdc6e0967abe2e2fb26e
Closes-Bug: #1502788

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.