serviceutils.git
2 years agoBump to odlparent 3.1.3
Stephen Kitt [Wed, 18 Jul 2018 16:06:39 +0000 (18:06 +0200)]
Bump to odlparent 3.1.3

Change-Id: I9b2c6f8a6b9f22c1bf64864c710f9767cc46c170
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2 years agobump dropwizard.metrics from 3.2.5 to 4.0.2
Michael Vorburger [Thu, 24 May 2018 09:19:35 +0000 (11:19 +0200)]
bump dropwizard.metrics from 3.2.5 to 4.0.2

release notes on https://github.com/dropwizard/metrics/releases

see INFRAUTILS-40 for future next bump from 4.0.2 to 5.0.0 (or at least
4.1.0)

JIRA: INFRAUTILS-41
Change-Id: Icc7f3e02d8a42c4684f772c1fff8fed17471cf9b
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoBump odlparent to 3.1.2
Stephen Kitt [Wed, 30 May 2018 13:43:31 +0000 (15:43 +0200)]
Bump odlparent to 3.1.2

Change-Id: Ib384fc3c04deef61b106751aac7a28791acbf8b7
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2 years agoadd a Counter to MetricsExample, to demo not only Meter
Michael Vorburger [Tue, 20 Mar 2018 14:03:01 +0000 (15:03 +0100)]
add a Counter to MetricsExample, to demo not only Meter

Change-Id: I248739db4353e3a52663b18db331f8b93e53a8c5
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agobump Prometheus client libraries from 0.1.0 to 0.4.0
dependabot[bot] [Mon, 28 May 2018 17:18:24 +0000 (17:18 +0000)]
bump Prometheus client libraries from 0.1.0 to 0.4.0

Change-Id: Ib81527a5361355e4a8ee9a1559748f4b61f4a90d
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoAdding additional label support for meters.
eaksahu [Wed, 9 May 2018 15:38:22 +0000 (21:08 +0530)]
Adding additional label support for meters.

Added additional function to MetricProvider factory class for creating
meters with 4 and 5 labels.

Change-Id: I5fa6a26b5fefec5dcb9a6e31c65e98b8ea0427f6
Signed-off-by: eaksahu <a.k.sahu@ericsson.com>
2 years agoBump to odlparent 3.1.0 and yangtools 2.0.3
Stephen Kitt [Thu, 22 Mar 2018 17:24:32 +0000 (18:24 +0100)]
Bump to odlparent 3.1.0 and yangtools 2.0.3

Change-Id: Ic40708ad8cc3f52111d0da6080e70331ed8f4dfc
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2 years agoexpand meterWithOneDynamicLabel in MetricsExample with 2 keys, for demo
Michael Vorburger [Tue, 20 Mar 2018 14:23:52 +0000 (15:23 +0100)]
expand meterWithOneDynamicLabel in MetricsExample with 2 keys, for demo

Change-Id: Ia939226928c2322602857f5fb53cba0866ed7f02
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agofix PrometheusMetricProviderImpl bug related to labels
Michael Vorburger [Tue, 20 Mar 2018 21:15:49 +0000 (22:15 +0100)]
fix PrometheusMetricProviderImpl bug related to labels

Change-Id: Ib09e02b646254c99c4278757e4767672e3644a2d
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoadd MetricsExampleTest
Michael Vorburger [Tue, 20 Mar 2018 14:20:46 +0000 (15:20 +0100)]
add MetricsExampleTest

just to make sure that the MetricsExample does not have any glaring bugs

Change-Id: I6b31b1d5011b05e48e46417e66e3baeedfa7cfd9
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoremove meterWithTwoDynamicLabels from MetricsExample, to simplify
Michael Vorburger [Tue, 20 Mar 2018 14:12:31 +0000 (15:12 +0100)]
remove meterWithTwoDynamicLabels from MetricsExample, to simplify

Change-Id: I6998a9ef1512adbf95dfd42afe9f080fed603352
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoadd Karaf features and what else is required for Prometheus metrics demo
Michael Vorburger [Mon, 19 Mar 2018 12:54:27 +0000 (13:54 +0100)]
add Karaf features and what else is required for Prometheus metrics demo

new odl-infrautils-metrics-sample & odl-infrautils-metrics-prometheus

This change has everything needed to be able to show it off in a fully
working demo under OSGi with Karaf.  (Before this, only the standalone
MetricsPrometheusExampleMain launcher was really usable.)

The PrometheusMetricProviderImpl class will probably see further
evolutions some day (depending on project's interest), but that can come
later.

Change-Id: I066068fcc75e7a0a4951139ad9b4164e893838ee
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agofix bugs in MetricProviderImpl re. re-using instead of new metric object
Michael Vorburger [Wed, 21 Mar 2018 01:10:37 +0000 (02:10 +0100)]
fix bugs in MetricProviderImpl re. re-using instead of new metric object

Change-Id: I877c6b40fafb861f3dc8aa1fccdd9bd2fc991d00
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoClean up lambdas
Stephen Kitt [Fri, 16 Feb 2018 11:02:13 +0000 (12:02 +0100)]
Clean up lambdas

Use method references where appropriate, and expression lambdas
instead of single-expression lambdas or functional interface
declarations.

Change-Id: I2ee9e2f35f1e5b76132178f0d2bb36f057d0ee36
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2 years agoFix a couple of thinkos in metrics Configuration
Stephen Kitt [Wed, 7 Mar 2018 11:14:09 +0000 (12:14 +0100)]
Fix a couple of thinkos in metrics Configuration

maxThreads ends up using setThreadsWatcherIntervalMS, and
maxThreadsMaxLogIntervalSecs ignores the provided value. This patch
fixes these.

Change-Id: I7374ecfe41519f0e263381c651fad6dd116e925c
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2 years agoMetrics implementation based on http://Prometheus.io
Michael Vorburger [Wed, 24 Jan 2018 14:01:02 +0000 (15:01 +0100)]
Metrics implementation based on Prometheus.io

This does not yet include proper OSGi web integration with a web IT,
Configuration and required Karaf Feature work, but is a suitable "MVP"
for initial demos (e.g. for the ONS ODL DDF). More TBD in future
changes; that makes this series easier to review as well.

Change-Id: I7d18a413e5db71b1953529bf4103141fddf70649
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agomake new ThreadsWatcher log intervals configurable (and fix volatile)
Michael Vorburger [Wed, 28 Feb 2018 11:50:54 +0000 (12:50 +0100)]
make new ThreadsWatcher log intervals configurable (and fix volatile)

Change-Id: Id902b7e066ee9f31df83c64de2142562aaeb1f64
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agomake ThreadsWatcher log at fixed intervals, not continuously
Michael Vorburger [Wed, 28 Feb 2018 11:28:50 +0000 (12:28 +0100)]
make ThreadsWatcher log at fixed intervals, not continuously

yet let it still check at shorter intervals than it will log

because it's been observed that when we hit max threads or deadlock,
then as it is, it will log continuously like crazy, at the speed of the
intervals it checks (defaults to 500ms).  Increasing that interval to a
much larger value (say 1min) is a shame because that could then take a
longer time to find issues, or even miss them.  So that this does it can
keep checking frequently, but doesn't have to report and spew logs as
often.

The new max log intervals are hard-coded to 1min in this first change.

see https://lists.opendaylight.org/pipermail/infrautils-dev/2018-February/000596.html

Change-Id: I075d9789af7c091e67b75c390963e71351f60672
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoUse new Map methods
Stephen Kitt [Fri, 16 Feb 2018 11:04:25 +0000 (12:04 +0100)]
Use new Map methods

computeIfAbsent() and forEach() allow some code simplification.

Change-Id: I233b91f36b33fab56c13636507a7bf68d3319c6e
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2 years agoBump versions by x.(y+1).z for next dev cycle
Anil Belur [Mon, 26 Feb 2018 07:41:43 +0000 (17:41 +1000)]
Bump versions by x.(y+1).z for next dev cycle

Change-Id: I43d4438c6e1c8f4756cc9bfb08bb8d7b45fdade7
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
2 years agomake util, jobcoordinator and metrics null safe for analysis by NullAway
Michael Vorburger [Tue, 13 Feb 2018 13:41:00 +0000 (14:41 +0100)]
make util, jobcoordinator and metrics null safe for analysis by NullAway

see https://github.com/uber/NullAway

Change-Id: Ic4c85a7f80f5392c7e0856e3cd431ad838e66d1a
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoAdd label support for Timer metric type.
Tarun Thakur [Tue, 13 Feb 2018 10:20:15 +0000 (15:50 +0530)]
Add label support for Timer metric type.

This patch is to add label support for timer metric type
in similar way to label support for Counter type in
https://git.opendaylight.org/gerrit/#/c/67812/

This will enable applications to create metric key with multiple labels key-value pairs.

Change-Id: I44b70f1465d2a7fd6b34d2d0f114c393f264be6a
Signed-off-by: Tarun Thakur <tarun.t@altencalsoftlabs.com>
2 years agomake metrics file reporter configurable by fileReporterIntervalSecs prop
K.V Suneelu Verma [Wed, 7 Feb 2018 04:57:31 +0000 (10:27 +0530)]
make metrics file reporter configurable by fileReporterIntervalSecs prop

A value of 0 on that new property means it's disabled; 0 is the default.

Change-Id: I7d2f3506941877a59fe3db949aba66ec47e9c7ce
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
2 years agoAdd label support for counter metric type
Tarun Thakur [Thu, 1 Feb 2018 11:26:55 +0000 (16:56 +0530)]
Add label support for counter metric type

This patch is to add label support for counter metric type
in similar way to label support for Meter type in
https://git.opendaylight.org/gerrit/#/c/67535/

This will enable applications to create metric key with multiple labels
key-value pairs.

Change-Id: I2928d1af90236f6347d0d143713f1dfde326a1d4
Signed-off-by: Tarun Thakur <tarun.t@altencalsoftlabs.com>
2 years agointroduce MetricDescriptor and add support for labels to metrics
Michael Vorburger [Wed, 24 Jan 2018 14:00:11 +0000 (15:00 +0100)]
introduce MetricDescriptor and add support for labels to metrics

something I meant to do anyway, but seeing the "magic Strings" used in
proposed new metrics usages I3a0f87ec3f60a207a56ec29eef5b28a22e3fd0c3
and Ib458d151ffed331ccd2b717ad3abef0ebecf3f80 and
I2a4edeeb9deb72de15b8e4b75adf225843c4ddfb underlines why we need
this rather sooner than later.

the current Codahale Dropwizard Metrics implementation ultimately just
turns it into a String after all.  The point of this is that a) that
String now has a uniform format for all such labels, instead of trusting
using applications to use one described in text (that never works), and
my upcoming alternative metrics implementation based on
http://Prometheus.io will have direct native support for labels, and
will be able to do fun stuff like aggregate metrics across these labels.

Change-Id: I0a8ff9ef1cc09b56c0a115e5ce043ece63fa969a
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoMake metrics' threads deadlock watcher interval configurable
Michael Vorburger [Wed, 10 Jan 2018 12:54:25 +0000 (13:54 +0100)]
Make metrics' threads deadlock watcher interval configurable

I've manually locally tested that this works as intended.

Change-Id: I01aa244fe6ed9be64bbbfa2904c9841f8b3edc12
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoINFRAUTILS-22: Detect when more than N threads, and log details
Michael Vorburger [Thu, 21 Dec 2017 03:25:46 +0000 (04:25 +0100)]
INFRAUTILS-22: Detect when more than N threads, and log details

Change-Id: I1262d19a81c3d0f976d01f2f524fd77cb6c4b588
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoadd new TestMetricProviderImpl
Michael Vorburger [Thu, 25 Jan 2018 13:35:09 +0000 (14:35 +0100)]
add new TestMetricProviderImpl

required by JobCoordinatorTestModule in genius (see
I80e3f5b6e8a601345cd2fbae79f0de22d0fa0e7d) for jobcoordinator with
metrics (see I530d20946a80933b05371c5220def447be1ee5e6)

Change-Id: Ie90562c2f8205bab8817d370d077def9a3419d52
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoReplace metrics.CloseableMetric with a more generic utils.Closeable
Michael Vorburger [Mon, 8 Jan 2018 22:52:52 +0000 (23:52 +0100)]
Replace metrics.CloseableMetric with a more generic utils.Closeable

as suggested by Tom in I76ce2e1600e8f99eb735aac4c29c423cc01c59ee review.

Change-Id: Iba7bda3f51594764c21ba8d4dd7dc69f824f5125
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoMetricsFileReporter directory/ file prefix "metrics" instead "counters"
Michael Vorburger [Tue, 16 Jan 2018 23:28:55 +0000 (00:28 +0100)]
MetricsFileReporter directory/ file prefix "metrics" instead "counters"

Change-Id: I868835632fbccab2f318c329b45f8eb766d67554
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoINFRAUTILS-21: Automatic deadlock detection logging
Michael Vorburger [Thu, 21 Dec 2017 03:09:27 +0000 (04:09 +0100)]
INFRAUTILS-21: Automatic deadlock detection logging

This will check every minute if there are any dead-locked threads,
and if there are then it will log details about them.

This can also be used to easily implement INFRAUTILS-22 now.

Change-Id: I936064b48a8df632d0f8c7f7ec3c2e6b01ede147
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agorename [Metrics]FileReporterTest and some other very minor changes
Michael Vorburger [Tue, 16 Jan 2018 23:15:24 +0000 (00:15 +0100)]
rename [Metrics]FileReporterTest and some other very minor changes

Change-Id: I2e23af179700d8f06e810d1c27eb3fbada8de508
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoBetter JavaDoc for Meter and Counter
Michael Vorburger [Wed, 10 Jan 2018 15:50:44 +0000 (16:50 +0100)]
Better JavaDoc for Meter and Counter

to clarify for review I73bf730d0f0e2f96fa4a84ab471e18f33305360c

Change-Id: I02642b188a62489e3e7d108d0ce9099c7533bfea
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoMetrics for JVM gauges
Michael Vorburger [Thu, 21 Dec 2017 02:05:59 +0000 (03:05 +0100)]
Metrics for JVM gauges

Change-Id: If4df62eb5f6136910ba03303fac6897684b55bc8
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoadded metrics file reporter
K.V Suneelu Verma [Wed, 20 Dec 2017 10:08:25 +0000 (15:38 +0530)]
added metrics file reporter

This file reporter dumps the counters to local file at every 2 mins.
one file is created for every hour.
counter files are retained for one week .

This helps doing offline analysis of the counters.

Change-Id: I033aa8628de8bfee8cdca7da564eb45a8c567c52
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
2 years agoAdjust for odlparent 3
Stephen Kitt [Wed, 6 Dec 2017 12:39:33 +0000 (13:39 +0100)]
Adjust for odlparent 3

* Update Karaf dependencies.
* Update feature dependencies (odl-guava-23).

Change-Id: I56fc628b26d51a9b1342249f363142cf64282af7
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoadd get() method to metrics Counter and Meter
Michael Vorburger [Tue, 9 Jan 2018 13:57:19 +0000 (14:57 +0100)]
add get() method to metrics Counter and Meter

because I realized while adapting the JobCoordinator to metrics in
I8620996d3be56d86c85f184057e1a23ae3119140 that for tests a get() does
have its uses, after all... ;-)

But it's really intended just for tests, and not other uses. So no plans
to, and IMHO in this API it would not make sense, to expose more like
e.g. via methods such as Dropwizard's getMeanRate() or
getFifteenMinuteRate() ... those are implementation details, which
application clients should never require - and with a future Prometheus
or Ceilometer instead of Dropwizard implementation the Java client of
such system would possibly not even expose that, as such aggregation
would happen inside such external metrics servers.

Timer intentionally has no get() as tests should never be needing that;
and it would be totally unreliable to test for that, anyway.

Change-Id: Ic02a483d2c33c3279369ccfa98362c6ad50892bc
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoMetrics new API, decoupled from Dropwizard Codahale's
Michael Vorburger [Thu, 21 Dec 2017 00:47:21 +0000 (01:47 +0100)]
Metrics new API, decoupled from Dropwizard Codahale's

because I'm hoping, some fine day in 2019 when I have time (never?), to
provide an alternative implementation backed directly & natively by
http://Prometheus.io, as an alternative to Dropwizard Codahale's.

The new API mimics the original one closely (and it's trivial to switch
any code already using it..), minus any kind of "reporting" methods such
as getFiveMinuteRate() etc. That is fine because those methods should be
of no interest to applications who "provide" metrics - only to those who
want to report - which in this design should just be metrics.impl, via
Dropwizard's JMX and File etc. reporters, and in the future Prometheus.

While we're at it, we make the Meter, Counter & Timer close-able for
unregistration, and allow Timer to time using the Checked Callable and
Runnable, which is handy.

Change-Id: I76ce2e1600e8f99eb735aac4c29c423cc01c59ee
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoMetricProvider now verifies that the ID has not already been used
Michael Vorburger [Wed, 20 Dec 2017 22:06:18 +0000 (23:06 +0100)]
MetricProvider now verifies that the ID has not already been used

This is important as it guarantees that an ODL application cannot "spy
on" or "steal" (and modify!) another one's metrics - they are
intentionally only accessible to the creator.

The initial JavaDoc already stated this, but it wasn't actually
implemented as documented there; now it is.

Change-Id: Ib207e28a29e09c4eadf68ac8566a4b4add007b6d
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoSwitch metrics to use infrautils parent (w. error-prone, CPD & CP dupes)
Michael Vorburger [Mon, 20 Nov 2017 18:01:29 +0000 (19:01 +0100)]
Switch metrics to use infrautils parent (w. error-prone, CPD & CP dupes)

Change-Id: Ia35f1135aad8ceedc2440a7904bb6b108ddc1798
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoMetrics Step 2: New Karaf feature etc. with an IT
Michael Vorburger [Tue, 14 Nov 2017 23:00:46 +0000 (00:00 +0100)]
Metrics Step 2: New Karaf feature etc. with an IT

Validation of the OSGi service registration, the new
odl-infrautils-metrics Karaf feature etc. is covered by an integration
test.

Background in https://jira.opendaylight.org/browse/INFRAUTILS-19

Change-Id: Iac4b6e6f89f1bc82a2a6978978730ecffd7df633
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoMetrics Step 1: Basic infrautils.metrics API & Impl bundles outline
Michael Vorburger [Thu, 9 Nov 2017 01:06:03 +0000 (02:06 +0100)]
Metrics Step 1: Basic infrautils.metrics API & Impl bundles outline

Not yet usable as is, but for code review purposes intentionally going
to build this up step by step for folks to follow along more easily.

Next step after this: jobcoordinator-impl dependency to metrics-api,
first usage of metrics for JobCoordinatorMonitor, and correct OSGi
service registration, Karaf features etc. stuff.

Background in https://jira.opendaylight.org/browse/INFRAUTILS-19

Change-Id: Ia11f9973a018cfa392a35358a4467035ecf84e93
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
2 years agoInitial empty repository
Andrew Grimberg [Wed, 30 Mar 2016 19:06:49 +0000 (19:06 +0000)]
Initial empty repository

2 years agoBump versions by x.(y+1).z 56/97556/1
jenkins-releng [Tue, 21 Sep 2021 00:25:43 +0000 (00:25 +0000)]
Bump versions by x.(y+1).z

Signed-off-by: jenkins-releng <jenkins-releng@opendaylight.org>
Change-Id: Ifd5b62524fea85979e87b65f7852d1d395850340

2 years agoBump upstream versions 22/97522/1
Robert Varga [Sun, 19 Sep 2021 19:52:36 +0000 (21:52 +0200)]
Bump upstream versions

Adopt controller-4.0.3 et al.

Change-Id: Ie879429bae518da7e7cebed2e638b119dd548a2a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
2 years agoBump upstream versions 28/97328/2
Robert Varga [Wed, 25 Aug 2021 14:09:24 +0000 (16:09 +0200)]
Bump upstream versions

Adopt controller-4.0.2 et al.

Change-Id: I6dbc86646a897016140d9a1412fefb72d4ccecb1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
2 years agoBump upstream versions 87/97087/2
Robert Varga [Thu, 5 Aug 2021 18:56:22 +0000 (20:56 +0200)]
Bump upstream versions

Adopt controller-4.0.1 et al.

Change-Id: I5dc5fdb3fd6e5353eec6409919ff3db45a8ccaad
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoBump MRI upstreams 40/96440/5
Robert Varga [Mon, 7 Jun 2021 14:59:53 +0000 (16:59 +0200)]
Bump MRI upstreams

Adopt latest versions, namely;
- odlparent-9.0.2
- yangtools-7.0.3
- infrautils-2.0.2
- mdsal-8.0.0
- controller-4.0.0

Change-Id: I6cac0995eead2e27494a7e5f44feaa847b238a3b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoUxe GuicedEE javax.inject 42/96442/1
Robert Varga [Mon, 7 Jun 2021 15:03:59 +0000 (17:03 +0200)]
Uxe GuicedEE javax.inject

This is a proper JPMS module as well as a proper jar, use it instead
of tje old javax.inject thing.

Change-Id: I00da453d8ee51f2b37a4884d7a0d4b846d7b1b74
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoUse osgi.core R7 41/96441/1
Robert Varga [Mon, 7 Jun 2021 15:01:02 +0000 (17:01 +0200)]
Use osgi.core R7

The name of core artifact has changed, update it to pull in OSGi R7+.

Change-Id: If5d5671595b2143a346a2a9ab417749c9021e2b1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoBump MRI upstreams 67/95367/1
Robert Varga [Fri, 26 Feb 2021 10:00:46 +0000 (11:00 +0100)]
Bump MRI upstreams

Adopt following versions:
- odlparent-8.1.1
- infrautils-1.9.6
- yangtools-6.0.5
- mdsal-7.0.6
- controller-3.0.7

Change-Id: I2285fed3112cb2e9e9c2b8cefce637171c5a67b5
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoBump versions by x.(y+1).z 93/95293/1
jenkins-releng [Mon, 22 Feb 2021 23:02:56 +0000 (23:02 +0000)]
Bump versions by x.(y+1).z

Signed-off-by: jenkins-releng <jenkins-releng@opendaylight.org>
Change-Id: I48d9a610bd1942ca4a316a65ed1acf0a7f2e3a1d

3 years agoBump controller to 3.0.6 73/95273/1
Robert Varga [Mon, 22 Feb 2021 12:25:36 +0000 (13:25 +0100)]
Bump controller to 3.0.6

This patch was missed in previous bump.

Change-Id: I0d3f086141ce0b78654f747f71b2402c0758f438
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoAdopt akka-2.6.x 71/94971/3
Oleksii Mozghovyi [Tue, 2 Feb 2021 20:16:54 +0000 (22:16 +0200)]
Adopt akka-2.6.x

Bump upstream to controller-3.0.6 to adopt akka-2.6.x.

Change-Id: I2a7c004ddb3249d72392afdd95dbfb3206759495
Signed-off-by: Oleksii Mozghovyi <oleksii.mozghovyi@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoCorrect odl-infrautils-utils dependency 47/94947/2
Robert Varga [Mon, 1 Feb 2021 15:45:31 +0000 (16:45 +0100)]
Correct odl-infrautils-utils dependency

infrautils is an MRI project, the dependency should use a range.

Change-Id: If8cc78ee8f5c998911accd65a195210b2fc6895e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoBump upstream versions 12/94712/4
Robert Varga [Thu, 21 Jan 2021 17:29:01 +0000 (18:29 +0100)]
Bump upstream versions

Adopt following upstreams:
- odlparent-8.1.0
- infrautils-1.9.5
- yangtools-6.0.4
- mdsal-7.0.5
- controller-3.0.5

Change-Id: I31d98c61cfae4f57d75b84c4f34c2e12ffc9f6b8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoSimplify UpgradeStateListener 77/94577/1
Robert Varga [Sun, 10 Jan 2021 00:26:23 +0000 (01:26 +0100)]
Simplify UpgradeStateListener

The configuration extraction bit is quite simple and does not have
to go through full dispatch. Also use new boolean getter name.

Change-Id: I83acd1877162709cf62f66728b48ce96445fc1ba
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoBump MRI upstreams 11/94511/1
Robert Varga [Fri, 8 Jan 2021 20:45:19 +0000 (21:45 +0100)]
Bump MRI upstreams

Adopt following versions:
- odlparent-8.0.3
- infrautils-1.9.4
- yangtools-6.0.3
- mdsal-7.0.4
- controller-3.0.4

Change-Id: I1e8e237f9df3574d624cb699bd7650dac9859d20
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoBump MRI upstreams 47/94147/2
Robert Varga [Thu, 10 Dec 2020 12:42:14 +0000 (13:42 +0100)]
Bump MRI upstreams

Adopt following versions:
- odlparent-8.0.2
- infrautils-1.9.3
- yangtools-6.0.2
- mdsal-7.0.3
- controller-3.0.3

Change-Id: Ieac42251fab6fe7c3944a6d431fe0b7efca31fdd
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoBump infrautils to 1.9.1 04/93204/1
Robert Varga [Mon, 19 Oct 2020 23:31:31 +0000 (01:31 +0200)]
Bump infrautils to 1.9.1

Pick up mbean fixes from upstream.

Change-Id: I11f427601164187dab5d35f9c050aa0e5ff791f6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoBump to mdsal-7.0.1/controller-3.0.1 94/93194/1
Robert Varga [Mon, 19 Oct 2020 19:30:49 +0000 (21:30 +0200)]
Bump to mdsal-7.0.1/controller-3.0.1

Pick up mdsal fixes and improvements.

Change-Id: I36a754bed4cd084824a5529b74094e507390c1b8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoBump upstreams for Silicon 43/92943/6
Robert Varga [Wed, 7 Oct 2020 15:38:33 +0000 (17:38 +0200)]
Bump upstreams for Silicon

Adopt the following upstream versions:
- odlparent-8.0.0
- yangtools-6.0.0
- mdsal-7.0.0
- controller-3.0.0
- infrautils-1.9.0

Change-Id: I7ae72733f49e973868d35da6ff4fbe664675acc6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoRemove serviceutils.tools.mdsal.rpc 35/92735/2
Robert Varga [Sun, 27 Sep 2020 10:19:32 +0000 (12:19 +0200)]
Remove serviceutils.tools.mdsal.rpc

This package is not used anywhere anymore, remove it.

Change-Id: I1e488ebb7f66ad28b61e104529e5d8d86b776efa
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoBump MRI projects 97/92597/2
Robert Varga [Tue, 22 Sep 2020 15:45:41 +0000 (17:45 +0200)]
Bump MRI projects

This patch adopts:
- odlparent-7.0.6
- infrautils-1.8.1
- yangtools-5.0.6
- mdsal-6.0.5
- controller-2.0.4

Change-Id: Ic6871ea554dc611b1d948b049a622f649bf3f6fc
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoBump versions by x.(y+1).z for next dev cycle 31/91931/1
Thanh Ha [Wed, 5 Aug 2020 21:02:37 +0000 (17:02 -0400)]
Bump versions by x.(y+1).z for next dev cycle

Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Change-Id: If79a9e14fd63861fd78b53f49cb977f48ce68d6c

3 years agoClean up rpc-api packaging 52/91652/4
Robert Varga [Sun, 26 Jul 2020 09:22:14 +0000 (11:22 +0200)]
Clean up rpc-api packaging

odl-serviceutils-srm should rely on odl-serviceutils-rpc instead
of packaging rpc-api itself.

Change-Id: I9915b6667b7276b70add48c269854190dc2158ac
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoAdd INFO.yaml for serviceutils 63/91263/2
Anil Belur [Sun, 12 Jul 2020 02:17:43 +0000 (12:17 +1000)]
Add INFO.yaml for serviceutils

Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: I0865cb9c88c65f5b9c224c3482ea5162827b90dd

3 years agoUse released version of infrautils 19/91719/1
Robert Varga [Tue, 28 Jul 2020 11:36:36 +0000 (13:36 +0200)]
Use released version of infrautils

infrautils-1.8.0 has been released, use released version instead
of snapshots.

Change-Id: I8fe2fa52da571c4fd9d5b1f781f0a2c6b8a7fae1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoBump odlparent/yangtools/mdsal/controller 59/91659/6
Robert Varga [Sun, 26 Jul 2020 23:56:32 +0000 (01:56 +0200)]
Bump odlparent/yangtools/mdsal/controller

Adopt upstream versions:
- odlparent-7.0.5
- yangtools-5.0.5
- mdsal-6.0.4
- controller-2.0.3

Change-Id: Ic5e1ccc27bc669ae6b0ac4a10a3335d41f9badd3
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoDo not package javax.inject 51/91651/2
Robert Varga [Sun, 26 Jul 2020 09:16:11 +0000 (11:16 +0200)]
Do not package javax.inject

We have a number of mis-specified dependencies as well as unnecessary
dependencies on infrautils.inject. Clean these up so we do not pull
in javax.inject jar.

JIRA: INFRAUTILS-65
Change-Id: I00bbecf86b70429114734086fb62cf16c1091c3f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoIntegrate controller-2.0.2 04/90404/1
Robert Varga [Thu, 11 Jun 2020 21:42:07 +0000 (23:42 +0200)]
Integrate controller-2.0.2

This bumps versions to the following:
- odlparent-7.0.3
- yangtools-5.0.3
- mdsal-6.0.2
- controller-2.0.2

Change-Id: Icab3fc322e02c8977ea91846646d84c2794675fe
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoUse ranges for MRI features 53/90153/1
Robert Varga [Sun, 31 May 2020 08:01:17 +0000 (10:01 +0200)]
Use ranges for MRI features

Upstream features should be specified as ranges, so that we can
mix-and-match them during upgrades.

Change-Id: If6a411c8704b9b821685f8a50b53e841de0e66c2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoIntegrate controller-2.0.1 51/90151/1
Robert Varga [Sun, 31 May 2020 07:35:30 +0000 (09:35 +0200)]
Integrate controller-2.0.1

This bumps versions to the following:
- odlparent-7.0.2
- yangtools-5.0.2
- mdsal-6.0.1
- controller-2.0.1

Change-Id: Ie02630a535391fcf5b0e0adc5882ee52f0b9feaa
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoUpdate MRI projects for Aluminium 96/89496/1
Robert Varga [Tue, 28 Apr 2020 16:55:48 +0000 (18:55 +0200)]
Update MRI projects for Aluminium

This bumps versions to the following:
- odlparent-7.0.1
- yangtools-5.0.1
- mdsal-6.0.0
- controller-2.0.0

Change-Id: I8b73df780aac523efea91c4f41964e55dd21e4f5
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoFix checkstyle 86/89286/2
Robert Varga [Fri, 24 Apr 2020 16:34:43 +0000 (18:34 +0200)]
Fix checkstyle

Upgraded checkstyle is finding these violations, fix them up.

Change-Id: Ib4944f2947f9c918bc84cf26904e191bbb9962a6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 503a3b883bc2d2fe411f9bfdcaa87436899c5500)

4 years agoMigration of depricated MDSAL API 20/88820/20
Nidhi Adhvaryu [Wed, 1 Apr 2020 04:32:58 +0000 (10:02 +0530)]
Migration of depricated MDSAL API

Signed-off-by: Nidhi Adhvaryu <nidhi.adhvaryu@ericsson.com>
Change-Id: I98d029feb07aaedd02ccf436bb3ae167ae637a23

4 years agoUse Magnesium controller 76/88676/1
Robert Varga [Wed, 25 Mar 2020 21:42:25 +0000 (22:42 +0100)]
Use Magnesium controller

As part of controller transition to being MRI, downgrade the version
used to Magnesium release. This will be bumped to Aluminium proper
during the MRI window.

Change-Id: I39989fcc8f8d14d3ac952b009884ace5b0696180
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump versions by x.y.(z+1) 98/87998/1
jenkins-releng [Sat, 22 Feb 2020 04:30:16 +0000 (04:30 +0000)]
Bump versions by x.y.(z+1)

Signed-off-by: jenkins-releng <jenkins-releng@opendaylight.org>
Change-Id: If3a20fe17b5de57ebc424e929b6d5e7000833274

4 years agoBump to odlparent-6.0.4/yangtools-4.0.6/mdsal-5.0.9 97/86997/2
Robert Varga [Thu, 16 Jan 2020 21:10:18 +0000 (22:10 +0100)]
Bump to odlparent-6.0.4/yangtools-4.0.6/mdsal-5.0.9

Pick up latest fixes and upgrades.

Change-Id: Ida5f4a172c8f77f8d3cd997a82435b03aa67d72a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoExpose reference implementations downstream 92/86492/2
Robert Varga [Wed, 18 Dec 2019 18:44:03 +0000 (19:44 +0100)]
Expose reference implementations downstream

If a downstream project needs an implementation, it should be able
to do so without relying on features.

Change-Id: I8f248e3ccef450461ebb8359398a6154e2a994b2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump odlparent/yangtools/mdsal to 6.0.3/4.0.3/5.0.6 67/86367/3
Robert Varga [Thu, 12 Dec 2019 07:01:16 +0000 (08:01 +0100)]
Bump odlparent/yangtools/mdsal to 6.0.3/4.0.3/5.0.6

Pick up the latest upgrades and fixes.

Change-Id: Ibc63628ecc83b1cd9e1a733e264eec94050e257b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump to odlparent-6.0.1/yangtools-4.0.2/mdsal-5.0.4 16/85616/1
Robert Varga [Wed, 6 Nov 2019 14:08:05 +0000 (15:08 +0100)]
Bump to odlparent-6.0.1/yangtools-4.0.2/mdsal-5.0.4

This picks up latest upgrades and fixes.

Change-Id: I8db358b0af81394a561071d98bffea168dda47cc
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoAdd tools-testutils declaration 20/82720/3
Robert Varga [Tue, 25 Jun 2019 10:49:39 +0000 (12:49 +0200)]
Add tools-testutils declaration

tools-testutils is used widely by downstreams, who are forced
to duplicate scope=test and version declarations. Make sure we
propagate the correct declaration from artifacts.

Change-Id: Ie36a614acd177116ccb9f1e368737d0f564c323d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump mdsal to 5.0.3 63/85063/1
Robert Varga [Fri, 11 Oct 2019 14:10:28 +0000 (16:10 +0200)]
Bump mdsal to 5.0.3

This bumps mdsal to 5.0.3 to workaround issues with Blueprint
injection.

Change-Id: I848c9220ce06ec7b4af304ab64948bdc30257dbd
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump mdsal to 5.0.2 43/84143/9
Robert Varga [Mon, 2 Sep 2019 17:24:23 +0000 (19:24 +0200)]
Bump mdsal to 5.0.2

This bumps mdsal to 5.0.2 as part of Magnesium MRI.

Change-Id: Id9ab45edf28477dca8acf8f7538cfd26f237f6f4
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump yangtools to 4.0.1 42/84142/6
Robert Varga [Mon, 2 Sep 2019 17:24:48 +0000 (19:24 +0200)]
Bump yangtools to 4.0.1

This bumps yangtools to 4.0.1 as part of Magnesium MRI.

Change-Id: I6228c73d31721c8427e7f456afd5ab3ff715c88b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump odlparent to 6.0.0 41/84141/4
Robert Varga [Mon, 2 Sep 2019 17:23:38 +0000 (19:23 +0200)]
Bump odlparent to 6.0.0

This bumps odlparent to 6.0.0 as part of Magnesium MRI.

Change-Id: I19505dd80b832cd6ed8b68daf471d9e90d3dfdd2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump mdsal to 4.0.6 23/84423/2
Robert Varga [Sat, 14 Sep 2019 01:50:34 +0000 (03:50 +0200)]
Bump mdsal to 4.0.6

This picks up the latest fixes.

Change-Id: I76d6b78d7319edf80d15ef5a9750338434b48a93
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump yangtools to 3.0.5 22/84422/1
Robert Varga [Sat, 14 Sep 2019 01:50:12 +0000 (03:50 +0200)]
Bump yangtools to 3.0.5

This picks up latest fixes.

Change-Id: Ia4fcc4cf5a5555b76a83010c228c9d7de037aa94
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump odlparent to 5.0.2 40/84140/2
Robert Varga [Mon, 2 Sep 2019 17:23:04 +0000 (19:23 +0200)]
Bump odlparent to 5.0.2

This bumps odlparent to pick up latest references.

Change-Id: Ica16c98bd6eeeb2530bdc9cee4bb7f198e4a6ab0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoFix checkstyle 21/84421/1
Robert Varga [Tue, 3 Sep 2019 06:08:32 +0000 (08:08 +0200)]
Fix checkstyle

Updated checkstyle reports a few violations, fix them up before
upgrading.

Change-Id: Ia10046eccc48fcd72a9d27abb225734fa192b0a0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump mdsal to 4.0.4 31/83731/1
Robert Varga [Thu, 15 Aug 2019 08:35:46 +0000 (10:35 +0200)]
Bump mdsal to 4.0.4

This brings in latest fixes.

Change-Id: I59f89ef4fe76ef16fcdc9b59f8d9b50aa0849847
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump versions by x.y.(z+1) 55/83555/1
jenkins-releng [Mon, 12 Aug 2019 16:14:13 +0000 (16:14 +0000)]
Bump versions by x.y.(z+1)

Signed-off-by: jenkins-releng <jenkins-releng@opendaylight.org>
Change-Id: Ie32274fd3e5e6ecbec1f435bcecc2139beccb652

4 years agoBump mdsal to 4.0.3 05/83105/6
Robert Varga [Thu, 18 Jul 2019 10:53:15 +0000 (12:53 +0200)]
Bump mdsal to 4.0.3

This bumps mdsal to 4.0.3, bringing in latest fixes and improvements.

Change-Id: Ie8e03aab1f31edf80bc9f1d7896c334c9d83be8d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump yangtools to 3.0.4 04/83104/5
Robert Varga [Thu, 18 Jul 2019 10:52:55 +0000 (12:52 +0200)]
Bump yangtools to 3.0.4

This picks up latest fixes and improvements.

Change-Id: I03201927d23762acf641c1ab0ff3419ba8b94969
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump odlparent to 5.0.1 03/83103/2
Robert Varga [Thu, 18 Jul 2019 10:52:32 +0000 (12:52 +0200)]
Bump odlparent to 5.0.1

This picks up the latest upgrades.

Change-Id: If6006a94197839a9718cd5eae16b0a025913af93
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump mdsal to 4.0.2 63/82363/2
Robert Varga [Fri, 31 May 2019 14:13:20 +0000 (16:13 +0200)]
Bump mdsal to 4.0.2

This picks up the latest fixes.

Change-Id: Iba9a093828293236581aac1a06736e11a132ac29
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump yangtools to 3.0.1 56/82356/1
Robert Varga [Fri, 31 May 2019 14:08:26 +0000 (16:08 +0200)]
Bump yangtools to 3.0.1

This picks up the latest fixes.

Change-Id: I18c1a84dbb67177919eda821ae31232b7aa3cb36
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump mdsal to 4.0.1 37/81837/2
Robert Varga [Wed, 1 May 2019 11:39:51 +0000 (13:39 +0200)]
Bump mdsal to 4.0.1

This bumps mdsal to 4.0.1

Change-Id: I73e4cc0c956a0f1c8883233827dc6e414282efec
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoModernize srm-impl 39/81639/1
Robert Varga [Sat, 13 Apr 2019 12:04:48 +0000 (14:04 +0200)]
Modernize srm-impl

Reduce use of deprecated methods and migrate to rpc-api.

Change-Id: I9bae6b14c23fa7979883918dc73aeff24a84c3b1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>