Not clean destroy for project quota

Bug #1206479 reported by Liyingjun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Liyingjun

Bug Description

User quota under a project not deleted when destroy quota for the project.

https://github.com/openstack/nova/blob/master/nova/db/sqlalchemy/api.py#L3162

Tags: db
Revision history for this message
Sumanth Nagadavalli (sumanth-nagadavalli) wrote :

I think you should explicitly pass in the user_id in parameter to delete the quotas for a user.

There is a separate method, https://github.com/openstack/nova/blob/master/nova/db/sqlalchemy/api.py#L3139, to delete quotas by project id and user id.

I think its has been designed as an altogether different model for project_user_quotas and quotas.

quotas - is the one which is referred to when only project_id is passed in params
project_user_quotas - is the one which is referred to when both project_id and user_id are passed.

Liyingjun (liyingjun)
Changed in nova:
assignee: nobody → Liyingjun (liyingjun)
Liyingjun (liyingjun)
Changed in nova:
status: New → In Progress
tags: added: db
Revision history for this message
Liyingjun (liyingjun) wrote :
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → havana-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-3 → 2013.2
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.