controller.git
6 years agoMerge "Fix usage of StringBuilder when getting parent path in PathUtils Making consta...
Moiz Raja [Sat, 9 Aug 2014 02:05:52 +0000 (02:05 +0000)]
Merge "Fix usage of StringBuilder when getting parent path in PathUtils Making constants final timing encode/decode in a test case"

6 years agoMerge "Neutron LBaaS v2.0 API support"
Madhu Venugopal [Fri, 8 Aug 2014 23:56:04 +0000 (23:56 +0000)]
Merge "Neutron LBaaS v2.0 API support"

6 years agoFix usage of StringBuilder when getting parent path 30/9830/1
Basheeruddin Ahmed [Fri, 8 Aug 2014 21:39:25 +0000 (14:39 -0700)]
Fix usage of StringBuilder when getting parent path
in PathUtils
Making constants final
timing encode/decode in a test case

Change-Id: Ia552163dfe35dcd268bd8a0620c6b34c910f47b2
Signed-off-by: Basheeruddin Ahmed <syedbahm@cisco.com>
6 years agoAdding SLF4J logging 63/9763/2
Abhishek Kumar [Wed, 6 Aug 2014 22:04:32 +0000 (15:04 -0700)]
Adding SLF4J logging

Change-Id: I0dbb80f947d44846dc0ee2b340e06aed94630490
Signed-off-by: Abhishek Kumar <abhishk2@cisco.com>
6 years agoGossip based eventually consistent RPC Registry. 13/9713/12
Abhishek Kumar [Thu, 31 Jul 2014 21:18:28 +0000 (14:18 -0700)]
Gossip based eventually consistent RPC Registry.

There are 2 main components
1. Bucket Store:
   Stores data in buckets. Each cluster node gets a bucket. These buckets are sync'ed
   across nodes using Gossip protocol.
   Bucket Store uses a Gossiper that implements the protocol to sync data.

2. Rpc Registry:
   This uses the bucket store to store routing table. Routing table maintains mapping of
   RPC <--> Node
   Rpc Broker uses this regitry to route rpc requests to remote nodes.

Change-Id: Ifaf8955dbf6e3074d4d2951d6f503ecc0624d141
Signed-off-by: Abhishek Kumar <abhishk2@cisco.com>
6 years agoMerge "Fix config-manager activator"
Tony Tkacik [Fri, 8 Aug 2014 10:07:24 +0000 (10:07 +0000)]
Merge "Fix config-manager activator"

6 years agoFix config-manager activator 05/9805/1
Maros Marsalek [Fri, 8 Aug 2014 08:49:10 +0000 (10:49 +0200)]
Fix config-manager activator

Change-Id: Ic81c28e100c0ec334f66376392c02d6fb6d7d01a
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
6 years agoMerge "BUG-1495: fail future when no local RPC is found"
Tony Tkacik [Fri, 8 Aug 2014 07:19:52 +0000 (07:19 +0000)]
Merge "BUG-1495: fail future when no local RPC is found"

6 years agoMerge "BUG-997 Consult QNames of yang modules with ietf-netconf-monitoring/netconf...
Tony Tkacik [Thu, 7 Aug 2014 20:20:24 +0000 (20:20 +0000)]
Merge "BUG-997 Consult QNames of yang modules with ietf-netconf-monitoring/netconf-state/schemas"

6 years agoMerge "BUG-1423 Fix distributed datastore error in config schemas(double case child)"
Tony Tkacik [Thu, 7 Aug 2014 20:19:36 +0000 (20:19 +0000)]
Merge "BUG-1423 Fix distributed datastore error in config schemas(double case child)"

6 years agoMerge "BUG-868: migrate ListenerRegistry"
Tony Tkacik [Thu, 7 Aug 2014 20:17:21 +0000 (20:17 +0000)]
Merge "BUG-868: migrate ListenerRegistry"

6 years agoMerge "Bug 1308 - Unable to publish NodeUpdated message via NotificationService"
Tony Tkacik [Thu, 7 Aug 2014 20:05:07 +0000 (20:05 +0000)]
Merge "Bug 1308 - Unable to publish NodeUpdated message via NotificationService"

6 years agoMerge "Migrate to junit 4.11"
Tony Tkacik [Thu, 7 Aug 2014 20:02:30 +0000 (20:02 +0000)]
Merge "Migrate to junit 4.11"

6 years agoMerge "BUG-1493: do not instantiate HashSet"
Tony Tkacik [Thu, 7 Aug 2014 19:57:53 +0000 (19:57 +0000)]
Merge "BUG-1493: do not instantiate HashSet"

6 years agoMigrate to junit 4.11 70/9670/6
Robert Varga [Mon, 4 Aug 2014 20:47:39 +0000 (22:47 +0200)]
Migrate to junit 4.11

Removes the version override and drags tests into 4.11. Also reverts
29ad7ba749eac80e6514b1ca37aa850c30649b55 for a proper fix.

Change-Id: I981163ee2c1d036ab04331eeba36f24a7e6f8002
Signed-off-by: Robert Varga <rovarga@cisco.com>
6 years agoExpose the Raft State of a Shard and the name of it's Leader via JMX 81/9781/3
Moiz Raja [Thu, 7 Aug 2014 11:22:17 +0000 (04:22 -0700)]
Expose the Raft State of a Shard and the name of it's Leader via JMX

Change-Id: Id8b57706902e93e0021db44533622fde283d82b4
Signed-off-by: Moiz Raja <moraja@cisco.com>
6 years agoTune replication and stabilize tests 41/9741/5
Moiz Raja [Wed, 6 Aug 2014 11:28:43 +0000 (04:28 -0700)]
Tune replication and stabilize tests

Made following changes for replication
- Increased Heartbeat timeout to 500 milliseconds.
- Send only one entry from the replicated log to the follower in append entries

Both of these tweaks have been made to prevent election timeouts and frequent switching of leaders

Changes to tests
- Added a duration when constructing an ExpectMsg. This prevents ExpectMsg from waiting forever when
  and expected event does not occur
- Removed all Thread.sleep from the tests and replace them with waiting for a specific LogEvent this is
  a more deterministic.

Change-Id: Ie9ce0c9c73bf1b170a78879b1e2dab76f1de64df
Signed-off-by: Moiz Raja <moraja@cisco.com>
6 years agoDo not encode/decode DataChange registrations and notifications 40/9740/4
Moiz Raja [Tue, 5 Aug 2014 19:48:37 +0000 (12:48 -0700)]
Do not encode/decode DataChange registrations and notifications

DataChange notifications are never sent over the wire so they do not need
to be proto-buf encoded/decoded

Change-Id: Ief591bb2a2a17039c9b3ae21379eea3d562f4d98
Signed-off-by: Moiz Raja <moraja@cisco.com>
6 years agoFixed issue where a shard for a defined module is not found 80/9680/8
Moiz Raja [Tue, 5 Aug 2014 01:07:13 +0000 (18:07 -0700)]
Fixed issue where a shard for a defined module is not found

Change-Id: I5f6c82ce39f900a55519ec04a739a83ccb834e59
Signed-off-by: Moiz Raja <moraja@cisco.com>
6 years agoInitial Configuration for Clustering 77/9677/9
Moiz Raja [Mon, 4 Aug 2014 22:44:35 +0000 (15:44 -0700)]
Initial Configuration for Clustering

To try out clustering do the following,

1. Rename configuration/initial/05-clustering.xml.conf to configuration/initial/05-clustering.xml
2. Run the controller with these options

    ./run.sh -XX:MaxPermSize=512m

Change-Id: I61ede6cc083ce5fc722c44f0c127f4a03e2869d0
Signed-off-by: Moiz Raja <moraja@cisco.com>
6 years agoBUG-1495: fail future when no local RPC is found 83/9783/3
Robert Varga [Thu, 7 Aug 2014 12:15:45 +0000 (14:15 +0200)]
BUG-1495: fail future when no local RPC is found

Instead of checking state, we return a failed future, which will have a
RpcImplementationUnavailableException as its cause. The current call
site is the remote broker, which is the provider of last resort and it
throws it when it has no foreign system available.

Change-Id: Ib9d8534ca75e60f1867a7c275ee653a70dbd7a00
Signed-off-by: Robert Varga <rovarga@cisco.com>
6 years agoBUG-1493: do not instantiate HashSet 60/9760/5
Robert Varga [Wed, 6 Aug 2014 18:01:24 +0000 (20:01 +0200)]
BUG-1493: do not instantiate HashSet

This HashSet is used to track processed nodes -- but the parent node is
already giving us a method, which checks if it contains a particular
node ID. Let's use that instead of maintaining the set.

Based on traces, this should speed the datastore up by about 4.8%.

Change-Id: I09e1135f51c8967b9fe8c520a0e166918472de7d
Signed-off-by: Robert Varga <rovarga@cisco.com>
6 years agoBUG-997 Consult QNames of yang modules with ietf-netconf-monitoring/netconf-state... 84/9484/4
Maros Marsalek [Tue, 29 Jul 2014 15:06:44 +0000 (17:06 +0200)]
BUG-997 Consult QNames of yang modules with ietf-netconf-monitoring/netconf-state/schemas

Change-Id: Ie0fcb6d9ba44207cb14d31d51c1f3068983d514e
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
6 years agoBUG-1423 Fix distributed datastore error in config schemas(double case child) 99/9699/3
Maros Marsalek [Tue, 5 Aug 2014 13:53:34 +0000 (15:53 +0200)]
BUG-1423 Fix distributed datastore error in config schemas(double case child)

Change-Id: I44c220c577f57354a6a1dfd38c08ec2a1a75f9ca
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
6 years agoMerge "Fix test coverage not being reported in Sonar"
Tony Tkacik [Thu, 7 Aug 2014 06:09:50 +0000 (06:09 +0000)]
Merge "Fix test coverage not being reported in Sonar"

6 years agoUtilize transaction type to create read-only or 64/9764/2
Basheeruddin Ahmed [Wed, 6 Aug 2014 22:38:35 +0000 (15:38 -0700)]
Utilize transaction type to create read-only or
write-only or read-write transaction instead of always
creating read-write transaction

patch 2: updated based on review comments

Change-Id: I36390ab348c5774cf4bf180ea1608fe04f75d073
Signed-off-by: Basheeruddin Ahmed <syedbahm@cisco.com>
6 years agoMerge "Created sal-clustering-commons and moved sal-protobuff-encoding files to sal...
Moiz Raja [Wed, 6 Aug 2014 22:49:44 +0000 (22:49 +0000)]
Merge "Created sal-clustering-commons and moved sal-protobuff-encoding files to sal-clustering-commons"

6 years agoMerge "Remove old dependencies"
Ed Warnicke [Wed, 6 Aug 2014 19:21:31 +0000 (19:21 +0000)]
Merge "Remove old dependencies"

6 years agoCreated sal-clustering-commons and moved 79/9679/6
Basheeruddin Ahmed [Tue, 5 Aug 2014 00:18:27 +0000 (17:18 -0700)]
Created sal-clustering-commons and moved
sal-protobuff-encoding files to sal-clustering-commons

updated sal-distributed-datastore pom with the above change

removed sal-clustering-commons as part of distribution as it is embedded currently as part of distributed-datastore

Note - after this is merged we need to move
 out the .proto from  akka-raft to sal-clustering-commons
and add dependency of sal-akka-raft on sal-clustering-commons
and embed the same
rebased
Change-Id: I7d4ac51628cef96ffb16acfcfd596dfd3129e0fa
Signed-off-by: Basheeruddin Ahmed <syedbahm@cisco.com>
6 years agoMerge "Bug 1386: Avoid commit deadlock"
Tony Tkacik [Wed, 6 Aug 2014 17:05:10 +0000 (17:05 +0000)]
Merge "Bug 1386: Avoid commit deadlock"

6 years agoFix test coverage not being reported in Sonar 33/9733/8
Robert Varga [Wed, 6 Aug 2014 05:45:21 +0000 (07:45 +0200)]
Fix test coverage not being reported in Sonar

Change-Id: Id8ff02a986b1bfdab01a481fcb11cef111757de9
Signed-off-by: Robert Varga <rovarga@cisco.com>
6 years agoMerge "Optimilization the method datastoreNormalizedNodeToCompositeNode"
Tony Tkacik [Wed, 6 Aug 2014 15:52:19 +0000 (15:52 +0000)]
Merge "Optimilization the method datastoreNormalizedNodeToCompositeNode"

6 years agoMerge "A little extra protection against nulls in ConfigPusher"
Tony Tkacik [Wed, 6 Aug 2014 14:54:41 +0000 (14:54 +0000)]
Merge "A little extra protection against nulls in ConfigPusher"

6 years agoMerge changes If78d8143,Id8d04f24
Tony Tkacik [Wed, 6 Aug 2014 12:10:12 +0000 (12:10 +0000)]
Merge changes If78d8143,Id8d04f24

* changes:
  BUG-1281: eliminate thread-unsafe lookup
  BUG-1281: make methods static

6 years agoOptimilization the method datastoreNormalizedNodeToCompositeNode 42/9742/1
Jozef Gloncak [Wed, 6 Aug 2014 11:21:40 +0000 (13:21 +0200)]
Optimilization the method datastoreNormalizedNodeToCompositeNode

Origin method used schema context (which isn't necessary) and additionaly
doesn't cover all cases. + fixing of incorrect corresponding tests

Change-Id: Idbead2696de9102a202cad03c78f4a1a14a2d1d3
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
6 years agoMerge "Bug 1418 - onDataChange notification is not returning any data to the getCrea...
Tony Tkacik [Wed, 6 Aug 2014 09:25:10 +0000 (09:25 +0000)]
Merge "Bug 1418 - onDataChange notification is not returning any data to  the getCreatedData and getModifiedData function calls. Data change  notification does not seem to work."

6 years agoBug 1418 - onDataChange notification is not returning any data to 87/9687/4
Jan Hajnar [Tue, 5 Aug 2014 10:25:44 +0000 (12:25 +0200)]
Bug 1418 - onDataChange notification is not returning any data to
the getCreatedData and getModifiedData function calls. Data change
notification does not seem to work.

* Changed normalized to binding data change event translation call to
include event listener path. This path is then used to decode leaf or
mixin only augmentation because it can't be injected through children.
* Added verification tests.

Change-Id: Ia9d936f17b30b94fe4878e343cff7babb8d29d0f
Signed-off-by: Jan Hajnar <jhajnar@cisco.com>
6 years agoA little extra protection against nulls in ConfigPusher 29/9729/1
Ed Warnicke [Wed, 6 Aug 2014 04:24:02 +0000 (23:24 -0500)]
A little extra protection against nulls in ConfigPusher

Change-Id: I4aab592b028b8336370c23924fcbf69858b7a6bd
Signed-off-by: Ed Warnicke <eaw@cisco.com>
6 years agoBug 1386: Avoid commit deadlock 10/9210/10
tpantelis [Mon, 14 Jul 2014 12:01:16 +0000 (08:01 -0400)]
Bug 1386: Avoid commit deadlock

Changed the executor in DOMDataCommitCoordinatorImpl to a new
class DeadlockDetectingListeningExecutorService added to yangtools util.
This detects deadlock if another blocking commit is done by a client
notified from the single commit thread.

Change-Id: Icdc2b835fd336a1bbc37953828126b57253929c0
Signed-off-by: tpantelis <tpanteli@brocade.com>
6 years agoBUG-1281: eliminate thread-unsafe lookup 28/9628/4
Robert Varga [Sun, 3 Aug 2014 13:39:11 +0000 (15:39 +0200)]
BUG-1281: eliminate thread-unsafe lookup

The URI/name lookup map was not safe when context was reloaded. Get rid
of it for now, as SchemaContext can maintain reasonably-fast lookups. At
the same time make sure we share codepaths as much as possible.

Change-Id: If78d8143e94446fe9b38da894611b1c8b61f57f3
Signed-off-by: Robert Varga <rovarga@cisco.com>
6 years agoBUG-1281: make methods static 04/9404/7
Robert Varga [Mon, 28 Jul 2014 20:02:40 +0000 (22:02 +0200)]
BUG-1281: make methods static

As it turns out ControllerContext has a few methods which do not touch
instance state -- make those static and fixup callers.

Change-Id: Id8d04f2426435528ee754f56b34f91d25a49d3ee
Signed-off-by: Robert Varga <rovarga@cisco.com>
6 years agoRemove old dependencies 92/9692/3
Giovanni Meo [Mon, 4 Aug 2014 16:22:11 +0000 (18:22 +0200)]
Remove old dependencies

- Remove stale dependencies that prevent releasing of artifacts
- Remove unused flow-management-compatibility and
inventory-topology-compatibility modules
- Make sure that if a dependency is on module with a version defined
by a variable, lets specify the version in the dependency management
in common pom
- Replace in netconf-cli the reference from yang-data-json to
yang-data-composite-node because yang-data-json has been removed
- Removed whitespaces in config-netty-config that would cause
checkstyle issues downstream otherwise

Change-Id: I866e4b36e71c004b925bd181412ff4df91b3091f
Signed-off-by: Giovanni Meo <gmeo@cisco.com>
6 years agoBUG-868: migrate ListenerRegistry 82/9682/2
Robert Varga [Tue, 5 Aug 2014 07:16:49 +0000 (09:16 +0200)]
BUG-868: migrate ListenerRegistry

yangtools.concepts.util is being migrated to yangtools.util, so adjust
users to lower the number of warnings.

Change-Id: I652f0131a59fdb2481d779c181861f7ed7674b03
Signed-off-by: Robert Varga <rovarga@cisco.com>
6 years agoMigrate to junit 4.11 - failing test 85/9685/2
Jozef Gloncak [Tue, 5 Aug 2014 10:49:11 +0000 (12:49 +0200)]
Migrate to junit 4.11 - failing test

Corrected test which caused problems in
https://git.opendaylight.org/gerrit/#/c/9670/

Change-Id: Ife89b83bbc1d2df4dc34327e5f27ed47509a8b48
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
6 years agoMerge "Fix failing IT tests"
Tony Tkacik [Tue, 5 Aug 2014 15:18:02 +0000 (15:18 +0000)]
Merge "Fix failing IT tests"

6 years agoMerge "Adding remoterpc connector to distribution and Updating actor system creation"
Moiz Raja [Tue, 5 Aug 2014 14:54:59 +0000 (14:54 +0000)]
Merge "Adding remoterpc connector to distribution and Updating actor system creation"

6 years agoFix failing IT tests 83/9683/3
Maros Marsalek [Tue, 5 Aug 2014 08:54:23 +0000 (10:54 +0200)]
Fix failing IT tests

- Binding Test Helper did not spefied object-cache as dependency
  and it was already part of distribution
- API Doc plugin was using invalid YANG files for positive
  test scenario.

Change-Id: I06c174408df6073d887f5c307cf1b70c34c442b1
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
6 years agoMerge "Fixed namespace of yang testing file."
Tony Tkacik [Tue, 5 Aug 2014 10:09:13 +0000 (10:09 +0000)]
Merge "Fixed namespace of yang testing file."

6 years agoMerge "Bug 1354: Fixed rpc request/result transformation."
Tony Tkacik [Tue, 5 Aug 2014 09:28:44 +0000 (09:28 +0000)]
Merge "Bug 1354: Fixed rpc request/result transformation."

6 years agoNeutron LBaaS v2.0 API support 45/9645/3
Brent Salisbury [Mon, 4 Aug 2014 10:43:35 +0000 (06:43 -0400)]
Neutron LBaaS v2.0 API support

Patch#2:
-Changed Pool Memebers to its own CRUD interface.

Patch#1
-Added LBaaS support per the v2.0 API Doc
http://docs.openstack.org/api/openstack-network/2.0/content/

-There are four root API members as defined by the API spec:
Load Balancer, LB Pools, LB Listeners and Health Monitors.

-Members are nested underneath LB Pools. The URL API path
is defined in the patch but needs to be wired into the binding.
That work wouldnt change the API just the implementation.

-The patch is getting huge so unloading for review. LBaaS
will have a lot of moving parts o0. The postman collection
for testing this is at:
[ovsdb.git] / resources / openstack
/ Neutron-v2.0-API-Examples.json.postman_collection

Change-Id: I6acb234e7f246a98c57a9cab97af405c028b708d
Signed-off-by: Brent Salisbury <brent.salisbury@gmail.com>
6 years agoAdding remoterpc connector to distribution and Updating actor system creation 99/9599/3
Harman Singh [Sat, 2 Aug 2014 01:35:58 +0000 (18:35 -0700)]
Adding remoterpc connector to distribution and Updating actor system creation

Actor system will be created with in bundle class loader now. This change has been made to avoid any conflict with other actor systems.
We faced one class cast exception earlier and this fixes that

Change-Id: Iad55e60ee950fdcff8698270445f0da31bc39c5e
Signed-off-by: Harman Singh <harmasin@cisco.com>
6 years agoFixed typo in restconf, which caused classcast in datastore. 61/9661/2
Tony Tkacik [Mon, 4 Aug 2014 17:46:39 +0000 (19:46 +0200)]
Fixed typo in restconf, which caused classcast in datastore.

Change-Id: I51eb1fc2e4056dc84feb3b720c3ee844ee4ffdea
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
6 years agoDowngraded to hamcrest 1.1 to fix the build 76/9676/1
Ed Warnicke [Mon, 4 Aug 2014 22:14:23 +0000 (17:14 -0500)]
Downgraded to hamcrest 1.1 to fix the build

Change-Id: I5dc385ed61e8290eb81c50973417bd6ceb1c7508
Signed-off-by: Ed Warnicke <eaw@cisco.com>
6 years agoMerge "BUG 1162 - ensure data for all path arguments in datastore."
Tony Tkacik [Mon, 4 Aug 2014 14:11:50 +0000 (14:11 +0000)]
Merge "BUG 1162 - ensure data for all path arguments in datastore."

6 years agoBUG 1162 - ensure data for all path arguments in datastore. 41/9641/3
Jozef Gloncak [Mon, 4 Aug 2014 06:28:14 +0000 (08:28 +0200)]
BUG 1162 - ensure data for all path arguments in datastore.

Fixes
1) It is possible to specify path to data (including lists with
keys) via unexisting nodes and store payload data to this path.
Missing nodes in datastore are created before storing payload data.
2) InstanceIdentifier is now correctly created via
DataNormalizer.toNormalized()

Change-Id: If795a930015fef39a0029e808355d51357e2d5d5
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
6 years agoFixed namespace of yang testing file. 40/9640/1
Martin Vitez [Mon, 4 Aug 2014 09:57:12 +0000 (11:57 +0200)]
Fixed namespace of yang testing file.

This test used 2 different yang files with same namespace, which is incorrect and can cause test fail later.

Change-Id: I87a78e36d1d8812bb92f71c82722f87559907423
Signed-off-by: Martin Vitez <mvitez@cisco.com>
6 years agoBug 1354: Fixed rpc request/result transformation. 33/9233/3
Lukas Sedlak [Fri, 18 Jul 2014 09:40:23 +0000 (11:40 +0200)]
Bug 1354: Fixed rpc request/result transformation.

This commit is dependent on https://git.opendaylight.org/gerrit/9232 commit in Yangtools project.
Fixed proper data transformation in toRpcRequest method in NetconfMessageTransformer.
Now every rpc request (edit-config, get and get-config) will be transformed for given Schema Context.

Change-Id: I08da9200c0ba680b36a445978e7de748e94b654d
Signed-off-by: Lukas Sedlak <lsedlak@cisco.com>
6 years agoReturn a NoOpTransactionContext when the Primary for a shard is not found 36/9636/1
Moiz Raja [Sun, 3 Aug 2014 19:23:16 +0000 (12:23 -0700)]
Return a NoOpTransactionContext when the Primary for a shard is not found

A NoOpTransactionContext is returned when a request to create a transaction
results in the primary not being found or when the request times out.

A CanCommit on the NoOpTransaction will always false. A read
will always return an empty result. The consumer will need to deal with this situation.

Change-Id: Id6f7d0688921acac718b9bb06fbf03d5e345d7ac
Signed-off-by: Moiz Raja <moraja@cisco.com>
6 years agoKeep DataChange registrations and notifications local 27/9627/2
Moiz Raja [Sun, 3 Aug 2014 13:36:13 +0000 (06:36 -0700)]
Keep DataChange registrations and notifications local

Here is how it works
--------------------
When a consumer registers for a datachange notification we first check if the Shard
to which this registration needs to be sent is local. If it is then we send the
registration to it. If it is not then we simply return a NoOpRegistration to the consumer.
This ensures that a DataChange registration stays local to a cluster member.

Now let's say we have 3 replicas and in all those replicas we do find a local shard for a
given module and we have 3 listener registrations. At this time we do not want all 3 members
to be notified of the change. We only want the node which is the Leader to notify it's listeners
of the change. To restrict that the DataChangeListener will only forward events to the listener
if the Shard sends it a message enabling notifications

Change-Id: I035bbdf34e2509047f4bcb475c443a761b08e68d
Signed-off-by: Moiz Raja <moraja@cisco.com>
6 years agoFix a couple of issues with replication 96/9596/4
Moiz Raja [Fri, 1 Aug 2014 23:14:05 +0000 (16:14 -0700)]
Fix a couple of issues with replication

- First the data that was being sent from the primary was not being deserialized on the followers
- The state on the followers was not being applied correctly
- Add sal-distributed-datastore to the distribution

Added a test for CompositeModificationPayload to ensure that serialization works correctly
Also added a set of integration test programs to test the serialization

Change-Id: Id67d2c4fe471003d9dd3b42a8376c90fd23492ce
Signed-off-by: Moiz Raja <moraja@cisco.com>
6 years agoBUG-1473: update model.util.InstanceIdentifier users 23/9623/4
Robert Varga [Sun, 3 Aug 2014 11:31:05 +0000 (13:31 +0200)]
BUG-1473: update model.util.InstanceIdentifier users

Companion patch to https://git.opendaylight.org/gerrit/9622, updates
users to use the new name. Also make the code a tiny bit more readable.

Fixed conversion to checked Future.

Change-Id: If8da3639e656214713d3680951cd9ae724c5ad6f
Signed-off-by: Robert Varga <rovarga@cisco.com>
6 years agoMerge "Bug 1392: Change ReadTransaction#read to return CheckedFuture"
Tony Tkacik [Sun, 3 Aug 2014 18:17:46 +0000 (18:17 +0000)]
Merge "Bug 1392: Change ReadTransaction#read to return CheckedFuture"

6 years agoMerge "BUG-1281: share filters between instances"
Tony Tkacik [Sun, 3 Aug 2014 18:14:29 +0000 (18:14 +0000)]
Merge "BUG-1281: share filters between instances"

6 years agoMerge "BUG-1281: use SchemaContext lookups"
Tony Tkacik [Sun, 3 Aug 2014 18:14:14 +0000 (18:14 +0000)]
Merge "BUG-1281: use SchemaContext lookups"

6 years agoMerge "BUG 1082 Migrate sal-rest-connector to Async Data Broker API"
Tony Tkacik [Sun, 3 Aug 2014 18:10:03 +0000 (18:10 +0000)]
Merge "BUG 1082 Migrate sal-rest-connector to Async Data Broker API"

6 years agoBUG-1281: share filters between instances 03/9403/4
Robert Varga [Mon, 28 Jul 2014 19:53:51 +0000 (21:53 +0200)]
BUG-1281: share filters between instances

The filters are invariants, so lets share them accross instances and not
instantiate them each time we need them.

Change-Id: Ib632efe758c22bd782fca0536c2fe7e9c6e831c3
Signed-off-by: Robert Varga <rovarga@cisco.com>
6 years agoBUG-1281: use SchemaContext lookups 02/9402/4
Robert Varga [Mon, 28 Jul 2014 19:45:12 +0000 (21:45 +0200)]
BUG-1281: use SchemaContext lookups

SchemaContext provides efficient module lookup services. Use those
instead of homegrown versions.

Change-Id: I4406438b137c8742a5265036f84a66d7f0f441c0
Signed-off-by: Robert Varga <rovarga@cisco.com>
6 years agoAdded test cases for each .proto file to ensure 95/9595/2
Basheeruddin Ahmed [Fri, 1 Aug 2014 23:06:18 +0000 (16:06 -0700)]
Added test cases for each .proto file to ensure
that test case fail in case incompatible version
of the protocol buffer is utilized.

New Patch: Updated with copyright header

Change-Id: Ib7fe9e212c6319f46202506d96544d149da28004
Signed-off-by: Basheeruddin Ahmed <syedbahm@cisco.com>
6 years agoMerge "OS Neutron FWaaS api/jaxrs and associated bindings"
Madhu Venugopal [Sun, 3 Aug 2014 06:41:19 +0000 (06:41 +0000)]
Merge "OS Neutron FWaaS api/jaxrs and associated bindings"

6 years agoOS Neutron FWaaS api/jaxrs and associated bindings 26/9526/3
Brent Salisbury [Thu, 31 Jul 2014 11:01:53 +0000 (07:01 -0400)]
OS Neutron FWaaS api/jaxrs and associated bindings

Patch#2:
-Removed and cleaned up some comments.
-Fixed null check on Firewall Rules

Patch#1:
The Neutron v2.0 API document can be viewed at:
http://docs.openstack.org/api/openstack-network/2.0/content/

Sample API calls that can be imported into Postman
are located in the OVSDB directory at:
Directory: [ovsdb] / resources / openstack /
File: Neutron-v2.0-API-Examples.json.postman_collection

Change-Id: If37a0dd702aa02db9e94811c9a414718d25f42a7
Signed-off-by: Brent Salisbury <brent.salisbury@gmail.com>
6 years agoMerge "Created Sample Feature Test Class for Base Feature Repository"
Madhu Venugopal [Sat, 2 Aug 2014 08:34:32 +0000 (08:34 +0000)]
Merge "Created Sample Feature Test Class for Base Feature Repository"

6 years agoMerge "added feature topology manager shell"
Madhu Venugopal [Sat, 2 Aug 2014 07:36:26 +0000 (07:36 +0000)]
Merge "added feature topology manager shell"

6 years agoMerge "Added hosttracker shell for karaf (rebased)"
Madhu Venugopal [Sat, 2 Aug 2014 07:33:30 +0000 (07:33 +0000)]
Merge "Added hosttracker shell for karaf (rebased)"

6 years agoMerge "Ignore generated journal directory"
Moiz Raja [Sat, 2 Aug 2014 04:17:41 +0000 (04:17 +0000)]
Merge "Ignore generated journal directory"

6 years agoMerge "Configuration Interface for Raft"
Moiz Raja [Fri, 1 Aug 2014 23:24:56 +0000 (23:24 +0000)]
Merge "Configuration Interface for Raft"

6 years agoMerge "Snapshot changes"
Moiz Raja [Fri, 1 Aug 2014 23:22:09 +0000 (23:22 +0000)]
Merge "Snapshot changes"

6 years agoMerge "Adding a constant file for actor names and paths."
Moiz Raja [Fri, 1 Aug 2014 23:19:31 +0000 (23:19 +0000)]
Merge "Adding a constant file for actor names and paths."

6 years agoConfiguration Interface for Raft 56/9556/2
Kamal Rameshan [Fri, 1 Aug 2014 02:38:48 +0000 (19:38 -0700)]
Configuration Interface for Raft

A default implementation for the ConfigParams is provided.

The client can override and provide an impl of ConfigParams.

For now only 4 parameters have been introduced. More can be added.

ExampleActor and TestDriver provide examples.

Change-Id: I42a46a521ad9364d535de479c58873dc70740c9f
Signed-off-by: Kamal Rameshan <kramesha@cisco.com>
6 years agoadded feature topology manager shell 42/7542/5
Jonathan Fok kan [Thu, 31 Jul 2014 21:05:01 +0000 (17:05 -0400)]
added feature topology manager shell

The shell is installed when odl-nsf-managers is installed

Change-Id: I460c71231ed54342983271304356737a1cb6c377
Signed-off-by: Jonathan Fok Kan <jfokkan@inocybe.com>
6 years agoAdded hosttracker shell for karaf (rebased) 09/9409/6
Gabriel Robitaille-Montpetit [Thu, 31 Jul 2014 19:59:52 +0000 (15:59 -0400)]
Added hosttracker shell for karaf (rebased)

Change-Id: I6c8eec9fddcd1a7d82e12e27f232fdaad65607b2
Signed-off-by: Gabriel Robitaille-Montpetit <grmontpetit@inocybe.com>
6 years agoBUG 1082 Migrate sal-rest-connector to Async Data Broker API 57/8457/18
Jozef Gloncak [Mon, 30 Jun 2014 13:58:56 +0000 (15:58 +0200)]
BUG 1082 Migrate sal-rest-connector to Async Data Broker API

Rework of sal-rest-connector project to support Async Data Broker API

Change-Id: I73804418a04445b236d12693e493a11850dd94dd
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
6 years agoIgnore generated journal directory 72/9572/1
Ed Warnicke [Fri, 1 Aug 2014 11:23:17 +0000 (06:23 -0500)]
Ignore generated journal directory

Change-Id: I3557f3d2b3aee5ee553fa9b7b1f63428043ef2b3
Signed-off-by: Ed Warnicke <eaw@cisco.com>
6 years agoAdded configfile to config-netty feature. 54/9554/2
Ed Warnicke [Fri, 1 Aug 2014 01:14:07 +0000 (20:14 -0500)]
Added configfile to config-netty feature.

Change-Id: Id5fea6efd0c65f4391e2c3e772611db74f6bc71c
Signed-off-by: Ed Warnicke <eaw@cisco.com>
6 years agoMoved all config subsystem config files to mvn projects. 51/9551/3
Ed Warnicke [Thu, 31 Jul 2014 23:19:46 +0000 (18:19 -0500)]
Moved all config subsystem config files to mvn projects.

Change-Id: I98f4ab29fd57b800d5c9272e866ead3519e09264
Signed-off-by: Ed Warnicke <eaw@cisco.com>
6 years agoMerge "Bug 1333: Regression Test suite."
Ed Warnicke [Fri, 1 Aug 2014 10:25:31 +0000 (10:25 +0000)]
Merge "Bug 1333: Regression Test suite."

6 years agoMerge "BUG-732 Detect commit failure (and also put/delete/merge) in netconf-connector"
Tony Tkacik [Fri, 1 Aug 2014 09:44:05 +0000 (09:44 +0000)]
Merge "BUG-732 Detect commit failure (and also put/delete/merge) in netconf-connector"

6 years agoMerge "Fix xsql compilation failure"
Tony Tkacik [Fri, 1 Aug 2014 09:43:54 +0000 (09:43 +0000)]
Merge "Fix xsql compilation failure"

6 years agoMerge "Bug 1369: Use separate single threadpool for data operations on binding mountp...
Ed Warnicke [Fri, 1 Aug 2014 09:35:31 +0000 (09:35 +0000)]
Merge "Bug 1369: Use separate single threadpool for data operations on binding mountpoint."

6 years agoBUG-732 Detect commit failure (and also put/delete/merge) in netconf-connector 71/9471/2
Maros Marsalek [Tue, 29 Jul 2014 12:44:50 +0000 (14:44 +0200)]
BUG-732 Detect commit failure (and also put/delete/merge) in netconf-connector

When a failed rpc is detected, issue a discard changes rpc to keep device (candidate) configuration consistant (if candidate is supported).

Change-Id: Ia752ee33043b3159fd71b01eef34e6e79baf18be
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
6 years agoFix xsql compilation failure 68/9568/1
Maros Marsalek [Fri, 1 Aug 2014 08:51:27 +0000 (10:51 +0200)]
Fix xsql compilation failure

Change-Id: I89fe87b64dd1377a89caad86d5a3bf91e3e40402
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
6 years agoMerge "ControllerContext.dataNodeChildByQName method refactoring"
Tony Tkacik [Fri, 1 Aug 2014 08:35:13 +0000 (08:35 +0000)]
Merge "ControllerContext.dataNodeChildByQName method refactoring"

6 years agoMerge "Notificator create stream name method don't remove trailing slash"
Tony Tkacik [Fri, 1 Aug 2014 08:33:53 +0000 (08:33 +0000)]
Merge "Notificator create stream name method don't remove trailing slash"

6 years agoMerge "BUG-628 Allow configuration to override module based capabilities from remote...
Tony Tkacik [Fri, 1 Aug 2014 08:27:50 +0000 (08:27 +0000)]
Merge "BUG-628 Allow configuration to override module based capabilities from remote netconf device"

6 years agoMerge "BUG-868: Migrate to SchemaContextListener"
Tony Tkacik [Fri, 1 Aug 2014 08:00:43 +0000 (08:00 +0000)]
Merge "BUG-868: Migrate to SchemaContextListener"

6 years agoMerge "BUG-190 Simplify reconnect logic in protocol-framework."
Tony Tkacik [Fri, 1 Aug 2014 07:54:59 +0000 (07:54 +0000)]
Merge "BUG-190 Simplify reconnect logic in protocol-framework."

6 years agoMerge "Add XSQL into default compilation"
Tony Tkacik [Fri, 1 Aug 2014 07:50:52 +0000 (07:50 +0000)]
Merge "Add XSQL into default compilation"

6 years agoControllerContext.dataNodeChildByQName method refactoring 06/9306/3
Jozef Gloncak [Fri, 25 Jul 2014 05:48:29 +0000 (07:48 +0200)]
ControllerContext.dataNodeChildByQName method refactoring

ControllerContext.dataNodeChildByQName() is used only in childByQName()
methods with DataNodeContainer input parameters:
- ContainerSchemaNode
- ListSchemaNode
- Module
Therefore child node of these DataNodeContainers can't be ChoiceCaseNode
(because it can be only child node of ChoiceNode)
and original branch >if (node instanceof ChoiceCaseNode)< couldn't be
executed.
I think that it was typo.

Change-Id: Ieb85ad8acaf047b47813542d8968c399a4e30b50
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
6 years agoFix bug in test for distributed datastore 40/9540/2
Maros Marsalek [Thu, 31 Jul 2014 14:50:37 +0000 (16:50 +0200)]
Fix bug in test for distributed datastore

The test compared two normalized nodes using toString representation.
This is wrong since these nodes contain hash map and their order(also toString) changes depending on their content.
THe test compared two normalized nodes that did not contain same values. There was Integer in one and Long in the other.

The test failed for me on (due to hash map ordering):
java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)

Change-Id: Ib72c871077f79cff8327da9c57cc1faa8677a298
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
6 years agoBug 1308 - Unable to publish NodeUpdated message via NotificationService 39/9139/6
Martin Bobak [Thu, 17 Jul 2014 18:01:51 +0000 (20:01 +0200)]
Bug 1308 - Unable to publish NodeUpdated message via NotificationService

Change-Id: I71d77fbc94fdecd3f3e5adb0af30b5c985db51a4
Signed-off-by: Martin Bobak <mbobak@cisco.com>
6 years agoMerge "Fixed for bug : 1171 - issue while creating subnet"
Ed Warnicke [Fri, 1 Aug 2014 02:33:46 +0000 (02:33 +0000)]
Merge "Fixed for bug : 1171 - issue while creating subnet"

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.