1436 Commits

Author SHA1 Message Date
Ray Milkey
73257018b2 Fix for ONOS-251 - Can't create bandwidth constrained intents
The simple link resource store was not setting a default value
for the bandwidth on a link, so all requests for bandwidth
constrained paths were failing due to no available bandwidth.

Change-Id: Ibdeeae8ad22cfab443d694588d74fc2e910d72bf
2014-11-20 13:13:25 -08:00
Yuta HIGUCHI
d09f101c66 DatabaseClient: check CopyCat response for errors
Change-Id: I49e46bd78293a4ca0f363a6b97e0995e46c05027
2014-11-20 11:22:11 -08:00
Yuta HIGUCHI
f8535f3493 DatabaseManager: add periodic leader advertisements
Change-Id: I6e9244a06191fe0f2dd5eaed7e043e84d704bfcd
2014-11-20 11:13:48 -08:00
Madan Jampani
1769a1ade3 1. Adds a lockAsync method to LockService for async lock acquisition.
2. Fixes a bug where lock() wasn't attempting a tryLock before registering for lock avalilability.
(Note 1 above is needed for LeadershipService which will come later)

Change-Id: I1deaa445f7cdf86416b335df1d7358e17eff19c3
2014-11-20 10:15:10 -08:00
Yuta HIGUCHI
1ec4166b62 MapDBLog: clone byte[] before deserializing
- workaround for Kryo buffer underflow case
Change-Id: I0a9566f66fcd6fac3a91dda87f59d01fbed2d43a
2014-11-20 10:14:53 -08:00
Yuta HIGUCHI
faf9e1c3b0 Lower log level
- periodic non-error log to trace
- Host event to debug

Change-Id: I1a3e746f4cafe72dbaa648ac379a0548a93445e4
2014-11-20 10:08:43 -08:00
Yuta HIGUCHI
b2cfc38ccd Turn on HazelcastIntentStore
Change-Id: Ia91da0568f679d9002c59932df4d2bdb39a106ea
2014-11-19 18:19:43 -08:00
Yuta HIGUCHI
43db10f4f4 Turning off CopyCat version of IntentStore
Change-Id: I093362c5d7a8c325dd1f767b78e8b0a05f1de153
2014-11-19 17:44:25 -08:00
Madan Jampani
71582edbe7 1. DatabaseManager activate will attempt to listTables to ensure store is in good shape.
2. lock and tryLock can now throw InterruptedExceptions.

Change-Id: Ifa766ad441f677a4071b68d8f6caa564cf320869

Change-Id: I318ff762a96b261737831f6bd7c200b384c638e9

Change-Id: I0f509703520b3187931fa3669cd8213a91e85c96
2014-11-19 15:39:30 -08:00
Ayaka Koshibe
78bcbc1227 remove dependency on Devices for handling MastershipEvents
Change-Id: Ie1670e77d3eee5dbd597f574ebe16d687e7b551e
2014-11-19 15:39:08 -08:00
Yuta HIGUCHI
4490a73af8 DistributedIntentStore: CopyCat version of Distributed intent store
- old DistributedIntentStore renamed to Hazelcast~ and is by default disabled

Change-Id: I386eaf6c136f8a2fbebb4268d20b1395249e77ea
2014-11-19 15:14:34 -08:00
Yuta HIGUCHI
a8016e718b CMap: wrapper around DatabaseService
Change-Id: I55c534567b99d6bb7e95045c8100226c0b515a99
2014-11-19 15:12:15 -08:00
Yuta HIGUCHI
9a2e18a6af DistributedIntentStore: add sanity check to parking state transition
Change-Id: I2958a5889451a4f7a34146033a801cf89b73a1cc
2014-11-19 15:12:15 -08:00
Thomas Vachuska
cd2920cc23 Fixing visuals for the SDN-IP demo.
Change-Id: I6f41e6cd72834ece28212de8b5962abaf2d418e4
2014-11-19 14:50:42 -08:00
Madan Jampani
4e729affa6 ClusterMessagingService broadcast and broadcastIncludeSelf should use unicastUnchecked for sending point to point messages.
Change-Id: Ief52b2bb080de5a7226156b46b34086cc3d32ddd
2014-11-19 11:22:36 -08:00
Brian O'Connor
e2ff25a13c Serializing batch execution on per-instance basis for intents
Change-Id: Idda3f4a65e78567302d91ba0070e78d435eea8fd
2014-11-19 11:02:18 -08:00
Madan Jampani
5ce3025338 Support for running copycat on a subset of ONOS cluster nodes.
This change ensures DatabaseService on each node does the right thing, irrespective of whether the node is part of Raft cluster or not.

Change-Id: I1e8976d56b3a2892d5c7ecbb46c247770a633860
2014-11-18 23:30:31 -08:00
Yuta HIGUCHI
1b3f4db949 SimpleMastershipStore: add missing switch-break
Change-Id: Iafe5cb42c53392466d23f348186074ca4fe674f6
2014-11-18 13:03:27 -08:00
Madan Jampani
ac201955fa DistributedLockManger creates a locks table if one does not exist
Change-Id: Ifa766ad441f677a4071b68d8f6caa564cf320869
2014-11-18 10:36:23 -08:00
Yuta HIGUCHI
2fe6334c15 DatabaseService related fixes.
- Note: This patch does not fix the issue running as single node.

Change-Id: Iabfa548ca4e40e4ec5c9e76ae936300437e53d22
2014-11-17 21:33:38 -08:00
Toshio Koide
8e5e91e296 Update SimpleLinkResourceStore to obtain capacities from link annotations
Change-Id: I98f8959fdc00953c98a151ad7b0bfa1041b118d7
2014-11-17 20:22:30 -08:00
Yuta HIGUCHI
452071656a ClusterMessagingProtocolClient: less log for expected exception
Change-Id: Ifac94d2dc68144f126c9c6ab2cd4aedc712a10fe
2014-11-17 20:22:08 -08:00
Yuta HIGUCHI
8ba3ac05c2 MapDBLogTest: use Temp file
Change-Id: I7a6647ffa354913d3e6aa08de03f5a15e03753d7
2014-11-17 19:16:26 -08:00
Brian O'Connor
a8e7dd4b49 Adding DistributedIntentBatchQueue
Change-Id: I4ce3c2cb5a31ad8ace5d1d20830a49a869e63900
2014-11-17 17:28:37 -08:00
Ray Milkey
241b96accd Fix high priority findbugs reported issues
Fixed some code that was reporting findbugs errors

Implemented a suppression mechanism for findbugs
reported errors and a suppression file.

Change-Id: Ie8a2e84cc57ec6ddfa14d782ee89feb095b9dd59
2014-11-17 16:38:30 -08:00
Pavlin Radoslavov
20ded69934 Fix a bug inside DistributedLock.extendExpiration():
Return false (as per API) if we don't hold the lock.

Change-Id: Id3c314f6e374c92a73ce6f1aa4b6fbcef0a80697
2014-11-17 16:38:15 -08:00
Yuta HIGUCHI
3b29b79e6d DatabaseManager: client initialization bug fix
Change-Id: I62afbc2847728e304f90c13f8af284be89e84ab7
2014-11-17 15:28:41 -08:00
Brian O'Connor
faaedf485d Changing log level from warn to debug in Stats Store.
Change-Id: I7651427d317813775a2c729682001fb888b45f1c
Note: Optical flows don't have stats.
2014-11-17 14:48:48 -08:00
Brian O'Connor
fa81eaef06 Refactored intent framework to deal with batches.
There is still work to be done, but for now, submit, withdraw and reroute are working.

Change-Id: Ib94cf8c4be03786cc070f402d1f296f5dfa6588b
2014-11-17 14:46:09 -08:00
Madan Jampani
a88d1f5943 1. Fixed a synchronization issue with database update processing and expiry tracking.
2. Fixed a synchronization issue with MapDBLog appendEntries method.
3. DatabaseClient now uses ProtocolClient to interact with Raft cluster.
4. Misc javdoc and logging improvements

Change-Id: I147eb5bf859cf9827df452d62ab415d643a00aa4
2014-11-17 13:27:27 -08:00
Yuta HIGUCHI
3524229a98 DistributedLinkResourceStore
Change-Id: Ia45c221946693906c12d64f20f25e30786a04224
2014-11-17 01:36:28 -08:00
Yuta HIGUCHI
b9d68669e3 DatabaseClient: Add timeout
- timeout + retry to listTable
- timeout to service API

Change-Id: I8b54dd24d380dcc9e8d44baf3bbf5e379ccca53b
2014-11-17 01:36:26 -08:00
Yuta HIGUCHI
39da97989d Wait for Leader to appear
- DatabaseClient: wait for Leader before DB access
- DatabaseManager: wait for Leader before activate

Change-Id: I5102e7cae1d33f49662bf452b1fba020173a51a0
2014-11-17 01:35:15 -08:00
Yuta HIGUCHI
0b69a82256 DatabaseStateMachine: lower log level
Change-Id: Ied0c18ab498bf499d3e54aa170097ed4304368cb
2014-11-17 01:01:01 -08:00
Thomas Vachuska
badb93f54b Fixing optical link state issues; a few still remain.
Change-Id: I126f89384adbe5272bdaf4eb0e3b456984768a98
2014-11-16 09:40:38 -08:00
Thomas Vachuska
e4cebafa19 Adding support for link state to GUI.
Change-Id: I6476cf04810f7bc7e88af629a36ce671b42748d0
2014-11-15 18:58:41 -08:00
Ray Milkey
62709fc623 Add in a findbugs suppression to see if it works
Change-Id: I4ca6b65046df35e6d773b515ae819fffb81c43ba

Remove test suppression of findbugs error

Change-Id: I277ac9f5ff20c83e0208cb9adadc12d5a13723d2
2014-11-15 15:03:43 -08:00
Thomas Vachuska
57126feac1 Sketching out what link-state addition would look like; quite easy until we get to the distributed store.
Added unit tests to provide durable-nondurable transitions.
FIxed issue where link could be accidentally activated.
Renamed parameter.

Change-Id: I8aa19a6583ec50dbf28769995f0a8ea9be9a4daa
2014-11-15 11:14:47 -08:00
Yuta HIGUCHI
2b75f1a46e ClusterMessagingProtocolClient: changed thread pool
Change-Id: Ibb37bd2c7c94067336152f19412523dc4cda9722
2014-11-14 18:39:09 -08:00
Yuta HIGUCHI
fd0db4869a DatabaseStateMachine: return value on conditional failure
Change-Id: I579652659ea7281013c341c6ea9df2003b90bcdd
2014-11-14 18:39:09 -08:00
Yuta HIGUCHI
841c0b623a Add getAll to DatabaseService
Change-Id: I5fb9d52244b005dfc22e7faaa68341be3c3f3725
2014-11-14 18:05:25 -08:00
Thomas Vachuska
7c27ad7027 Added detection of traffic flowing using StatisticService.
Change-Id: I2044ec16fd722d953d0e2b2c955e4da2b1dab663
2014-11-14 16:20:18 -08:00
Ray Milkey
c5cd0d96c5 Findbugs fixes
Testing Sonar with a few findbugs fixes.  Suppressing a false
positive to see if it works.

Change-Id: I0cdf2921198787adc56c680840aa00bdd254269b
2014-11-14 15:39:25 -08:00
Yuta HIGUCHI
885868fc5b DistributedFlowRuleStore: synchronized -> Reader/Writer lock
fix for ONOS-195

Change-Id: I3e15104225878d1616fa790095695400bcc43697
2014-11-13 23:53:54 -08:00
Madan Jampani
f5d263b41f Bugfixes for DistributedLockManager functionality
Added a method called broadcastIncludeSelf to ClusterCommunicationService.
Cosmetic improvements: added toString methods

Change-Id: I1d58720c29e6f8642f950670c3a6d95a7019a491
2014-11-13 12:45:50 -08:00
Sho SHIMIZU
977cb60b98 Add unit tests for constraint object serializations
Duration is additionally registered because LatencyConstraint has it

Change-Id: Ibbf31761b789fa71fb6cb1a1155f5ea0680853ce
2014-11-13 10:44:43 -08:00
Yuta HIGUCHI
adac04a72d Support LinkResource related serialization
- DefaultLinkResourceRequest
- DefaultLinkResourceAllocations

Change-Id: I8ebb32d5cb96c8465a23a9a512d2e8a56b6fce56
2014-11-13 00:42:17 -08:00
Madan Jampani
def2c65d9b Support for expiring Database entries
Registering database entry expiration tracker with DatabaseStateMachine

Support for publishing database state machine snapshot installation events.
Expiry tracker will listen to these events to bootstrap its local state.

Change-Id: I8bf22c8d7bab38624341350ccc083c5ca2fcb117
2014-11-12 15:37:10 -08:00
Yuta HIGUCHI
71b9d09c84 ClusterMessagingProtocolClient: lazily bind to NodeId
fixes ONOS-185

Change-Id: Ibbe9624509964d7c3e7ac2c95c171e5cb20b0634
2014-11-12 13:36:36 -08:00
Madan Jampani
9b37d578ef Using net.jodah.expiringmap.ExpiringMap for tracking ttl expiration of database entries.
Minor javadoc updates.
2014-11-12 11:53:24 -08:00