Fix ovsdb node update in clustered environment 46/27446/1
authorAnil Vishnoi <vishnoianil@gmail.com>
Wed, 23 Sep 2015 18:08:06 +0000 (23:38 +0530)
committerAnil Vishnoi <vishnoianil@gmail.com>
Fri, 25 Sep 2015 15:27:24 +0000 (15:27 +0000)
commit65f5eca88489ba7941a5843e1a3703c5af3db6ee
tree4fd716e4d3b7bd8bc1d093fb2b3fdb52da1fdde9
parentbd1627bf93bfd00b2a8fc8ca43ef11257f404473
Fix ovsdb node update in clustered environment
In cluster environment same switch can be connected to multiple
controller instance running southbound plugin. In the existing implementation
if device disconnect from any of the controller instances OVSDB-SB remove
OvsdbNode from operational data store. In cluster environment that will
break contract with customer, given that device is still connected to
atleast one of the two controller instances running. This patch modifying the
behavior where controller will see if its the only connected controller,
then it will delete the data from operational data store, else it will skip
any clean up from operational data store, because other instances will anyway
update about the disconnected controller manager entry in the managers list.

Change-Id: Iaa043f6632eb2de660b623604e8f8e0938dbc4d5
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
(cherry picked from commit 6051e15c6f929c08f152417b1f19373b10e93647)
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/transactions/md/OvsdbNodeRemoveCommand.java