os-quota-sets should show 'in use' and 'Reserved'

Bug #1183870 reported by Tiantian Gao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Tiantian Gao

Bug Description

As https://blueprints.launchpad.net/nova/+spec/apis-for-nova-manage described, nova-api contains all function of nova-manage.

nova-manage shows `in_use` and `reserved` like below.

$ nova-manage project quota --project aa41b3c3106045b98320a0c7bb4f819f
Quota Limit In Use Reserved
metadata_items 128 0 0
injected_file_content_bytes 10240 0 0
ram 51200 0 0
floating_ips 10 1 0
security_group_rules 20 0 0
instances 10 0 0
key_pairs 100 0 0
injected_files 5 0 0
cores 20 0 0
fixed_ips unlimited 0 0
injected_file_path_bytes 255 0 0
security_groups 10 0 0

But nova-api only show `limit` like below.
$ nova quota-show --tenant aa41b3c3106045b98320a0c7bb4f819f
+-----------------------------+-------+
| Property | Value |
+-----------------------------+-------+
| metadata_items | 128 |
| injected_file_content_bytes | 10240 |
| ram | 51200 |
| floating_ips | 10 |
| key_pairs | 100 |
| instances | 10 |
| security_group_rules | 20 |
| injected_files | 5 |
| cores | 20 |
| fixed_ips | -1 |
| injected_file_path_bytes | 255 |
| security_groups | 10 |
+-----------------------------+-------+

I think nova-api should show `in_use` and `Reserved` as nova-manage do.

Tags: api
Tiantian Gao (gtt116)
description: updated
tags: added: api
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
assignee: nobody → TianTian Gao (gtt116)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/32303
Committed: http://github.com/openstack/nova/commit/8b388f05195cfe6eec34ce9d52781d9f5b88ed66
Submitter: Jenkins
Branch: master

commit 8b388f05195cfe6eec34ce9d52781d9f5b88ed66
Author: gtt116 <email address hidden>
Date: Tue Jul 30 16:34:18 2013 +0800

    [v3] Show detail of an quota in API os-quota-sets

    nova-manage shows `in_use`, `reserved` including `limit` of a quota.
    So create a new API named `detail` to do the same with nova-manage.

    The new URL is like :/v3/os-quota-sets/1234/detail.

    Fix bug: #1183870

    DocImpact

    Change-Id: Ic53a68acf0f3f3184c7a900360343bb576560f46

Tiantian Gao (gtt116)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → havana-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-3 → 2013.2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

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.