[GENIUS-78] Inconsistent tunnel port information in Genius Created: 28/Apr/17 Updated: 30/Oct/17 Resolved: 18/May/17 |
|
| Status: | Resolved |
| Project: | genius |
| Component/s: | General |
| Affects Version/s: | Carbon |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Brady Johnson | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
| External issue ID: | 8332 |
| Priority: | High |
| Description |
|
When I execute this RESTconf command, I get the following: curl -H "Content-Type: application/json" -X GET --user admin:admin http://localhost:8181/restconf/config/odl-interface-meta:bridge-interface-info | python -m json.tool { , , , { "interface-name": "tunc5bbb60c5be" } ], , , , { "interface-name": "tune235dba66db" } ], , , , { "interface-name": "tun0ee97cb99a7" } ], But this information does not coincide with what I actually have in the OVS bridges, as can be seen below: [vagrant@localhost ~]$ docker exec firewall ovs-vsctl show Port "tune235dba66db" Port "tunf7fc5075a90" Port "tape4a67c1e-61" [vagrant@localhost ~]$ docker exec client1 ovs-vsctl show Port br-int Port "tun9574fb33977" ovs_version: "2.6.1" [vagrant@localhost ~]$ docker exec server1 ovs-vsctl show Port br-int Port "tune40822e4b24" ovs_version: "2.6.1" Additionally, the interfaceMgr.getTunnelPortsOnBridge(dpnId); Genius RPC gives me even different information. |
| Comments |
| Comment by Brady Johnson [ 28/Apr/17 ] |
|
Attachment karaf_log_bug8332.tgz has been added with description: karaf logs |
| Comment by Hema Gopalakrishnan [ 29/Apr/17 ] |
|
Can you please list down the steps to reproduce this issue. Do you see this issue consistently? |
| Comment by Brady Johnson [ 30/Apr/17 ] |
|
Yes, the problem is consistent. |
| Comment by Brady Johnson [ 30/Apr/17 ] |
|
To reproduce this, we are using the SFC dovs testing harness with a locally built netvirt karaf distro. Since we found this problem, we havent merged this final dovs draft patch yet: https://git.opendaylight.org/gerrit/#/c/55996/ You'll need to use this patch to reproduce the problem. I added Vishal and Hema as reviewers. Using a locally built karaf distro from netvirt/vpnservice: From the SFC repo: cd sfc-test/sfc-docker From within vagrant: export ODL_IP=172.28.128.1 You should be able to see the problem now, but there is one step left in the test. Then to install the netvirt classifier rules: curl -i -H "Content-Type: application/json" -H "Cache-Control: no-cache" --data '{ "acl": [ { "acl-name": "ACL1", "acl-type": "ietf-access-control-list:ipv4-acl", "access-list-entries": { "ace": [ { "rule-name": "ACE1", "actions": { "netvirt-sfc-acl:rsp-name": "RSP1" }, "matches": { "network-uuid" : "177bef73-514e-4922-990f-d7aba0f3b0f4", "source-ipv4-network": "10.0.0.2/32", "protocol": "6", "source-port-range": { "lower-port": 0 }, "destination-port-range": { "lower-port": 80 }} } ] } }]}' -X PUT --user admin:admin http://localhost:8181/restconf/config/ietf-access-control-list:access-lists/acl/ietf-access-control-list:ipv4-acl/ACL1 |
| Comment by Jaime CaamaƱo Ruiz [ 03/May/17 ] |
|
Tested Vishal patch [1] and solves the issue. |
| Comment by Vishal Thapar [ 16/May/17 ] |
|
Added some more changes based on issues found in same code by others and some testing. |
| Comment by A H [ 17/May/17 ] |
|
We are looking to build Carbon RC2 tomorrow 5/18 at 23:59 UTC time assuming there are no blocker bugs. Is there an ETA for when a fix can be merged and this bug resolved for stable/carbon branch? |