Not clean destroy for project quota
Bug #1206479 reported by
Liyingjun
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:/
Changed in nova: | |
assignee: | nobody → Liyingjun (liyingjun) |
Changed in nova: | |
status: | New → In Progress |
tags: | added: db |
Changed in nova: | |
milestone: | none → havana-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | havana-3 → 2013.2 |
To post a comment you must log in.
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.