cinder volume transfer does not update quotas for volume types
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
Mitsuhiro Tanino |
Bug Description
when you have more than default volume types and you transfer a volume type from one tenant to another it correctly updates the quota for the default values, but does not update for the volume type values.
this only seems to affect configs with multiple volume types
pre-transfer
+------
| Type | In_use | Reserved | Limit |
+------
| gigabytes | 100 | 0 | 1000 |
| gigabytes_
| gigabytes_
| snapshots | 0 | 0 | 10 |
| snapshots_
| snapshots_
| volumes | 1 | 0 | 10 |
| volumes_
| volumes_
+------
post transfer
+------
| Type | In_use | Reserved | Limit |
+------
| gigabytes | 0 | 0 | 1000 |
| gigabytes_
| gigabytes_
| snapshots | 0 | 0 | 10 |
| snapshots_
| snapshots_
| volumes | 0 | 0 | 10 |
| volumes_
| volumes_
+------
so this will cause a lot of quota issues where users are not seeing that they have something still counting against their quota.
also, when you transfer the volume back, it again just updated the defaults, so everything looks fine.
re-creation steps:
from tenant A:
1. not quota usage via cinder quota-show <tenant>
2. create new volume with a non-default volume type
3. transfer volume to tenant B
4. accept transfer on tenant B
5. check quotas
Changed in cinder: | |
assignee: | nobody → Deepti Ramakrishna (dramakri) |
Changed in cinder: | |
assignee: | nobody → Mitsuhiro Tanino (mitsuhiro-tanino) |
importance: | Undecided → Medium |
Changed in cinder: | |
status: | New → In Progress |
Changed in cinder: | |
status: | Fix Committed → Fix Released |
Deepti, are you actively working on this? I was pinged by someone that is affected and would like to see this move forward. If you are not actively working on it, please remove yourself as the assignee so someone else can possibly pick it up. Thanks.