if we firstly create a incremental backup without parent backup, the reserved value of quota_usages table is not rollbacked
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Brin Zhang |
Bug Description
You can use the following steps to reproduce:
1 cinder create --name test 1
+------
| Property | Value |
+------
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2018-12-
| description | None |
| encrypted | False |
| id | 2e3d9d0b-
| metadata | {} |
| migration_status | None |
| multiattach | False |
| name | test |
| os-vol-
| os-vol-
| os-vol-
| os-vol-
| replication_status | None |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| updated_at | 2018-12-
| user_id | 1dc213c4fbea4c8
| volume_type | lvmdriver-1 |
+------
2 cinder show 2e3d9d0b-
+------
| Property | Value |
+------
| attached_servers | [] |
| attachment_ids | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2018-12-
| description | None |
| encrypted | False |
| id | 2e3d9d0b-
| metadata | |
| migration_status | None |
| multiattach | False |
| name | test |
| os-vol-
| os-vol-
| os-vol-
| os-vol-
| replication_status | None |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | available |
| updated_at | 2018-12-
| user_id | 1dc213c4fbea4c8
| volume_type | lvmdriver-1 |
+------
3 cinder quota-usage 3521efd8be6f43f
+------
| Type | In_use | Reserved | Limit | Allocated |
+------
| backup_gigabytes | 0 | 0 | 1000 | |
| backups | 0 | 0 | 10 | |
| gigabytes | 2 | 0 | 1000 | |
| gigabytes_
| groups | 0 | 0 | 10 | |
| per_volume_
| snapshots | 0 | 0 | 10 | |
| snapshots_
| volumes | 2 | 0 | 10 | |
| volumes_lvmdriver-1 | 2 | 0 | -1 | |
+------
4 cinder backup-create 2e3d9d0b-
ERROR: Invalid backup: No backups available to do an incremental backup. (HTTP 400) (Request-ID: req-335eb1e6-
5 cinder quota-usage 3521efd8be6f43f
+------
| Type | In_use | Reserved | Limit | Allocated |
+------
| backup_gigabytes | 0 | 1 | 1000 | |
| backups | 0 | 1 | 10 | |
| gigabytes | 2 | 0 | 1000 | |
| gigabytes_
| groups | 0 | 0 | 10 | |
| per_volume_
| snapshots | 0 | 0 | 10 | |
| snapshots_
| volumes | 2 | 0 | 10 | |
| volumes_lvmdriver-1 | 2 | 0 | -1 | |
+------
5 Repetitive operation step 4 for nine times:
cinder backup-create 2e3d9d0b-
6 cinder backup-create 2e3d9d0b-
ERROR: BackupLimitExce
Changed in cinder: | |
assignee: | Leopard Ma (leopardma) → Brin Zhang (zhangbailin) |
Fix proposed to branch: master /review. openstack. org/626790
Review: https:/