The cinder quota on gigabytes is the sum of both volumes and snapshots. This is not correctly reflected in the create volume dialog, which allows the user to attempt to create volumes when there is not enough quota available, which results in a useless error message.
To recreate the problem:
1) on Project->Compute->Volumes create a 1G empty volume
2) on the same panel create a snapshot of the new volume
3) on Identity->Projects->[your project] choose Modify Quota and set the quota for "Total Size of Volumes and Snapshots (GB) " to 3G.
4) Note that the quota usage (2 of 3) is correctly reflected on Project->Compute-Overview
5) on Project->Compute->Volumes click Create Volume
*Note the the quota is not accurately reflected
6) Attempt to create a new volume of size 2G.
*Note the obscure failure message "Error: Unable to create volume."
Reviewed: https:/ /review. openstack. org/241456 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=944c8bafdcf 12d0a0dd56c6c43 eab84f513d6e5f
Committed: https:/
Submitter: Jenkins
Branch: master
commit 944c8bafdcf12d0 a0dd56c6c43eab8 4f513d6e5f
Author: Jesse Keating <email address hidden>
Date: Tue Nov 3 19:01:20 2015 -0800
Use sum of volumes and snapshots for cinder usage
The cinder quota on gigabytes is the sum of both volumes and snapshots,
therefore in the horizon view we should be representing usage as the
combination of volumes and snapshots, otherwise users will be confused
when getting quota errors on volume or snapshot creation.
Closes-Bug: 1513179 e75f9013cecbf8a 826c97e34c6
Change-Id: Id23e0dd3a3f810