wrong quota_usages updated when admin deletes instance of common user
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
High
|
Guangyu Suo | ||
OpenStack Compute (nova) |
Fix Released
|
High
|
Guangyu Suo |
Bug Description
When admin with admin project delete a instance of common user, QUOTA will update the admin project quota_usages, but I except QUOTA to update the quota_usages common user project. Below is my tests in devstack.
"the demo project _id is f293f8518b67465
"the admin project_id is 69d65864ae8242b
$ source openrc demo demo
$ nova boot --flavor=1 --image=
"the instance of demo project is e74c9b03-
$ source openrc admin admin
$ nova boot --flavor=1 --image=
"the instance of admin project is 627f8491-
$ nova list --all-tenants=1
+------
| ID | Name | Status | Networks |
+------
| e74c9b03-
| 627f8491-
+------
$ source openrc admin admin
$ nova delete e74c9b03-
$ nova list --all-tenants=1
+------
| ID | Name | Status | Networks |
+------
| 627f8491-
+------
mysql> select * from quota_usages;
+------
| created_at | updated_at | deleted_at | deleted | id | project_id | resource | in_use | reserved | until_refresh |
+------
| 2012-11-08 10:58:51 | 2012-11-14 11:08:01 | NULL | 0 | 1 | f293f8518b67465
| 2012-11-08 10:58:51 | 2012-11-14 11:08:01 | NULL | 0 | 2 | f293f8518b67465
| 2012-11-08 10:58:51 | 2012-11-14 11:08:01 | NULL | 0 | 3 | f293f8518b67465
| 2012-11-13 16:56:47 | 2012-11-14 11:09:45 | NULL | 0 | 4 | 69d65864ae8242b
| 2012-11-13 16:56:47 | 2012-11-14 11:09:45 | NULL | 0 | 5 | 69d65864ae8242b
| 2012-11-13 16:56:47 | 2012-11-14 11:09:45 | NULL | 0 | 6 | 69d65864ae8242b
+------
6 rows in set (0.00 sec)
summary: |
- admin delete a instance of common user + wrong quota_usages updated when admin deletes instance of common user |
Changed in nova: | |
assignee: | nobody → Rongze Zhu (zrzhit) |
Changed in nova: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: folsom-backport-potential |
Changed in nova: | |
assignee: | Rongze Zhu (zrzhit) → yugsuo (yugsuo) |
Changed in nova: | |
status: | Triaged → In Progress |
Changed in cinder: | |
status: | Triaged → In Progress |
Changed in nova: | |
milestone: | none → grizzly-3 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
assignee: | Yug Suo (yugsuo) → nobody |
Changed in cinder: | |
assignee: | nobody → Yug Suo (yugsuo) |
Changed in cinder: | |
milestone: | none → grizzly-rc3 |
Changed in nova: | |
milestone: | grizzly-3 → 2013.1 |
Changed in cinder: | |
milestone: | grizzly-rc3 → 2013.1 |
Hi Yugsuo,
It looks like we have the same issue in Cinder with the volume count quotas, once you have a fix for Nova, would you mind having a look at implementing the same fix on the Cinder side?
Thanks,
John