← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1479981] Re: Openstackclient return wrong quota information

 

The real problem is  to show  quota you should use the exact  string
that you specified as tenant-id when updating the quota.

In your case, you specified the tenant-id is UUID when you update the
port quota

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

So you need to also use that UUID to get the quota instead of "admin"
although in most of the cases they can be interchangeable.

Try ` openstack quota show d3a77adc69004a6bbfe233cf7f08fdc1`

Seems somewhere lacks the mapping between UUID and human readable names.

** Project changed: neutron => python-neutronclient

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

Title:
  Openstackclient return wrong quota information

Status in python-neutronclient:
  New
Status in python-openstackclient:
  New

Bug description:
  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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-neutronclient/+bug/1479981/+subscriptions


References