OVSDB-438: missing operational node 04/66504/5
authorK.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
Fri, 15 Dec 2017 11:06:00 +0000 (16:36 +0530)
committerSam Hague <shague@redhat.com>
Fri, 16 Feb 2018 02:45:02 +0000 (02:45 +0000)
commitf4cc606fe5b52061083638326cdb7c4b9759df80
treef268829f1a1b2a905b3650e1bd41b518b82fa3d5
parent8f138b62b91a04c1c67cb3cb181e07661463285f
OVSDB-438: missing operational node

Handle the following scenarios
client connects to only one odl controller via ha proxy

1) client disconnects and connects back to same node after some delay
2) client disconnects and connects back to same node immediately
3) client disconnects and connects to another node after some delay
4) client disconnects and connects to another node immediately
5) client disconnects and never connects back

When client disconnects all the odl controllers are trying to cleanup the oper
node.
When client connects the owner odl controller is trying to create the oper node.

When the processing of one odl controller which is trying to cleanup the opernode is
delayed , then we end up client node missing in oper topology.

Fix

Listen for oper node removal and if some client is still connected then
recreate it.

Change-Id: Ib88e8385f199c2105c51ce49e01e4318c1ae1463
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepConnectionInstance.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepConnectionManager.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepOperGlobalListener.java [new file with mode: 0644]
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepSouthboundUtil.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepTableReader.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/transactions/md/HwvtepLogicalSwitchUpdateCommand.java