create volume workflow does not compute quota usage correctly

Bug #1513179 reported by Doug Fish
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Doug Fish

Bug Description

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."

Changed in horizon:
assignee: nobody → Doug Fish (drfish)
status: New → In Progress
tags: added: liberty-backport-potential
tags: added: kilo-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/241456
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=944c8bafdcf12d0a0dd56c6c43eab84f513d6e5f
Submitter: Jenkins
Branch: master

commit 944c8bafdcf12d0a0dd56c6c43eab84f513d6e5f
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
    Change-Id: Id23e0dd3a3f810e75f9013cecbf8a826c97e34c6

Changed in horizon:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/242186

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/242187

Changed in horizon:
importance: Undecided → High
milestone: none → mitaka-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/kilo)

Reviewed: https://review.openstack.org/242187
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=6d3241bb19c08b236df89cba06137666d9c1d8db
Submitter: Jenkins
Branch: stable/kilo

commit 6d3241bb19c08b236df89cba06137666d9c1d8db
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
    Change-Id: Id23e0dd3a3f810e75f9013cecbf8a826c97e34c6
    (cherry picked from commit 944c8bafdcf12d0a0dd56c6c43eab84f513d6e5f)

tags: added: in-stable-kilo
tags: added: in-stable-liberty
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/liberty)

Reviewed: https://review.openstack.org/242186
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=1bf3e18f52eab766b976a8e009e528bc70bc52cd
Submitter: Jenkins
Branch: stable/liberty

commit 1bf3e18f52eab766b976a8e009e528bc70bc52cd
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
    Change-Id: Id23e0dd3a3f810e75f9013cecbf8a826c97e34c6
    (cherry picked from commit 944c8bafdcf12d0a0dd56c6c43eab84f513d6e5f)

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/horizon 9.0.0.0b1

This issue was fixed in the openstack/horizon 9.0.0.0b1 development milestone.

Changed in horizon:
status: Fix Committed → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/horizon 8.0.1

This issue was fixed in the openstack/horizon 8.0.1 release.

no longer affects: horizon/kilo
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

This issue was fixed in the openstack/horizon 8.0.1 release.

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.