osm/devops.git
23 months agoRename DEFAULT_IF to OSM_DEFAULT_IF in install_lxd.sh 24/12724/2
garciadeblas [Fri, 25 Nov 2022 09:59:03 +0000 (10:59 +0100)]
Rename DEFAULT_IF to OSM_DEFAULT_IF in install_lxd.sh

Change-Id: I8d82e362792dfc2e3f12415807a20712c560e53a
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
23 months agoPrepare installer, pods and Jenkins for Rel THIRTEEN 23/12723/2
garciadeblas [Thu, 24 Nov 2022 19:16:57 +0000 (20:16 +0100)]
Prepare installer, pods and Jenkins for Rel THIRTEEN

Change-Id: Id7bc562963acdb8facf7c6fb48e9598f0743d92f
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
23 months agoBug 2192 - MON charm to support the MON attribute vm_infra_metrics in osm-mon Charm 12/12712/2
Guillermo Calvino [Wed, 23 Nov 2022 09:31:18 +0000 (10:31 +0100)]
Bug 2192 - MON charm to support the MON attribute vm_infra_metrics in osm-mon Charm

Change-Id: I153b196f67c5b4cf017af15d9a10c8ed98e0dee4
Signed-off-by: Guillermo Calvino <guillermo.calvino@canonical.com>
23 months agoAdding logging around repo 16/12716/2
Mark Beierl [Wed, 23 Nov 2022 14:33:42 +0000 (09:33 -0500)]
Adding logging around repo

Adding some tree commands and lsof to check on the repo directory
as it does not always get removed properly

Change-Id: Ibc23d232c3f0e00e1fe899d91f218030292f5efd
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoFeature 10593 Air-gapped installation. OSM behind proxy 93/12693/14
garciadeblas [Tue, 15 Nov 2022 13:11:56 +0000 (14:11 +0100)]
Feature 10593 Air-gapped installation. OSM behind proxy

Change-Id: Iac74e39fb00a396de1a6a971c35962a6688dad06
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoBug 2193 - Grafana Charm does not get the Prometheus password if it is changed 04/12704/3
Guillermo Calvino [Fri, 18 Nov 2022 12:43:26 +0000 (13:43 +0100)]
Bug 2193 - Grafana Charm does not get the Prometheus password if it is changed

Change-Id: I2d9a72c90a75f85ef10f5985223dda2995d7febd
Signed-off-by: Guillermo Calvino <guillermo.calvino@canonical.com>
2 years agoBug 2192 fixed - MON charm to support the MON attribute vm_infra_metrics 98/12698/2
Guillermo Calvino [Thu, 17 Nov 2022 10:54:31 +0000 (11:54 +0100)]
Bug 2192 fixed - MON charm to support the MON attribute vm_infra_metrics

Change-Id: I0b87faf6433e2628ee4916a76a8f7e367c6456a1
Signed-off-by: Guillermo Calvino <guillermo.calvino@canonical.com>
2 years agoAdd mon-exporter as scrape target in Prometheus 02/12702/4
garciadeblas [Thu, 17 Nov 2022 23:55:44 +0000 (00:55 +0100)]
Add mon-exporter as scrape target in Prometheus

The Prometheus sidecar is expected to generate the scrape targets from
the config map and from the prometheus_jobs in MongoDB. MON is adding
mon-exporter as prometheus_job in MongoDB. There are race conditions in
the start of MON and Prometheus that prevent the sidecar to be aware
of the mon-exporter being added to prometheus_jobs collection in
MongoDB.

This change adds mon-exporter to the default scrape-targets and reconciles
the jobs in Mongo and the jobs in the configmap, prevailing the job in the
configmap if duplicated.

Change-Id: Ib6f1cb89723d7b4942eeb77fd0ea46a0d3493d58
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoLog generated prometheus config file in sidecar 00/12700/1
garciadeblas [Thu, 17 Nov 2022 16:44:23 +0000 (17:44 +0100)]
Log generated prometheus config file in sidecar

Change-Id: Iafefe1d4fc91521ecc0da067c0d54bb6d26baa31
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFeature 10967 New option ngsa to install monitoring pipeline architecture 38/12638/20
garciadeblas [Fri, 4 Nov 2022 22:18:48 +0000 (23:18 +0100)]
Feature 10967 New option ngsa to install monitoring pipeline architecture

This change covers the installation of Apache Airflow
and Prometheus Pushgateway as an experimental option in
the installer.

Changes are the following:
- `installers/full_install_osm.sh`:
  - The installer includes a new option "--ng-sa" to install Airflow and
    Prometheus Pushgateway
  - When the option is used, the script will call `installers/install_ng_sa.sh`
    in turn.
- `installers/install_ng_sa.sh`:
  - This script will install Airflow and Pushgateway in the OSM Kubernetes
    cluster in osm namespace using the helm charts from the respective communities.
- `installers/helm/values/airflow/values.yaml`:
   - File with the values to be used for the installation of Airflow helm chart.
- `docker/Airflow/Dockerfile`:
  - Dockerfile used to build the Airflow image, incorporating the DAG Python files,
    requirements and internal Python libraries used by DAGs from `osm_ngsa.deb`.

Change-Id: I04cb60b25a9a32e42d4a97fac2d1f6abf868b1f7
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFeature 10966 Prometheus recording rules for VNF and NS status 71/12571/14
garciadeblas [Fri, 30 Sep 2022 10:00:27 +0000 (12:00 +0200)]
Feature 10966 Prometheus recording rules for VNF and NS status

The new file ng-prometheus.yaml controls the deployment
of OSM Prometheus when using the new monitoring pipeline
architecture.

This file includes the recording rules necessary to obtain
VNF status and NS status, derived from VM status. Those rules
are stored in file `osm_rules.yml`, as part of configmap prom.

Change-Id: Ibc3aa25e741ef4e680e5775e1d52fa171af0813b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoDevops Cleanup 60/12460/5
Mark Beierl [Tue, 16 Aug 2022 13:57:13 +0000 (09:57 -0400)]
Devops Cleanup

Removes old files from devops that are not maintained and are
confusing to developers looking to use robot tests or other
tools that have been abandoned in this repository.

Change-Id: I1eca6f413477868fd8892463b696c933f55c35e4
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoAdd init loop in prometheus sidecar container 97/12697/1
garciadeblas [Tue, 15 Nov 2022 13:12:48 +0000 (14:12 +0100)]
Add init loop in prometheus sidecar container

Change-Id: Ia6502c0e4ceef5354b27768e8632ea1e58a14076
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFix bug 2143 to track errors during installation of Kubernetes and helm 00/12500/8
garciadeblas [Mon, 29 Aug 2022 09:25:02 +0000 (11:25 +0200)]
Fix bug 2143 to track errors during installation of Kubernetes and helm

Change-Id: I180100f6bc26e1425acd853f51382c0eb2b374d3
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFeature 10961 Addition of external targets to OSM Prometheus 93/12493/8
garciadeblas [Wed, 7 Sep 2022 20:57:53 +0000 (22:57 +0200)]
Feature 10961 Addition of external targets to OSM Prometheus

This commit allows the automatic regeneration of a Prometheus config
file from a sidecar by combining the information in PROMETHEUS_BASE_CONFIG_FILE
and the prometheus_jobs in mongo.

Change-Id: I0246d60ec32733a088ca8590a6445735549bf4de
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoMinor fix in stage3 during push to dockerhub 75/12575/2
garciadeblas [Mon, 3 Oct 2022 14:16:56 +0000 (16:16 +0200)]
Minor fix in stage3 during push to dockerhub

Change-Id: I54fb53d2e58443fe0900c1e0111bebaa6daf9d16
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFixing typo 91/12591/1
Mark Beierl [Fri, 14 Oct 2022 12:42:49 +0000 (08:42 -0400)]
Fixing typo

Change-Id: I6b3c3a5322c7b7cf47d40d26b01e9552c8a2b04a
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoFixing Relations 89/12589/1
Mark Beierl [Thu, 13 Oct 2022 16:55:26 +0000 (12:55 -0400)]
Fixing Relations

Keystone environment variables were not being set, and
the wrong prometheus password was being used

Change-Id: I18e701f4eb9c583edf7905e7404d96bee8d1d8b1
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoRevert juju agent version 88/12588/1
Mark Beierl [Thu, 13 Oct 2022 13:03:04 +0000 (09:03 -0400)]
Revert juju agent version

Back to .34 as some errors occurred

Change-Id: I07a909d6ab62a65fd56134582430d07fa5e4ecac
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoFixing image typo 85/12585/1
Mark Beierl [Wed, 12 Oct 2022 17:05:21 +0000 (13:05 -0400)]
Fixing image typo

With sidecar charms, the image overlay now needs to have
the name of the unit prepended to the image resource.

Change-Id: I4e503137f6d4167904a5654aa7811f84c4374315
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoIncrementing Juju version 84/12584/1
Mark Beierl [Wed, 12 Oct 2022 14:11:59 +0000 (10:11 -0400)]
Incrementing Juju version

Updates agent to 2.9.35

Change-Id: I1f3c1b597552104163fa7acafe310a3ba6d3138e
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoFlake8 compliance in Prometheus/src/app.py 34/12534/4
garciadeblas [Wed, 7 Sep 2022 20:35:53 +0000 (22:35 +0200)]
Flake8 compliance in Prometheus/src/app.py

Change-Id: I1f09864d979d0d300ad85d794e1a3bb9bebacf68
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoGet installer from right URL 69/12569/1
garciadeblas [Mon, 19 Sep 2022 10:29:46 +0000 (12:29 +0200)]
Get installer from right URL

Change-Id: Ic84102e9d07bc32decb10bb5e433121cb0ebb4ff
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoMinor changes in stage3 to get robot reports when using pabot 59/12559/2
garciadeblas [Fri, 23 Sep 2022 07:32:34 +0000 (09:32 +0200)]
Minor changes in stage3 to get robot reports when using pabot

Change-Id: I9e01db3518a9a72ffdc3b3b6df1a6c380e5f0857
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoUpdate lxd version to 5.0 66/12566/3
garciadeblas [Tue, 27 Sep 2022 14:49:31 +0000 (16:49 +0200)]
Update lxd version to 5.0

Change-Id: I8f220a98d5e1eff1e5a621c269d80062d3f3e43d
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoBug 2171: Wait for cloud init 61/12561/1
Mark Beierl [Fri, 23 Sep 2022 18:04:23 +0000 (14:04 -0400)]
Bug 2171: Wait for cloud init

Removes the explicit add of the GPG key from stage 3 as we
no longer use that key

Adds an explicit wait for cloud-init to finish before
proceeding with installation

Fixes bug 2171

Change-Id: I268efa1b0b322444d20ac9641745303b330bfd6a
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoWorkaround for Charmcraft Display Bug 51/12551/2
Mark Beierl [Fri, 16 Sep 2022 20:41:13 +0000 (16:41 -0400)]
Workaround for Charmcraft Display Bug

https://github.com/canonical/charmcraft/issues/834

The same revision can be displayed more then once, so
we just take the first one

Change-Id: Idd51d3b439e9c303ba44084c21998fa195aa586e
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoAdd libmagic1 lib to support OSM client for Ubuntu22 99/12499/3
garciadeblas [Mon, 29 Aug 2022 12:56:02 +0000 (14:56 +0200)]
Add libmagic1 lib to support OSM client for Ubuntu22

Change-Id: I70b9691f7232f8ea7abec13b612302aa456803d5
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoChange OSM sidecar charms charmcraft.yaml 39/12539/4
aticig [Thu, 8 Sep 2022 18:08:42 +0000 (21:08 +0300)]
Change OSM sidecar charms charmcraft.yaml

OSM sidecar charms charmcraft.yaml is changed to indicate base 20.04.

Change-Id: Ibfb5a6cd02b0025075f4109532b70c0bd6796e21
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoAdding resource 47/12547/1
Mark Beierl [Thu, 15 Sep 2022 18:12:55 +0000 (14:12 -0400)]
Adding resource

Turns out we do need to be explicit on image resource
revision to use when publishing a charm to a new
track/branch

Change-Id: Id666eac063e20274f19f70aee4c6d13a3cf6cd3a
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoAdd integration tests for osm-ro charm 03/12503/10
Patricia Reinoso [Tue, 30 Aug 2022 10:09:15 +0000 (10:09 +0000)]
Add integration tests for osm-ro charm

Change-Id: I32ab9194e5d715227b8061f2f96b85222f427761
Signed-off-by: Patricia Reinoso <patricia.reinoso@canonical.com>
2 years agoFixing typo 44/12544/3
Mark Beierl [Wed, 14 Sep 2022 16:56:12 +0000 (12:56 -0400)]
Fixing typo

Typo in check to see if this is a merge job and should skip
the releasenote check
Only rebuild charms if they exist in the module

Change-Id: I7d0280167bf3b20b4059aca7f62ab42daf3cab4b
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoFixing charm name typos 43/12543/2
Mark Beierl [Wed, 14 Sep 2022 00:50:09 +0000 (20:50 -0400)]
Fixing charm name typos

Corrected the name to match the metadata.yaml

Change-Id: I5c82f30e0118517d64f067a2817477d69730e1ae
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoMake PLA optional in charmed installer 16/12516/8
Patricia Reinoso [Thu, 1 Sep 2022 13:18:13 +0000 (15:18 +0200)]
Make PLA optional in charmed installer

PLA is no longer installed by default for
the charmed installer
flag --pla is needed

Change-Id: Ib0ea0691fd53884dc5bf11d067e9f9d9df55c876
Signed-off-by: Patricia Reinoso <patricia.reinoso@canonical.com>
2 years agoFixing snap promotion 42/12542/1
Mark Beierl [Mon, 12 Sep 2022 22:12:55 +0000 (18:12 -0400)]
Fixing snap promotion

Removes some charms from the list as they are not needed
for OSM

Adds an explicit import of the ETSI GPG signing key

Change-Id: I359b3495fa65e869b677af3479cd9a1877f22e6c
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoForce charm build on merge 38/12538/2
Mark Beierl [Thu, 8 Sep 2022 15:56:24 +0000 (11:56 -0400)]
Force charm build on merge

There is no easy method post-merge to determine what
charms need to be rebuilt, so we will rebuild all of
them

Change-Id: I50436a63cf3f63e32105051df8c571dd2dd6d2dd
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoBug 2139: OSM OCI images have 172.21.1.1 as apt proxy 36/12536/2
Mark Beierl [Thu, 8 Sep 2022 09:44:06 +0000 (05:44 -0400)]
Bug 2139: OSM OCI images have 172.21.1.1 as apt proxy

Removes the apt proxy configuration from the final
image layers

Change-Id: I3f2dfd81a04b42d3ee570cdc71ca41da39e621d0
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoAdding build dependencies 37/12537/1
Mark Beierl [Thu, 8 Sep 2022 13:54:38 +0000 (09:54 -0400)]
Adding build dependencies

Prometheus charm no longer builds as it is missing
some dependencies

Change-Id: I6ae44d4dce922ed0bc589a0ddf18b4cc3ae75de0
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoOSM beta bundles and charmed installer to deploy OSM sidecar charms 78/12478/11
aticig [Tue, 23 Aug 2022 12:13:23 +0000 (15:13 +0300)]
OSM beta bundles and charmed installer to deploy OSM sidecar charms

Changing charmed installer to deploy OSM from latest/beta bundle,
updating juju version to 2.9.33.

Change-Id: Ie64bff771f8cb91670588c4e28754304d692b544
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoFeature 10953: Publication of Charms in CI/CD Pipeline 32/12532/4
Mark Beierl [Wed, 7 Sep 2022 13:36:43 +0000 (09:36 -0400)]
Feature 10953: Publication of Charms in CI/CD Pipeline

Adds section to detect changes in charms, and builds
and publishes the charms accordingly

Change-Id: I41bbcdcc0cf919ddbbc83374ccfb3f17c6b7dc37
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoRevert "Adding TCP Dump" 18/12518/3
beierlm [Fri, 2 Sep 2022 14:11:33 +0000 (16:11 +0200)]
Revert "Adding TCP Dump"

This reverts commit b04e188d083711b5983ad2859fc5851f25dd046d.

Reason for revert: ETSI IT discovered root cause and we no longer need this large data with every build.

Change-Id: If998fba52a951041f32694ec0393a82a691824fa
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoFixing hostpaths of RO side car charm, updating osm_lib library. 81/12481/5
aticig [Tue, 23 Aug 2022 22:27:39 +0000 (01:27 +0300)]
Fixing hostpaths of RO side car charm, updating osm_lib library.

Updating osm_libs charm library and update the new version of
library in osm sidecar charms.

Change-Id: If3e526af823d0862e45513bd77dfdae1ef3e2398
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoFix bug 2145: Wrong VCA data in new sidecar MON charm 66/12466/2
Guillermo Calvino [Fri, 19 Aug 2022 07:47:32 +0000 (09:47 +0200)]
Fix bug 2145: Wrong VCA data in new sidecar MON charm

Change-Id: Ib24c54cffd158f6ae4397311becc3769a1cce543
Signed-off-by: Guillermo Calvino <guillermo.calvino@canonical.com>
2 years agoFix bug 2142: Debug mode in Pebble Charms is not working 65/12465/1
Guillermo Calvino [Thu, 18 Aug 2022 09:48:30 +0000 (11:48 +0200)]
Fix bug 2142: Debug mode in Pebble Charms is not working

Change-Id: Icca7e2b3a38b0c9ca4859138931e2c92566fd1d9
Signed-off-by: Guillermo Calvino <guillermo.calvino@canonical.com>
2 years agoAdd juju simplestreams charm 91/12291/5
David Garcia [Thu, 30 Jun 2022 12:37:46 +0000 (14:37 +0200)]
Add juju simplestreams charm

Change-Id: I0690f8cca8561df9573e7fb169df6daaeb51506e
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoAdd VCA Integrator Charm 56/12456/2
Mark Beierl [Fri, 12 Aug 2022 15:13:24 +0000 (11:13 -0400)]
Add VCA Integrator Charm

Change-Id: Ic42bb4f8b682678d3e49aa671e2de9661a84af6c
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoBug 2137: Improve license check 49/12449/2
Mark Beierl [Fri, 12 Aug 2022 01:59:11 +0000 (21:59 -0400)]
Bug 2137: Improve license check

Rather than relying on a case sensitive extension (.jpg, etc)
this change introduces the use of file mime-type to better
determine if a file requires a license or not.

Change-Id: I24492c584c0d124c47d542cb8f8019ae56642682
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoChanging charmed installer to use latest/stable 48/12448/1
aticig [Thu, 11 Aug 2022 10:10:19 +0000 (13:10 +0300)]
Changing charmed installer to use latest/stable

OSM bundles are modified to deploy osm charms from latest/stable.

Change-Id: I0973cf952b9d54de53c1985e0690d24062e160d6
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoChanging access method of NBI in NG-UI charm for Charmed OSM 07/12407/3
Guillermo Calvino [Tue, 26 Jul 2022 11:31:36 +0000 (13:31 +0200)]
Changing access method of NBI in NG-UI charm for Charmed OSM

Change-Id: I6f9571d3dc219cc44b3c1c4f5ad9460b03eeb250
Signed-off-by: Guillermo Calvino <guillermo.calvino@canonical.com>
2 years agoDisabling SSL from internal NBI http server in Charmed OSM 06/12406/4
Guillermo Calvino [Tue, 26 Jul 2022 11:18:37 +0000 (13:18 +0200)]
Disabling SSL from internal NBI http server in Charmed OSM

Change-Id: I53c2f75ba15e5c0217cb5312a6c08ed576fcd6f0
Signed-off-by: Guillermo Calvino <guillermo.calvino@canonical.com>
2 years agoRemoving osm_rovim_fos debug folder path from podspec ro charm 31/12431/3
aticig [Mon, 8 Aug 2022 21:34:44 +0000 (00:34 +0300)]
Removing osm_rovim_fos debug folder path from podspec ro charm

Change-Id: I5a6965425cef6b5d4f6397368f9daa550d85e317
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoAdding VIM refresh period to RO charm config 30/12430/2
aticig [Mon, 8 Aug 2022 12:43:49 +0000 (15:43 +0300)]
Adding VIM refresh period to RO charm config

Refresh period is allowed >=60 or -1. Setting it -1
will disable the updating VM status.

Change-Id: I18a8cd8fd39da16d2d0221dac15324a08da76c2a
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoAdding VIM refresh period to RO charm config 86/12286/8
aticig [Thu, 30 Jun 2022 00:50:07 +0000 (03:50 +0300)]
Adding VIM refresh period to RO charm config

Refresh period is allowed >=60 or -1. Setting it -1
will disable the updating VM status.

Change-Id: I94ec37f68303128ba7af67f14121436005fd9259
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoUpdate maintainers of the bundles 25/12425/1
Patricia Reinoso [Wed, 3 Aug 2022 07:29:25 +0000 (09:29 +0200)]
Update maintainers of the bundles

Change README files

Change-Id: I05e84f62e20dc1124f9cc0e6a67f7744bf1ad46b
Signed-off-by: Patricia Reinoso <patricia.reinoso@canonical.com>
2 years agoAdd RO sidecar charm 72/12272/4
David Garcia [Mon, 27 Jun 2022 10:24:36 +0000 (12:24 +0200)]
Add RO sidecar charm

Change-Id: Id18c049f83c0217577778e13da3dab76d5708ed4
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoLCM sidecar charm 82/12282/5
aticig [Mon, 27 Jun 2022 22:56:51 +0000 (01:56 +0300)]
LCM sidecar charm

Change-Id: Ic03f8a94b8edcfc67aebddfcc27022a130ce8a1b
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoMON Sidecar Charm 89/12289/4
beierlm [Thu, 30 Jun 2022 13:02:30 +0000 (09:02 -0400)]
MON Sidecar Charm

Change-Id: Ie5e73d1c9df9903405edfda7b3c345b1fcc3c164
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoAdd POL side-car charm 84/12284/3
Guillermo Calvino [Wed, 29 Jun 2022 15:40:36 +0000 (17:40 +0200)]
Add POL side-car charm

Change-Id: I5fcad40bf4b62e724c0fce3905409cdbc1f4ac57
Signed-off-by: Guillermo Calvino <guillermo.calvino@canonical.com>
2 years agoBug 2129: Fix logic to always delete VM 15/12415/1
Mark Beierl [Fri, 29 Jul 2022 16:46:18 +0000 (12:46 -0400)]
Bug 2129: Fix logic to always delete VM

Puts the step to extract the container logs into a try/catch block
so that the logic to delete the VM and stop the apache container
will always execute, instead of leaving them behind on error.

Fixes bug 2129

Change-Id: If252670b5374f1665f0e8b649b9fbc16c1ff2705
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoBetter release note check 07/12307/2
beierlm [Tue, 7 Jun 2022 16:21:17 +0000 (12:21 -0400)]
Better release note check

Only checks release notes for incoming patches, not
for merge jobs.

Change-Id: I895136d5369f836ddae66cd49a2911cd4aa945cb
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoJenkins refresh 33/12333/2
Mark Beierl [Thu, 14 Jul 2022 13:37:34 +0000 (09:37 -0400)]
Jenkins refresh

Change the jenkins node label from 'docker'
to 'stage_2' as part of the Jenkins cleanup

Change-Id: Ifdba6e06053a705baadae674dbfd1faa7be57cfc
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoRemoving deprecated files 36/12236/2
beierlm [Wed, 22 Jun 2022 14:12:29 +0000 (10:12 -0400)]
Removing deprecated files

Removing old charm files that are no longer in use

Change-Id: I4aaf35a3708f47bd04beffcba8e2fbd850e1f433
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoPrepare installer and pods for Rel TWELVE 37/12237/2 release-v12.0-start v12.0.0 v12.0.0rc1
garciadeblas [Wed, 22 Jun 2022 14:26:22 +0000 (16:26 +0200)]
Prepare installer and pods for Rel TWELVE

Change-Id: I9fa2bfe6322748b9fbd22d2348b88f8f63df0329
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoUpdate list of modules for tag creation and tag deletion 18/12218/2
garciadeblas [Tue, 21 Jun 2022 08:42:52 +0000 (10:42 +0200)]
Update list of modules for tag creation and tag deletion

Change-Id: I0e486a70512af81d554ac9a843843431c5048b10
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoBug 2080: Store Snapcraft Crdentials as Secret 14/12214/2
beierlm [Fri, 17 Jun 2022 17:18:17 +0000 (17:18 +0000)]
Bug 2080: Store Snapcraft Crdentials as Secret

Changes the credendtials used for the snapstore from being in a
file in jenkins' home directory to being a secret stored in
the Jenkins server itself.

Fixes bug 2080

Change-Id: Icb78ac46c83bdab1176c9316482f713f7bd89e4b
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoAdd Ng-UI sidecar charm 08/12208/2
David Garcia [Thu, 16 Jun 2022 10:31:16 +0000 (12:31 +0200)]
Add Ng-UI sidecar charm

- Fix nbi interface type
- Update Charm Libraries

Change-Id: I93d00b240e0f8f127411677647e04813f9ca412b
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoAdd NBI Charm Library 02/12202/2
David Garcia [Tue, 14 Jun 2022 15:43:09 +0000 (17:43 +0200)]
Add NBI Charm Library

Change-Id: I7dbfa487918b05e0bf98776db1b1cec5586beec7
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoAdd osm-nbi sidecar charm 01/12201/2
David Garcia [Mon, 13 Jun 2022 15:29:53 +0000 (17:29 +0200)]
Add osm-nbi sidecar charm

Change-Id: Ifd0b560cb94c863ade982d3e74a3f5c9f3767657
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoEnable FSMongo for RO for feature 10909 Heal operation for VDU 69/11869/4
garciadeblas [Fri, 8 Apr 2022 10:35:13 +0000 (12:35 +0200)]
Enable FSMongo for RO for feature 10909 Heal operation for VDU

Change-Id: Ie1b4d880418656a3619976c5159eec5cadd420d7
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFix bug 2057: Update lxd-credentials file 55/12155/1
David Garcia [Wed, 1 Jun 2022 11:01:43 +0000 (13:01 +0200)]
Fix bug 2057: Update lxd-credentials file

Change-Id: I41b90c4010bf1dfe553a3d81bddf7bcef5f08b35
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoUpdate keystone version to 18.1 17/12117/1
garciadeblas [Tue, 24 May 2022 08:30:40 +0000 (10:30 +0200)]
Update keystone version to 18.1

Change-Id: I3ce790627d0a942f8df7c5b98a9afe078ffc41ab
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoMake LXD installation optional in Charmed Installer 08/12008/7
aticig [Fri, 6 May 2022 10:46:22 +0000 (13:46 +0300)]
Make LXD installation optional in Charmed Installer

By default lxd cloud is defined, with this change optionally lxd cloud is not
added by passing --small-profile parameter in charmed installer.

Change-Id: I8f3b1816c9f2f43ee6bb84c15b2ce0eda99d691b
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoFix password generation in charmed installer 46/11946/3
David Garcia [Wed, 27 Apr 2022 11:43:42 +0000 (13:43 +0200)]
Fix password generation in charmed installer

Replace base64 format passwords with hex. Base64 passwords can include
chars like "/" which may cause problems when using them in sed-like
commands.

Change-Id: Id522adf40e329d8169853b5614f5ff541a174f68
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoAdd tool upload-installer.sh to upload installer to FTP server 21/11921/3
garciadeblas [Fri, 22 Apr 2022 10:15:45 +0000 (12:15 +0200)]
Add tool upload-installer.sh to upload installer to FTP server

Change-Id: I62e9eaeabb915b7b8da01fe1aa65b03fdd1f8619
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoAdd checking of status of local http server used to serve deb packages 20/11920/3
garciadeblas [Fri, 22 Apr 2022 10:05:15 +0000 (12:05 +0200)]
Add checking of status of local http server used to serve deb packages

Change-Id: Ic624afeee0ec5011e21c10bd0eb110ec78888e1c
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoAdding TCP Dump 37/12037/1
beierlm [Wed, 11 May 2022 18:53:01 +0000 (14:53 -0400)]
Adding TCP Dump

Captures all network traffic (with a maximum packet size) so that if
anything happens during the initial configuration and installation
we can analyze it to determine what is happening in the network.

Change-Id: Ia941d0a8b7610e4ad3a9d1f6ef1b53ac437e6a54
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoUse juju version 2.9.29 09/12009/1
David Garcia [Fri, 6 May 2022 11:17:42 +0000 (13:17 +0200)]
Use juju version 2.9.29

Change-Id: I122eaa9c2c82ddbe00ee529ac3944cc666dc4a52
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoProper tracking of Charmed Install 81/11881/7
beierlm [Wed, 13 Apr 2022 12:19:40 +0000 (08:19 -0400)]
Proper tracking of Charmed Install

Adds installation ID to the charmed path, as well as tracking installation
completion.

Change-Id: Ieffce4d402d6d865a8acb8d8a0c213bee9355199
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoFix permissions of ca-certificates.crt in LCM Dockerfile 47/11947/2
David Garcia [Wed, 27 Apr 2022 11:46:34 +0000 (13:46 +0200)]
Fix permissions of ca-certificates.crt in LCM Dockerfile

Change-Id: Iad8d16d24ab5c6bc545e3470aec8ae05f98b4c68
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoUpdate local-build.sh to fix check of existing qhttp and provide more help 14/11914/2
garciadeblas [Fri, 22 Apr 2022 08:20:08 +0000 (10:20 +0200)]
Update local-build.sh to fix check of existing qhttp and provide more help

Change-Id: Icc23f4dd1f0eaa09b930d1403175fac2eeaf9f14
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoUpdate install_osm.sh to solve the issue with no valid OpenPGP data found 04/11904/3
garciadeblas [Wed, 20 Apr 2022 22:29:02 +0000 (00:29 +0200)]
Update install_osm.sh to solve the issue with no valid OpenPGP data found

Change-Id: Ife80b72991b27c55f2f254b2723a253172e38cc9
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoBug 1991 fixed: modified LCM charm secret name to a standardized one 91/11891/2
Pedro Escaleira [Fri, 15 Apr 2022 13:54:52 +0000 (14:54 +0100)]
Bug 1991 fixed: modified LCM charm secret name to a standardized one

Previously, the LCM charm was creating a Kubernetes secret with the name
`lcm-lcm-secret`, to save the credentials for accessing Mongo, while the
other modules' charms where using a name with the format
`<mod_name>-mongodb-secret` to do so. This modification updates the LCM charm
to create this secret in a compliant way with this name format.

Change-Id: I4d91e760e44d1703f246e605d9b70625967556c5
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
2 years ago Fixes Bug 1993 - Substitutes NTP with Chrony 93/11893/2
João Fonseca [Fri, 15 Apr 2022 15:06:51 +0000 (16:06 +0100)]
 Fixes Bug 1993 - Substitutes NTP with Chrony

Change-Id: I36e0d8a0b5ce18c93e0831b277210d6b275fbcca
Signed-off-by: jpedrofonseca@av.it.pt <jpedrofonseca@ua.pt>
2 years agoFix bug 1563 to archive logs even if OSM Health stage fails 51/10851/9
garciadeblas [Wed, 30 Mar 2022 14:52:59 +0000 (16:52 +0200)]
Fix bug 1563 to archive logs even if OSM Health stage fails

Change-Id: I1ed08f0220673b2d5ef69291d67821060e6ad2ac
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoUpdate stage3 to move NTP to a separate stage with individual sshCommands 80/11780/2
garciadeblas [Wed, 23 Mar 2022 11:27:02 +0000 (12:27 +0100)]
Update stage3 to move NTP to a separate stage with individual sshCommands

Change-Id: I47689b3137d9c18de2f2514ec9b81b2b978208cc
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoSplit stage-build and stage-archive conveniently 79/11779/2
garciadeblas [Wed, 23 Mar 2022 11:25:27 +0000 (12:25 +0100)]
Split stage-build and stage-archive conveniently

Change-Id: Iae36bf59b76f103f4e7d609f13e1efd8914c310b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoBug 1933: Fix ready check 86/11786/1
beierlm [Fri, 25 Mar 2022 16:23:36 +0000 (12:23 -0400)]
Bug 1933: Fix ready check

Changes to juju result in human readable output no longer
being applicable for the deployment completion check.
Changes to use json output instead.

Fixes Bug 1933

Change-Id: I65358c7f472956ed4238a5a61cceb1651d88feff
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoFixing wrong type of input in PLA charm restart policy 58/11758/5
aticig [Thu, 17 Mar 2022 11:26:50 +0000 (14:26 +0300)]
Fixing wrong type of input in PLA charm restart policy

This fix solves the problem that is "pod is not restarted,
although charm mongodb secret config has changed".

Change-Id: Ifbb8a5e0e986563f42739db7b5669f933be6c5aa
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoBug 1912 Update GPG Signing 59/11759/2
beierlm [Thu, 17 Mar 2022 19:42:27 +0000 (15:42 -0400)]
Bug 1912 Update GPG Signing

Update the CLI arguments for GPG signing so that it reads the passphrase
passed in via the CLI.  This is needed as the version of GPG has been updated
and no longer accepts the old CLI arguments.

Fixes bug 1912

Change-Id: I0a850b3f1641edb917624be8fd94be78667d01fd
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoUpdate exporters: migration to CharmHub 43/11743/1
David Garcia [Fri, 11 Mar 2022 15:58:35 +0000 (16:58 +0100)]
Update exporters: migration to CharmHub

Also, added kafka_endpoint config to kafka exporter

Change-Id: I24459e33841da33455b6780a4de2c808ddf30d0b
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoAdding secret overlay in Charmed installer 07/11707/6
aticig [Wed, 23 Feb 2022 21:34:52 +0000 (00:34 +0300)]
Adding secret overlay in Charmed installer

Changing hardcoded password in charmed installation.
This fix will change the default passwords used in charmed installation
for Prometheus, Mariadb and Keystone.

Change-Id: I8a722d1afbe460831da91f893dc414a4fbd9c239
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoRevert "Fix bug 1702 Adding non-root user to run NG-UI" 40/11740/2
beierlm [Thu, 10 Mar 2022 11:48:00 +0000 (12:48 +0100)]
Revert "Fix bug 1702 Adding non-root user to run NG-UI"

This reverts commit b147d7129db4f7cae26a31230af184c958b20683.

Reason for revert: NG-UI Container does not start up due to non-root user

nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1
nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)

Change-Id: Ibc44fdfe57ca576df70f12f5bb868fe9045990b8
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoBug 1903: Better SSH check 38/11738/2
beierlm [Thu, 10 Mar 2022 11:14:38 +0000 (06:14 -0500)]
Bug 1903: Better SSH check

Changes the ssh port ready check from a simple 'is the port open?' to
a full ssh login check to ensure that sshd is actually running on the
target server.

Adds timeout to ssh check

Fixes bug 1903

Change-Id: I8c3f0d8e1ac450726bc3336c00e7fbdf405fe067
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoUpdate K8s Monitoring to support Grafana 8 15/11715/2
limon [Tue, 1 Mar 2022 09:44:53 +0000 (10:44 +0100)]
Update K8s Monitoring to support Grafana 8

Change-Id: Ia109036c8cd54cfbc6af27ff2db094abf83ce9bd
Signed-off-by: limon <alimonj@indra.es>
2 years agoFix Docker Push 17/11717/1
Mark Beierl [Thu, 3 Mar 2022 14:20:19 +0000 (09:20 -0500)]
Fix Docker Push

The variables for module, moduleName, etc are not being created in local
scope, causing the final docker push to re-use the last set value for
the modules.

Change-Id: I635955e5edcc2d94a50cec7749ac87813b5ac6c7
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoFix bug 1702 Adding non-root user to run NG-UI 98/11698/2
preethika.p [Tue, 22 Feb 2022 04:10:41 +0000 (04:10 +0000)]
Fix bug 1702 Adding non-root user to run NG-UI

Change-Id: I8b67e7fb1b0d008187833cfb8c1752a6254f4ccf
Signed-off-by: preethika.p <preethika.p@tataelxsi.co.in>
2 years agoUpdated community installer to use grafana 8.1.1 and prometheus v2.28.1 03/11703/2
garciadeblas [Tue, 22 Feb 2022 13:23:57 +0000 (14:23 +0100)]
Updated community installer to use grafana 8.1.1 and prometheus v2.28.1

Change-Id: If64a82ccd300a512e69156101ee413377aaa8f1b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoCharmHub and new kafka and zookeeper charms 95/11695/6
David Garcia [Mon, 21 Feb 2022 10:48:11 +0000 (11:48 +0100)]
CharmHub and new kafka and zookeeper charms

- Charmed installer uses bundles published in CharmHub
- Use new zookeeper and kafka sidecar-charm
- Changes in the charms to integrate with the new Kafka

Change-Id: Ie59fe1c7c72774b317abe2433fafb28a11472b72
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoAdded parameter <to_tag> to tools/check_changes.sh 87/11687/1
garciadeblas [Thu, 17 Feb 2022 08:28:07 +0000 (09:28 +0100)]
Added parameter <to_tag> to tools/check_changes.sh

Before this commit, only the changes in a branch from a tag to the HEAD
were generated. This commit enables listing the changes in a branch from
a tag to another tag or the HEAD of the branch.

Change-Id: I389a7a06b68dc727910afd417e6a74e4d620deab
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFix 1704 - Adding non-root user to run LCM 75/11675/1
Mark Beierl [Fri, 11 Feb 2022 13:56:32 +0000 (08:56 -0500)]
Fix 1704 - Adding non-root user to run LCM

Change-Id: Ic250be888be01b53a2e71127ddd1d2a5cc0edb03
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>