when I reduce the volume of the quota does not validate the snapshot

Bug #1611027 reported by Adriano
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
Rebecca Finn

Bug Description

Steps to test:

> Access the admin user in painel horizon
> New or edit your project > Go "Total Size of Volumes and Snapshots (GiB)" > Set to 2GB.
> To access a user of this project.
> Create Volume with 1 GB
> Create a snapshot
> Check in overview the quota "Volume Storage" if quota is exceeded
> Logout this session and login with user admin
> Change the quota in "Total Size of Volumes and Snapshots (GiB)" to 1GB
> Logout of the admin user and login with the user 1GB quota.
> Check in overview the quota "Volume Storage", if used 2GB of 1GB

Erro description:
The horizon does not consider the value busy snapshot to decrease the volume quota in GB.

Revision history for this message
Adriano (dritec) wrote :
Revision history for this message
Adriano (dritec) wrote :
Revision history for this message
Adriano (dritec) wrote :
Adriano (dritec)
description: updated
Adriano (dritec)
information type: Public → Public Security
Revision history for this message
Jeremy Stanley (fungi) wrote :

I've switched this bug report from Public Security back to Public. If this really is a suspected security vulnerability, please follow up with at least a description of a scenario under which this bug can be used by an attacker to compromise security for or disrupt operation of the deployment.

information type: Public Security → Public
Changed in horizon:
assignee: nobody → Rebecca Finn (rebeccax-finn)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/353173

Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/353173
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=212e8b889cb6430dd8ac8aba7abd8ad84d78fdbe
Submitter: Jenkins
Branch: master

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.

    Change-Id: Ifb2586b048edbabfe9740a5c72b7abfbcf12576d
    Closes-Bug: #1611027

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 11.0.0.0b3

This issue was fixed in the openstack/horizon 11.0.0.0b3 development milestone.

Changed in horizon:
milestone: none → ocata-3
importance: Undecided → Low
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.