ovsdb.git
5 years agoBump odlparent to 3.1.2 93/72493/2
Stephen Kitt [Wed, 30 May 2018 13:45:35 +0000 (15:45 +0200)]
Bump odlparent to 3.1.2

Change-Id: I07dce263fb4b0dfcb998878d612c1955fa03da17
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoNETVIRT-1241 : Preprovisioning of l2gw conf. fails 35/72035/6
eaksahu [Wed, 16 May 2018 13:17:54 +0000 (18:47 +0530)]
NETVIRT-1241 : Preprovisioning of l2gw conf. fails

Removing use of ThreadLocals to avoid Np in this usecase when switch
gets connected after provisioning l2gw and l2gwconnection.

Change-Id: I78c826a80bf5ef484002d6cb052fc0e03458cfdb
Signed-off-by: eaksahu <a.k.sahu@ericsson.com>
5 years agoMake UpdateNotification context a String 74/70074/4
Stephen Kitt [Mon, 26 Mar 2018 00:14:20 +0000 (17:14 -0700)]
Make UpdateNotification context a String

UpdateNotification contexts are always strings, use the appropriate
type.

Change-Id: I59cba1fbef199861c3792a65ad3fe07bf894c9c4
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoDon't use hostIP for controller-ip 60/72860/3
Vishal Thapar [Tue, 12 Jun 2018 06:08:44 +0000 (11:38 +0530)]
Don't use hostIP for controller-ip

If unable to get controller IP from manager entries of
OvsdbNode, don't assume hostIp to be controller IP.

JIRA: OVSDB-463
Change-Id: Ibfb34eb9d8b95fd676d9a5c6be458da02d5485d8
Signed-off-by: Vishal Thapar <vthapar@redhat.com>
5 years agoUse odl-jackson-2.8 25/70125/4
Stephen Kitt [Tue, 27 Mar 2018 00:17:06 +0000 (17:17 -0700)]
Use odl-jackson-2.8

We should use the odl-jackson-2.8 feature to fulfill our dependencies
on Jackson.

Change-Id: I18b1e52909a5d1386579230bee658592ce093a8e
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agodefer OVSDB port 6640 opening until system is ready 67/72767/3
Michael Vorburger [Thu, 7 Jun 2018 16:13:01 +0000 (18:13 +0200)]
defer OVSDB port 6640 opening until system is ready

JIRA: OVSDB-458
Change-Id: Ic51e0bf3144489b0dc0297191d01c16bdc0e26a5
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
5 years agoOVSDB-458 DiagStatus support for OVSDB 77/72777/3
Vishal Thapar [Fri, 8 Jun 2018 04:00:23 +0000 (09:30 +0530)]
OVSDB-458 DiagStatus support for OVSDB

Change-Id: I5a3d46d612d478746d25f1e7c0ef4095f995c839
Signed-off-by: Vishal Thapar <vthapar@redhat.com>
5 years agoMake OvsdbConnectionService instance-only 75/72875/3
Stephen Kitt [Tue, 12 Jun 2018 09:01:58 +0000 (11:01 +0200)]
Make OvsdbConnectionService instance-only

This patch ensures that the volatile data managed by
OvsdbConnectionService is stored per instance, and it removes the
static initialiser and all non-BluePrint instantiations. Other library
users can still create their own instances if necessary, but the
library code will no longer create multiple instances by default,
ensuring that BluePrint-mediated configuration changes are applied.

Change-Id: I41ca0c679d68e7dfeba3b5fd503194180358a9a2
JIRA: OVSDB-465
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoAdd org.osgi.core dependency to hwvtepsouthbound-impl 42/73042/1
Tom Pantelis [Fri, 15 Jun 2018 16:44:42 +0000 (12:44 -0400)]
Add org.osgi.core dependency to hwvtepsouthbound-impl

This was picked up transitively from config-api but that
is going away.

Change-Id: I4490abcb0acaa326204015cd4d82f1396685e63d
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
5 years agoMake OVSDB Listener IP configurable 64/72864/1
Vishal Thapar [Tue, 12 Jun 2018 06:31:38 +0000 (12:01 +0530)]
Make OVSDB Listener IP configurable

JIRA: OVSDB-464
Change-Id: I11a852f497eab655e17d4a2c230f319282424283
Signed-off-by: Vishal Thapar <vthapar@redhat.com>
5 years agoAdd specs folder and design spec template 78/72778/3
Nobin Mathew [Fri, 8 Jun 2018 05:40:37 +0000 (11:10 +0530)]
Add specs folder and design spec template

JIRA: OVSDB-461
Change-Id: I0b6e34ea32c9e5c41df889ed66d680b0df1039f7
Signed-off-by: Nobin Mathew <nobin.mathew@ericsson.com>
5 years agoRemove unused references to BindingAwareBroker 08/72808/1
Tom Pantelis [Fri, 8 Jun 2018 18:41:33 +0000 (14:41 -0400)]
Remove unused references to BindingAwareBroker

Change-Id: Id1357a1d5f2a4a5c04eb39170bf47198a5468dfd
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
5 years agoAdjust to AbstractMdsalTestBase changes 42/72742/1
Tom Pantelis [Thu, 7 Jun 2018 01:48:53 +0000 (21:48 -0400)]
Adjust to AbstractMdsalTestBase changes

getSession() is being removed so don't use it.

Change-Id: Ia4d97882329fd336bf1f53a60f1922ab01098aa6
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
5 years agoTSC-101: Fixup Augmentable and Identifiable methods change 21/72021/4
Vishal Thapar [Tue, 15 May 2018 17:07:23 +0000 (22:37 +0530)]
TSC-101: Fixup Augmentable and Identifiable methods change

This is a fixup of the change in binding codegen, adjusting:
- getKey() -> key()
- setKey() -> withKey()
- getAugmentation() -> augmentation()

Change-Id: I5158dd9f133470150c80bf5cc20766c58fdbbf4b
Signed-off-by: Vishal Thapar <vthapar@redhat.com>
5 years agoAdd Documentation for OVSDB 31/71831/4
Nobin Mathew [Mon, 7 May 2018 11:27:39 +0000 (16:57 +0530)]
Add Documentation for OVSDB

lfdocs-conf is a new project that allows us to centrally manage
project theme configuration without having to duplicate it
everywhere or have the "docs" project become a large submodule
project.

We will push to ReadTheDocs separately and then create a new path
for this doc under docs.opendaylight.org/projects/integration-packaging

For further details refer to:
http://docs.releng.linuxfoundation.org/en/latest/project-documentation.html

JIRA: DOCS-69
Change-Id: Ibd03538877a5078aae5c6b87dce8be5a6c0dae7e
Signed-off-by: Nobin Mathew <nobin.mathew@ericsson.com>
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
5 years agoDetect stale conns when ping times out 03/71203/5
Josh [Mon, 23 Apr 2018 10:11:54 +0000 (13:11 +0300)]
Detect stale conns when ping times out

When an ovsdb client connects StalePassiveConnectionService
checks to see if there are any previous connections to that
same client. If there are, they are pinged to determine
whether or not they are still actually connected. The
callback that handles the ping results does not fire
properly in the event of a timeout and the onFailure method
does not call
OvsdbConnectionService.notifyListenerForPassiveConnection
for the new connection. This results in the new connection
not being being reported "up the stack."

Note: easiest way to reproduce this is to "unplug" (destroy
in libvirt) a VM running the OVS and then start it.

Issue: NETVIRT-1178
Change-Id: Ie3494c46719954f862d8edb6e8921a752dcd30ea
Signed-off-by: Josh <jhershbe@redhat.com>
6 years agoOVSDB-457 Populate mac_in_use field for bridge ports 25/71025/4
Vishal Thapar [Tue, 17 Apr 2018 10:41:50 +0000 (16:11 +0530)]
OVSDB-457 Populate mac_in_use field for bridge ports

1. Added yang for mac_in_use and mac fields.
2. Added method for updating Port's operational with mac_in_use
   and mac [if present].

Change-Id: Id0624b273a2e81910277f3041b2398e9fe8f0019
Signed-off-by: Vishal Thapar <vthapar@redhat.com>
6 years agoRemove usage of AsyncDataChangeEvent 37/71837/1
Tom Pantelis [Mon, 7 May 2018 12:46:23 +0000 (08:46 -0400)]
Remove usage of AsyncDataChangeEvent

AsynDataChangeEvent is being removed in controller - it's used
internally in southbound-impl so replace the usage with an internal
DataChangeEvent interface.

Change-Id: I5fab5db429bbb43545d9da24e4eccfe6993dbc5d
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoBump to odlparent 3.1.0 and yangtools 2.0.3 75/69875/4
Stephen Kitt [Thu, 22 Mar 2018 17:24:27 +0000 (18:24 +0100)]
Bump to odlparent 3.1.0 and yangtools 2.0.3

Change-Id: I9bf484eac11e52cbad3e825b128bd13a5421f7e7
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoRevert "Add Karaf build profile" 65/70865/2
Thanh Ha [Thu, 12 Apr 2018 17:08:29 +0000 (17:08 +0000)]
Revert "Add Karaf build profile"

This reverts commit f2d14686bf2ad4d8086974b2709676fde167b634.

Change-Id: Id1bab084e93493bfde7b5ed4060c5e4e2da90a3f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoConvert to mdsal EntityOwnershipService APIs 79/70779/1
Tom Pantelis [Wed, 11 Apr 2018 13:18:55 +0000 (09:18 -0400)]
Convert to mdsal EntityOwnershipService APIs

The controller APIs are deprecated and being removed.

Change-Id: Ibf4c55cff0dc2e84b3a7ff0e85b5f1a505d74b84
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoAdd Karaf build profile 40/70540/1
Thanh Ha [Sat, 7 Apr 2018 01:37:50 +0000 (21:37 -0400)]
Add Karaf build profile

Project local Karaf distros are handy for devs to test their work
however is unneeded by autorelease builds and should not be released
as part of the Simultanious Release. Add a profile that is active by
default so that default behaviour is unchanged however allows the
autorelease project to disable building this module.

Issue: RELENG-86
Change-Id: I1197b8f705c6eb77d21ac358afd53a696391b14f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoRemove obsolete Maven Site configuration 39/70539/1
Thanh Ha [Sat, 7 Apr 2018 01:35:52 +0000 (21:35 -0400)]
Remove obsolete Maven Site configuration

Change-Id: I43efbf728cf8b106b019d1d106739f4d7b982965
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoEnsure bundles are present in a single feature 73/70073/2
Stephen Kitt [Sun, 25 Mar 2018 23:45:45 +0000 (16:45 -0700)]
Ensure bundles are present in a single feature

The following bundles are currently included in multiple features:
* southbound-api
* utils.config
* utils.mdsal-utils
* utils.southbound-utils

This patch ensures that the relevant feature is used wherever
appropriate, so that each of these bundles is only included in a
single feature.

Change-Id: Id5cc79998297a2e72aaec4e041728abb4b9b8ad3
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoCheck for null certManager 06/70106/1
Sam Hague [Mon, 26 Mar 2018 15:44:00 +0000 (08:44 -0700)]
Check for null certManager

Change-Id: I9fe1e32267f147f67cdd07f02ad26c069641c33f
Signed-off-by: Sam Hague <shague@redhat.com>
6 years agoOVSDB-449 Fixes loading keystores dynamically per connection 38/70038/4
Tim Rozet [Fri, 23 Mar 2018 18:23:40 +0000 (14:23 -0400)]
OVSDB-449 Fixes loading keystores dynamically per connection

Currently when OVSDB manager is started with SSL, the SSL Context is
only fetched once, which inherently means the keystores are only read
that one time.  This patch changes the behavior so that the SSL Context
is fetched everytime a new connection is opened, which in turn will
update the keystore data.

Change-Id: Iaafbd34afcb5f4708b48eb3d64eca14ef0a107e8
Signed-off-by: Tim Rozet <trozet@redhat.com>
6 years agoEnable findbugs enforcement in parent pom 18/70018/1
Tom Pantelis [Fri, 23 Mar 2018 13:47:07 +0000 (09:47 -0400)]
Enable findbugs enforcement in parent pom

Change-Id: I9744b124cb61460b3e8310951a400ddd01121718
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoFix findbugs violations in southbound-impl 26/69826/2
Tom Pantelis [Thu, 22 Mar 2018 16:24:47 +0000 (12:24 -0400)]
Fix findbugs violations in southbound-impl

- Method invokes inefficient Number constructor; use static valueOf instead
- Inefficient use of keySet iterator instead of entrySet iterator
- Reliance on default encoding
- Method ignores exceptional return value
- Should be a static inner class
- Private method is never called
- Method invokes inefficient Number constructor; use static valueOf instead
- Return value of method without side effect is ignored
- Result of integer multiplication cast to long
- Dead store to local variable
- Write to static field from instance method
- Parameter must be non-null but is marked as nullable
- Redundant nullcheck of value known to be non-null

Change-Id: Ieba8b20d01a47d6b245bb2752f004aa18fd08469
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoFix odl-ovsdb-utils 54/69454/2
Robert Varga [Tue, 13 Mar 2018 18:10:42 +0000 (19:10 +0100)]
Fix odl-ovsdb-utils

This feature should depend on odl-mdsal-broker-local to pull
in the dependencies.

Change-Id: Iae9cbdcd48e598a7c9becc55b5a547e7bb1895b7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
6 years agoFix findbugs violations in hwvtepsouthbound-impl 52/69052/7
Tom Pantelis [Sun, 4 Mar 2018 21:54:13 +0000 (16:54 -0500)]
Fix findbugs violations in hwvtepsouthbound-impl

- Method call passes null for non-null parameter
- Nullcheck of value previously dereferenced
- Method ignores exceptional return value
- Inefficient use of keySet iterator instead of entrySet iterator
- Should be a static inner class
- Private method is never called
- Unread field
- Result of integer multiplication cast to long
- Dead store to local variable
- Method uses the same code for two switch clauses
- Write to static field from instance method
- Parameter must be non-null but is marked as nullable
- Redundant nullcheck of value known to be non-null
- Field not initialized in constructor but dereferenced without null check
- Useless object created

Change-Id: I78b60ea44fe72475b931bcb066a776fcd8dfa32d
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoFix findbugs violations in utils 37/69037/8
Tom Pantelis [Sat, 3 Mar 2018 17:04:27 +0000 (12:04 -0500)]
Fix findbugs violations in utils

- Naked notify
- An apparent infinite recursive loop
- Field isn't final but should be
- Boxing/unboxing to parse a primitive
- Method concatenates strings using + in a loop
- Method ignores exceptional return value
- Reliance on default encoding
- Should be a static inner clas
- Could be refactored into a static inner class
- Result of integer multiplication cast to long

Change-Id: Ie10a638f81490f9ddc1c27f651c4471168c50bd6
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoFix findbugs violations in library 36/69036/8
Tom Pantelis [Sat, 3 Mar 2018 15:16:49 +0000 (10:16 -0500)]
Fix findbugs violations in library

- Possible null pointer dereference
- Equals method should not assume anything about the type of its argument
- Method ignores exceptional return value
- Equals checks for incompatible operand
- Unusual equals method
- Class is Serializable, but doesn't define serialVersionUID
- Consider using Locale parameterized version of invoked method
- Field isn't final but should be
- Incorrect lazy initialization of static field
- Inefficient use of keySet iterator instead of entrySet iterator
- Should be a static inner class
- Boxing/unboxing to parse a primitive
- Unread field
- Return value of method without side effect is ignored
- Write to static field from instance method
- Load of known null value

Change-Id: I5f7ae7b280919d2f1cfcd86be41cab5d8370a752
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoFix checkstyle violations in ITs 32/69032/7
Tom Pantelis [Sat, 3 Mar 2018 03:51:01 +0000 (22:51 -0500)]
Fix checkstyle violations in ITs

Change-Id: I8f65b5b04e2ce67629ed24c07a0f728436c6c6c4
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoEnable checkstyle enforcement in the parent pom 31/69031/7
Tom Pantelis [Sat, 3 Mar 2018 02:42:17 +0000 (21:42 -0500)]
Enable checkstyle enforcement in the parent pom

Change-Id: Ib084479d03b9406a9a629be93b22675d126a8648
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoFix checkstyle violations in hwvtepsouthbound-impl 29/69029/9
Tom Pantelis [Sat, 3 Mar 2018 02:09:10 +0000 (21:09 -0500)]
Fix checkstyle violations in hwvtepsouthbound-impl

Change-Id: I833e09a7dd8ff3894ea069ade257defee61881de
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agodistinguish between controller and device logs 55/68655/2
K.V Suneelu Verma [Sat, 24 Feb 2018 03:35:31 +0000 (09:05 +0530)]
distinguish between controller and device logs

Change-Id: I5fe0a7015f100e20747ab01b514b8190b527faaf
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
6 years agoOVSDB-453: Use findModules instead of findModule by specific revision 90/69290/2
Tom Pantelis [Thu, 8 Mar 2018 18:52:09 +0000 (13:52 -0500)]
OVSDB-453: Use findModules instead of findModule by specific revision

findModules returns a list sorted by latest revision so take the first
element.

Change-Id: Ib2fb52e59c45476f6e3ec6aff63a2ea3333514fa
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoFix logging configuration in IT classes 83/69183/2
Tom Pantelis [Wed, 7 Mar 2018 03:24:20 +0000 (22:24 -0500)]
Fix logging configuration in IT classes

https://git.opendaylight.org/gerrit/#/c/68992/ removed the
logConfiguraton method AbstractConfigTestBase so fix
resulting compilation error..

Change-Id: I3509294e5f6d447763821aa1e1251dcbf7c2a8b4
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoFix checkstyle violations in utils 28/69028/2
Tom Pantelis [Fri, 2 Mar 2018 23:15:58 +0000 (18:15 -0500)]
Fix checkstyle violations in utils

NotifyingDataChangeListener is fixed to be thread-safe, with
ConcurrentHashMap-backed sets and volatile fields where necessary.

Change-Id: Ic740e964c7fbcb53caf091475e3032ad29284677
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoFix checkstyle violations in schema 27/69027/1
Tom Pantelis [Fri, 2 Mar 2018 21:50:05 +0000 (16:50 -0500)]
Fix checkstyle violations in schema

Change-Id: Ifdfeaeee54a69071758b12762fab8093974a5c6e
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoAdd binding-parent pom 20/69020/1
Tom Pantelis [Fri, 2 Mar 2018 19:47:14 +0000 (14:47 -0500)]
Add binding-parent pom

This will contain common configurations for checkstyle and
findbugs.

Change-Id: I9fd94099ef0446caa377fdf9f069929ba659f8e1
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoBump versions by x.(y+1).z for next dev cycle 47/68747/1
Anil Belur [Mon, 26 Feb 2018 07:41:46 +0000 (17:41 +1000)]
Bump versions by x.(y+1).z for next dev cycle

Change-Id: I7bd594fb7b5413b8a6647bd49bd07d8fc3fbbe54
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
6 years agoAdded device transaction log cli 61/66561/4
K.V Suneelu Verma [Mon, 18 Dec 2017 12:50:33 +0000 (18:20 +0530)]
Added device transaction log cli

Added a cli to display device transaction history

Change-Id: I00d8f5bd287342691c7b69b0b75f79c2cdcee1e8
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
6 years agobug 8671 same client notified multiple times 24/58824/10
K.V Suneelu Verma [Tue, 13 Jun 2017 14:00:31 +0000 (19:30 +0530)]
bug 8671 same client notified multiple times

only leader node will initialize topology
each node listens for topology creation/add event
once it receives the add event opens the ovsdb port to clients
Now we are absolutely sure that topology node can be created for the
new incoming connections.

when a new node joins/leaves the cluster , the leader node
will reinit the topology which is a no op event

Change-Id: I45c319195f593d8bd99b19f07f5568492cf9077f
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
6 years agobug 6578 added mdsal read retry 59/66559/3
K.V Suneelu Verma [Mon, 18 Dec 2017 11:16:17 +0000 (16:46 +0530)]
bug 6578 added mdsal read retry

Change-Id: I5dba7362bf41ea84baa35dc29a6a4a6a69ba78fa
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
6 years agomake reconciliation the first transaction 54/66554/3
K.V Suneelu Verma [Mon, 18 Dec 2017 07:05:22 +0000 (12:35 +0530)]
make reconciliation the first transaction

jira bug ovsdb-441

When the south bound device disconnects and connects back reconciliation
task will try to reconcile to the device.
At the same time if the application pushes some more config and that gets
executed,
then the reconciliation task if executed later will end up corrupting the
device state.
Ensure that reconciliation transaction is the first towards the device

Change-Id: I5b5df1e8cdc3d96e7aa518a5012759d39afe048f
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
6 years agoOVSDB-438: missing operational node 04/66504/5
K.V Suneelu Verma [Fri, 15 Dec 2017 11:06:00 +0000 (16:36 +0530)]
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>
6 years agoUse packaging=bundle for utils.config 78/68178/2
Robert Varga [Tue, 13 Feb 2018 12:24:47 +0000 (13:24 +0100)]
Use packaging=bundle for utils.config

This prevents wrapping when the jar is moved to OSGi world.

Change-Id: I4f105d684bf98bede66ffb85fe4ec4de84982d41
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
6 years agoexport utils.{config, mdsal-utils, southbound-utils} as feature 14/68214/3
Isaku Yamahata [Tue, 13 Feb 2018 20:02:28 +0000 (12:02 -0800)]
export utils.{config, mdsal-utils, southbound-utils} as feature

Those bundles are used by genius and neturon northbound.
They should be consumable as feature, not bundle.

For detailed discussion, please refer to the followings
https://lists.opendaylight.org/pipermail/release/2018-January/013604.html
https://lists.opendaylight.org/pipermail/release/2017-September/012356.html
NEUTRON-156

Change-Id: I845989115b28bfc9685ed7fdb43e604e16701fe1
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoFix IidCodec broken by new yangtools 91/67191/3
Vishal Thapar [Tue, 16 Jan 2018 06:42:09 +0000 (12:12 +0530)]
Fix IidCodec broken by new yangtools

There are multiple versions of network-topology loaded
and yangtools can't tell which one to use. It has ramifications
beyond just OVSDB, but this fixes functionality issues in
OVSDB.

Root issue is two different files with different versions
bundled together. It may not have been issue earlier but is now.

Change-Id: Ibc7f8387c5b84cb6e1c0e8a69454acb661a4acc4
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoAdjust for odlparent 3 / yangtools 2 65/66465/5
Stephen Kitt [Fri, 15 Dec 2017 14:09:52 +0000 (15:09 +0100)]
Adjust for odlparent 3 / yangtools 2

Change-Id: Ibdba54c92c44c63bef11df9f5fa9beca88c6ca3d
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoAdjust for odlparent 3 Checkstyle settings 59/66459/4
Stephen Kitt [Thu, 14 Dec 2017 08:45:43 +0000 (09:45 +0100)]
Adjust for odlparent 3 Checkstyle settings

This fixes the enforcing modules, library-impl and southbound-impl,
along with a few other violations in other modules.

Change-Id: I79a4872df64c01ae7d7e6a0722fe473576b3cff1
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoOVSDB-445 Port creation not reflected in OperDS 62/66862/2
Vishal Thapar [Thu, 4 Jan 2018 05:34:48 +0000 (11:04 +0530)]
OVSDB-445 Port creation not reflected in OperDS

When a port is deleted and added in same ovs-vsctl command
it doesn't show up in OperDS. This is because
OvsdbOperationalCommandAggregator always processes removes
after Updates. Since delete is being done for same port right
after update, it ends up not adding it to datastore.

Fix is to check if same port is present in updates or not
before deleting it.

Note: This may impact other such configuration too, though
not sure of any valid use cases for bridges etc.

Change-Id: I596ceaf579c4342a3e6bc282ce140cf15a295d60
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
6 years agoOVSDB-440: Fixes detecting SSL mode with OVSDB nodes 25/66525/2
Tim Rozet [Fri, 15 Dec 2017 21:34:32 +0000 (16:34 -0500)]
OVSDB-440: Fixes detecting SSL mode with OVSDB nodes

The OF controller in netvirt is set by detecting the mode used in the
OVSDB manager connection.  However, this detection was absent for ssl
and was only working with tcp/ptcp.

Fixes: OVSDB-440
Change-Id: I66907a25e7ce5df14072218d33e0a5995081311a
Signed-off-by: Tim Rozet <trozet@redhat.com>
6 years agoOVSDB-435: fix transaction leak in BridgeOperationState 92/66092/1
Stephen Kitt [Thu, 30 Nov 2017 13:14:44 +0000 (14:14 +0100)]
OVSDB-435: fix transaction leak in BridgeOperationState

Change-Id: I82708edcf710f72c1356914e9da11a5769b489c9
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoFix transaction leak in OvsdbConnectionManager 74/65574/2
Michael Vorburger [Wed, 15 Nov 2017 18:26:56 +0000 (19:26 +0100)]
Fix transaction leak in OvsdbConnectionManager

see https://jira.opendaylight.org/browse/NETVIRT-985

Change-Id: I50d5e5856d813be8b40bd552c734630856257294
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoFix transaction leak in BridgeConfigReconciliationTask 69/65569/2
Michael Vorburger [Wed, 15 Nov 2017 16:59:01 +0000 (17:59 +0100)]
Fix transaction leak in BridgeConfigReconciliationTask

see https://jira.opendaylight.org/browse/OVSDB-425

Change-Id: I9d89cb72768cff137b91773ac8ab0e1d5fce7a04
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoFix possible transaction leak in BridgeOperationalState 71/65571/1
Michael Vorburger [Wed, 15 Nov 2017 18:19:16 +0000 (19:19 +0100)]
Fix possible transaction leak in BridgeOperationalState

see https://jira.opendaylight.org/browse/NETVIRT-985

Change-Id: Ie8bd1d81cb4df55d9c75ca275756013262c12a00
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agofix intermittently failing unit test 66/65466/1
K.V Suneelu Verma [Mon, 13 Nov 2017 05:11:38 +0000 (10:41 +0530)]
fix intermittently failing unit test

Change-Id: I1445d255f10ca05ed2f1f4d0bf1f563f82164904
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
6 years agofix unit tests which fail intermittently 27/64927/4
K.V Suneelu Verma [Tue, 31 Oct 2017 05:34:17 +0000 (11:04 +0530)]
fix unit tests which fail intermittently

using doReturn when pattern instead of when thenReturn pattern.
mockito does not work properly in multi threaded tests when we use
when thenReturn pattern.

Change-Id: I3671d2201b15d2d2061199249c269ca7d5eeb88f
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
6 years agoOVSDB-432: Add method to restart OVSDB server and limit retry times and timeout 90/63890/6
Hsin-Yi Shen [Mon, 25 Sep 2017 21:53:47 +0000 (17:53 -0400)]
OVSDB-432: Add method to restart OVSDB server and limit retry times and timeout

This patch makes following changes:
1. Add restart method to restart OVSDB server. User wiil be able
   to restart OVSDB server with different sets of SSL protocol
   and cipher suites.
2. Limit retry times for certain SSL handshake status. In current
   code, it retry infinite times for some SSL handshake status
   and cause issue. This patch will fix it.
3. Add API in OvsdbClient interface to provide custom timeout value for
   monitor and cancel monitor transactions. This avoids
   blocking thread due to unsuccessful transaction.
4. Fix typo in Function.java

Change-Id: I4f07e2f32889099e65a06a3afc4a263714dd5946
Signed-off-by: Hsin-Yi Shen <syshen66@gmail.com>
6 years agoRemove deploy-site.xml 04/64904/1
Thanh Ha [Mon, 30 Oct 2017 21:15:48 +0000 (17:15 -0400)]
Remove deploy-site.xml

With the javadoc jobs now available to generate javadoc it is time to
remove the maven-sites and related files.

Change-Id: I765df2031218eabb07dffac1a0856ef5a45d798f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agobug 8712 vlan bindings update fix 06/61606/8
K.V Suneelu Verma [Mon, 14 Aug 2017 12:01:21 +0000 (17:31 +0530)]
bug 8712 vlan bindings update fix

when global node and physical switch node are updated in same transaction
from application, vlan bindings are missing.

Make vlan bindings participate in dependency workflow.

Do not create/delete port from controller.
Only update the port from controller.
port creation happens from device always.

Added port reconciliation when port is added later.

Change-Id: Ic86a3545428e186f3aeb26c8a36a783f774ecf53
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
6 years agobug 7599 avoid unnecessary mdsal reads 51/61551/10
K.V Suneelu Verma [Fri, 11 Aug 2017 10:44:08 +0000 (16:14 +0530)]
bug 7599 avoid unnecessary mdsal reads

avoid the un necessary reads.
skip monitoring version column

Change-Id: I82e50b973a93c57eb65dd34c6dd624c8e47e2344
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
6 years agobug 8029 handle expired in transit entries 37/61537/9
K.V Suneelu Verma [Fri, 11 Aug 2017 09:23:56 +0000 (14:53 +0530)]
bug 8029 handle expired in transit entries

when ref count goes to zero , locator is kept in transit state.

if the device still has references to it from other sources like tunnels
the locator will not be deleted from device.

The transactions which wait for this locator will expire.

If the intransit state expires , query the device itself to get its
status and proceed with the transactions which depends on this locator.

added a timer job which triggers every 30sec and checks for expired
intransit keys and clears them.

Change-Id: I0022da4a3a2e748629bc031246f6e6c1509d27a4
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
6 years agobug 8029 added ref counts for physical locators. 35/61535/10
K.V Suneelu Verma [Fri, 11 Aug 2017 09:20:36 +0000 (14:50 +0530)]
bug 8029 added ref counts for physical locators.

remote mcast and ucast macs refer to physical locators

whenever a new mac is added or updated, update their refcount for that
tep.

When the ref count of the tep goes to zero , the device may delete that
tep after the current transaction.
In that case mark the locator as in transit.

The next transaction which depends on this locator will not use this
locator uuid and will wait for the locator in transit state to be
resolved in dependency queue.

Eventually controller will get locator delete update command from the
device and proceed the transactions which are waiting for this locator
state to be changed from in transit state.

Added onSuccess and onFailure methods to transaction command.
Clear the locator refs for the succeeded delete mcast macs immediately
upon the success of the device transaction.

Clearing the locator ref count immediately upon success of delete mcast
is needed so that the next transaction will not use the possibly stale locator.

Clear the intransit status of the failed commands upon failure.

Change-Id: I84d64f7deb20f801f14e524f88431807afac3a99
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
6 years agoBump odlparent 2.0.4 to 2.0.5 32/63632/1
Stephen Kitt [Wed, 27 Sep 2017 13:35:06 +0000 (15:35 +0200)]
Bump odlparent 2.0.4 to 2.0.5

Change-Id: I8147fda8b48b39e3010503ac8420c25c13a6903c
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoRemove explicit default super-constructor calls 03/63603/1
David Suarez [Wed, 27 Sep 2017 08:57:49 +0000 (10:57 +0200)]
Remove explicit default super-constructor calls

The default constructor is called by default (hence its name), no need
to call it explicitly

Change-Id: If72cd83d0cf4e0032d7f5fe7174c28cf4b9c5092
Signed-off-by: David Suarez <david.suarez.fuentes@gmail.com>
6 years agoBUG 9166 - Fix Netvirt L2GW Illegal state exception 43/63243/2
Victor Pickard [Mon, 18 Sep 2017 20:03:33 +0000 (16:03 -0400)]
BUG 9166 - Fix Netvirt L2GW Illegal state exception

Fix exception and modify logic for comparing OVSDB
Hardware_vtep database version retrived from device
to min version specified.

Change-Id: I0b882b4a4883af80a3ea01224781e781eaefac1a
Signed-off-by: Victor Pickard <vpickard@redhat.com>
6 years agoMigrate SchemaService references 20/62820/1
Robert Varga [Thu, 7 Sep 2017 10:37:45 +0000 (12:37 +0200)]
Migrate SchemaService references

SchemaService is deprecated in favor of DOMSchemaService, migrate
references.

Change-Id: I8ba2ff0b4f676fc47e3069a9bdb79078c17fe61f
Signed-off-by: Robert Varga <nite@hq.sk>
6 years agoBug 8874 - Tunnel_ips of hardware_vtep is cleared when Open vSwitch process restarted... 33/61533/2
Ryousuke Masuhara [Tue, 25 Jul 2017 05:06:39 +0000 (14:06 +0900)]
Bug 8874 - Tunnel_ips of hardware_vtep is cleared when Open vSwitch process restarted in Open vSwitch HWVTEP Emulator

Issue:
  Tunnel_ips of hardware_vtep is cleared when Open vSwitch process
  restarted in Open vSwitch HWVTEP Emulator

Cause of this issue:
  After Open vSwitch process restarted, ODL attempts to acquire tunnel_ips
  from CONFIGURATION MD-SAL and set it to Physical Switch.
  As tunnel_ips is not set from ODL but is set by vtep-ctl command, it
  does not exist in CONFIGURATION MD-SAL.
  This caused an empty value is set to tunnel_ips for Physical Switch.

Fix:
  Let ODL to acquire tunnel_ips from OPERATIONAL MD-SAL after
  VTEP Emulator restarted.

Change-Id: I439ba08c813ede02f82592ca0051b19140f40db2
Signed-off-by: Ryousuke Masuhara <r-masuhara@zn.nes.jp.nec.com>
6 years agoRefactor compareDbVersionToMinVersion 05/61905/2
Vishal Thapar [Thu, 17 Aug 2017 08:48:57 +0000 (14:18 +0530)]
Refactor compareDbVersionToMinVersion

compareDbVersionToMinVersion uses ovsdb.library to
compare versions. This has added unnecessary
dependency in downstream projects. Replace usage of
ovsdb.lbrary.Version with String matching so downstream
projects don't need to add library, which is OVSDB internal
feature, as a dependency.

Change-Id: I8470970b1e7819f543615f97753fa898b3ce8bc5
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
6 years agoBUG 9073 Fix memory leak - close TransactionChain 65/62465/3
Victor Pickard [Wed, 30 Aug 2017 19:34:17 +0000 (15:34 -0400)]
BUG 9073 Fix memory leak - close TransactionChain

Part of larger effort related to bug 9060 and
bug 9034 to fix memory leaks.

Change-Id: Id3f46b83d4b98fa0d4c5a0706d0758ef98eb85ba
Signed-off-by: Victor Pickard <vpickard@redhat.com>
6 years agoBUG 9072 - Fix OVSDB TransactionChain memory leak 62/62462/2
Victor Pickard [Wed, 30 Aug 2017 18:52:19 +0000 (14:52 -0400)]
BUG 9072 - Fix OVSDB TransactionChain memory leak

TransactionChain is never closed. Add code to
close txChain when SouthboundProvider is closed.

This fix is part of memory leak cleanup efforts
for bug 9060 and bug 9034.

Change-Id: Ic24ec8081b02a35b73a4c640e751b75ee80bd143
Signed-off-by: Victor Pickard <vpickard@redhat.com>
6 years agoConvert DataChangeListeners to DataTreeChangeListeners 40/62340/3
Tom Pantelis [Sat, 26 Aug 2017 13:54:44 +0000 (09:54 -0400)]
Convert DataChangeListeners to DataTreeChangeListeners

The DataChangeListener API has been deprecated for a couple releases
with possible removal in Oxygen.

Change-Id: Ifca15545eb1ff7a5e889e472c9456bfd2b824cf3
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoBug 8991 - Add dpdkvhostuserclient interface type to model 22/61722/2
Eric Multanen [Tue, 15 Aug 2017 05:37:48 +0000 (22:37 -0700)]
Bug 8991 - Add dpdkvhostuserclient interface type to model

Add the dpdkvhostuserclient interface type to the OVSDB
model.  This interface type as was added back in OVS 2.6

Change-Id: I63ab98e4e1b452c3d832c15298f3608c83d21796
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
6 years agoRemove CSS artifact remnants 33/62333/3
Tom Pantelis [Fri, 25 Aug 2017 19:42:39 +0000 (15:42 -0400)]
Remove CSS artifact remnants

The project has already been converted to blueprint (except for test-extension)
so removed he remaining CSS remnants (eg use of config-parent).

Change-Id: Ib19a47efe84702fc49ec59ba79f58fccb46e1f49
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoBump versions by x.(y+1).z for next dev cycle 98/61698/1
Thanh Ha [Mon, 14 Aug 2017 17:36:17 +0000 (13:36 -0400)]
Bump versions by x.(y+1).z for next dev cycle

Change-Id: I4ec0bfef91e3f3fd4adb230c540da790c73031c3
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoBump odlparent 2.0.2 to 2.0.4 48/61348/2
Stephen Kitt [Tue, 8 Aug 2017 16:14:08 +0000 (18:14 +0200)]
Bump odlparent 2.0.2 to 2.0.4

Change-Id: Iacdb35cb6b7fedc8c00b06ba3bd051226f7d58c4
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoBump all Odlparent dependencies to 2.0.2 94/60994/1
Vratko Polak [Tue, 1 Aug 2017 13:24:24 +0000 (15:24 +0200)]
Bump all Odlparent dependencies to 2.0.2

Change-Id: Ib75a6ef1ee76e4c1440149923ab4bce7099ff006
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
6 years agoBug 8476 Add support for logical switch replication mode 44/60744/3
Victor Pickard [Tue, 25 Jul 2017 21:20:19 +0000 (17:20 -0400)]
Bug 8476 Add support for logical switch replication mode

Add helper method to SouthboundUtils to check database
version.

Change-Id: Ie271b665b3e47ad275f9c6340764013daa4fd9ad
Signed-off-by: Victor Pickard <vpickard@redhat.com>
6 years agoBug 8476 Add support for logical switch replication mode 09/57209/9
Victor Pickard [Tue, 16 May 2017 20:27:54 +0000 (16:27 -0400)]
Bug 8476 Add support for logical switch replication mode

With OVS 2.6, the Logical Switch table, in the hardware_vtep schema, has
a new field, replication_mode. This bug will be used to add support to
netvirt, ovsdb, and genius for setting the replication_mode of logical
switches. The default will be for ODL to set the replication_mode
to "source_node" when creating logical switches.

Refer to [1] for more details on replication_mode.

[1] http://openvswitch.org/support/dist-docs/vtep.5.html

Try/catch block in place to handle case where schema
version does not support replication_mode.

Tested this with OVS 2.5, which does not support replication_mode.
Verified that logical switch is created.

Debug log will be generated when schema version does
not support replication_mode (same check as PhysicalSwitchUpdate).

Change-Id: I374ba52ff5517dacb6af498f34b7e58638f46463
Signed-off-by: Victor Pickard <vpickard@redhat.com>
6 years agobug 8673 physical switch node is not removed 21/58821/3
K.V Suneelu Verma [Tue, 13 Jun 2017 13:19:39 +0000 (18:49 +0530)]
bug 8673 physical switch node is not removed

When the node gets disconnected , its global node alone
is getting removed sometimes.

reuse GlobalNodeRemove command which cleans global aswell as
physical switch node.

Change-Id: Ic89fb1b0606bb1d42242c860ea2f7d9fa1e2b37d
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
6 years agobug 8674 fix port vlan bindings reconciliation 87/58787/5
K.V Suneelu Verma [Tue, 13 Jun 2017 06:58:44 +0000 (12:28 +0530)]
bug 8674 fix port vlan bindings reconciliation

1. When controller is restarted after clearing the config by
removing journals and snapshots, it does not have any config data
for ports.

Do not fire delete of port during reconciliation.
Fire port update to clear the vlan bindings.
Port addition/deletion is always managed by southbound not by controller.
Only port update is managed by controller.

2. Sometimes logical switch does not get deleted from device due to some
local ucast/mcast references to it. Cleanup the references also while
deleting the logical switch. It can still fail if vlan binding reference
is not removed.

3. Make sure that mcast and ucast programming during reconciliation
uses proper physical locators.

Change-Id: I81f095a6e030e05d6702997600ced012d4666c36
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
6 years agoOVSDB merge build failing, looking for library-features.jar 64/59664/2
Vishal Thapar [Thu, 29 Jun 2017 10:33:05 +0000 (16:03 +0530)]
OVSDB merge build failing, looking for library-features.jar

OVSDB merge build is broken as library-it is looking for
org.opendaylight.ovsdb:library-features:jar:1.5.0-SNAPSHOT

Change-Id: I4b229c8757c4fdb417a642a255ef6b1720a4255f
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
6 years agoBUG 8720: Add schema version information to Hwvtep node 09/59209/3
Vishal Thapar [Tue, 20 Jun 2017 09:39:19 +0000 (15:09 +0530)]
BUG 8720: Add schema version information to Hwvtep node

Schema version information now available in HwvtGlobalNode. Applications
can use this to determine version of Hwvtp schema DB on the device.

Change-Id: I3b6dd3b296c3b263520bb622f45dfdd7ee4c4e81
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
6 years agoBump to odl-parent 2.0.0, remove karaf3 features and rename features4 to features 16/59316/3
Anil Vishnoi [Wed, 21 Jun 2017 21:41:43 +0000 (14:41 -0700)]
Bump to odl-parent 2.0.0, remove karaf3 features and rename features4 to features

Change-Id: Idac9a7011449897e48da67caf9679bf0d3825f76
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
6 years agoBUG 8529: Deleted vlantag and trunks present in operational 60/57760/2
Vishal Thapar [Wed, 24 May 2017 09:43:58 +0000 (15:13 +0530)]
BUG 8529: Deleted vlantag and trunks present in operational

Change-Id: Iab1c46173127f74af4b81a80a5dfba4f7d29f936
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
6 years agoMigrate to karaf4 for the local karaf distribution 68/53668/8
Ryan Goulding [Wed, 22 Mar 2017 10:43:47 +0000 (06:43 -0400)]
Migrate to karaf4 for the local karaf distribution

Several folks have put in incredible effort to make karaf4 a reality in ODL.
Kudos to those folks for this great effort.  This patch officially converts
ovsdb's local karaf distributions to use odlparent's karaf4-parent artifact.

Change-Id: Ia86905565f739c42bb13cecb0f9e11e1cc20e02d
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
6 years agoDon’t provide configfiles 24/58924/1
Stephen Kitt [Wed, 14 Jun 2017 08:13:21 +0000 (10:13 +0200)]
Don’t provide configfiles

configfiles mustn’t be <scope>provided</scope>, the dependency
resolver needs to be able to find them.

Change-Id: I924adf760e0573e40066425f6b6b3a4e3deedc53
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoMigrate to odlparent 1.9.0 76/58876/1
Thanh Ha [Tue, 13 Jun 2017 20:27:10 +0000 (16:27 -0400)]
Migrate to odlparent 1.9.0

Change-Id: I5abf7f2024043a6a65675b1c0efba2df7d310792
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoMigrate to odlparent 1.8.0-Carbon 43/58643/1
Thanh Ha [Fri, 9 Jun 2017 23:10:41 +0000 (19:10 -0400)]
Migrate to odlparent 1.8.0-Carbon

Per request of odlparent project we are downgrading all Nitrogen
projects to use the released odlparent 1.8.0-Carbon to allow for the
odlparent project to start performing semver style releases.

Change-Id: I925d720fc25e82d972b7902f46f63550c3daaa5f
Jira: RELENG-159
RT: 41406
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd missing <name> fields for pom.xml files 15/52715/6
Anil Belur [Fri, 3 Mar 2017 04:50:58 +0000 (14:50 +1000)]
Add missing <name> fields for pom.xml files

This is used by autorelease scripts to automatically parse which project
is failing a build and report to the mailing list automatically. We need
names in the format:

    ODL :: <groupId> :: <artifactId>

This patch formats in the same format as found in the startup archetypes
patch found here: https://git.opendaylight.org/gerrit/52522

Change-Id: Ib3621b8a5f2aa1e0b50aa0968b0b728081993772
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
7 years agoBug 7999 Adding Logical_Router table support 24/53324/10
Tomer Pearl [Wed, 15 Mar 2017 10:07:02 +0000 (12:07 +0200)]
Bug 7999 Adding Logical_Router table support

This patch adding support for using the Logical_Router table
in HWVTEP schema.

This addes data flow in (Config-Datastore -> Device) path and
(Device -> Operational-Datastore) path.

Change-Id: I3589f9b7076209c6168e698671cee8186501d3e9
Signed-off-by: Tomer Pearl <tomer.pearl@hpe.com>
7 years agobug 8257 handling back to back ucast mac updates 20/55120/4
K.V Suneelu Verma [Mon, 17 Apr 2017 12:57:22 +0000 (18:27 +0530)]
bug 8257 handling back to back ucast mac updates

Making the ucast mac remove command participate in
dependency resolution workflow.

Change-Id: Icc27763e3fdca46d12be89218d4f17758a7e8d93
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
7 years agobug 8257 handling back to back logical switches 19/55119/4
K.V Suneelu Verma [Mon, 17 Apr 2017 12:45:14 +0000 (18:15 +0530)]
bug 8257 handling back to back logical switches

Making logical switches update/remove participate in
dependency resolution workflow.

When logical switch delete requests comes it is held until
the previous logical switch add request finishes and vice versa.

Change-Id: I5d158759a977f7a0f66dcafd297c4d2f06fa3fd4
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
7 years agobug 8257 handling back to back mcast mac updates 16/55116/8
K.V Suneelu Verma [Mon, 17 Apr 2017 11:25:13 +0000 (16:55 +0530)]
bug 8257 handling back to back mcast mac updates

Making the remove mcast mac participate in depenency resolution
flow.

Put the delete event on hold while the previous add/update on
the same key is still in transit.

Delete mcast mac event resumes after we receive the
 response for the previous create.

Mark the state of the mcast mac key in transit while we execute its delete/add/update.

Change-Id: I0b15d82dad346bd2c35c0368b4d7f63dc3bfa09d
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
7 years agoRemove <prerequisites> from pom.xml to avoid WARNING 12/56812/1
David Suarez [Wed, 10 May 2017 22:39:19 +0000 (00:39 +0200)]
Remove <prerequisites> from pom.xml to avoid WARNING

[WARNING] The project ... uses prerequisites which is only intended for
maven-plugin projects but not for non maven-plugin projects. For such
purposes you should use the maven-enforcer-plugin. See
https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html

This is already done in odlparent.

Change-Id: I489206437962deecf8ade54bd755f8141f228f92
Signed-off-by: David Suarez <david.suarez.fuentes@ericsson.com>
7 years agobug 7985 Using UncaughtExceptionHandler in TransactionInvokerImpl 17/51517/15
K.V Suneelu Verma [Tue, 7 Feb 2017 14:13:26 +0000 (19:43 +0530)]
bug 7985 Using UncaughtExceptionHandler in TransactionInvokerImpl

when a particular transaction command fails , it is killing the only
worker processing the transaction commands queue.

when the exection is caught log the exception and resubmit the worker

if 10 commands are to be exectuded
while executing 5th command some exception happens
then the execution resumes from 6th command ignoring the 5th command.

Again if 6th command also fails because of some exception,
then execution resumes from 7th command onwards that way it wont result in
infinite loops.

This patch does not try to address transaction failures, only addressing any
exceptions in the commands.

for transaction chain failures, let us say all 10 commands are executed
successfully and submitted to transaction chain, now we wait for
success/failure of each such transaction asynchronously.
Now our pending tx list reads as 1,2,3,4,5,6,7,8,9,10

we may get success response for 1,2,3,6,7 and failure for 5th.
Then pending tx list reads as 4,5,8,9,10.

then the transactions will resume from 8th onwards. Note 4th is not resumed.
This behavior may not be desired as we are trying to resubmit 8th one which
already got executed.
If the transactions are idempotent then it should not be an issue at all to
reexecute the succeded ones.
Now if the 8th transaction is about deleting an entry ,
in its previous run it already deleted it, so this run will fail.

Now for the 4th one we may get a success callback or failure callback.
If we get failure callback , then again 8,9,10 will be reexecuted.

This patch is not addressing this scenario , can be taken up in later
patches with the right design.

Note the difference between command execution and transaction result.
This patch is addressing exceptions in command execution.

Change-Id: I93bba958784637a4752b860d23354506f0bd98bb
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
7 years agobug 7599 improving perf of ucast mac learning 35/53335/4
K.V Suneelu Verma [Wed, 15 Mar 2017 11:52:13 +0000 (17:22 +0530)]
bug 7599 improving perf of ucast mac learning

when the device is connected all its macs are learnt in one update.
node.merge is called for each local ucast and remote ucast mac.
Now it is called only once.

when a mac update comes its physical locator need not be part of the
same update. If the locator is not available in the same update get
it from the cache ( which got filled from previous locators update msg).

Change-Id: Idbcf0b881b8ac90526f400c5d17d56a825f0a611
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>