BUG-8893 patch port mysteriously deleted 47/62347/15
authorJosh <jhershbe@redhat.com>
Sun, 27 Aug 2017 10:55:09 +0000 (13:55 +0300)
committerSam Hague <shague@redhat.com>
Sat, 16 Sep 2017 14:15:07 +0000 (14:15 +0000)
commitf4a4fdfc46fe9667ad3c97c69afd4710e9893981
treea8f5293e368262b2c0b2c7f2b48f270693504ede
parent45c324f7be4f3e8414751d8800ef46e2f76ab8df
BUG-8893 patch port mysteriously deleted

This happens sporadically when br-int exists prior to ODL
managing the OVS node. If the event notifying ElanOvsdbNodeListener
of the existence of the br-int bridge happens BEFORE the event
notifying about the OVS node the following occurs:

1. Netvirt gets event for br-int
2. Writes patch ports
3. Netvirt gets event for the ovs node
4. Creates br-int...which already exists and this over-writes the
   patch ports

Fix:
a) clean up code so that br-int is configured with a controller
   and patch ports only once we receive the notification for br-int
   in operational.
b) when receiving a notification for the OVSDB node in operational,
   check if br-int is in operational. If it is not, create it in
   config.
c) when receiving a notification for br-int in operational, check if it
   is also in config. If it is not, copy br-int fields from operational
   to config. The proceed to step (a).

Change-Id: I11739ccc847e65c4179ff1f73493159bd4effcd2
Signed-off-by: Josh <jhershbe@redhat.com>
docs/user-guide/bridge-configuration.rst [new file with mode: 0644]
docs/user-guide/index.rst
vpnservice/elanmanager/elanmanager-impl/src/main/java/org/opendaylight/netvirt/elan/internal/ElanBridgeManager.java