Manage quotas in OpenStack Admin User Guide  - havana

Bug #1298305 reported by Pavel Soucek
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-cinderclient
Invalid
Undecided
Unassigned

Bug Description

-----------------------------------
Built: 2014-03-27T10:26:08 00:00
git SHA: 6adcdfc23251fba285ec33fb04685756ed7c642e
URL: http://docs.openstack.org/user-guide-admin/content/cli_set_quotas.html
source File: file:/home/jenkins/workspace/openstack-user-guide-admin/doc/user-guide-admin/section_cli_keystone_set_quotas.xml
xml:id: cli_set_quotas

there should be tenant-id instead of tenant-name
using tenant-name don`t throw error but shows default values instead of configured ones

[root@havana ~(keystone_admin)]# keystone tenant-list
+----------------------------------+---------------+---------+
| id | name | enabled |
+----------------------------------+---------------+---------+
| 8d75001018f841eb93e1349b22eafb8a | admin | True |
| e8694a405e104baeb207d1d21df71539 | services | True |
| 211131cd635a466cb7bd17b35d1fe01d | test_tenant_1 | True |

+----------------------------------+---------------+---------+
[root@havana ~(keystone_admin)]# cinder quota-usage test_tenant_1
+-----------+--------+----------+-------+
| Type | In_use | Reserved | Limit |
+-----------+--------+----------+-------+
| gigabytes | 0 | 0 | 1000 |
| snapshots | 0 | 0 | 10 |
| volumes | 0 | 0 | 10 |
+-----------+--------+----------+-------+

[root@havana ~(keystone_admin)]# cinder quota-usage 211131cd635a466cb7bd17b35d1fe01d
+-----------+--------+----------+-------+
| Type | In_use | Reserved | Limit |
+-----------+--------+----------+-------+
| gigabytes | 0 | 0 | 2000 |
| snapshots | 0 | 0 | 15 |
| volumes | 0 | 0 | 15 |
+-----------+--------+----------+-------+

[root@havana ~(keystone_admin)]# cinder quota-show test_tenant_1
+-----------+-------+
| Property | Value |
+-----------+-------+
| gigabytes | 1000 |
| snapshots | 10 |
| volumes | 10 |
+-----------+-------+
[root@havana ~(keystone_admin)]# cinder quota-show 211131cd635a466cb7bd17b35d1fe01d
+-----------+-------+
| Property | Value |
+-----------+-------+
| gigabytes | 2000 |
| snapshots | 15 |
| volumes | 15 |
+-----------+-------+

Revision history for this message
Andreas Jaeger (jaegerandi) wrote :

Are you using current package versions of python-cinderclient? Which is your version exactly?

Revision history for this message
Pavel Soucek (umon01) wrote : Re: [Bug 1298305] Re: Manage quotas in OpenStack Admin User Guide - havana
Download full text (3.7 KiB)

Hi Andreas,

report is made on testing centos 6.5 server (should be up to date )
[root@havana ~(keystone_admin)]# cinder --version
1.0.7
[root@havana ~(keystone_admin)]# rpm -qa | grep cinder
python-cinder-2013.2.2-1.el6.noarch
python-cinderclient-1.0.7-2.el6.noarch
openstack-cinder-2013.2.2-1.el6.noarch
[root@havana ~(keystone_admin)]# uname -a
Linux havana 2.6.32-431.5.1.el6.x86_64 #1 SMP Wed Feb 12 00:41:43 UTC
2014 x86_64 x86_64 x86_64 GNU/Linux

P.S. seems there are no parametr check for instance id - if command
get wrong id as parametr (any string) then prints global default
values ( 1000,10,10 in my case) instead of throwing error - so better
show in documentation that instance id must be used or maybe there is
bug in this version of client.

 Best regards

     Pavel Soucek

2014-03-27 14:07 GMT+01:00 Andreas Jaeger <email address hidden>:
> Are you using current package versions of python-cinderclient? Which is
> your version exactly?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1298305
>
> Title:
> Manage quotas in OpenStack Admin User Guide - havana
>
> Status in OpenStack Manuals:
> New
>
> Bug description:
>
> -----------------------------------
> Built: 2014-03-27T10:26:08 00:00
> git SHA: 6adcdfc23251fba285ec33fb04685756ed7c642e
> URL: http://docs.openstack.org/user-guide-admin/content/cli_set_quotas.html
> source File: file:/home/jenkins/workspace/openstack-user-guide-admin/doc/user-guide-admin/section_cli_keystone_set_quotas.xml
> xml:id: cli_set_quotas
>
> there should be tenant-id instead of tenant-name
> using tenant-name don`t throw error but shows default values instead of configured ones
>
> [root@havana ~(keystone_admin)]# keystone tenant-list
> +----------------------------------+---------------+---------+
> | id | name | enabled |
> +----------------------------------+---------------+---------+
> | 8d75001018f841eb93e1349b22eafb8a | admin | True |
> | e8694a405e104baeb207d1d21df71539 | services | True |
> | 211131cd635a466cb7bd17b35d1fe01d | test_tenant_1 | True |
>
> +----------------------------------+---------------+---------+
> [root@havana ~(keystone_admin)]# cinder quota-usage test_tenant_1
> +-----------+--------+----------+-------+
> | Type | In_use | Reserved | Limit |
> +-----------+--------+----------+-------+
> | gigabytes | 0 | 0 | 1000 |
> | snapshots | 0 | 0 | 10 |
> | volumes | 0 | 0 | 10 |
> +-----------+--------+----------+-------+
>
> [root@havana ~(keystone_admin)]# cinder quota-usage 211131cd635a466cb7bd17b35d1fe01d
> +-----------+--------+----------+-------+
> | Type | In_use | Reserved | Limit |
> +-----------+--------+----------+-------+
> | gigabytes | 0 | 0 | 2000 |
> | snapshots | 0 | 0 | 15 |
> | volumes | 0 | 0 | 15 |
> +-----------+--------+----------+-------+
>
> [root@havana ~(keystone_admin)]# cinder quota-show test_tenant_1
> +-----------+-------+
> | Property | ...

Read more...

Revision history for this message
Stephen Gordon (sgordon) wrote :

To be honest that seems like a bug in the client to me - what do you think Andreas?

Anne Gentle (annegentle)
no longer affects: openstack-manuals
Revision history for this message
Juan Manuel Ollé (juan-m-olle) wrote :

I think this is a cinder bug, here is some reference

https://bugs.launchpad.net/cinder/+bug/1293418

Revision history for this message
Sean McGinnis (sean-mcginnis) wrote : Bug Cleanup

Closing stale bug. If this is still an issue please reopen.

Changed in python-cinderclient:
status: New → Invalid
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.