Volume snapshots do not count towards the storage usage in Create Volume / Extend Volume / Create Volume Snapshot modal

Bug #1283281 reported by Vahid Hashemian
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
In Progress
Undecided
Kieran Spear

Bug Description

There is a single storage quota value for both volumes and volume snapshots. This is reflected in Project Overview panel where the total sizes of all volumes and volume snapshots is displayed on the pie chart.

However, in Create Volume, Extend Volume, and Create Volume Snapshot modals only the total sizes of all volumes is displayed. Even though the actual used storage includes snapshot usage as well. Storage quota applies to the total sizes of volumes and volume snapshots.

To reproduce the issue within one project:
1. Set project quota for Gigabytes to 5
2. Create a volume "vol1" of size 2 GB
3. Create a snapshot of "vol1" called "snap1"
4. Create a volume "vol2" of size 2 GB. You'll notice the "Create Volume" modal shows 2 / 5 GB storage is used. But the volume creation fails. (if you change the quota to 6 volume creation succeeds).
5. Similarly create a second snapshot of "vol1" called "snap2". Again the "Create Volume Snapshot" modal shows 2 / 5 GB storage is used. But snapshot creation fails. (if you change the quota to 6 snapshot creation succeeds).

Suggestion is to show the total sizes of all volumes and volume snapshots in those modals.

Tags: volume
Changed in horizon:
assignee: nobody → Vahid Hashemian (vahidhashemian)
summary: Volume snapshots do not count towards the storage usage in Create Volume
- / Create Snapshot modal
+ / Extend Volume / Create Volume Snapshot modal
description: updated
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/75547

Changed in horizon:
status: New → In Progress
Revision history for this message
Julie Pichon (jpichon) wrote :

This seems like a duplicate of bug 1211741?

From your patch and comment 6 on that other bug, it looks like the issues that were brought up in comment 4 are resolved, I think.

Akihiro Motoki (amotoki)
tags: added: volume
removed: horizon snapshots storage-usage
Changed in horizon:
assignee: Vahid Hashemian (vahidhashemian) → Kieran Spear (kspear)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by David Lyle (<email address hidden>) on branch: master
Review: https://review.openstack.org/75547
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

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.