volumes quota_usages in_use properties does not change when delete volume snapshots
Bug #1180629 reported by
Leo Liang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When user create one volume's snapshot ,then delete it , the quota_usages tables 'in_use' fileds is not changed.
thus , if tenant defaut quaota is 10, when user create 10 volumes ,then delete it ,user cannot create new volume or snapshot ,
it returns "Volumes quota exceed."
tags: | added: grizzly |
Changed in cinder: | |
assignee: | nobody → Shawn Liang (11315889-a) |
assignee: | Shawn Liang (11315889-a) → nobody |
description: | updated |
summary: |
volumes quota_usages in_use properties does not change when delete - voluem snapshots + volume snapshots |
To post a comment you must log in.
Shawn, please elaborate more about how you produce this issue.
I tested both under current code and grizzly. They both worked fine.
The in-use value changes when creating or deleting vol/snapshot.
mysql> select * from quota_usages; ------- ------- -+----- ------- ------- --+---- ------- -+----- ----+-- --+---- ------- ------- ------- ------- --+---- ------- +------ --+---- ------+ ------- ------- -+ ------- ------- -+----- ------- ------- --+---- ------- -+----- ----+-- --+---- ------- ------- ------- ------- --+---- ------- +------ --+---- ------+ ------- ------- -+ 68840d5dd516acb 33 | gigabytes | 10 | 0 | NULL | 68840d5dd516acb 33 | volumes | 10 | 0 | NULL | ------- ------- -+----- ------- ------- --+---- ------- -+----- ----+-- --+---- ------- ------- ------- ------- --+---- ------- +------ --+---- ------+ ------- ------- -+
+------
| created_at | updated_at | deleted_at | deleted | id | project_id | resource | in_use | reserved | until_refresh |
+------
| 2013-05-16 13:02:30 | 2013-05-16 13:04:50 | NULL | 0 | 1 | c6e1e8fc9529433
| 2013-05-16 13:02:30 | 2013-05-16 13:04:50 | NULL | 0 | 2 | c6e1e8fc9529433
+------
2 rows in set (0.00 sec)
After I delete one volume.
mysql> select * from quota_usages; ------- ------- -+----- ------- ------- --+---- ------- -+----- ----+-- --+---- ------- ------- ------- ------- --+---- ------- +------ --+---- ------+ ------- ------- -+ ------- ------- -+----- ------- ------- --+---- ------- -+----- ----+-- --+---- ------- ------- ------- ------- --+---- ------- +------ --+---- ------+ ------- ------- -+ 68840d5dd516acb 33 | gigabytes | 9 | 0 | NULL | 68840d5dd516acb 33 | volumes | 9 | 0 | NULL | ------- ------- -+----- ------- ------- --+---- ------- -+----- ----+-- --+---- ------- ------- ------- ------- --+---- ------- +------ --+---- ------+ ------- ------- -+
+------
| created_at | updated_at | deleted_at | deleted | id | project_id | resource | in_use | reserved | until_refresh |
+------
| 2013-05-16 13:02:30 | 2013-05-16 13:06:14 | NULL | 0 | 1 | c6e1e8fc9529433
| 2013-05-16 13:02:30 | 2013-05-16 13:06:14 | NULL | 0 | 2 | c6e1e8fc9529433
+------
2 rows in set (0.00 sec)