83 Commits

Author SHA1 Message Date
Daniele Moro
10d13e4f6a Upgrade kafka-clients bundle to version 1.1.1_1
Change-Id: Ia93daaf192fdf3c93313d80d9fcbb89d03276465
2020-02-07 21:52:50 +00:00
Carmelo Cascone
cf6a828975 Bump Protobuf to 3.9.0 and grpc-java to 1.22.1
Along with transitive dependencies:

- Netty 4.1.35
- tcnative-boringsll 2.0.25

Change-Id: Icfb9f0c9a9de316f02fefa833be496ca1dd4ec4b
2019-07-16 18:02:29 +00:00
Carmelo Cascone
9e512cf46a Fix OSGi wiring issue of openstacktelemetry
Change-Id: Ib7c25763d8bbd7cb46524c364459374ef087810a
2019-07-03 14:35:51 -07:00
Carmelo Cascone
d33d3b4838 Build ONOS exclusively with Bazel-provided remote JDK
This change make it possible to build ONOS in a host system without JDK
installed, or ignoring the one installed, instead relying exclusively on
the "remote" JDK provided by Bazel. The JDK version, along with the
toolchain configuration (language source and target values), are checked
in as part of the build files (tools/build/bazel/BUILD), thus enabling
deterministic builds that are less dependent of the host environment.

To allow this, this change replaces all references to JDK-related tools
expected to be on the host PATH, such as the jar command, with their
counterpart from the remote JDK (now a sandboxed relative path). This is
achieved by:

  * Creating a new "jdk_genrule" macro that exposes the remote JDK bin
    directory to the PATH visible by the genrule command. This is used
    for all genrule targets invoking for example `jar`;
  * Modifying custom Starlak rule implementations by replacing
    invocation to JDK tools with a path from the remote one.
  * Renaming the onos/lib directory to onos/deps as it clashes with
    the Bazel-provided JDK's lib directory (that for some strange reason
    is resolved on the ONOS workspace)

Finally, this change is reflected on the Dockerfile which now builds
ONOS from an Ubuntu image with no JDK installed.

Change-Id: Ie7d990cfce6fef00ddb4ffffe4c6205b8530fb47
2019-06-18 22:26:33 +00:00
Carmelo Cascone
b9536696f6 First attempt at supporting builds with Java 11
Includes:
- Bump protobuf to 3.8.0 and grpc-java to 1.21.0 (along with transitive
  dependencies such as Netty)
- Add jaxb_api at compile time when needed (removed in JDK 11)
- Bump Bnd to 4.1 (adds support for Java 11)

To build with JDK 11, uncomment lines in .bazelrc.
Tested with Bazel 0.26.0.

Change-Id: Ib8e0c7310eacf97328762606e57c01e4834e5565
2019-05-30 18:11:06 +00:00
Carmelo Cascone
c0b23a459f Allow building third-party apps based on gRPC
By publishing the repackaged grpc and protobuf artifacts

Change-Id: Ib3af7dba4f64948132aa70be31922de61d6f6ab2
2019-04-25 15:38:00 -07:00
Jian Li
e519982f27 Fix: do not publish vStats info to Prometheus if it is not activated
Change-Id: I843f1bdd7e737fe642034c54a67bdb528177728c
2019-03-16 17:42:41 +09:00
Jian Li
b2a5888288 Add CLIs for listing, adding and removing telemetry vflow rules
Change-Id: I58c4ee0ed07341662ee8c876b579844daa0cef78
2019-02-21 11:07:04 +09:00
Carmelo Cascone
bde9beba9c Re-package grpc and protobuf with the right group id and version
Change-Id: Ib1a17d917a061d3cce32eed3e72b18c596ccff69
2019-02-08 15:44:43 -08:00
Jian Li
69d4fe901f Fix: resolve potential NPE issues reported by sonarcube
Change-Id: I2947c9a7d929c441f767e8382561825e9f9d7dce
2019-02-01 02:22:37 +00:00
Jian Li
da8867f95b Add JSON string serializer for kafka telemetry exporter
Change-Id: I054b10e8356c10d9b0a37fe83fbe0a5d6907ef07
2019-01-31 05:29:09 +00:00
Jian Li
b4ce5b66d1 Add LinkInfo and LinkStatsInfo JSON codec with unit tests
Change-Id: I9c9f50496c55f617438dab3641ce43354352dff6
2019-01-31 05:23:36 +00:00
Jian Li
866416f5ad Add link info and stats class with unit tests for openstacktelemetry
Change-Id: If2e28119bdad0cf9949131c046eba2cbb81c1cd2
2019-01-31 05:23:36 +00:00
Carmelo Cascone
0f8b7bea74 Fix build of protobuf-related components to support Bazel 0.22
- Bumped version of protobuf to 3.6.1.3 (includes fix for Bazel 0.22)
- Removed all protobuf and grpc dependencies from deps.json. Instead,
  depends solely on what's provided by the external grpc and protobuf
  workspaces.
- Use OSGi-wrapped protobuf and grpc JARs built with Bazel for runtime
- Add missing netty-related bundles to onos-thirdparty-base (required
by grpc)

Note, build with Bazel 0.22 is still broken because of
osgi_java_library.bzl, unless the following build arg is used:
build --incompatible_string_is_not_iterable=false

It seems the error is caused by dead code in osgi_java_library.bzl
that should be removed.

Change-Id: I749f1de25902bf9df5242444380f7224bc99b4b5
2019-01-29 16:11:08 -08:00
Jian Li
b3b0168b72 Fix: gracefully handle connection refuse due to kafka broker down
Change-Id: Ia2f6c9dc19326eda237b621d8a430a23cb62f0eb
2019-01-13 04:55:16 +00:00
Jian Li
667c6eb819 Fix: check the remote server connectivity before adding to map
1. replace boolean typed enable flag into enumeration status type
2. put the service in pending state, if the activation was failed

Change-Id: I15110f3d837d9a3ecf048c2777ec6fae9bf264ff
2019-01-09 05:37:49 +00:00
Jian Li
7fe7eaf528 Add REST API for query/update/delete/enable/disable telemetry config
1. Add unit test for newly added REST APIs
2. Add codec and unit tests for TelemetryConfig
3. Split web package out from app package due to dep conflict

Change-Id: I85f52b2a7d059622e98832843bc9613cb8befa98
2019-01-09 05:37:41 +00:00
Jian Li
a61e0b6205 Improve the telemetry service LCM granularity
Change-Id: I3d1b43b360883b0644af2341bdc21aeb4f603414
2019-01-09 05:37:32 +00:00
Jian Li
16f1f53377 Added a set of CLIs for update and enable/disable telemetry svc cfg
Change-Id: I518585f7941c98aa0479acc3583a0f1a751e6db9
2019-01-09 05:37:17 +00:00
Jian Li
69600e0b76 Refactor: move telemetry config from componentCfg to configs.xml
1. Support to export the metrics to multiple targets
2. Add a set of properties to kafka config (key, topic, etc.)
3. Add distributedStore to manage telemetry configs
4. Add CLI to query stored telemetry configs
5. Add a set of telemetry loaders to import xml definitions
6. Add unit tests for telemetry cfg, xml cfg loader and dist store
7. Add missing javadoc for a set of implementation classes

Change-Id: I39480c9a6ac07357184d2e1094b9c9f4d36fd8b1
2019-01-09 05:37:05 +00:00
boyoung2
a8549d2d80 Modify a annotation and refactor Web UI.
Change-Id: I985733e8f4e7d0cda292ed4a240d1250db8e2316
2018-12-26 02:21:27 +00:00
Jian Li
bb83f7cd22 Fix: enable openstack related CLIs
Change-Id: I59ee4b4dfba90fe409e17a8ff2cb838c01fbe971
2018-11-13 04:20:13 +00:00
Ray Milkey
0faa721e80 Fix openstack app ignition problems
Change-Id: Ide8411ac1cc857cfd48e0ff7757231b99a53878a
2018-11-07 19:04:54 +00:00
Thomas Vachuska
07782d262b Eliminated old features.xml and app.xml files required by no-longer supported Maven build.
Change-Id: I060af47c85c1b83d35f6cc8e462d6d609872b15a
2018-11-01 20:41:00 +00:00
Ray Milkey
8e406511e9 openstack and routing app OSGi property migration
Change-Id: I855020959456f059911284bb7d8ade376cbc20c5
2018-10-29 23:43:14 +00:00
Thomas Vachuska
22ea6126e4 Removing BUCK files and other Buck-related auxiliaries.
Change-Id: I23691380efcd9bce4906695605214ed59ada0e87
2018-10-24 20:02:31 +00:00
Ray Milkey
d542568b21 Merge branch 'master' into dev-karaf-4.2.1
Change-Id: Iec1b8947c898b0bf10db8caece0c3a064d1c63ae
2018-10-23 10:50:43 -07:00
Jian Li
4c615ac8d8 Fix: resolve the openstacktelemetry activation issue caused by deps
Change-Id: I9d696b6593e8593596f272845d60bbf2f81e5d52
2018-10-23 08:25:32 +00:00
Ray Milkey
0b18b72872 Merge branch 'master' into merge
Change-Id: I163ecf699b554e33f4db938c66b73c9911e51135
2018-10-16 13:19:15 -07:00
Jian Li
7f7c43b621 Add prometheus telemetry manager unit test
Change-Id: I45d7776a7ec945bf0d16e2d4a2889d47a65723d0
2018-10-11 11:12:27 +09:00
Ray Milkey
db57f1c326 Merge branch 'master' into dev-karaf-4.2.1
Change-Id: I86b9d80581cd76a7c20e05201023090f9692d1ab
2018-10-09 11:26:45 -07:00
Jian Li
a5ae2adad9 Fix: resolve NPE with empty configMap setup for openstacktelemetry
Change-Id: Ib3f50f34845ddc631a928a037810e1fa688fa669
2018-10-05 18:16:41 +09:00
Ray Milkey
df521294ce Merge remote-tracking branch 'origin/master' into merge-master
Change-Id: I4608093c4400a313b253508ac6bc8a84ecba5c7e
2018-10-04 15:13:33 -07:00
boyoung2
1c5f5f4592 Add a prometheus exporter
Change-Id: I2989d87c2a83eed31c6617694bdcb78bf9b38553
2018-10-03 14:40:31 +00:00
Ray Milkey
d84f89ba3d [WIP] Upgrade ONOS to karaf version 4.2.1
Change-Id: I7cd40c995bdf1c80f94b1895fb3344e32404c7fa
2018-09-28 11:20:57 -07:00
boyoung2
7b44412ba8 Network toplogy GUI for VM-to-VM flow statistics configuration.
Change-Id: I86543c7bb30d79ec8b5d57f822756b5e8a8e5e40
2018-09-12 06:07:48 +00:00
Jian Li
f8b8c7fddb Support monitoring underlay network using openstack telemetry app
Change-Id: I84f8735a700a89f28124fe3a76fafab339e3dbc1
2018-08-30 03:55:45 +00:00
Jian Li
3ed7f30db3 Refactor: remove code duplication for openstacktelemetry app
Change-Id: I3a97bc22e8a49ef6184876875351ebba8111e25c
2018-08-30 03:55:38 +00:00
Ray Milkey
761e80a427 Remove pom files from ONOS
Change-Id: I53e2395466cba10222d638736635b11380421d98
2018-08-21 18:11:58 +00:00
Ray Milkey
312d987732 Starting snapshot 1.15.0-SNAPSHOT
Change-Id: I9239c7695f7faf6dc184a0ff54a34dedf4761b2d
2018-08-20 16:09:54 -07:00
Ray Milkey
a8f4840e86 fix formatting problems
Change-Id: I46558d1e05cadbfac535460e40a4084ff9e1ed74
2018-08-16 15:59:03 -07:00
Jian Li
8bdc828a7c Fix: resolve activation issue of openstacktelemetry
Change-Id: I39f88f37b7b8c59d96bc92ac5d55c1c953ffc0fe
2018-08-16 22:00:00 +09:00
ONOS Jenkins User
03e5521fba Starting snapshot 1.14.0-SNAPSHOT 2018-08-14 22:13:58 +00:00
ONOS Jenkins User
3594c24cb2 Tagging 1.14.0-rc2 2018-08-14 22:13:02 +00:00
ONOS Jenkins User
4e5f2d67ac Starting snapshot 1.14.0-SNAPSHOT 2018-08-13 23:16:37 +00:00
ONOS Jenkins User
cff0bd8922 Tagging 1.14.0-rc1 2018-08-13 23:15:43 +00:00
Ray Milkey
4867af2f9c Revert "Tagging 1.14.0-b1"
This reverts commit 78ce40093ac008fd6d169ab83d2d5961f91f6e31.

Change-Id: I8482f550c30f75d65333f6be9c9115a930abc56f
2018-08-10 16:53:10 -07:00
Ray Milkey
78ce40093a Tagging 1.14.0-b1 2018-08-10 11:16:44 -07:00
Carmelo Cascone
72893b7755 [WIP] Attempt at building grpc and p4runtime protocols with Bazel
STILL NOT WORKING AT RUNTIME

Change-Id: I1f9e60b12a12e09edad2a714ec2921a4f71c6d35
2018-08-09 20:33:39 +00:00
Boyoung Jeong
1cca5e885d Add a message handler for Openstack Telemetry view
Change-Id: I2803ac6e8f3c90e005bc73c43a5b867934daa80f
2018-08-07 01:28:23 +00:00