multicloud/k8s.git
30 hours agoMerge "Update base image to ubuntu 24.04" master
Lukasz Rajewski [Sat, 13 Dec 2025 13:14:10 +0000 (13:14 +0000)]
Merge "Update base image to ubuntu 24.04"

2 days agoContext propagation for ProfileClient 52/142752/1
Fiete Ostkamp [Fri, 12 Dec 2025 09:37:30 +0000 (10:37 +0100)]
Context propagation for ProfileClient

- pass context into ProfileClient

Issue-ID: MULTICLOUD-1538
Change-Id: Ia77f784d03ff810b9f65d079a9964a7707813c52
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
3 days agoContext propagation for HookClient and InstanceStatusSubManager 29/142729/2
Fiete Ostkamp [Thu, 11 Dec 2025 11:52:59 +0000 (12:52 +0100)]
Context propagation for HookClient and InstanceStatusSubManager

- pass context into HookClient and InstanceStatusSubManager
- reduce sleep interval in hookHasDeletePolicy from
  5 seconds to 500 milliseconds

Issue-ID: MULTICLOUD-1538
Change-Id: I7dd8d0b2efd10a353cee0781eef4af532978ea27
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
3 days agoUpdate base image to ubuntu 24.04 27/142727/1
Fiete Ostkamp [Thu, 11 Dec 2025 10:17:38 +0000 (11:17 +0100)]
Update base image to ubuntu 24.04

- update docker base image (18.04 -> 24.04)

Issue-ID: MULTICLOUD-1540
Change-Id: I69b7798c46a735ed2ed4079ce8027988b5ca7459
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
3 days agoContext propagation for query handler 25/142725/1
Fiete Ostkamp [Thu, 11 Dec 2025 09:40:13 +0000 (10:40 +0100)]
Context propagation for query handler

- connect context in QueryManager
- make sure context is passed everywhere in instance.go

Issue-ID: MULTICLOUD-1538
Change-Id: If14d30aacc4cae569f2bdeb6b51be37948c27da9
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
3 days agoAddress warnings from go vet 20/142720/3
Fiete Ostkamp [Tue, 9 Dec 2025 15:23:00 +0000 (16:23 +0100)]
Address warnings from go vet

This fixes:
- unkeyed bson.D struct literals
- wrong or unnecessary `json:""` annotations
- strings.Contains notations that are overly complicated
- unnecessary variable declarations (replaced with _)
- unnecessary nil check on slices

Issue-ID: MULTICLOUD-1539
Change-Id: Ia3ae58f5595334d0cfbbf7665fc7fcb893a203f3
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
4 days agoAdd spans for KubernetesClient methods 23/142723/1
Fiete Ostkamp [Wed, 10 Dec 2025 14:46:10 +0000 (15:46 +0100)]
Add spans for KubernetesClient methods

- this is done to better understand where time is spend
  when executing requests

Issue-ID: MULTICLOUD-1538
Change-Id: I7f069b3a188deb685ec595273888f5ad2f6e1054
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
4 days agoContext propagation for all ConnectionManager and DefinitionManager methods 19/142719/2
Fiete Ostkamp [Tue, 9 Dec 2025 14:59:49 +0000 (15:59 +0100)]
Context propagation for all ConnectionManager and DefinitionManager methods

- connect context for all ConnectionManager and DefinitionManager methods

Issue-ID: MULTICLOUD-1538
Change-Id: I5dac52f722de592188275c9dd443bfc8dfcb536e
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
5 days agoContext propagation for all InstanceManager methods 18/142718/1
Fiete Ostkamp [Tue, 9 Dec 2025 13:43:18 +0000 (14:43 +0100)]
Context propagation for all InstanceManager methods

- connect context for the rest of the InstanceHandler methods

Issue-ID: MULTICLOUD-1538
Change-Id: I5c9a96cc922c3eb795e988bda0cddf30b5d0cbb1
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
5 days agoContext propagation for InstanceManager Status and Delete 13/142713/1
Fiete Ostkamp [Tue, 9 Dec 2025 09:46:09 +0000 (10:46 +0100)]
Context propagation for InstanceManager Status and Delete

- enhance the Status and Delete methods of the InstanceManager
  interface to require the context paramater
- this is done to validate the approach and see if the handler
  and db related spans are then connected in one trace
- the other methods of the interface will follow once that works [0]

[0] this is also done because the diff of changes would become quite large
    if everything would be changed at once

Issue-ID: MULTICLOUD-1538
Change-Id: Ia1ec590f3326773e0df1e6cefba97711975bbf48
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
5 days agoMerge "Pass context.Context to the store implementations"
Lukasz Rajewski [Tue, 9 Dec 2025 09:31:58 +0000 (09:31 +0000)]
Merge "Pass context.Context to the store implementations"

5 days agoPass context.Context to the store implementations 12/142712/2
Fiete Ostkamp [Tue, 9 Dec 2025 07:36:08 +0000 (08:36 +0100)]
Pass context.Context to the store implementations

- this service defines a Store interface with implementations
  for mongo and consul
- enhance the methods of this interface to require
  a context.Context parameter
- this is the first step in being able to pass the (request) context
  from the handler to the mongo driver
- the context propagation is needed for the tracing instrumenations
  to pick up the overall trace context
- bump snapshot version to 0.12.0-SNAPSHOT

Issue-ID: MULTICLOUD-1537
Change-Id: Ibfcdbab6b46bc18a425a8abb3835c35371044bbc
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
5 days ago0.11.0 release 11/142711/1
Fiete Ostkamp [Tue, 9 Dec 2025 06:53:33 +0000 (07:53 +0100)]
0.11.0 release

- update go version (1.14 -> 1.16)
- migrate from etcd to the etcd/client dependency
- add tracing
- update the mongo-driver (v1.1.2 -> v1.7.5)

Issue-ID: MULTICLOUD-1533
Change-Id: Ibec68e0ea3e55912c2f67ada15253777eac69149
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
6 days agoUpdate mongo-driver 86/142686/1
Fiete Ostkamp [Mon, 8 Dec 2025 11:42:07 +0000 (12:42 +0100)]
Update mongo-driver

- update go.mongodb.org/mongo-driver (v1.1.2 -> v1.7.5)
- add otelmongo dependency and register it with the mongo client
- v1.7.5 was chosen because it is the version that is used in the
  v0.24.0 version of the otel contrib repo that is used for
  tracing here

Issue-ID: MULTICLOUD-1536
Change-Id: I494d6afe44c3b63d1b6a5917b3c59a1ffb7e66d6
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
6 days agoAllow disabling tracing 79/142679/1
Fiete Ostkamp [Mon, 8 Dec 2025 09:28:05 +0000 (10:28 +0100)]
Allow disabling tracing

- register tracing middleware only when
  TRACING_ENABLED=="true"
- this is required since tracing (jaeger) is
  not part of the default ONAP deployment

Issue-ID: MULTICLOUD-1535
Change-Id: I6aae3ac1e7d3f322be50f1077e579c2a26aad746
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
6 days agoMerge "Add tracing"
Lukasz Rajewski [Mon, 8 Dec 2025 08:02:28 +0000 (08:02 +0000)]
Merge "Add tracing"

6 days agoAdd tracing 76/142676/4
Fiete Ostkamp [Sun, 7 Dec 2025 17:54:34 +0000 (18:54 +0100)]
Add tracing

- add otel dependencies [0]
- register otel middleware on router
- use grpc trace exporter
- this also updates gorilla/mux (1.7.3 -> 1.8.0)
- exporter configuration is available via
  environment variables [1]

[0] v1.2.0 of otel dependencies is used due to a dependency
    on v1 of github.com/go-logr/logr in later versions.
    The update from v0 to v1 of that dependency would require
    updating all the k8s.io packages from v0.19 -> v0.21 too.
[1] https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/

Issue-ID: MULTICLOUD-1535
Change-Id: I0cdd9f1682542e96b8808e59f9b83868ab2d8565
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
7 days agoGo 1.16 75/142675/2
Fiete Ostkamp [Sun, 7 Dec 2025 16:19:12 +0000 (17:19 +0100)]
Go 1.16

- use golang 1.16 to build the project

Issue-ID: MULTICLOUD-1532
Change-Id: I7acdf84dd2a5fdab29d88d448e0fe3106c18eee6
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
7 days agoMerge "Go 1.15"
Lukasz Rajewski [Sun, 7 Dec 2025 15:46:48 +0000 (15:46 +0000)]
Merge "Go 1.15"

7 days agoPublish unique docker snapshots 74/142674/2
Fiete Ostkamp [Sun, 7 Dec 2025 14:42:25 +0000 (15:42 +0100)]
Publish unique docker snapshots

- also publish a docker tag that is unique
  by including the timestamp
- this allows testing specific snapshots of
  a version to be released

Issue-ID: MULTICLOUD-1534
Change-Id: I688873c744964a545d21e8f07016154d603c914d
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
7 days agoGo 1.15 72/142672/1
Fiete Ostkamp [Sun, 7 Dec 2025 13:27:12 +0000 (14:27 +0100)]
Go 1.15

- use golang 1.15 to build the project

Issue-ID: MULTICLOUD-1532
Change-Id: I174ad83022f18bf0b70109c8c84b531efc860692
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
7 days agoUpdate etcd client 08/142308/14
Fiete Ostkamp [Wed, 22 Oct 2025 19:18:30 +0000 (21:18 +0200)]
Update etcd client

- use etcd/client/v3 v3.5.3 which is the first
  version to be published as a go module
- since client/v3 accepts tls.Config, the dependency to
  go.etcd.io/etcd is removed

Issue-ID: MULTICLOUD-1521
Change-Id: I13b07084bd7ed99e77b64cbfbcd0631f816ab65b
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
9 days agoUse latest versions of multicloud modules 51/142651/1
Fiete Ostkamp [Fri, 5 Dec 2025 11:38:06 +0000 (12:38 +0100)]
Use latest versions of multicloud modules

- declare latest multicloud-k8s module versions
- run go mod tidy in modules that have changes

Issue-ID: MULTICLOUD-1531
Change-Id: I7a855ade4bce3f0d8704f98d131e8bf242e570e7
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
9 days agoRun go mod tidy for monitor submodule 49/142649/3
Fiete Ostkamp [Fri, 5 Dec 2025 09:45:17 +0000 (10:45 +0100)]
Run go mod tidy for monitor submodule

- remove tools.go that declares dependency on the crd/generator
  of controller tools [0]
- run go mod tidy

[0] this is a dependency that is not included in the build.
    the crd/generator package only exists in v1 version of
    controller-tools while controller-tools was declared in
    in v0.3.0.
    This prevented a successful go mod tidy run due to the
    conflict.

Issue-ID: MULTICLOUD-1530
Change-Id: If801420449f5f4d2458036f91a728cf9b0a40058
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
9 days agoBump snapshot version to 0.11.0 50/142650/1
Fiete Ostkamp [Fri, 5 Dec 2025 10:37:07 +0000 (11:37 +0100)]
Bump snapshot version to 0.11.0

Issue-ID: MULTICLOUD-1530
Change-Id: Id68fcff65b668542b01a109bb0048be52fac7e38
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
9 days ago0.10.3 release 47/142647/2
Fiete Ostkamp [Fri, 5 Dec 2025 07:28:12 +0000 (08:28 +0100)]
0.10.3 release

- remove declarations of // indirect dependencies that are
  not added back by go mod tidy

Issue-ID: MULTICLOUD-1525
Change-Id: I83753d936e128cacfb2ed340988d52e5f0e16c89
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
9 days agoFix image pull error for bitnami/etcd in pipeline 46/142646/1
Fiete Ostkamp [Thu, 4 Dec 2025 20:39:55 +0000 (21:39 +0100)]
Fix image pull error for bitnami/etcd in pipeline

- replace bitnami/etcd with quay.io image

Issue-ID: MULTICLOUD-1527
Change-Id: I68504923836e009d51e20628dfa216ad1b229040
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
4 weeks agoMerge "Chore: Add dependabot config"
Byung-Woo Jun [Tue, 11 Nov 2025 17:28:27 +0000 (17:28 +0000)]
Merge "Chore: Add dependabot config"

7 weeks agoRemove unneccessary declarations of indirect dependencies 15/142315/2
Fiete Ostkamp [Fri, 24 Oct 2025 06:08:45 +0000 (08:08 +0200)]
Remove unneccessary declarations of indirect dependencies

- remove dependency declarations that are not added back
  by `go mod tidy` after removing them

Issue-ID: MULTICLOUD-1523
Change-Id: I2965a3e678826fcc7cc1fe19c8cf7ea3c6be1500
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
7 weeks agoImprove docker compose setup 10/142310/14
Fiete Ostkamp [Thu, 23 Oct 2025 09:43:32 +0000 (11:43 +0200)]
Improve docker compose setup

- add start_period and check intervals to healthcheck in compose
- log error message when reading the config file fails

Issue-ID: MULTICLOUD-1522
Change-Id: I3ca1f4c33accba5a5b6329e7e84343fc4b6ac055
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
8 weeks agoMake project go version more explicit 77/142277/3
Fiete Ostkamp [Fri, 17 Oct 2025 11:49:51 +0000 (13:49 +0200)]
Make project go version more explicit

- define GO_VERSION variable in build.sh that determines which go version
  is used to build the binaries
- align go version to 1.14 that is defined in all go.mod files [0]
- bump snapshot version to 0.10.3-SNAPSHOT

[0] the mod files all declared 1.13, but 1.14 was effectively used for the build

Issue-ID: MULTICLOUD-1520
Change-Id: I790db4352206ffe6a213472ec8e195b08ae423f4
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
2 months agogo mod tidy all modules 25/142125/3
Fiete Ostkamp [Fri, 26 Sep 2025 09:40:29 +0000 (11:40 +0200)]
go mod tidy all modules

- this cleans up the mod file by removing all
  unused dependencies and sort them
- all modules except ovnaction, ncm and rsync
- those modules have issues resolving some
  dependencies, likely because they refer to
  2020 versions of some of the github.com/onap/k8s
  submodules
- do not use the prometheus log struct in one k8splugin
  file to get rid of a prometheus dependency

Issue-ID: MULTICLOUD-1516
Change-Id: I6c1d79cba1d4a7001d962c51730c4d00a53c617f
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
2 months agoReference newer versions of deps defined in this repo 35/142135/1
Fiete Ostkamp [Sun, 28 Sep 2025 11:49:48 +0000 (13:49 +0200)]
Reference newer versions of deps defined in this repo

- locally, the replace directive ensures that the latest
  versions of the modules defined in this repo are used
- go mod tidy works on the 'public' versions of these deps
  and they are mostly from 2020 which causes some issues
  because some of the transitive deps cannot be found anymore

Issue-ID: MULTICLOUD-1516
Change-Id: Iaa99475ce09efa5bd16fae14f1f0dd69978861c1
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
2 months ago0.10.2 release 33/142133/1
Fiete Ostkamp [Sat, 27 Sep 2025 15:41:11 +0000 (17:41 +0200)]
0.10.2 release

- cleanup partial resources after instance
  creation failure

Issue-ID: MULTICLOUD-1517
Change-Id: I993266b045ca7806b81c37772baac260b601cd51
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
2 months agoChore: Add dependabot config 47/141747/3
Kevin Sandi [Wed, 13 Aug 2025 03:28:51 +0000 (21:28 -0600)]
Chore: Add dependabot config

Issue-ID: CIMAN-33
Change-Id: Ifd32d07a6b2c0dc543774c690d82dc389010ee64
Signed-off-by: Kevin Sandi <ksandi@contractor.linuxfoundation.org>
2 months agoPull docker images through nexus proxy 23/142123/1 0.10.2
Fiete Ostkamp [Fri, 26 Sep 2025 07:29:25 +0000 (09:29 +0200)]
Pull docker images through nexus proxy

Issue-ID: MULTICLOUD-1514
Change-Id: I2ec465b04609e11cfff924116737fdcdb44a49b4
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
2 months agoUse k3s in pipeline 52/142052/69
Fiete Ostkamp [Mon, 15 Sep 2025 13:55:13 +0000 (15:55 +0200)]
Use k3s in pipeline

- replace kubespray with k3s which is
- much simpler to set up + does not need
  to be 'production-ready' to test
  deployment in pipeline
- disable addon installation
- enable k8s-plugin test run by verify-shell
- do not enable the other plugin_ tests since that
  would be too much for this CR
- pull docker images through nexus proxy to
  avoid rate limiting from dockerhub
- bump snapshot version to 0.10.2-SNAPSHOT

Issue-ID: MULTICLOUD-1513
Change-Id: I8ca40dff67ddf41153bdd2f7cfa07a22fb2b03f5
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
2 months agoFix verify-python job 55/142055/2
Fiete Ostkamp [Tue, 16 Sep 2025 07:50:27 +0000 (09:50 +0200)]
Fix verify-python job

- fix passenv notation in tox.ini
- fix bashate (bash linter) warnings in bash scripts
- fix rstcheck linting

Issue-ID: MULTICLOUD-1513
Change-Id: I18b7836abca8eb6f2c1ad4610e9a432ed0356075
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
3 months agofix tox.ini 97/141997/1
thmsdt [Mon, 8 Sep 2025 05:49:41 +0000 (07:49 +0200)]
fix tox.ini

Issue-ID: DOC-828

Change-Id: Iaf91b7196e7697fbc8a12da21a0dee4bc1c5b7a8
Signed-off-by: thmsdt <thomas.kulik@telekom.de>
21 months agoadd python compatibility module 05/137305/6
thmsdt [Tue, 20 Feb 2024 13:11:07 +0000 (14:11 +0100)]
add python compatibility module

Issue-ID: DOC-823
Change-Id: Ia28c11642eeddd9b2bbbac913ba2352bb6cbb7e3
Signed-off-by: thmsdt <thomas.kulik@telekom.de>
2 years agoSet Python and Ubuntu versions in .readthedocs.yaml 92/135292/1
Cédric Ollivier [Mon, 3 Jul 2023 12:27:30 +0000 (14:27 +0200)]
Set Python and Ubuntu versions in .readthedocs.yaml

It now follows the ONAP gate configurations.
It also fixes the settings and formats it.

Issue-ID: DOC-811
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: I3e0df992c2f8149f5f72d44cd19169f7a2ba6836

3 years agoFix DOC config files 56/132256/2
marineMD [Wed, 16 Nov 2022 10:48:19 +0000 (11:48 +0100)]
Fix DOC config files

Issue-ID: DOC-798

Signed-off-by: marineMD <marine.de.dorlodot@intl.att.com>
Change-Id: Ic3c021c91e356b4141c567cbaced814c6d608bf8

3 years agoForce py3.8 in tox.ini 71/130571/1
Cédric Ollivier [Wed, 31 Aug 2022 19:57:10 +0000 (21:57 +0200)]
Force py3.8 in tox.ini

It allows leveraging on OpenStack Yoga's upper-contraints
without any exception.

Issue-ID: DOC-782

Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: I575da63e515573eef67212f2488a1af091d5da00

3 years agoAdd bounds to sphinx requirement 19/128619/1
Cédric Ollivier [Thu, 14 Apr 2022 08:04:38 +0000 (10:04 +0200)]
Add bounds to sphinx requirement

As ONAP was created before Oct 20 2020 in RTD, we
must set bounds to enforce a compatible Sphinx version
(see manual).

Issue-ID: DOC-782

Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: I93154dca725b82d04a372f81b30a754347c7e5f8

3 years agoAdd release file for 0.10.1 image 86/128486/1
Lukasz Rajewski [Tue, 12 Apr 2022 11:11:25 +0000 (13:11 +0200)]
Add release file for 0.10.1 image

Issue-ID: MULTICLOUD-1468
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: Ie3db1598809ef4c061879de2e744bea366376cd5

3 years agoMerge "Update k8splugin snapshot image"
Bin Yang [Tue, 12 Apr 2022 07:37:40 +0000 (07:37 +0000)]
Merge "Update k8splugin snapshot image"

3 years agoUpdate k8splugin snapshot image 78/128478/1 0.10.1
Lukasz Rajewski [Tue, 12 Apr 2022 07:11:57 +0000 (09:11 +0200)]
Update k8splugin snapshot image

Update image version of k8splugin to 0.10.1-SNAPSHOT

Issue-ID: MULTICLOUD-1438
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: Ie1519a2c9cda5fe116a0a367755fec41fe195b2f

3 years agoFixed detection of the etcd connection status 77/128477/1
Lukasz Rajewski [Mon, 11 Apr 2022 18:36:00 +0000 (20:36 +0200)]
Fixed detection of the etcd connection status

Issue-ID: MULTICLOUD-1468
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: If243e9a484afe5db7d9538a1875241fa425a2516

3 years agoFixed verification of the status for PVC 55/127655/1
Lukasz Rajewski [Thu, 10 Mar 2022 12:30:17 +0000 (13:30 +0100)]
Fixed verification of the status for PVC

Issue-ID: MULTICLOUD-1445
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: Idb9fb3b9642d9ef60c0cb2155f10f042d8386b6d

3 years agoAdd k8splugin releases file for 0.10.0 51/127551/1
Lukasz Rajewski [Tue, 8 Mar 2022 10:17:59 +0000 (11:17 +0100)]
Add k8splugin releases file for 0.10.0

Issue-ID: MULTICLOUD-1438
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I78f0b7601c7c22c703c74c330e74d1c2b7a03a0a

3 years agoUpdate k8splugin snapshot image 50/127550/1
Lukasz Rajewski [Tue, 8 Mar 2022 09:50:49 +0000 (10:50 +0100)]
Update k8splugin snapshot image

Update image version of k8splugin to 0.10.0-SNAPSHOT

Issue-ID: MULTICLOUD-1438
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I2b854018b46b3b3fff2df0797ec09866b339dace

3 years agoImplementation of status notification mechanism 55/127455/2 0.10.0
Lukasz Rajewski [Tue, 15 Feb 2022 21:39:37 +0000 (22:39 +0100)]
Implementation of status notification mechanism

- Subscription CRUD endpoints
- Subscription notifu executor
- Cleanup of subscriptions on instance delete
- Sending notification to the specified callback

Issue-ID: MULTICLOUD-1445
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I5b867a348e916f6c2c471bcc5326c831d832f45e

3 years agoUpgrade handler implementation 10/127310/2
Lukasz Rajewski [Mon, 7 Feb 2022 18:34:25 +0000 (19:34 +0100)]
Upgrade handler implementation

Implementation of the upgrade handler for the instance.
As a result, exsting instance is modified, resources
upated and lefovers removed from the cluster.

Issue-ID: MULTICLOUD-1444
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I4122ee12d9332eaeb5ee016446b3da2bbe94bd2d

3 years agoConfigAPI and Query API improvements 54/127254/1
Lukasz Rajewski [Thu, 3 Feb 2022 18:18:07 +0000 (19:18 +0100)]
ConfigAPI and Query API improvements

- Config Template create from the definition content
- Missing CRUD Config handlers added
- Improved Rollback and Config delete
- Query API name filtering improved

Issue-ID: MULTICLOUD-1437
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: Iec8ec6d03746085f294d9318a252f1ae45d3b9c8

3 years agoUse kubectl wait in KuD wait_for_pod test function 49/126649/1
Todd Malsbary [Wed, 19 Jan 2022 21:54:14 +0000 (13:54 -0800)]
Use kubectl wait in KuD wait_for_pod test function

This handles intermittent Err* Pod status such as ErrImagePull.
Additionally, remove the duplication of wait_for_pod among the tests.

Issue-ID: MULTICLOUD-1435
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I70c69e0427b80e31b2f97515ebdbc3496a91ced1

3 years agoUpgrade KubeVirt to v0.49.0 35/126635/1
Todd Malsbary [Fri, 14 Jan 2022 22:33:43 +0000 (14:33 -0800)]
Upgrade KubeVirt to v0.49.0

Issue-ID: MULTICLOUD-1434
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: Ia440ee31ae772dc17fd5b7b2a589a6d634a2ba7a

4 years agoFix validation error in cdi-operator 36/125536/1
Todd Malsbary [Mon, 1 Nov 2021 18:55:07 +0000 (11:55 -0700)]
Fix validation error in cdi-operator

Issue-ID: MULTICLOUD-1417
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I194710db23a9c963be51fd47ecd7b1cce1707a91

4 years agoUpdate k8splugin snapshot image 62/125462/1
Lukasz Rajewski [Fri, 29 Oct 2021 09:29:19 +0000 (11:29 +0200)]
Update k8splugin snapshot image

Update image version of k8splugin to 0.9.4-SNAPSHOT

Issue-ID: MULTICLOUD-1294
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I82279afa892663d466934904d484767ef0a9660e

4 years agoAdd k8splugin releases file for 0.9.3 61/125461/1
Lukasz Rajewski [Fri, 29 Oct 2021 09:27:19 +0000 (11:27 +0200)]
Add k8splugin releases file for 0.9.3

Issue-ID: MULTICLOUD-1414
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I005e2b6750db287b32c576e1a743c9f8034ac01b

4 years agoMerge "Fix resolution of values for Config API"
Ritu Sood [Tue, 26 Oct 2021 22:39:48 +0000 (22:39 +0000)]
Merge "Fix resolution of values for Config API"

4 years agoMerge "Update kernel version node selector in nfd test"
Ritu Sood [Mon, 25 Oct 2021 21:09:16 +0000 (21:09 +0000)]
Merge "Update kernel version node selector in nfd test"

4 years agoFix resolution of values for Config API 34/125334/1 0.9.3
Lukasz Rajewski [Mon, 25 Oct 2021 20:21:16 +0000 (22:21 +0200)]
Fix resolution of values for Config API

Issue-ID: MULTICLOUD-1414
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: Ibca5846ffe083bfc4d505c4c3c13efac2c6e2426

4 years agoMerge "Remove usage of deprecated route command"
Ritu Sood [Mon, 25 Oct 2021 18:59:48 +0000 (18:59 +0000)]
Merge "Remove usage of deprecated route command"

4 years agoMerge "Disable known hosts checking in kubevirt test"
Ritu Sood [Mon, 25 Oct 2021 18:58:52 +0000 (18:58 +0000)]
Merge "Disable known hosts checking in kubevirt test"

4 years agoUpdate k8splugin snapshot image 94/125294/1
Lukasz Rajewski [Sun, 24 Oct 2021 20:39:27 +0000 (22:39 +0200)]
Update k8splugin snapshot image

Update image version of k8splugin to 0.9.3-SNAPSHOT

Issue-ID: MULTICLOUD-1294
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: Ib88c1cf319747f8838216b72557aea2724d292a7

4 years agoAdd k8splugin releases file for 0.9.2 93/125293/1
Lukasz Rajewski [Sun, 24 Oct 2021 20:36:33 +0000 (22:36 +0200)]
Add k8splugin releases file for 0.9.2

Issue-ID: MULTICLOUD-1409
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I2302ca0819f5ba6a0e57ea500c037d5fa12aece9

4 years agoUpdate kernel version node selector in nfd test 83/125283/1
Todd Malsbary [Thu, 14 Oct 2021 20:56:25 +0000 (13:56 -0700)]
Update kernel version node selector in nfd test

Issue-ID: MULTICLOUD-1413
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I4f15f987ffb739544fd4c62f8f57ab38864bbbb3

4 years agoRemove usage of deprecated route command 81/125281/1
Todd Malsbary [Thu, 14 Oct 2021 20:35:31 +0000 (13:35 -0700)]
Remove usage of deprecated route command

Issue-ID: MULTICLOUD-1412
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I33fd716f64e04bd214002ccbbd53e1c1e2af234a

4 years agoDisable known hosts checking in kubevirt test 80/125280/1
Todd Malsbary [Tue, 12 Oct 2021 22:48:11 +0000 (15:48 -0700)]
Disable known hosts checking in kubevirt test

Issue-ID: MULTICLOUD-1411
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I45a2df40fa8d1ebb7461454010e8c0713a4e8a90

4 years agoMerge "Allow KuD installer to specify Kubespray 2.14.1 or 2.16.0"
Ritu Sood [Fri, 22 Oct 2021 17:08:02 +0000 (17:08 +0000)]
Merge "Allow KuD installer to specify Kubespray 2.14.1 or 2.16.0"

4 years agoLeverage upper-constraints files to pin all dependencies 94/125194/1
Cédric Ollivier [Thu, 21 Oct 2021 13:10:26 +0000 (15:10 +0200)]
Leverage upper-constraints files to pin all dependencies

It leverages the latest change from lfdocs-conf and the
upper-constraints.txt now centralized in ONAP docs.
In a long run, upperconstraints.os.txt should be removed once ONAP
is synced with OpenStack.

It removes tox and setuptools from requirements as nothing depends on them
(most requirements should be removed except lfdocsconf)

Issue-ID: DOC-765

Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: Id90ff3878230ace3b46f8964621b3fefcd23a556

4 years agoMerge "Expose Update Handlers"
Ritu Sood [Fri, 15 Oct 2021 13:58:21 +0000 (13:58 +0000)]
Merge "Expose Update Handlers"

4 years agoMerge "Fixed Query api filtering of resources for Instance"
Ritu Sood [Fri, 15 Oct 2021 13:57:46 +0000 (13:57 +0000)]
Merge "Fixed Query api filtering of resources for Instance"

4 years agoUpdate k8splugin snapshot image 23/125023/1
Lukasz Rajewski [Fri, 15 Oct 2021 10:18:18 +0000 (12:18 +0200)]
Update k8splugin snapshot image

Update image version of k8splugin to 0.9.2-SNAPSHOT

Issue-ID: MULTICLOUD-1294
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I2e0a7586827b97acc8c17b19e8a112cd59072e69

4 years agoExpose Update Handlers 22/125022/1
Lukasz Rajewski [Fri, 15 Oct 2021 10:11:44 +0000 (12:11 +0200)]
Expose Update Handlers

Expose Update Handlers for Definition, Profile and Config Tmpl

Issue-ID: MULTICLOUD-1410
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: Ibe6fe05458f2af28f3e1ca14a54492a4bae19362

4 years agoAllow KuD installer to specify Kubespray 2.14.1 or 2.16.0 97/114797/5 0.9.2
Todd Malsbary [Wed, 11 Nov 2020 20:13:03 +0000 (12:13 -0800)]
Allow KuD installer to specify Kubespray 2.14.1 or 2.16.0

The default is 2.14.1 (the existing value).  Setting
KUBESPRAY_VERSION=2.16.0 in the installer environment uses the newer
Kubespray version.

The newer Kubespray version installs Kubernetes 1.20.7.  Kubernetes
1.20.7 comes with following caveats:
- The Virtlet addon is disabled; it does not work with 1.20.7.  This
  requires removing the plugin_fw test as well.
- Kubernetes 1.20.7 removed support for basic auth.

Issue-ID: MULTICLOUD-1251
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: Ic8b9fb1f3effc31da58de5bb3768ed9e509d50de

4 years agoFixed Query api filtering of resources for Instance 23/124823/1
Lukasz Rajewski [Mon, 11 Oct 2021 22:16:51 +0000 (00:16 +0200)]
Fixed Query api filtering of resources for Instance

Issue-ID: MULTICLOUD-1409
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: Id91d121fab264ccbe0096c99bcc29c18e7ee3b2b

4 years agoAdd k8splugin releases file for 0.9.1 98/124698/1
Lukasz Rajewski [Wed, 6 Oct 2021 10:55:11 +0000 (12:55 +0200)]
Add k8splugin releases file for 0.9.1

Add k8splugin releases file for 0.9.1

Issue-ID: MULTICLOUD-1345
Issue-ID: MULTICLOUD-1269
Issue-ID: MULTICLOUD-1332
Issue-ID: MULTICLOUD-1397
Issue-ID: MULTICLOUD-1398
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I646833a9b74150e80bc9796391beb9ed7a574b33

4 years agoFixed issue with order of deleted resources 86/124686/1 0.9.1
Lukasz Rajewski [Tue, 5 Oct 2021 12:36:01 +0000 (14:36 +0200)]
Fixed issue with order of deleted resources

For delete operation order of resources is reverse to
the order used for creation

Issue-ID: MULTICLOUD-1398
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I3f34c6000222e82c34f59042e99d2c37a343dfa5

4 years agoMerge "Fixed installation of CRD resources"
Ritu Sood [Mon, 4 Oct 2021 22:39:11 +0000 (22:39 +0000)]
Merge "Fixed installation of CRD resources"

4 years agoMerge "Fix iavf driver build failure"
Ritu Sood [Mon, 4 Oct 2021 22:38:50 +0000 (22:38 +0000)]
Merge "Fix iavf driver build failure"

4 years agoFixed installation of CRD resources 74/124674/2
Lukasz Rajewski [Mon, 4 Oct 2021 19:56:02 +0000 (21:56 +0200)]
Fixed installation of CRD resources

Issue-ID: MULTICLOUD-1397
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: Id8e653f1b5c61278ee2d64da409ac5b0685b36b8

4 years agoMerge "Fix KubeVirt and SR-IOV addon interaction"
Ritu Sood [Mon, 4 Oct 2021 20:51:46 +0000 (20:51 +0000)]
Merge "Fix KubeVirt and SR-IOV addon interaction"

4 years agoFurther fixes for config delete operation 65/124665/1
Lukasz Rajewski [Fri, 1 Oct 2021 07:35:35 +0000 (09:35 +0200)]
Further fixes for config delete operation

The issue was related with insufficient handlijg of
different versions of config vs their delete operation
handled by the plugin.

Issue-ID: MULTICLOUD-1332
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I90d896720fa89ebd66cb3290cdd9401272f5e3fd

4 years agoFix iavf driver build failure 57/124657/2
Todd Malsbary [Fri, 1 Oct 2021 20:51:00 +0000 (13:51 -0700)]
Fix iavf driver build failure

With kernel 4.15.0-159, Ubuntu added the skb_frag_off functions to the
kernel headers.

Issue-ID: MULTICLOUD-1396
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I283d6ea394ac4685be842339acd2a89548295b4f

4 years agoFix for config resources delete with instance delete 38/124538/1
Lukasz Rajewski [Tue, 28 Sep 2021 19:42:24 +0000 (21:42 +0200)]
Fix for config resources delete with instance delete

Issue-ID: MULTICLOUD-1332
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I08a3d623d6f12777d88a168af0cb804c63104887

4 years agoFix KubeVirt and SR-IOV addon interaction 89/124189/3
Todd Malsbary [Thu, 9 Sep 2021 18:24:45 +0000 (11:24 -0700)]
Fix KubeVirt and SR-IOV addon interaction

SR-IOV wants to drain the nodes during reconciliation of SriovNetwork
resources, while KubeVirt wants to keep at least one instance running
at all times via a PodDisruptionBudget.

KubeVirt's behavior is not customizable, so split the addons into
different composite apps that allow finer control of the instantiation
order.

Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I15c5cec3ef524b0b1d60dc201e04157272cbe376

4 years agoUpdate committers status 49/124049/1
Bin Yang [Mon, 13 Sep 2021 02:22:10 +0000 (10:22 +0800)]
Update committers status

Issue-ID: MULTICLOUD-1391

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I66c452989764269d2eafb122c572f997c49a9650

4 years agoFix issue with initial error hiding 09/123809/1
Lukasz Rajewski [Thu, 2 Sep 2021 12:36:20 +0000 (14:36 +0200)]
Fix issue with initial error hiding

Issue-ID: MULTICLOUD-1347
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I0ae4dd0c67e33fb78d4767d2b339467d19e7105f

4 years agoMerge "Add resources field to all addon charts"
Ritu Sood [Wed, 25 Aug 2021 20:10:12 +0000 (20:10 +0000)]
Merge "Add resources field to all addon charts"

4 years agoMerge "Replace virtlet with kubevirt in plugin_fw_v2"
Ritu Sood [Wed, 25 Aug 2021 20:09:58 +0000 (20:09 +0000)]
Merge "Replace virtlet with kubevirt in plugin_fw_v2"

4 years agoUse EMCO logical cloud with addons 35/123335/1
Todd Malsbary [Mon, 16 Aug 2021 21:49:04 +0000 (14:49 -0700)]
Use EMCO logical cloud with addons

The moves the addons from the default namespace into their own, "kud"
namespace.

Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I5476c7634af7affe1b6bbd7d2bf9b5cd7a8206e5

4 years agoReplace virtlet with kubevirt in plugin_fw_v2 39/122939/2
Todd Malsbary [Thu, 22 Jul 2021 21:12:00 +0000 (14:12 -0700)]
Replace virtlet with kubevirt in plugin_fw_v2

Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: Ifd8ae34b8f04da52acc4c3a6a8259d1bcd05616c

4 years agoFix Status API resolution 97/123297/1
Michal Chabiera [Tue, 17 Aug 2021 09:43:31 +0000 (11:43 +0200)]
Fix Status API resolution

Fix Status API resolution

Issue-ID: MULTICLOUD-1372
Signed-off-by: Michal Chabiera <michal.chabiera@orange.com>
Change-Id: I4cc2c95dfe0e8be718e2083fcc328b1e2951f27d

4 years agoAdd resources field to all addon charts 93/123293/1
Todd Malsbary [Mon, 16 Aug 2021 23:54:09 +0000 (16:54 -0700)]
Add resources field to all addon charts

Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I3193fb5983394c6ac9a95dffaaa36074f07cacf6

4 years agoMerge "Update ovn4nfv chart version to support kubevirt"
Ritu Sood [Mon, 16 Aug 2021 21:28:11 +0000 (21:28 +0000)]
Merge "Update ovn4nfv chart version to support kubevirt"

4 years agoMerge "Select vfio-pci deviceType in SR-IOV network"
Ritu Sood [Mon, 16 Aug 2021 21:22:02 +0000 (21:22 +0000)]
Merge "Select vfio-pci deviceType in SR-IOV network"

4 years agoMerge "Enable CPUManager feature gate in kubevirt"
Ritu Sood [Mon, 16 Aug 2021 21:21:15 +0000 (21:21 +0000)]
Merge "Enable CPUManager feature gate in kubevirt"

4 years agoSupport pre/post install/delete hooks   97/122397/14
hthieu [Thu, 1 Jul 2021 18:03:09 +0000 (20:03 +0200)]
Support pre/post install/delete hooks  

Update instance create and delete handler to support pre/post install/delete hooks. 

Add hook.go: to execute and delete hook (base on delete policy). 

Implement watchUntilReady in generic plugin to wait for readiness of hook rss.

Add hook_sorter.go: to sort hook based on weight.

User can define timeout for each type of hooks in overwrite-values. Variable name is k8s-rb-instance-pre-install-timeout (default 60s),
k8s-rb-instance-post-install-timeout (default 600s), k8s-rb-instance-pre-delete-timeout (default 60s) and k8s-rb-instance-post-delete-timeout (600s). This is timeout
for each hook of a hook event (not a total time).

Add recovery capability to continue the execution of instantiation (create or delete) when the plugin stop unexpectedly.
For now, this is disabled because we have data-race issue during test. Will enable when we find the solution.

Add basic test for hooks (in hook_test.go)

Add test for hook in instance_test

For instance get request, we can request for full data by adding query param to the request: full=true.

Issue-ID: MULTICLOUD-1347
Signed-off-by: hthieu <huu_trung.thieu@nokia-bell-labs.com>
Change-Id: If2b4a90831b9bfce1af8b926e4062a7d706bee08

4 years agoFixed issue of leftovers after instace create failure 06/123206/1
Lukasz Rajewski [Mon, 9 Aug 2021 20:44:48 +0000 (22:44 +0200)]
Fixed issue of leftovers after instace create failure

Fixed issue of leftovers after instace create failure

Issue-ID: MULTICLOUD-1269
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I69b4a170d72a482f29fd79ecdfc949f55c70a61a