1603 Commits

Author SHA1 Message Date
Sho SHIMIZU
4920d051d0 Make sure to supply Kryo serializable set to constructor
Change-Id: Ida776fc3e7fbcacb604ae578865f2a280970101c
2016-07-01 18:15:14 +00:00
Frank Wang
e0eb5ce4d0 [ONOS-4789]some services don't remove listener in deactive function
Change-Id: I74c3f4eb14edcd93d06a8838a4205df381c7f678
2016-07-01 17:55:00 +00:00
Sho SHIMIZU
a1a590b921 Fix NoSuchElementException reported in ONOS-4763 and ONOS-4757
Change-Id: I973b6c33f02defac3463b6e53ea177056f1f9714
2016-07-01 17:25:00 +00:00
Sho SHIMIZU
09ed38756d Fix unit tests and bugs of EncodableDiscreteResources
Change-Id: Iea3b39dbdcfabaf23fa7e7ef6cb8a98bfe432081
2016-07-01 16:40:16 +00:00
Aaron Kruglikov
43d843d7b1 Removing tests to avoid build failures.
Change-Id: I1eae3495e9dcc4746a8bbdc5839bbbe21485a522
2016-07-01 16:29:32 +00:00
Aaron Kruglikov
b5a41e594e Changes to speed up tests.
Change-Id: I1830f564710b9cb06d9c41d31e31854a272fbf4d
2016-06-30 15:24:57 +00:00
Sho SHIMIZU
317b49810c Remove a constructor unnecessary due to the custom serializer
Change-Id: Iac2e46a73b5c6391be201c1fd6b6da2d30abd26f
2016-06-29 23:50:23 +00:00
Jon Hall
1195afbc7f Dynamic Clustering fixes
Addresses [ONOS-4501] and maybe [ONOS-4404]

Change-Id: I2bce2d60106e6887d692de484d22b109678ffd46
2016-06-29 22:35:30 +00:00
Carmelo Cascone
804c0010e3 Added kryo serializer for ImmutableByteSequence
Serialization was failing when the inner ByteBuffer instance was a
HeapByteBuffer. Also, simplified ImmutableByteSequence.toString()

Change-Id: I4f75086a9b6536205fb43b78a0e4d2bfce9e8a5c
2016-06-29 16:26:10 +00:00
Sho SHIMIZU
0b4e9dd720 Rename arguments to be more descriptive
Change-Id: If5c51aa2d713414839650e689ed8c4050a53c3a2
2016-06-28 17:43:17 -07:00
Madan Jampani
1159186a88 Fixes NPE in ECLinkStore seen during topology shutdown
Change-Id: Iabd22126a940dfb8983ff40c4a43b23e068a273f
2016-06-27 13:58:07 -07:00
Madan Jampani
eea133a125 Using Atomix 1.0.0-rc9
Change-Id: I70fca7983d7829084d5fe0e6c2b4e9d1940ff82c
2016-06-24 16:24:59 +00:00
Madan Jampani
b6e884ba5e Less vesbose info level logging in DistributedTopologyStore
Change-Id: I1a7fbcf8e867e95bc514fa4745f35226b99d0d3b
2016-06-23 08:53:10 +00:00
Madan Jampani
71c32ca158 Move event handling to background thread
Change-Id: I8ccd1631fac14b1f753da4fb4b4ed01e5a045edf
(cherry picked from commit 8f906bfae1bb600644723a8aa75c80207c6d0941)
2016-06-23 08:46:58 +00:00
Madan Jampani
ea98f41318 Log failures in state machine processing
Change-Id: Ib92768cf4cf5cce5e2642265d1c1aa3e2f13b246
2016-06-23 08:44:55 +00:00
Madan Jampani
b2cfa6ad75 Fail with StorageException.Unavailable only when client is CLOSED
Change-Id: I5a7f7cdb78aee88662b421cbcc03ed3b39e1e7ab
(cherry picked from commit 92ed7a17416759f63a05bd1a34e05d5215a68ee4)
2016-06-23 08:41:46 +00:00
Aaron Kruglikov
5bb381298f Disabling tests temporarily to stop peridoic build timeouts.
Change-Id: Ie67b9134d467cb38a689efdba66857206a02c762
2016-06-22 12:07:23 -07:00
Steffen Gebert
7c446e46dd Fix exception "class not registered for kryo" for setQueue instruction
The exception

    Class is not registered: org.onosproject.net.flow.instructions.Instructions$SetQueueInstruction

occurs, because this class was not registered for kryo.

See also
https://groups.google.com/a/onosproject.org/forum/#!topic/onos-discuss/hVJxK7YhWA4

Change-Id: I73d6d0ba59c0fafa0990264cc3e4a3c0b1f5eb56
2016-06-22 18:09:42 +00:00
Jonathan Hart
bd85f785a2 Fix for app dependency loading order issue
Change-Id: Ic4210644bb4a7c433c6e4bd6a33136d2bdfe1e5a
(cherry picked from commit e09b71ab0e8cf7f648f345cfa257f24e62804bf9)
2016-06-21 16:15:07 +00:00
Jon Hall
66870baa17 Lower log level for warning message seen when starting larger clusters
Also fix message to show id instead of null

Change-Id: I91b131674088d644ee10f5d105052c42cc018984
2016-06-21 02:47:44 +00:00
Madan Jampani
8e18c0e3de Use concurrent hash map to avoid concurrent modification exceptions
Change-Id: I4d75d2304ae38eddded8b7ddf89a38ae6509af49
2016-06-21 01:49:55 +00:00
Yuta HIGUCHI
6eb00cce43 Allow reading PortDescription from DeviceStore
DeviceManager had to reverse-engineer PortDescription
in order to mark port off-line, etc.
which required domain specific knowledge.
(e.g., OpticalPortOperatorr#descriptionOf)

required work for ONOS-4691

Change-Id: I954f5f2db2cb7db938f498ead4c8e3f84212a53f
2016-06-18 07:02:07 +00:00
Aaron Kruglikov
c0c27c0d02 Moving from local to netty transport.
Change-Id: Id37af6fa4d0971fd34ed18951196dde47bc4a12d
2016-06-17 23:57:03 +00:00
Jonathan Hart
9dc5f09831 Register UpdateRequest in Kryo
Change-Id: I4f51e8f9e9cce55a912bc464d1593f9ad233ead9
2016-06-17 15:15:17 -07:00
Madan Jampani
e88086fc98 CachingAsyncConsistentMap: When changes are detected update cache with new value
Change-Id: I51307a8bff953389feeb8928f591151058d49eab
2016-06-17 01:46:06 +00:00
Madan Jampani
21a7149c94 Retry queries when exception is StorageException.Unaavailable
Change-Id: I50537e18f09352ca35d039a341d6873f0ed44695
2016-06-17 01:45:48 +00:00
Madan Jampani
7f7cae069c Correct atomix version in features.xml and pom.xml
Change-Id: I416da6b7d11e1b1e0c27c6ce15428e978d2fccd1
2016-06-16 16:04:28 -07:00
Deepa Vaddireddy
0c49b607a1 Fix for JIRA ONOS-4620. Whenever networkconfiguration is deleted even the queued will be removed
Change-Id: I8d7f1a873af90cf86ea34f1a2b1585ef4c3e46e4
2016-06-16 20:47:56 +00:00
Sho SHIMIZU
637ae5d013 ONOS-4690: containsKey() in TransactionalMap
Change-Id: I13a5eea3871a9a6cc5f808b662584d1892ff19bd
2016-06-16 16:49:34 +00:00
Sho SHIMIZU
0e77c50475 Performance improvement in deserialization of EncodableDiscreteResources
Over 1500x faster. This is for ONOS-4698

Before this patch
Benchmark                                   Mode  Cnt     Score   Error  Units
VlanSetSerialize.deserialize_compact_vlans  avgt  200  1681.625 ± 8.937  us/op
VlanSetSerialize.serialize_compact_vlans    avgt  200     1.532 ± 0.017  us/op

After this patch
Benchmark                                   Mode  Cnt  Score   Error  Units
VlanSetSerialize.deserialize_compact_vlans  avgt  200  1.070 ± 0.012  us/op
VlanSetSerialize.serialize_compact_vlans    avgt  200  1.613 ± 0.014  us/op

Change-Id: I2f00f7fbf25ee36555751e0bcff95d06b701f8c8
2016-06-16 16:16:39 +00:00
Jonathan Hart
14651b560d Purge app bits off disk if install fails due to insufficient prerequisites.
Otherwise the system gets put in a state where the app can't be installed,
activated or uninstalled due to discrepency between ONOS store state and disk.

Change-Id: Ifbedeb34adf900304c096bff9b2d849932586dde
2016-06-16 16:13:47 +00:00
Sho SHIMIZU
2425fcfb44 Fix typo
Change-Id: I511dfaed3c5ad45eaa5b93272110857053080f8e
2016-06-16 09:05:03 -07:00
Sho SHIMIZU
b15b2ead35 Avoid extracting resoure set from backing range set
This is one of fixes for ONOS-4684

Change-Id: I5192df366d16b8aad5f8987abbf539897ca0e51c
2016-06-16 10:31:16 +00:00
Sho SHIMIZU
b42d383b7e Avoid extracting resoure set from backing range set
This is one of fixes for ONOS-4684

Change-Id: I93cd95317b985f98fd6e72a4f96c7f7d6857f279
2016-06-16 10:27:47 +00:00
Sho SHIMIZU
326162fd4c Avoid extracting resource set from backing range set
This is one of fixes for ONOS-4684

Change-Id: I6170d466f168f0b2299f96c623e5435c6631ba12
2016-06-16 09:16:32 +00:00
Sho SHIMIZU
dd89bbda2a Add unit tests for DiscreteResourceCodec implementations
Change-Id: Ie93b5d36ac7552bcc4d3c0c1808094a7be305cf1
2016-06-16 09:15:48 +00:00
Brian O'Connor
1b2aea88c0 Removing gratuitous relativePath from pom.xmls
The default value for relativePath is: ../pom.xml

Change-Id: I1f5e5e6bfa1e91fcddae4f8cb8ab0c00c276e6b0
2016-06-16 07:05:31 +00:00
Madan Jampani
6c02d9e1f5 New ApplicationStore that uses a single ConsistentMap to track all app related state
Change-Id: Ieacc97f213add8ece8f462cd9971fb6ef3d0dde5
2016-06-16 05:52:12 +00:00
Carmelo Cascone
17fc9e41df Major refactoring of the BMv2 protocol module (onos1.6 cherry-pick)
- Created 3 separate sub-modules: API (doesn't depend on
    Thrift), CTL (depends on Thrift), THRIFT-API (to generate Thrift
    sources)
- Implemented 2 new services (for device configuration swapping and
    table entry management) needed to distribute BMv2-specific state
    among ONOS instances.
- Implemented a BMv2 controller (previously other modules where
    using separately a Thrift client and a server)
- Added a default BMv2 JSON configuration (default.json) and interpreter
    to be used for devices that connect for the first time to ONOS.
    This allows for basic services to work (i.e. LLDP link discovery,
    ARP proxy. etc.).
- Changed behavior of the flow rule translator and extension selector,
    now it allows extension to specify only some of the match parameters
    (before extension selectors were expected to describe the whole
    match key, i.e. all fields)
- Various renaming to better represent the API
- Various java doc fixes / improvements

Change-Id: Ida4b5e546b0def97c3552a6c05f7bce76fd32c28
2016-06-16 00:47:42 +00:00
Madan Jampani
37fa33ce17 Create of immutable copy of set in the constructor. Fixes a kryo serialization bug
Change-Id: Ib4e5ae9330fc7e7fecb45bd0e65c9cd166f4f8b4
2016-06-15 23:37:18 +00:00
Thomas Vachuska
d27097cc32 ONOS-4604 Fixed flow objective installation
Removed context from objective toString methods.
Removed duplicate flow objective delegate notifications in the store for next objectives.
Synchronized queueing of forwarding objectives for pending next objectives to avoid notifications race.
Changed logging for better readability.

Change-Id: Ic2bd411a891ea035a2c5513b24dea5fbd48f187d
2016-06-14 19:43:02 -07:00
Sho SHIMIZU
e96a9e3194 Rename to avoid confusion with values and values()
Change-Id: I6e4d4bad0300790207a17bb934d1771175a01efa
2016-06-14 14:32:18 -07:00
Sho SHIMIZU
9e3031a061 Add short-cut path taking when the paremter type is equal to own type
Change-Id: Ifbc3ea11c901b1496adcc8d0a372c86cd27969e2
2016-06-14 14:30:35 -07:00
Sho SHIMIZU
ecb7898803 Add short-cut path taking when the paremter type is equal to own type
Change-Id: I0edceb6630e0312ce5139d3e453a183a0cf06fd5
2016-06-14 14:19:26 -07:00
Sho SHIMIZU
ae40b575e4 Add unit tests for EncodableDiscreteResources
Change-Id: Id95baabb9885c95a4e503c4f117dacbd2f86a374
2016-06-14 14:19:13 -07:00
Sho SHIMIZU
1a6e94a985 Add unit tests for GenericDiscreteResources
Change-Id: Ic69ab69c684d51907e245100aab474a6da50bedf
2016-06-14 14:19:13 -07:00
Sho SHIMIZU
047f5b70d1 Add unit tests for EmptyDiscreteResources
Change-Id: I2dd53e98eb3129607f5faadf3a1f9ecab378d36c
2016-06-14 14:19:13 -07:00
Sho SHIMIZU
9cc4a241cf Make resource retrieval more efficient when specifing resource type
This resolves ONOS-4666

Change-Id: I9d09b60531ca48b36fc20f43498cda62f1badb8b
2016-06-14 21:17:09 +00:00
Thomas Vachuska
7d61ab2210 ONOS-4656 Addressing issue where intents get stuck in PURGE_REQ state.
Change-Id: I223ff14856fadb8d6e913883b42a5e53bbbbc6db
2016-06-14 02:52:51 +00:00
Madan Jampani
783d3d24d6 Ensure all active nodes are in contention before relinquishing a partition
Change-Id: I846f810547b286736d26d319f315048398334a83
2016-06-13 17:48:59 -07:00