Quota usage wrong when delete snapshot with volume retyped

Bug #1877164 reported by Nguyen Thanh Cong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
In Progress
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
---

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

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)
Changed in cinder:
importance: Undecided → High
Revision history for this message
Nguyen Thanh Cong (congnt95) wrote :

can anyone can review code for me?

Revision history for this message
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.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 18.0.0.0rc2

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 19.0.0.0b1

This issue was fixed in the openstack/cinder 19.0.0.0b1 development milestone.

Son Do Xuan (sondx25)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.