← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1479981] [NEW] Openstackclient return wrong quota information

 

You have been subscribed to a public bug:

I try to update the quota port limitations for my project, neutronclient
works well and I can get the right result using neutronclient. But when
we run ```openstack  quota show admin``` we found the quota port
limitation doesn't changed.  Here are the testing process:


layton-pistachio:/opt/openstack # neutron --insecure --os-project-id d3a77adc69004a6bbfe233cf7f08fdc1 --os-project-domain-name default --os-user-domain-name default quota-update --port 160

+---------------------+-------+
| Field               | Value |
+---------------------+-------+
| floatingip          | 50    |
| health_monitor      | -1    |
| member              | -1    |
| network             | 10    |
| pool                | 10    |
| port                | 160   |
| router              | 10    |
| security_group      | 10    |
| security_group_rule | 100   |
| subnet              | 10    |
| vip                 | 10    |
+---------------------+-------+
layton-pistachio:/opt/openstack # neutron --insecure --os-project-id d3a77adc69004a6bbfe233cf7f08fdc1 --os-project-domain-name default --os-user-domain-name default quota-show
+---------------------+-------+
| Field               | Value |
+---------------------+-------+
| floatingip          | 50    |
| health_monitor      | -1    |
| member              | -1    |
| network             | 10    |
| pool                | 10    |
| port                | 160   |
| router              | 10    |
| security_group      | 10    |
| security_group_rule | 100   |
| subnet              | 10    |
| vip                 | 10    |
+---------------------+-------+
layton-pistachio:/opt/openstack # openstack quota show admin
+----------------------+-------+
| Field                | Value |
+----------------------+-------+
| backup_gigabytes     | 1000  |
| backups              | 10    |
| cores                | 20    |
| fixed-ips            | -1    |
| floating-ips         | 50    |
| gigabytes            | 1000  |
| health_monitor       | -1    |
| injected-file-size   | 10240 |
| injected-files       | 5     |
| injected-path-size   | 255   |
| instances            | 10    |
| key-pairs            | 100   |
| member               | -1    |
| network              | 10    |
| pool                 | 10    |
| port                 | 50    |
| project              | admin |
| properties           | 128   |
| ram                  | 51200 |
| router               | 10    |
| secgroup-rules       | 100   |
| secgroups            | 10    |
| server_group_members | 10    |
| server_groups        | 10    |
| snapshots            | 10    |
| subnet               | 10    |
| vip                  | 10    |
| volumes              | 10    |
+----------------------+-------+

layton-pistachio:/opt/openstack # openstack project list
+----------------------------------+---------+
| ID                               | Name    |
+----------------------------------+---------+
| 1c30e840b3d1447ea3820d99cc38cd33 | service |
| 55d10960d5f7447990e69ebf481ac97d | demo    |
| d3a77adc69004a6bbfe233cf7f08fdc1 | admin   |
+----------------------------------+---------+



I checked the neutron database and the quota information was right:


MariaDB [neutron]> select * from quotas;
+--------------------------------------+----------------------------------+----------+-------+
| id                                   | tenant_id                        | resource | limit |
+--------------------------------------+----------------------------------+----------+-------+
| 1c5586f5-7c71-4666-9162-bf29bcaa511d | d3a77adc69004a6bbfe233cf7f08fdc1 | port     |   160 |
+--------------------------------------+----------------------------------+----------+-------+
1 row in set (0.00 sec)

** Affects: neutron
     Importance: Undecided
     Assignee: Rui Zang (rui-zang)
         Status: New

** Affects: python-openstackclient
     Importance: Undecided
     Assignee: Rui Zang (rui-zang)
         Status: New

-- 
Openstackclient return wrong quota information
https://bugs.launchpad.net/bugs/1479981
You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron.


References