openstack quota set/show --class not work

Bug #1609233 reported by QiangTang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Medium
QiangTang

Bug Description

root@controller01:~# cinder quota-class-update --gigabytes 11002 default
+----------------------+-------+
| Property | Value |
+----------------------+-------+
| backup_gigabytes | 1000 |
| backups | 10 |
| gigabytes | 11002 |
| per_volume_gigabytes | -1 |
| snapshots | 10 |
| volumes | 10 |
+----------------------+-------+

Try to update default class through --class by openstack client

root@controller01:~# openstack quota set --class --gigabytes 11003 default
No tenant with a name or ID of 'default' exists.

Seem the --class not work when setting the quota class.

QiangTang (qtang)
Changed in python-openstackclient:
assignee: nobody → QiangTang (qtang)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)

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

Changed in python-openstackclient:
status: New → In Progress
Revision history for this message
QiangTang (qtang) wrote : Re: openstack quota set --class not work

root@controller01:~# openstack quota show --class default
No tenant with a name or ID of 'default' exists.

Same issue when try to show the quota class

Revision history for this message
QiangTang (qtang) wrote :

With my code fix it works fine:

rally@9f7f62b82dd4:~$ openstack --insecure quota show --class default
+----------------------+---------+
| Field | Value |
+----------------------+---------+
| backup_gigabytes | 1000 |
| backups | 10 |
| cores | 20 |
| fixed-ips | -1 |
| floating-ips | 10 |
| gigabytes | 10003 |
| injected-file-size | 10240 |
| injected-files | 5 |
| injected-path-size | 255 |
| instances | 10 |
| key-pairs | 100 |
| per_volume_gigabytes | -1 |
| project | default |
| properties | 128 |
| ram | 51200 |
| secgroup-rules | 20 |
| secgroups | 10 |
| snapshots | 10 |
| volumes | 10 |
+----------------------+---------+
rally@9f7f62b82dd4:~$ openstack --insecure quota set --gigabytes 10004 --class default
rally@9f7f62b82dd4:~$ openstack --insecure quota show --class default
+----------------------+---------+
| Field | Value |
+----------------------+---------+
| backup_gigabytes | 1000 |
| backups | 10 |
| cores | 20 |
| fixed-ips | -1 |
| floating-ips | 10 |
| gigabytes | 10004 |
| injected-file-size | 10240 |
| injected-files | 5 |
| injected-path-size | 255 |
| instances | 10 |
| key-pairs | 100 |
| per_volume_gigabytes | -1 |
| project | default |
| properties | 128 |
| ram | 51200 |
| secgroup-rules | 20 |
| secgroups | 10 |
| snapshots | 10 |
| volumes | 10 |
+----------------------+---------+

summary: - openstack quota set --class not work
+ openstack quota set/show --class not work
Changed in python-openstackclient:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/351581
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=2a01ede6b65b20484776aa02d4c1ad9a7a82c240
Submitter: Jenkins
Branch: master

commit 2a01ede6b65b20484776aa02d4c1ad9a7a82c240
Author: qtang <email address hidden>
Date: Fri Aug 5 16:49:08 2016 +0800

    Fix openstack quota set/show --class not work

    identity_client should not be used for quota class operation.
    Update code to fix the qutoa class set/show issue.

    Change-Id: I71c59c08a0d5da29982497f589e1efe131997f21
    Closes-Bug: #1609233

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

This issue was fixed in the openstack/python-openstackclient 3.3.0 release.

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.