Not clean destroy for project quota

Bug #1206479 reported by Liyingjun on 2013-07-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
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 Edit Tag help

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) on 2013-08-01
Changed in nova:
assignee: nobody → Liyingjun (liyingjun)
Liyingjun (liyingjun) on 2013-08-05
Changed in nova:
status: New → In Progress
tags: added: db
Liyingjun (liyingjun) wrote :
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2013-09-05
Changed in nova:
milestone: none → havana-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2013-10-17
Changed in nova:
milestone: havana-3 → 2013.2
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers