port-list by tenant-id does not show ports created from shared vns

Bug #1356778 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R1.1
Fix Committed
High
Prakash Bailkeri
Trunk
Fix Committed
High
Prakash Bailkeri

Bug Description

Build 1.10 12

Below, a port was created in project1, from a shared VN whose tenant is "public"

root@nodec22:~# neutron port-show c9f4e4c8-10ba-4db3-a3aa-153e720cf53d --tenant-id 144bff2941e64b129f1fc0a69e9c50fd | grep tenant
| tenant_id | 144bff2941e64b129f1fc0a69e9c50fd |
root@nodec22:~# neutron port-list --tenant-id 144bff2941e64b129f1fc0a69e9c50fd

root@nodec22:~#

root@nodec22:~# keystone tenant-list
+----------------------------------+--------------------+---------+
| id | name | enabled |
+----------------------------------+--------------------+---------+
| 1dde89c422cc495f97d8e3359f78432c | admin | True |
| 84dde4de99ce4c99ba38279b01da49fa | demo | True |
| e1de91bb187840daa392b310c72917e4 | invisible_to_admin | True |
| 144bff2941e64b129f1fc0a69e9c50fd | project1 | True |
| 0a9525a10eed4c69ab941cefdabbbd06 | public | True |
| 80405551e8794115bdb3fe64fe23b66b | service | True |
| 82356b4042a3425a9704fbf6a3813523 | test1 | True |
+----------------------------------+--------------------+---------+
root@nodec22:~# neutron port-list
+--------------------------------------+--------------------------------------+-------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| id | name | mac_address | fixed_ips |
+--------------------------------------+--------------------------------------+-------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| fbeb556d-7bf1-4091-97e2-520b9a972e53 | fbeb556d-7bf1-4091-97e2-520b9a972e53 | 02:fb:eb:55:6d:7b | {"subnet_id": "f37eb388-5f2f-4bd0-8556-2f288b73d83c", "ip_address": "7.7.7.2", "port_id": "fbeb556d-7bf1-4091-97e2-520b9a972e53", "net_id": "a71c5b84-958c-4b1d-ac18-e6a22a406623"} |
| c9f4e4c8-10ba-4db3-a3aa-153e720cf53d | c9f4e4c8-10ba-4db3-a3aa-153e720cf53d | 02:c9:f4:e4:c8:10 | {"subnet_id": "e407e579-009c-49c9-ace0-b25842eccfed", "ip_address": "10.204.219.66", "port_id": "c9f4e4c8-10ba-4db3-a3aa-153e720cf53d", "net_id": "4ae8a9de-3f2e-4b89-997d-71ee333840d1"} |
+--------------------------------------+--------------------------------------+-------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
root@nodec22:~#

Revision history for this message
Ashish Ranjan (aranjan-n) wrote :

Should be fixed now

tags: added: blocker
Changed in juniperopenstack:
status: New → Fix Committed
Revision history for this message
Prakash Bailkeri (prakashmb) wrote :

Fixed by https://github.com/Juniper/contrail-controller/commit/0e73d78852631c67f594904296221f35c00c02dc

To handle port_list in a setup upgraded from R1.05(or below), Set list_optimization_enabled to false in contrail-api.conf file DEFAULT section. In such a case, port-list on a tenant will not show ports belonging to shared VN.

In a fresh install or upgrade from R1.06, set list_optimization_enabled to true. It would optimize the port list and also list all ports (even the one belonging to shared VN)

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.