Cinder leaves quota usage when deleting incremental backup with parent from another project
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
New
|
Undecided
|
Unassigned |
Bug Description
The root cause for this bug is https:/
However, the code could be improved to prevent this specific problem from happening regardless of that bug.
Environment: Same as bug 1869746
This bug was also reproduced on Queens.
Steps to reproduce:
1) Run same steps as bug 1869746
2) Try to delete the backup created.
3) Result: Backup is deleted successfully, but an error is thrown in the logs and quota used by backup is not restored on [0].
Expectation: Delete the backup without errors and successfully restore the quota. Quota should be restored as soon as backup is deleted.
Trace:
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
2020-03-30 14:56:38.431 25018 ERROR oslo_messaging.
tags: | added: sts |
This is a consequence of bug https:/ /bugs.launchpad .net/cinder/ +bug/1869749 but could be improved to handle quotas in a better way when deleting backups