Update from master 86/13286/3
authorDario Faccin <dario.faccin@canonical.com>
Wed, 15 Feb 2023 08:29:55 +0000 (09:29 +0100)
committerMark Beierl <mark.beierl@canonical.com>
Wed, 26 Apr 2023 22:22:50 +0000 (22:22 +0000)
commite93311d0d1e614b2ee73cc88d8a04fdec217cff8
tree0c68729241b92bc79e9af560af5936b852d80c81
parentb26337f4b399b8d2307002aa7ca98c23e2d3a1ed
Update from master

Merged the following from master into paas branch:

Add OSM-POL integration tests

Change-Id: I140b9eb271c0f03520660b676e075b3f0d62a128
Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
Add OSM-MON integration tests

Change-Id: I3199869880d0c9ce0784dcc623c844dd39f1180a
Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
Bug 2218: Fix command for `juju run-action`

Change-Id: Ife2e8e9f532f3c67c7e2f71d3f77d3e4e7dc5257
Signed-off-by: Daniel Arndt <daniel.arndt@canonical.com>
Update the artifacts stored in stage2

This change updates the patterns of the artifacts to be stored by the
method `archive` in `ci_helper.groovy`.

The pattern "dists/*.gz" and "dists/*Packages" corresponding to index
files for debian repos are no longer required.

The pattern "dist/*.whl" corresponding to Python wheel files is now
required, since it is an additional artifact generated in stage2.

Change-Id: Id87fcb98b2d79a9bd0b64fdaca44da8acd9e1cb1
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
ntegration of OSM Charms with new MongoDB

Change-Id: I9e723dc94ff4c5b7e691179be4e9e3c7b43b6ab0
Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
Charm cleanup

Removal of obsolete charm code

Change-Id: Ifc5e83457cf580d8b236a636328470c527c5c3a9
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
Integration tests for NG UI charm

Change-Id: I3c8958d54aeed84faf1ed2194bc818c1691cf755
Signed-off-by: Daniel Arndt <daniel.arndt@canonical.com>
Fix unit tests for NG-UI charm

Change-Id: If5b98446bb589a3346bcaf1d260a3ad2c5affd3b
Signed-off-by: Daniel Arndt <daniel.arndt@canonical.com>
Set K8s 1.26 in charmed OSM installation

storage is deprecated: replaced by hostpath-storage

Change-Id: I11dd6fc2c18f89c289ad80da696929a7c0236d63
Signed-off-by: Patricia Reinoso <patricia.reinoso@canonical.com>
Remove duplicated lines in Airflow Dockerfile

Change-Id: Iaeb200d498c01e53a7748293d39b6d9a0ba3cfa9
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Fix docker tag in stage3 to coexist with periodic clean-up

Change-Id: I1ce9a5de84e0bcedd7abaecfa0fb6d753b853cb7
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Pin Charmed Operator Framework version for charms

Change-Id: Iff5659151e5678298b72e54b7b22a375bc7b7ebf
Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
Update base image for Airflow to 2.5.2

Change-Id: Id73a0de10b80a4154e1816c5695d3c96de1b03fe
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Update base image for Airflow to support Python 3.10

Change-Id: I4d0bd5be38faff10de4bd2dbaaa9a6010ab12732
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Remove checks for copyright in charms

This patch removes the flake8 copyright plugin and configuration.

Change-Id: I65e362748e16efbc48055370f8f1590d4910c000
Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
Update bundle (standalone and HA) to use MongoDB charm from edge channel

Change-Id: Ie60a105a58c5838db90129f1d6d896907675a405
Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
Update Dockerfile and stage-test script to run tests for charms

This patch updates Dockerfile to use Ubuntu 20.04 as base for building
and testing charms.
This patch updates stage-test script to execute testing for charms.
Tests will be executed only for charms modified by the review.
This patch updates tox configuration for charms setting the python
interpreter to python3.8.

Change-Id: Ib9046b78d6520188cc51ac776fe60ea16479f11c
Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
Adding documentation to OSM bundles

Change-Id: I94b2d7467f4fba40b625acaf545dc20fc6079f8c
Signed-off-by: Guillermo Calvino <guillermo.calvino@canonical.com>
Partial revert of 13026

The *.gz and *Packages are actually used in the creation of
the debian repository for the installers.

Change-Id: I56ba0ce478fba9bcaeb58d6f2abaf235a4eab78a
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
Minor indentation fixes in MON and POL K8s manifests

Change-Id: Ib96f1655df650587fc6255d5f98986e1332bbb2f
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Integration tests for VCA Integrator Operator

Change-Id: I2bc362961edb19f3a0696c779aa9eeaacc361572
Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
LCM integration tests: use RO charm from charmhub instead of building it
locally

Change-Id: I3c1aba9227d9ef5c28f559447da63035214c8ea1
Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
Feature 10981: installation of AlertManager as part of NG-SA

Change-Id: I99bb5785081df4395be336f323d5d4ac3dfd68b6
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Feature 10981: installation of webhook translator as part of NG-SA

Change-Id: I5318460103a6b89b37931bf661618251a3837d04
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Remove unnecessary Makefile related to old docker image build process

Change-Id: Icc304cfe7124979584405ec6635ce2c7a9861eac
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Update tools/local-build.sh to run python http server instead of qhttp

Change-Id: Id9857656e18e1487da7123e076bf00c0b9869d25
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Add Dockerfile for Webhook translator

Change-Id: Id9a787e0fd3fd953b1b2ace190cdca6a77199f27
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Replace OSM_STACK_NAME by OSM_NAMESPACE in installers scripts

Change-Id: I5ce4bdc392fd64b4bed7479768b91adba53c67e4
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Update helm version to 3.11.3

Change-Id: Ic95f32cd1fc311bf93a817da90f48a17d7c2bd13
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Add nohup to http.server in tools/local-build.sh

Change-Id: Ic21b33c22c069d6145ba9d60c7e3cebb75f99664
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Feature 10981: auto-scaling alerts rules for AlertManager

Change-Id: I7e8c3f7b1dd3201b75848ae6264eaa2375a5b06b
Signed-off-by: aguilard <e.dah.tid@telefonica.com>
Feature 10981: fix CMD in webhook Dockerfile

Change-Id: If8332c12c2f065c0a4d195873e24a98aa34b0ed4
Signed-off-by: aguilard <e.dah.tid@telefonica.com>
Feature 10981: remove mon and pol for ng-sa installation

This change removes the deployment of POL for NG-SA installation.
In addition, it deploys a reduced MON, which will only run
mon-dashboarder. A new K8s manifest (ng-mon.yaml )file has been created
for the purpose.

Change-Id: I243a2710d7b883d505ff4b4d012f7d67920f0e73
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Feature 10981: extended Prometheus sidecar to dump alerts rules in config files

Change-Id: Ic454c894b60d0b2b88b6ea81ca35a0bf4d54ebac
Signed-off-by: aguilard <e.dah.tid@telefonica.com>
OSM DB Update Charm

Initial load of code for the osm-update-db-operator charm

Change-Id: I2884249efaaa86f614df6c286a69f3546489b523
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
Improve stage-test script: Split charms list according to tox envlist.

For newer charms the tox envlist includes lint, unit and integration: for these charms execute only lint and unit tests.
For older charms the tox envlist includes black, cover, flake8, pylint, yamllint, safety: for these charms execute all tests.

Change-Id: I6cfbe129440be1665f63572a1879060eccd822fd
Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
248 files changed:
Dockerfile
devops-stages/stage-test.sh
docker/Airflow/Dockerfile
docker/MON/scripts/dashboarder-start.sh [new file with mode: 0644]
docker/Prometheus/Dockerfile
docker/Prometheus/src/app.py
docker/Webhook/Dockerfile [new file with mode: 0644]
docker/mk/Makefile.include [deleted file]
installers/charm/build.sh [deleted file]
installers/charm/bundles/osm-ha/bundle.yaml
installers/charm/bundles/osm/bundle.yaml
installers/charm/interfaces/keystone/interface.yaml [deleted file]
installers/charm/interfaces/keystone/provides.py [deleted file]
installers/charm/interfaces/keystone/requires.py [deleted file]
installers/charm/interfaces/osm-nbi/README.md [deleted file]
installers/charm/interfaces/osm-nbi/copyright [deleted file]
installers/charm/interfaces/osm-nbi/interface.yaml [deleted file]
installers/charm/interfaces/osm-nbi/provides.py [deleted file]
installers/charm/interfaces/osm-nbi/requires.py [deleted file]
installers/charm/interfaces/osm-ro/README.md [deleted file]
installers/charm/interfaces/osm-ro/copyright [deleted file]
installers/charm/interfaces/osm-ro/interface.yaml [deleted file]
installers/charm/interfaces/osm-ro/provides.py [deleted file]
installers/charm/interfaces/osm-ro/requires.py [deleted file]
installers/charm/juju-simplestreams-operator/pyproject.toml
installers/charm/juju-simplestreams-operator/requirements.txt
installers/charm/juju-simplestreams-operator/tox.ini
installers/charm/layers/osm-common/README.md [deleted file]
installers/charm/layers/osm-common/layer.yaml [deleted file]
installers/charm/layers/osm-common/lib/charms/osm/k8s.py [deleted file]
installers/charm/layers/osm-common/metadata.yaml [deleted file]
installers/charm/layers/osm-common/reactive/osm_common.py [deleted file]
installers/charm/lcm/.gitignore [deleted file]
installers/charm/lcm/.jujuignore [deleted file]
installers/charm/lcm/.yamllint.yaml [deleted file]
installers/charm/lcm/README.md [deleted file]
installers/charm/lcm/charmcraft.yaml [deleted file]
installers/charm/lcm/config.yaml [deleted file]
installers/charm/lcm/lib/charms/kafka_k8s/v0/kafka.py [deleted file]
installers/charm/lcm/metadata.yaml [deleted file]
installers/charm/lcm/requirements-test.txt [deleted file]
installers/charm/lcm/requirements.txt [deleted file]
installers/charm/lcm/src/charm.py [deleted file]
installers/charm/lcm/src/pod_spec.py [deleted file]
installers/charm/lcm/tests/__init__.py [deleted file]
installers/charm/lcm/tests/test_charm.py [deleted file]
installers/charm/lcm/tests/test_pod_spec.py [deleted file]
installers/charm/lcm/tox.ini [deleted file]
installers/charm/lint.sh [deleted file]
installers/charm/mon/.gitignore [deleted file]
installers/charm/mon/.jujuignore [deleted file]
installers/charm/mon/.yamllint.yaml [deleted file]
installers/charm/mon/README.md [deleted file]
installers/charm/mon/charmcraft.yaml [deleted file]
installers/charm/mon/config.yaml [deleted file]
installers/charm/mon/lib/charms/kafka_k8s/v0/kafka.py [deleted file]
installers/charm/mon/metadata.yaml [deleted file]
installers/charm/mon/requirements-test.txt [deleted file]
installers/charm/mon/requirements.txt [deleted file]
installers/charm/mon/src/charm.py [deleted file]
installers/charm/mon/src/pod_spec.py [deleted file]
installers/charm/mon/tests/__init__.py [deleted file]
installers/charm/mon/tests/test_charm.py [deleted file]
installers/charm/mon/tests/test_pod_spec.py [deleted file]
installers/charm/mon/tox.ini [deleted file]
installers/charm/nbi/.gitignore [deleted file]
installers/charm/nbi/.jujuignore [deleted file]
installers/charm/nbi/.yamllint.yaml [deleted file]
installers/charm/nbi/README.md [deleted file]
installers/charm/nbi/charmcraft.yaml [deleted file]
installers/charm/nbi/config.yaml [deleted file]
installers/charm/nbi/lib/charms/kafka_k8s/v0/kafka.py [deleted file]
installers/charm/nbi/metadata.yaml [deleted file]
installers/charm/nbi/requirements-test.txt [deleted file]
installers/charm/nbi/requirements.txt [deleted file]
installers/charm/nbi/src/charm.py [deleted file]
installers/charm/nbi/src/pod_spec.py [deleted file]
installers/charm/nbi/tests/__init__.py [deleted file]
installers/charm/nbi/tests/test_charm.py [deleted file]
installers/charm/nbi/tests/test_pod_spec.py [deleted file]
installers/charm/nbi/tox.ini [deleted file]
installers/charm/ng-ui/.gitignore [deleted file]
installers/charm/ng-ui/.jujuignore [deleted file]
installers/charm/ng-ui/.yamllint.yaml [deleted file]
installers/charm/ng-ui/README.md [deleted file]
installers/charm/ng-ui/charmcraft.yaml [deleted file]
installers/charm/ng-ui/config.yaml [deleted file]
installers/charm/ng-ui/metadata.yaml [deleted file]
installers/charm/ng-ui/requirements-test.txt [deleted file]
installers/charm/ng-ui/requirements.txt [deleted file]
installers/charm/ng-ui/src/charm.py [deleted file]
installers/charm/ng-ui/src/pod_spec.py [deleted file]
installers/charm/ng-ui/templates/default.template [deleted file]
installers/charm/ng-ui/tests/__init__.py [deleted file]
installers/charm/ng-ui/tests/test_charm.py [deleted file]
installers/charm/ng-ui/tox.ini [deleted file]
installers/charm/osm-lcm/config.yaml
installers/charm/osm-lcm/lib/charms/data_platform_libs/v0/data_interfaces.py [new file with mode: 0644]
installers/charm/osm-lcm/lib/charms/osm_libs/v0/utils.py
installers/charm/osm-lcm/lib/charms/osm_ro/v0/ro.py
installers/charm/osm-lcm/metadata.yaml
installers/charm/osm-lcm/pyproject.toml
installers/charm/osm-lcm/requirements.txt
installers/charm/osm-lcm/src/charm.py
installers/charm/osm-lcm/tests/integration/test_charm.py
installers/charm/osm-lcm/tests/unit/test_charm.py
installers/charm/osm-lcm/tox.ini
installers/charm/osm-mon/config.yaml
installers/charm/osm-mon/lib/charms/data_platform_libs/v0/data_interfaces.py [new file with mode: 0644]
installers/charm/osm-mon/metadata.yaml
installers/charm/osm-mon/pyproject.toml
installers/charm/osm-mon/requirements.txt
installers/charm/osm-mon/src/charm.py
installers/charm/osm-mon/tests/integration/test_charm.py [new file with mode: 0644]
installers/charm/osm-mon/tests/unit/test_charm.py
installers/charm/osm-mon/tox.ini
installers/charm/osm-nbi/config.yaml
installers/charm/osm-nbi/lib/charms/data_platform_libs/v0/data_interfaces.py [new file with mode: 0644]
installers/charm/osm-nbi/lib/charms/osm_libs/v0/utils.py
installers/charm/osm-nbi/metadata.yaml
installers/charm/osm-nbi/pyproject.toml
installers/charm/osm-nbi/requirements.txt
installers/charm/osm-nbi/src/charm.py
installers/charm/osm-nbi/tests/integration/test_charm.py
installers/charm/osm-nbi/tests/unit/test_charm.py
installers/charm/osm-nbi/tox.ini
installers/charm/osm-ng-ui/pyproject.toml
installers/charm/osm-ng-ui/requirements.txt
installers/charm/osm-ng-ui/src/charm.py
installers/charm/osm-ng-ui/tests/integration/test_charm.py [new file with mode: 0644]
installers/charm/osm-ng-ui/tests/unit/test_charm.py
installers/charm/osm-ng-ui/tox.ini
installers/charm/osm-nglcm/lib/charms/data_platform_libs/v0/data_interfaces.py [new file with mode: 0644]
installers/charm/osm-nglcm/lib/charms/osm_libs/v0/utils.py
installers/charm/osm-nglcm/metadata.yaml
installers/charm/osm-nglcm/requirements.txt
installers/charm/osm-nglcm/src/charm.py
installers/charm/osm-nglcm/src/legacy_interfaces.py [deleted file]
installers/charm/osm-nglcm/tests/unit/test_charm.py
installers/charm/osm-nglcm/tox.ini
installers/charm/osm-pol/config.yaml
installers/charm/osm-pol/lib/charms/data_platform_libs/v0/data_interfaces.py [new file with mode: 0644]
installers/charm/osm-pol/metadata.yaml
installers/charm/osm-pol/pyproject.toml
installers/charm/osm-pol/requirements.txt
installers/charm/osm-pol/src/charm.py
installers/charm/osm-pol/tests/integration/test_charm.py [new file with mode: 0644]
installers/charm/osm-pol/tests/unit/test_charm.py
installers/charm/osm-pol/tox.ini
installers/charm/osm-ro/lib/charms/data_platform_libs/v0/data_interfaces.py [new file with mode: 0644]
installers/charm/osm-ro/metadata.yaml
installers/charm/osm-ro/pyproject.toml
installers/charm/osm-ro/requirements.txt
installers/charm/osm-ro/src/charm.py
installers/charm/osm-ro/tests/integration/test_charm.py
installers/charm/osm-ro/tests/unit/test_charm.py
installers/charm/osm-ro/tox.ini
installers/charm/osm-temporal/lib/charms/osm_libs/v0/utils.py
installers/charm/osm-temporal/src/charm.py
installers/charm/osm-temporal/src/legacy_interfaces.py
installers/charm/osm-temporal/tests/unit/test_charm.py
installers/charm/osm-update-db-operator/.gitignore [new file with mode: 0644]
installers/charm/osm-update-db-operator/.jujuignore [new file with mode: 0644]
installers/charm/osm-update-db-operator/CONTRIBUTING.md [new file with mode: 0644]
installers/charm/osm-update-db-operator/LICENSE [new file with mode: 0644]
installers/charm/osm-update-db-operator/README.md [new file with mode: 0644]
installers/charm/osm-update-db-operator/actions.yaml [new file with mode: 0644]
installers/charm/osm-update-db-operator/charmcraft.yaml [new file with mode: 0644]
installers/charm/osm-update-db-operator/config.yaml [new file with mode: 0644]
installers/charm/osm-update-db-operator/metadata.yaml [new file with mode: 0644]
installers/charm/osm-update-db-operator/pyproject.toml [new file with mode: 0644]
installers/charm/osm-update-db-operator/requirements.txt [new file with mode: 0644]
installers/charm/osm-update-db-operator/src/charm.py [new file with mode: 0755]
installers/charm/osm-update-db-operator/src/db_upgrade.py [new file with mode: 0644]
installers/charm/osm-update-db-operator/tests/integration/test_charm.py [new file with mode: 0644]
installers/charm/osm-update-db-operator/tests/unit/test_charm.py [new file with mode: 0644]
installers/charm/osm-update-db-operator/tests/unit/test_db_upgrade.py [new file with mode: 0644]
installers/charm/osm-update-db-operator/tox.ini [new file with mode: 0644]
installers/charm/pla/.gitignore [deleted file]
installers/charm/pla/.jujuignore [deleted file]
installers/charm/pla/.yamllint.yaml [deleted file]
installers/charm/pla/README.md [deleted file]
installers/charm/pla/charmcraft.yaml [deleted file]
installers/charm/pla/config.yaml [deleted file]
installers/charm/pla/lib/charms/kafka_k8s/v0/kafka.py [deleted file]
installers/charm/pla/metadata.yaml [deleted file]
installers/charm/pla/requirements-test.txt [deleted file]
installers/charm/pla/requirements.txt [deleted file]
installers/charm/pla/src/charm.py [deleted file]
installers/charm/pla/tests/__init__.py [deleted file]
installers/charm/pla/tests/test_charm.py [deleted file]
installers/charm/pla/tox.ini [deleted file]
installers/charm/pol/.gitignore [deleted file]
installers/charm/pol/.jujuignore [deleted file]
installers/charm/pol/.yamllint.yaml [deleted file]
installers/charm/pol/README.md [deleted file]
installers/charm/pol/charmcraft.yaml [deleted file]
installers/charm/pol/config.yaml [deleted file]
installers/charm/pol/lib/charms/kafka_k8s/v0/kafka.py [deleted file]
installers/charm/pol/metadata.yaml [deleted file]
installers/charm/pol/requirements-test.txt [deleted file]
installers/charm/pol/requirements.txt [deleted file]
installers/charm/pol/src/charm.py [deleted file]
installers/charm/pol/src/pod_spec.py [deleted file]
installers/charm/pol/tests/__init__.py [deleted file]
installers/charm/pol/tests/test_charm.py [deleted file]
installers/charm/pol/tests/test_pod_spec.py [deleted file]
installers/charm/pol/tox.ini [deleted file]
installers/charm/release_edge.sh [deleted file]
installers/charm/ro/.gitignore [deleted file]
installers/charm/ro/.jujuignore [deleted file]
installers/charm/ro/.yamllint.yaml [deleted file]
installers/charm/ro/README.md [deleted file]
installers/charm/ro/charmcraft.yaml [deleted file]
installers/charm/ro/config.yaml [deleted file]
installers/charm/ro/lib/charms/kafka_k8s/v0/kafka.py [deleted file]
installers/charm/ro/metadata.yaml [deleted file]
installers/charm/ro/requirements-test.txt [deleted file]
installers/charm/ro/requirements.txt [deleted file]
installers/charm/ro/src/charm.py [deleted file]
installers/charm/ro/src/pod_spec.py [deleted file]
installers/charm/ro/tests/__init__.py [deleted file]
installers/charm/ro/tests/test_charm.py [deleted file]
installers/charm/ro/tests/test_pod_spec.py [deleted file]
installers/charm/ro/tox.ini [deleted file]
installers/charm/update-bundle-revisions.sh [deleted file]
installers/charm/vca-integrator-operator/charmcraft.yaml
installers/charm/vca-integrator-operator/pyproject.toml
installers/charm/vca-integrator-operator/requirements.txt
installers/charm/vca-integrator-operator/tests/integration/test_charm.py
installers/charm/vca-integrator-operator/tox.ini
installers/charmed_install.sh
installers/docker/osm_pods/mon.yaml
installers/docker/osm_pods/ng-mon.yaml [new file with mode: 0644]
installers/docker/osm_pods/ng-prometheus.yaml
installers/docker/osm_pods/pol.yaml
installers/docker/osm_pods/webhook-translator.yaml [new file with mode: 0644]
installers/full_install_osm.sh
installers/helm/values/airflow-values.yaml
installers/helm/values/alertmanager-values.yaml [new file with mode: 0644]
installers/install_juju.sh
installers/install_kubeadm_cluster.sh
installers/install_ngsa.sh
installers/uninstall_osm.sh
jenkins/ci-pipelines/ci_helper.groovy
jenkins/ci-pipelines/ci_stage_2.groovy
jenkins/ci-pipelines/ci_stage_3.groovy
tools/local-build.sh