-
Bug
-
Resolution: Done
-
None
-
unspecified
-
None
-
Operating System: All
Platform: All
-
8874
Issue:
Tunnel_ips of hardware_vtep is cleared when Open vSwitch process restarted in Open vSwitch HWVTEP Emulator.
Tunnel_ips is cleared when ovsdb-server connects to ODL.
Details:
In one L2GW Node(with HA setting) environment, restart Open vSwitch process after GW/CONNECTION creation : 5 / 5 times happened
In one L2GW Node(without HA setting) environment, restart Open vSwitch process after GW/CONNECTION creation : 0 / 5 times happened
Reproduction Steps
1.Initialization
1.1 Initialize ODL
Delete snapshots, journal, data folders
Start ODL
Install feature
1.2 Set OVS in Controller/Compute Node to connect ODL
1.3 Create Network
1.4 Initialize L2GW Node and connect to ODL
1.5 Create GW/CONNECTION
2.L2GW Node process
ovsdb-client dump hardware_vtep > /tmp/before
ps -ef|grep ovs-vtep | grep -v grep | awk '
' | sh
pkill ovs-vswitchd
pkill ovsdb-server
ovs-dpctl del-flows system@ovs-system
ps -ef | grep ovs | grep -v grep
ps -ef | grep -v '[' | grep -v grep
3.Start L2GW Node process
vtep=10.0.0.50
ovsdb-server --pidfile --detach --log-file \
-vsyslog:dbg -vfile:dbg \
--remote=punix:/var/run/openvswitch/db.sock \
--remote=db:hardware_vtep,Global,managers \
--remote=ptcp:6632 /etc/openvswitch/ovs.db /etc/openvswitch/vtep.db
ovsdb-client dump hardware_vtep > /tmp/after-1
sleep 1
ovsdb-client dump hardware_vtep > /tmp/after-2
sleep 1
ovsdb-client dump hardware_vtep > /tmp/after-3
sleep 1
ovsdb-client dump hardware_vtep > /tmp/after-4
LOG Info:
The following logs are collected for environment of L2GW Node with HA setting.
karaf.log
ovsdb-server.log
Investigation:
We found the tunnel_ips setting requests log in ovsdb-server.log:
2017-07-18T06:26:14.968Z|00062|jsonrpc|DBG|tcp:172.16.1.30:6640: received request, method="transact", params=["hardware_vtep",{"where":[["name","==","ocata-l2gw1"]],"table":"Physical_Switch","op":"update","row":{"tunnel_ips":["set",[]]}},
], id="f219d330-cc99-4bd0-bfed-ace6878bc80e"
2017-07-18T06:26:14.968Z|00063|jsonrpc|DBG|tcp:172.16.1.30:6640: send notification, method="update", params=["ec3f9930-be2f-4d4d-91ea-1b9c042b9c16",{"Physical_Switch":{"36939d13-f767-4385-bd37-b4829611fd5b":{"new":
,"old":{"_version":["uuid","b866dc9f-a024-4b30-8d64-ab397ef62bd4"],"tunnel_ips":"10.0.0.50"}}}}]
And found the following log about information update has been raised from OVS in karaf.log
2017-07-18 15:26:15,201 | TRACE | entLoopGroup-5-1 | HwvtepMonitorCallback | 292 - org.opendaylight.ovsdb.hwvtepsouthbound-impl - 1.4.1.SNAPSHOT | result: TableUpdates [map={Physical_Switch=TableUpdate [{36939d13-f767-4385-bd37-b4829611fd5b=RowUpdate [uuid=36939d13-f767-4385-bd37-b4829611fd5b, oldRow=Row [columns=
], newRow=Row [columns={tunnels=[tunnels=[5e77e08c-68d6-4e9c-bdfe-e052446b52b8]], tunnel_ips=[tunnel_ips=[]], other_config=[other_config={}], management_ips=[management_ips=[]], name=[name=ocata-l2gw1], description=[description=OVS VTEP Emulator], _uuid=[_uuid=36939d13-f767-4385-bd37-b4829611fd5b], ports=[ports=[7b986670-e6e8-4209-b157-369d6a107137]], _version=[_version=415b5777-3122-4157-bff0-0c282fdc06a4], switch_fault_status=[switch_fault_status=[]]}]]}]}, error=null, details=null, getError()=null, getDetails()=null, getClass()=class org.opendaylight.ovsdb.lib.message.TableUpdates, hashCode()=1554159592, toString()=org.opendaylight.ovsdb.lib.message.TableUpdates@5ca297e8] dbSchema: hardware_vtep