openstack quota set/show --class not work

Bug #1609233 reported by QiangTang on 2016-08-03
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) on 2016-08-03
Changed in python-openstackclient:
assignee: nobody → QiangTang (qtang)

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

Changed in python-openstackclient:
status: New → In Progress

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

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

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

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  Edit
Everyone can see this information.

Other bug subscribers