Quota error after deleting snapshot group
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Nolwenn Cauchois |
Bug Description
Uses are out of sync when we delete snapshot groups.
Impacted version : pike.
Steps :
----
1. Create a volume group
2. Create a volume of 2 gigabytes in this volume group
3. Create a snapshot group
4. cinder quota-usage
+------
| Type | In_use | Reserved | Limit |
+------
| backup_gigabytes | 0 | 0 | 1000 |
| backups | 0 | 0 | 40 |
| gigabytes | 4 | 0 | 1000000000 |
| gigabytes_
| gigabytes_standard | 4 | 0 | -1 |
| groups | 1 | 0 | 10 |
| per_volume_
| snapshots | 1 | 0 | 50 |
| snapshots_
| snapshots_standard | 1 | 0 | -1 |
| volumes | 1 | 0 | 50 |
| volumes_performant | 0 | 0 | -1 |
| volumes_standard | 1 | 0 | -1 |
+------
5. Delete the snapshot group
6. cinder quota-usage
Actual result
+------
| Type | In_use | Reserved | Limit |
+------
| backup_gigabytes | 0 | 0 | 1000 |
| backups | 0 | 0 | 40 |
| gigabytes | 4 | 0 | 1000000000 |
| gigabytes_
| gigabytes_standard | 4 | 0 | -1 |
| groups | 1 | 0 | 10 |
| per_volume_
| snapshots | 0 | 0 | 50 |
| snapshots_
| snapshots_standard | 0 | 0 | -1 |
| volumes | 1 | 0 | 50 |
| volumes_performant | 0 | 0 | -1 |
| volumes_standard | 1 | 0 | -1 |
+------
Expected result
+------
| Type | In_use | Reserved | Limit |
+------
| backup_gigabytes | 0 | 0 | 1000 |
| backups | 0 | 0 | 40 |
| gigabytes | 2 | 0 | 1000000000 |
| gigabytes_
| gigabytes_standard | 2 | 0 | -1 |
| groups | 1 | 0 | 10 |
| per_volume_
| snapshots | 0 | 0 | 50 |
| snapshots_
| snapshots_standard | 0 | 0 | -1 |
| volumes | 1 | 0 | 50 |
| volumes_performant | 0 | 0 | -1 |
| volumes_standard | 1 | 0 | -1 |
+------
Gigabytes and gigabytes_standard are not decremented
summary: |
- Quota error after deleting group snapshot + Quota error after deleting snapshot group |
Fix proposed to branch: master /review. openstack. org/626863
Review: https:/