72 Commits

Author SHA1 Message Date
Daniele Moro
73f0ae8f0a Upgrade kafka-clients bundle to version 1.1.1_1
Change-Id: Ia93daaf192fdf3c93313d80d9fcbb89d03276465
2020-02-05 17:37:40 +00: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
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
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
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
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
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
Yuta Higuchi
df1e3733bb Fixing pom.xml
- remove duplicate deps
- remove bundle instruction pointing to file which does not exist

Change-Id: Iad8f2aef94d7cd705317a6092174235409d7f968
2018-08-06 17:13:15 +09:00
Jian Li
6c92b3c4b2 Fix: invoke the publish method only if the service is enabled
Change-Id: Ie127458d6c8c6689d81b37436d200580ef7133a7
2018-08-06 02:29:00 +00:00
Jian Li
d486a73352 Support to build openstack related apps using Bazel
Change-Id: Ibc9f43a8fd92bb41b162a88a1eb3e8c8c5ad990a
2018-08-05 08:53:02 -07:00
Jian Li
ae3fcfffa2 Add a set of unit tests for openstack telemetry app
Change-Id: Ib5963c61ef0c0302a90a4f30d3dd1f0ec2862aea
2018-07-31 23:13:34 +00:00
Jian Li
086ad708f4 Add unit tests for SONA apps codec register
Change-Id: I52631b75b3f1ed73fb27feb73e09e7cd68af75ab
2018-07-31 15:21:48 +00:00
Boyoung Jeong
4d1c9d1bc8 Publish a statistics record to InfluxDB
Change-Id: I046207ab16b91c5ff65ae6df9e5929b9979907e1
2018-07-24 12:21:37 +00:00
Jian Li
bd295cd1cd Fix: resolve exception during vtap and telemetry app deactivation
Change-Id: I7b0f00467759bec1f6344e75d0c0ef40b13e5dd7
2018-07-22 12:25:42 +09:00
Thomas Vachuska
67484d9008 Added RBAC for REST APIs.
- admin role required for POST, PUT, DELETE & PATCH
- viewer role required for all other requests
- cleaned up all web.xml files for consistency and correctness

Change-Id: I33bad5cec0fb0f4285eed84173025b0a107b5aec
2018-07-17 12:10:00 -07:00
Jian Li
a494768d94 Support to publish port TX and RX stats in openstacktelemetry
Change-Id: I368fb676e4817cd01e5782a3b37170e2b9a5c6bd
2018-07-09 02:26:45 +00:00
Jian Li
e6110b7b34 Fix: resolve the service not found exception caused by openstack4j
Change-Id: I33a5c7e6b91758a61662a77a1b347fd0239219eb
2018-07-08 09:20:19 +00:00