[GENIUS-75] VxLan ITM tunnel is flapping as we create, delete and create once again Created: 24/Apr/17  Updated: 06/Jun/17  Resolved: 06/Jun/17

Status: Resolved
Project: genius
Component/s: General
Affects Version/s: (unspecified)
Fix Version/s: None

Type: Bug
Reporter: Nazeerahamed Hunshyal Assignee: Faseela K
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: All


Attachments: HTML File Karaf_commands_log_txt     Text File karaf.log    
External issue ID: 8277
Priority: Normal

 Description   

Topology:
=========
Two OVS switches are connected to Genius Carbon controller running karaf.

Description:
============
Creating VxLan ITM between two OVS switches first time works fine. When we delete and re-create VxLAN tunnel then interfaces are flapping.

Steps to repro this issue:
==========================
1. Run distribution ODL controller (See "Running Karaf" section below)

2. Config OVS1 and OVS2 (See below "OVS-1 Configs" & "OVS-2 Configs" section below).

3. Create ITM tunnel using curl command (See "Curl commands to create and delete ITM" section below). Verify/Ensure "tep:show-state", "tep:show" & "vxlan:show" output on ODL controller are as expected.

4. Delete ITM tunnel using curl command. Verify/Ensure "tep:show-state", "tep:show" & "vxlan:show" output on ODL controller are as expected.

5. Once again create ITM tunnel using curl command. Periodically (say every 5secs) execute tep:show-state" OR "vxlan:show" on ODL controller.

Observe: We see that tunnel interfaces are flapping (karaf logs are attached with this bug).

Running Karaf
=============
1. Download Carbon image from https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/distribution-karaf/0.6.0-SNAPSHOT/distribution-karaf-0.6.0-20170424.011734-5016.tar.gz
2. tar -zxvf distribution-karaf-0.6.0-20170424.011734-5016.tar.gz
3. Get into extracted directory
4. Run bin/karaf and issue "feature:install odl-genius-ui" on karaf prompt.
5. Enable interface trace log collection using "log:set TRACE org.opendaylight.genius.interfacemanager" on karaf prompt.

OVS-1 Configs
=============
sudo ovs-vsctl add-br BR1
sudo ovs-vsctl set bridge BR1 protocols=OpenFlow13
sudo ovs-vsctl set-controller BR1 tcp:10.164.225.106:6633
sudo ifconfig BR1 up
sudo ovs-vsctl set-manager tcp:10.164.225.106:6640
sudo ovs-vsctl show
sudo ovs-ofctl show BR1 -O Openflow13

OVS-2 Configs
=============
sudo ovs-vsctl add-br BR2
sudo ovs-vsctl set bridge BR2 protocols=OpenFlow13
sudo ovs-vsctl set-controller BR2 tcp:10.164.225.106:6633
sudo ifconfig BR2 up
sudo ovs-vsctl set-manager tcp:10.164.225.106:6640
sudo ovs-vsctl show
sudo ovs-ofctl show BR2 -O Openflow13

Curl commands to create and delete ITM
=======================================
curl -u admin:admin -X POST -H "Content-Type:application/json" -d @itm.body "http://10.164.225.106:8181/restconf/config/itm:transport-zones/" -v

curl -u admin:admin -X DELETE -H "Content-Type:application/json" -d @itm.body "http://10.164.225.106:8181/restconf/config/itm:transport-zones/" -v

itm.body
========
{
"transport-zone": [
{
"subnets": [
{
"gateway-ip": "0.0.0.0",
"prefix": "10.164.225.0/24",
"vlan-id": 0,
"vteps": [

{ "dpn-id": 275314404751424, "ip-address": "10.164.225.106", "portname": "BR1-eth1" }

,

{ "dpn-id": 117601072879950, "ip-address": "10.164.225.107", "portname": "BR2-eth1" }

]
}
],
"tunnel-type": "odl-interface:tunnel-type-vxlan",
"zone-name": "TZA"
}
]
}



 Comments   
Comment by Nazeerahamed Hunshyal [ 24/Apr/17 ]

Attachment karaf.log has been added with description: Karaf log

Comment by Nazeerahamed Hunshyal [ 24/Apr/17 ]

Attachment Karaf_commands_log_txt has been added with description: tep show and vxlan show command outputs

Comment by Faseela K [ 25/Apr/17 ]

https://git.opendaylight.org/gerrit/55982

Generated at Wed Feb 07 19:59:51 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.