quota-list not showing the non-default quotas for tenants

Bug #1351931 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
Critical
Sachin Bansal

Bug Description

Build 1.10 2282

Per neutron documentation : "quota-list displays a list of tenants for which per-tenant quota is enabled. The tenants who have the default set of quota limits are not listed"

But in our contrail implementation, quota-list output does not have the tenant-ids at all. There is always only one line containg the quotas.

root@nodec22:/usr/lib/python2.7/dist-packages# keystone tenant-create --name abhinandan
+-------------+----------------------------------+
| Property | Value |
+-------------+----------------------------------+
| description | |
| enabled | True |
| id | 0fd8324a853e47188effdc8818fe45d9 |
| name | abhinandan |
+-------------+----------------------------------+
root@nodec22:/usr/lib/python2.7/dist-packages# neutron quota-update --tenant-id 0fd8324a853e47188effdc8818fe45d9 --port 51
+---------------------+-------+
| Field | Value |
+---------------------+-------+
| floatingip | -1 |
| nat_instance | -1 |
| network | -1 |
| port | -1 |
| route_table | -1 |
| router | -1 |
| security_group | -1 |
| security_group_rule | -1 |
| subnet | -1 |
+---------------------+-------+
root@nodec22:/usr/lib/python2.7/dist-packages# neutron quota-list
+------------+--------------+---------+------+-------------+--------+----------------+---------------------+--------+
| floatingip | nat_instance | network | port | route_table | router | security_group | security_group_rule | subnet |
+------------+--------------+---------+------+-------------+--------+----------------+---------------------+--------+
| -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 |
+------------+--------------+---------+------+-------------+--------+----------------+---------------------+--------+
root@nodec22:/usr/lib/python2.7/dist-packages#

------------
 Same on stock openstack + openvswitch

root@nodec43:/usr/lib/python2.7/dist-packages/neutron/db# neutron quota-list
+------------+---------+------+--------+----------------+---------------------+--------+----------------------------------+
| floatingip | network | port | router | security_group | security_group_rule | subnet | tenant_id |
+------------+---------+------+--------+----------------+---------------------+--------+----------------------------------+
| 50 | 40 | -1 | 10 | 10 | 100 | -1 | tenant_a |
| 50 | -1 | -1 | 10 | 10 | 100 | -1 | 5ca0a1c56d47409c90befe31521c7eac |
| 50 | -1 | -1 | 10 | 10 | 100 | -1 | 83986700994a4ec2ace99b3b65d17357 |
+------------+---------+------+--------+----------------+---------------------+--------+----------------------------------+
root@nodec43:/usr/lib/python2.7/dist-packages/neutron/db#
root@nodec43:/usr/lib/python2.7/dist-packages/neutron/db# neutron quota-update --tenant-id 407ef374fc28400c829b059125d027e3 --port 51
+---------------------+-------+
| Field | Value |
+---------------------+-------+
| floatingip | 50 |
| network | -1 |
| port | 51 |
| router | 10 |
| security_group | 10 |
| security_group_rule | 100 |
| subnet | -1 |
+---------------------+-------+
root@nodec43:/usr/lib/python2.7/dist-packages/neutron/db#
root@nodec43:/usr/lib/python2.7/dist-packages/neutron/db# neutron quota-list
+------------+---------+------+--------+----------------+---------------------+--------+----------------------------------+
| floatingip | network | port | router | security_group | security_group_rule | subnet | tenant_id |
+------------+---------+------+--------+----------------+---------------------+--------+----------------------------------+
| 50 | 40 | -1 | 10 | 10 | 100 | -1 | tenant_a |
| 50 | -1 | -1 | 10 | 10 | 100 | -1 | 5ca0a1c56d47409c90befe31521c7eac |
| 50 | -1 | -1 | 10 | 10 | 100 | -1 | 83986700994a4ec2ace99b3b65d17357 |
| 50 | -1 | 51 | 10 | 10 | 100 | -1 | 407ef374fc28400c829b059125d027e3 |
+------------+---------+------+--------+----------------+---------------------+--------+----------------------------------+
root@nodec43:/usr/lib/python2.7/dist-packages/neutron/db#

Raj Reddy (rajreddy)
Changed in juniperopenstack:
importance: High → Critical
Sachin Bansal (sbansal)
Changed in juniperopenstack:
status: New → In Progress
Revision history for this message
Sachin Bansal (sbansal) wrote :
Changed in juniperopenstack:
status: In Progress → Fix Committed
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.