2251 Commits

Author SHA1 Message Date
pierventre
80b532d76c [SDFAB-189] Update ONOS CI and test new image
Fix api docs upload. Upload is done now in the CI
script by using rsync (see ci-management)

Change-Id: I29f435850cb74a72b50288725dd6e9508783dbce
(cherry picked from commit dd14a4e6111c321b0252ea5555fabe0b7b4d22d2)
2022-08-02 20:40:07 +00:00
pierventre
69db90c26e [SDFAB-1197] First stab to update ONOS to py3
Update has been performed only on the scripts and the
executables strictly necessary for the following use cases:

- Build (including Intellij)
- Tests (including Intellij)
- Docker build (including dev and yourkit)
- Upload snapshot (including local)
- Release

Finally, fix the ability to run ONOS using onos-local targets,
stc and docker stc (aka up4 stc env). Last but not least, updated
the azul image to a newer one which exports also the PYTHONENCODING

Change-Id: Ie96f3a9c76dbba83b1fc3896a372f1045d3d7ccc
2022-07-29 13:09:20 +02:00
pierventre
5489c2f6b1 [SDFAB-1196] Build ONOS with Bazel 6.0.0 pre-release
This was a quite big jump (3.7.2 -> 6.x.x) and we had
to face the deprecation of several components.

- javabase/host_javabase -> java_language_version and
java_runtime_version

- java_toolchain/host_java_toolchain -> java_language_version
and java_runtime_version

- Turnedoff "ReturnValueIgnored" related to ErrorProne

- Moved to bazelisk v1.11.0

- patched again the grpc code due to the deprecation of host_javabase
as java_toolcahin contains already this information.

- resource_jars are also handled as resources because java constructs
do not accept them anymore.

- Use the OSGIWrapper to fix the path of the resource_hars and untar them.
Additionally clean up the code and enable/disable logging through a param.

- Fix absolute_javabase in the Dockerfile by providing the absolute
path of the local jvm through local_java_repository. The latter is
appended to the WORKSPACE file on demand inside the Dockerfile.

Change-Id: I96e06fe52b3b49a1a34f01443eec583a95347323
(cherry picked from commit 846c8b167f3e3aa8086b3eab3df94154a75dc423)
2022-07-29 07:42:16 +00:00
Andrea Campanella
775e5f842c Removing json package dependency due to licensing issues
Change-Id: Iabd2f0343ca42a1956c1f7c6e471d8e141d29bc7
2022-06-09 14:39:21 -07:00
Daniele Moro
ed04b5438e Run maven in batch and quite mode during maven artifacts upload
This will give us a much cleaner output in CI.

Change-Id: If3182f1baead52673fb137663c95d7ee3d6a8cf5
(cherry picked from commit 7c92e07b4288d1319eb8fa917bbfd92f8f1d987a)
2022-03-17 17:25:21 +00:00
Daniele Moro
27ccd97a9f curl in onos-cfg wants uppercase post as parameter
Change-Id: Ief206ef3029baff98d1c91255044baf2d3543644
(cherry picked from commit 782e154be0edcb018cdb64e1a55219d5081a095b)
2022-02-15 22:22:05 +00:00
pierventre
b59c51dd4e [SDFAB-933] Integrate atomix-3.1.12 and expose demote API
Additionally, this patch adds unit tests for demote and
updates a bunch of testing tools

Change-Id: I9636078b08486c9167ae253f0251f72239ad2802
2022-02-15 17:05:26 +01:00
Charles Chan
059a46b982 Replace tost with sdfabric
Change-Id: I67ea7df69452eed8d41691098f338f005ea5e091
2022-02-07 12:10:41 -08:00
Jian Li
f50cc28792 Downgrade the fabric8 client version to 5.4.2
Change-Id: I5011b32754a3db66be3b067370a7af289518ff63
2022-01-26 01:46:12 +09:00
Jian Li
93ba759bbc Bumpup fabric8 kubernetes clients to 5.6.0
Change-Id: I4b6665da030834125ed80b3f0ea2715603eedf71
2022-01-25 02:30:09 +00:00
pierventre
e8ff53e1c5 Missing update of the karaf home
Change-Id: I90967e70ed371ce3e3018db378843b10aa2da89f
2022-01-13 13:13:15 +00:00
Ray Milkey
70bd55de56 Upgrade karaf to version 4.2.14
Change-Id: Ibfa72941a01fb8026513d39f5b3d5f2bb3dcc9d2
2022-01-12 16:34:12 +00:00
Thomas Vachuska
b7f12e63c2 Changing version to 3.0.0-SNAPSHOT
Change-Id: Iff0e25fd1e3928b182a21352c17685aea4034f4e
2022-01-05 20:13:10 +00:00
Ray Milkey
95f124892c Starting snapshot 2.8.0-SNAPSHOT
Change-Id: I7a38cdc0ef1f51458c2605f59aca6221fc0320f9
2021-12-17 10:20:32 -08:00
ONOS Jenkins User
844bc4e061 Starting snapshot 2.7.0-SNAPSHOT 2021-12-01 17:50:52 +00:00
ONOS Jenkins User
1d51166bfe Tagging 2.7.0-rc1 2021-12-01 17:50:46 +00:00
pierventre
581c8407e6 [SDFAB-616] Inconsistent format of port number in DhcpRelay
CircuitId deserialize use custom parsing instead of leveraging
the ConnectPoint class. Unfortunately, this custom parsing
does not parse correctly the portname.

Additionally, fix port number format for hostlocation and dhcprecords
and exclude Dhcp4HandlerImpl from file length checks

Change-Id: I360f26f8dd7de492cb65ad7af05fb85c8e940c33
(cherry picked from commit 61bd673eec2282aff175daff141059870db78c7d)
2021-09-27 19:27:55 +00:00
Matteo Scandolo
cabf6f8427 Bumping onos-maven-plugin version in onos-dependencies
Change-Id: I45a09565196482f057f5e9e0fdc0e926ed2914eb
2021-09-17 16:13:44 +00:00
Matteo Scandolo
1bd07c8b6c Fix issue with multiline comment in OSGI properties
If a component property as a multiline comment the app activation
will throw an exception and no property for that component would be initialized.

This patch address that in two ways:
- Make sure that if we cannot parse a line from cfgdef the other properties are enabled and logs a warn.
- Changes the onos-maven-plugin so that it removes new lines when generating the .cfgdef file

Bumping version as plugin is already published from onos-2.5 branch

Change-Id: I550c23624118782fe6d79c9abbaf75ae59ea0eab
2021-09-15 15:45:11 -07:00
Eesha Deepak
f4eaf70090 added onos-protocols-gnmi-stub to the publish-target-list
Change-Id: I97057219e19904f8bd6939d57176105b33dd3e01
2021-08-05 17:00:07 +00:00
Eesha Deepak
066b09da1c added the gnmi drivers to the publish target list
Change-Id: Ic9130633a59feb539a3e06ed9d7fafb09610890b
2021-07-26 22:42:24 +00:00
Ray Milkey
3b7fa577da Starting snapshot 2.7.0-SNAPSHOT
Change-Id: I20289f264e33b99e8ef073a8e6384857383a4e65
2021-07-13 15:43:39 -07:00
ONOS Jenkins User
a01cc5b324 Starting snapshot 2.6.0-SNAPSHOT 2021-07-13 21:41:25 +00:00
ONOS Jenkins User
b72d6961d4 Tagging 2.6.0-rc4 2021-07-13 21:41:19 +00:00
ONOS Jenkins User
bc990cbfc9 Starting snapshot 2.6.0-SNAPSHOT 2021-07-13 21:02:24 +00:00
ONOS Jenkins User
4dbcd7f53d Tagging 2.6.-rc4 2021-07-13 21:02:19 +00:00
ONOS Jenkins User
95d1465424 Starting snapshot 2.6.0-SNAPSHOT 2021-07-01 19:25:42 +00:00
ONOS Jenkins User
ff91d3155d Tagging 2.6.0-rc3 2021-07-01 19:25:37 +00:00
ONOS Jenkins User
a4ceaab129 Starting snapshot 2.6.0-SNAPSHOT 2021-07-01 15:08:40 +00:00
ONOS Jenkins User
74b37970d0 Tagging 2.6.0-rc1 2021-07-01 15:08:33 +00:00
Daniele Moro
385cdd7b63 Fix onos-dependencies snapshots artifacts upload
Change-Id: I14df2762644658b6eb6689193c4cc1f210c13717
2021-05-24 19:07:59 +00:00
Daniele Moro
7286e89e18 Update default repo ID for snapshot artifacts upload
Change-Id: I32c1d2996140438aa1d6e05fce1b331705978c87
2021-05-20 13:05:10 +02:00
pierventre
59d88b5d55 [AETHER-1265] Integrate Java profiler in TOST env
- Adds a dockerfile to build ONOS image with profiler agent enabled
- Prevents the overriding of the JAVA_OPTS when using the profiler
- Deploy profiler also in the atomix nodes when using stc

Change-Id: I00d5091428083f44360989c701350b7fead66038
2021-05-14 07:16:42 +00:00
Daniele Moro
88e414c8b7 Add support for direct meters in generating P4 constants
Also, add imports for PI IDs only when needed in the constants file.

Change-Id: If1821a55a07d5f6874514174381be212188580e3
2021-04-23 11:01:54 +00:00
Jian Li
85d26e7d45 Bumpup fabric8 kubernetes client to 5.3.0
Change-Id: I63fe9a310049cbccfc4eb541e3b0b3878647c27b
2021-04-19 20:12:28 +09:00
Jian Li
94b6d167bc Inject service FQDN into kubevirt node, let onos resolve service IP
Change-Id: I6f3f66ad97f8be461c464dad5d133f3477c40f5a
2021-04-16 20:10:58 +09:00
Daniele Moro
c3d410ab9c Add dockerfile to build an ONOS container from the local Bazel output
Change-Id: Ia4fbbe73db2f18ae225cf4dd405b60cd8edb5557
2021-04-07 06:48:21 +00:00
pier
790202aaf6 [AETHER-72][AETHER-75] Update atomix to 3.1.9
Additionally fix an issue brough by 24302

Change-Id: I60192953f0ebef6730ad6268b10bbf8a59934156
2021-04-06 13:03:51 +02:00
Jian Li
b07d88a32f Bump up fabric8 to 5.2.1, support up to Kubernetes 1.20.2
Change-Id: Ie9201360f1361404f2c5aea1fc3f0ae1479cbff1
2021-03-29 14:14:37 +09:00
Daniele Moro
8a8b572dd2 Add support for uploading snapshot artifacts
Change-Id: Iedc62e422267016f315799addf394c0c062ada87
2021-03-09 19:27:00 +00:00
Charles Chan
65bfd3ba00 Add Mastership Load Balancer into TOST build profile
Change-Id: Ie697c435e9e6249978eb85137a317295af0dd3ca
(cherry picked from commit bb76f378070306a527ee21c89bc6b9489c34bcb8)
2021-02-25 13:57:42 +00:00
Jian Li
7edfb38506 Bumpup fabric8 kubernetes client deps to 5.1.0
Change-Id: I9439d72b9bc1bda82d4960c524e215031bef751d
2021-02-19 14:31:27 +09:00
Jian Li
2e63b23eb8 Bumpup fabric8 deps to 5.0.1
Change-Id: Ie2973b0b694bc49885f9c263c16e82f2b2339002
2021-02-02 14:04:44 +09:00
Brett Bergquist
22412355c6 Changed to use ctx.actions.run_shell instead of ctx.action
The 'action' attribute was depricated and finally removed probably at
the Bazel 3.4.0 release.

Change-Id: I2aafae3e780b8e68a3ad9a162d62210743f9f2fd
2021-01-25 15:19:59 +00:00
Jian Li
9ac73958a0 Bumpup kubernetes client from 4.7.1 to 5.0.0 (support up to kubernetes 1.19)
Change-Id: I7555325fd5eee5bbbb7a0a7a5c27bfc2c333fc7f
2021-01-20 10:55:52 +00:00
Jian Li
3ba5c581ee Initial implementation of managing IPs for kubevirt spawned VMIs
Change-Id: I68127e1fe42a142765e7696d8ce80de16d3d94a9
2021-01-20 10:55:52 +00:00
Jian Li
e2a53cb216 Add skeleton codes of kubevirt node and networking apps
Change-Id: I30dc9f02a8ea874bb18f1ecc781210bedb2c0972
2021-01-20 10:55:52 +00:00
Sean Condon
436c60a1f6 Upgraded to bazel 3.7.2 and rules_nodejs 2.3.2
Change-Id: If53686f2475c4f367909de577b4da95de8e16768
2021-01-04 15:42:57 +00:00
Carmelo Cascone
7981d09ab6 Extract and publish p4runtime protocol utils in separate artifact
For consumption by third-party apps built via mvn

Change-Id: Ic9c1eccb2519b2952cdb632e1f07ccefbba00396
2020-12-04 15:58:31 -08:00
Ray Milkey
74f589ef61 Starting snapshot 2.6.0-SNAPSHOT
Change-Id: I0db563adc05696da578d5b230da905f592eb8fad
2020-12-01 11:30:38 -08:00