Quota usage wrong when delete snapshot with volume retyped

Bug #1877164 reported by Nguyen Thanh Cong on 2020-05-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
High
Nguyen Thanh Cong

Bug Description

We have a volume and snapshot of this volume with volume type T1, and we retype this volume to a volume type T2. At this time, volume and snapshot have different volume type. And then we delete the snapshot and check quota usage of project and it wrong! When i delete snapshot it subtract quota usage of volume type T2.

Step to reproduce:
- Create volume volume type T1
- Create snapshot of volume
- Retype volume to volume type T2
- Delete snapshot or delete volume with cascade

Fix proposed to branch: master
Review: https://review.opendev.org/725951

Changed in cinder:
assignee: nobody → Nguyen Thanh Cong (congnt95)
status: New → In Progress
Eric Harney (eharney) on 2020-05-07
Changed in cinder:
importance: Undecided → High
Nguyen Thanh Cong (congnt95) wrote :

can anyone can review code for me?

Gorka Eguileor (gorka) wrote :

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/cinder/+/781515

This fix is different than the other one and both can work together.
In this patch we make the snapshots retype with the volume.

This issue was fixed in the openstack/cinder 18.0.0.0rc2 release candidate.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers