commit 212e8b889cb6430dd8ac8aba7abd8ad84d78fdbe
Author: Rebecca Finn <email address hidden>
Date: Tue Aug 9 23:38:38 2016 +0000
Fix volume storage usage value
When calculating the used volume storage value to compare against
"Total Size of Volumes and Snapshots", only the size of volumes
was being used while volume snapshots were ignored. This allows a
user to update the "Total Size of Volumes and Snapshots" quota to
a value that is below what was currently being used without the
expected error.
This patch updates _get_tenant_volume_usages to use both volumes
and volume snapshots. It also updates a test to reflect the correct
"used" value.
Reviewed: https:/ /review. openstack. org/353173 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=212e8b889cb 6430dd8ac8aba7a bd8ad84d78fdbe
Committed: https:/
Submitter: Jenkins
Branch: master
commit 212e8b889cb6430 dd8ac8aba7abd8a d84d78fdbe
Author: Rebecca Finn <email address hidden>
Date: Tue Aug 9 23:38:38 2016 +0000
Fix volume storage usage value
When calculating the used volume storage value to compare against
"Total Size of Volumes and Snapshots", only the size of volumes
was being used while volume snapshots were ignored. This allows a
user to update the "Total Size of Volumes and Snapshots" quota to
a value that is below what was currently being used without the
expected error.
This patch updates _get_tenant_ volume_ usages to use both volumes
and volume snapshots. It also updates a test to reflect the correct
"used" value.
Change-Id: Ifb2586b048edba bfe9740a5c72b7a bfbcf12576d
Closes-Bug: #1611027