Bug 1041491

Summary: [RFE][cinder]: Add currently used resources to already existing absolute-limits command
Product: Red Hat OpenStack Reporter: RHOS Integration <rhos-integ>
Component: openstack-cinderAssignee: Eric Harney <eharney>
Status: CLOSED ERRATA QA Contact: Yogev Rabl <yrabl>
Severity: medium Docs Contact:
Priority: high    
Version: unspecifiedCC: adahms, ddomingo, dron, eharney, markmc, scohen, sgordon, sgotliv, yeylon
Target Milestone: Upstream M1Keywords: FutureFeature, Triaged
Target Release: 5.0 (RHEL 7)   
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/cinder/+spec/cinder-used-resources-in-absolute-limits
Whiteboard: upstream_milestone_icehouse-1 upstream_status_implemented upstream_definition_approved
Fixed In Version: Doc Type: Enhancement
Doc Text:
Previously, the 'cinder absolute-limits' command only displayed the maximum usable limits of a tenant. With this release, the same command now returns a tenant's consumed resources as well, namely: * totalVolumesUsed (as in, the total number of volumes used) * totalGigabytesUsed
Story Points: ---
Clone Of:
: 1069456 (view as bug list) Environment:
Last Closed: 2014-07-08 15:30:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1069456    

Description RHOS Integration 2013-12-12 16:38:07 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/cinder/+spec/cinder-used-resources-in-absolute-limits.

Description:

Actually, the absolute-limits command only returns the maximum usable limits for a tenant. Nova has the same call but returns the currently used resources of a tenant. The goal is to do the same thing in Cinder so an api user can get the same kind of information from a similar call.

Specification URL (additional information):

None

Comment 2 Sean Cohen 2014-01-14 09:55:03 UTC
*** Bug 1041492 has been marked as a duplicate of this bug. ***

Comment 3 Stephen Gordon 2014-01-23 20:48:26 UTC
Moving to POST based on upstream status (Implemented).

Comment 7 Sergey Gotliv 2014-05-28 07:46:43 UTC
I am changing the status to ON_QA, because its already tested.

Comment 8 Yogev Rabl 2014-05-28 12:09:26 UTC
verfied: 

# cinder absolute-limits 
+-------------------------+-------+
|           Name          | Value |
+-------------------------+-------+
|    maxTotalSnapshots    |   10  |
| maxTotalVolumeGigabytes |  1000 |
|     maxTotalVolumes     |   10  |
|    totalGigabytesUsed   |  173  |
|    totalSnapshotsUsed   |   2   |
|     totalVolumesUsed    |   6   |
+-------------------------+-------+

version:
python-cinder-2014.1-3.1.el7ost.noarch
openstack-cinder-2014.1-3.1.el7ost.noarch
python-cinderclient-1.0.8-1.el7ost.noarch

Comment 11 errata-xmlrpc 2014-07-08 15:30:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2014-0852.html