Overquota always returns incorrect gigabytes quota

Bug #1463798 reported by Forest Romain
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Forest Romain

Bug Description

When an overquota is raised, VolumeSizeExceedsAvailableQuota returns gigabytes quota instead of the related property quota.

cinder quota-show c5ac372ad0834272b33ecc9d7dde1e38
+---------------------+-------+
| Property | Value |
+---------------------+-------+
| gigabytes | 100 |
| gigabytes_kvm | 3 |
| gigabytes_nfs | 2 |
| gigabytes_nfs_ezt | -1 |
| gigabytes_nfs_thick | -1 |
| snapshots | 10 |
| snapshots_kvm | 5 |
| snapshots_nfs | 5 |
| snapshots_nfs_ezt | -1 |
| snapshots_nfs_thick | -1 |
| volumes | 10 |
| volumes_kvm | 2 |
| volumes_nfs | 2 |
| volumes_nfs_ezt | -1 |
| volumes_nfs_thick | -1 |
+---------------------+-------+

cinder create --display-name vmdk001 --volume-type nfs 1
ERROR: VolumeSizeExceedsAvailableQuota: Requested volume or snapshot exceeds allowed Gigabytes quota. Requested 1G, quota is 100G and 3G has been consumed. (HTTP 413) (Request-ID: req-c964f4bf-887d-4eed-ac57-f2423029e33f)
#It should be "quota is 2G" (is gigabytes_nfs quotas)instead of "quota is 100G".
#It should be "2G has been consumed" (is gigabytes_nfs Gb really consumed) instead of "3G has been consumed" (here all Gb of the project are calculated).

Changed in cinder:
assignee: nobody → Forest Romain (romain-forest)
description: updated
description: updated
description: updated
summary: - Overquota returns incorrectly always gigabytes quota
+ Overquota always returns incorrect gigabytes quota
Changed in cinder:
status: New → In Progress
Changed in cinder:
status: In Progress → Fix Committed
Changed in cinder:
milestone: none → liberty-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: liberty-2 → 7.0.0
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.