osm/devops.git
2 years agoBug 1912 Update GPG Signing 61/11761/1 v11.0.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>
(cherry picked from commit 0678de06317f49da496226587772a23635e3728c)

2 years agoUpdate K8s Monitoring to support Grafana 8 19/11719/1
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>
(cherry picked from commit 00d428d1e9803b74c3044c1d5c627b04dc9de358)

2 years agoUse OSM bundles from CharmHub 04/11704/3
David Garcia [Tue, 22 Feb 2022 19:14:13 +0000 (20:14 +0100)]
Use OSM bundles from CharmHub

Change-Id: I5e055b0558c445deeb2b6df9fad4e6a42fe25544
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoRemove old mongo K8s manifest file and references in the installer 59/11659/2
garciadeblas [Thu, 10 Feb 2022 02:11:50 +0000 (03:11 +0100)]
Remove old mongo K8s manifest file and references in the installer

Change-Id: Ib1f01f09ca2e23eb9727556466f0b106cb70109c
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoMinor updates in install_osm.sh to avoid warnings 58/11658/2
garciadeblas [Thu, 10 Feb 2022 00:43:59 +0000 (01:43 +0100)]
Minor updates in install_osm.sh to avoid warnings

Change-Id: I22f97f551bcefc101608320e90f829bffa1a622f
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoRemove juju controller creation for LXD 57/11657/2
garciadeblas [Fri, 28 Jan 2022 11:22:50 +0000 (12:22 +0100)]
Remove juju controller creation for LXD

Change-Id: I3ca675ab60a702dea344374656f34ebc310ea87b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoMoved snapd installation sooner in the installer 56/11656/2
garciadeblas [Fri, 28 Jan 2022 10:25:18 +0000 (11:25 +0100)]
Moved snapd installation sooner in the installer

This changes moves the check of snapd package sooner in the installer,
and installs it if missing. It also modifies check_packages function
so that the output is not redirected to /dev/null. Finally, some echos
were added to know the progress of the check.

Change-Id: I3f09af72542ae7e58d923155d092abb44f292c44
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoBug 1531: Check for packages 55/11655/2
beierlm [Tue, 7 Dec 2021 21:02:22 +0000 (16:02 -0500)]
Bug 1531: Check for packages

Fixes logic to check for packages.  Originally based on dpkg -l, which could
return packages that were once installed, then removed.  Instead a new function
has been created that takes a list of packages to check and uses dpkg -L, which
will return an error if a package is not, or no longer, installed

Fixes bug 1531

Change-Id: Ie6a92a4211a0ec0ecc5b3d08166dad6c5d3a1134
Signed-off-by: beierlm <mark.beierl@canonical.com>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoAdd verbosity and debug mode to juju bootstrap 54/11654/2
garciadeblas [Fri, 28 Jan 2022 11:17:53 +0000 (12:17 +0100)]
Add verbosity and debug mode to juju bootstrap

Change-Id: Iff1ccfa88acabf0097dc30eb8d6cfcd6a241d619
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoAdded ctrl_c function to trap user installation interruptions 53/11653/2
garciadeblas [Fri, 28 Jan 2022 16:15:39 +0000 (17:15 +0100)]
Added ctrl_c function to trap user installation interruptions

Change-Id: Icfe5577c455ed1058c8542d2afa1d663a1e7dcc6
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoUpdate K8s Monitoring 52/11652/2
limon [Wed, 26 Jan 2022 09:49:39 +0000 (10:49 +0100)]
Update K8s Monitoring

Change-Id: Id45a7ed2237fcdce1b13042cd67bddb5f12e9def
Signed-off-by: limon <alimonj@indra.es>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFixed installation issue with kube-flannel.yml 51/11651/2
garciadeblas [Fri, 21 Jan 2022 12:57:06 +0000 (13:57 +0100)]
Fixed installation issue with kube-flannel.yml

The installation of the local K8s cluster fails when kube-flannel.yml
is not found in the temp folder. The error that we see in the installation is
"error reading [/tmp/flannel.*****]: recognized file extensions are [.json .yaml .yml]"

This commit updates the function deploy_cni_provider to remove the silent
output when getting kube-flannel.yml. In addition, it adds several retries on error.
Finally, the error message has been modified to be more explicit about the error.

Change-Id: Ie979dc599d959bed778b3bd1e2c69257fcb51f63
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoSilent output when deleting ns osm in k8s cluster 50/11650/2
garciadeblas [Wed, 12 Jan 2022 08:58:50 +0000 (09:58 +0100)]
Silent output when deleting ns osm in k8s cluster

The installation of the local k8s cluster with install_kubeadm_cluster.sh
raised an error message when deleting the namespace "osm". That NS is
deleted as a previous step to the deployment of OSM pods, just to make sure
that we start from a clean NS.

In principle, the error from kubectl should appear always in clean
installations. For that reason, the output of the command is redirected
to /dev/null to avoid confusion for the end user.

Change-Id: I4e38cb2c727683215d8b331a4780feeec98fbe5d
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFix bug 1708 - Adding non-root user to run PLA 77/11677/1
sousaedu [Tue, 9 Nov 2021 23:59:54 +0000 (23:59 +0000)]
Fix bug 1708 - Adding non-root user to run PLA

Change-Id: I4c22ceb50c953f75654670fdd1b35e55e90db280
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoFix bug 1703 - Adding non-root user to run NBI 69/11669/2
sousaedu [Thu, 30 Sep 2021 13:07:57 +0000 (14:07 +0100)]
Fix bug 1703 - Adding non-root user to run NBI

The idea behind this is to run NBI as a non-root user for security
reasons. This required the creation of a new user in the container
image and setting permissions acordingly.

Change-Id: I9c8105b9b648c79643940994e51815118b9bbbe7
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
(cherry picked from commit a8e75d03f48d0a7d7ae7c18f8151ef2e244a787d)

2 years agoFix bug 1705 - Adding non-root user to run RO 71/11671/2
sousaedu [Thu, 14 Oct 2021 02:55:25 +0000 (03:55 +0100)]
Fix bug 1705 - Adding non-root user to run RO

Change-Id: I3b5ccbd3efe4284996c81ebc65fc4adf53e9914e
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
(cherry picked from commit 0047e36f32b7ac8bf16fdfc8c142ea153f44d32a)

2 years agoFix bug 1707 - Adding non-root user to run POL 70/11670/2
sousaedu [Thu, 14 Oct 2021 14:16:59 +0000 (15:16 +0100)]
Fix bug 1707 - Adding non-root user to run POL

Change-Id: I4b3df48e7c277de7ccd91b4a017577942ec4926f
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
(cherry picked from commit ce5d704ed7b2ea168d0a5d74e6d3558d5a262f3a)

2 years agoFix bug 1704 - Adding non-root user to run LCM 67/11667/2
sousaedu [Thu, 14 Oct 2021 02:09:29 +0000 (03:09 +0100)]
Fix bug 1704 - Adding non-root user to run LCM

Change-Id: I871b4e73136206b39b8d4d4f32c2ee457797de0c
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoFix bug 1706 - Adding non-root user to run MON 68/11668/2
sousaedu [Thu, 14 Oct 2021 12:37:51 +0000 (13:37 +0100)]
Fix bug 1706 - Adding non-root user to run MON

Change-Id: I66e7cab3f4707dbe05e17749abd154e05c852888
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
(cherry picked from commit 62191f4e3c7375e896aa8429c946d3fb42b727fc)

2 years agoFix bug 1709 - Adding non-root user to run Keystone 66/11666/1
sousaedu [Fri, 21 Jan 2022 14:01:53 +0000 (14:01 +0000)]
Fix bug 1709 - Adding non-root user to run Keystone

Change-Id: I2a9dadb36039fa3b2e61c8c055a4f86e5c3fd172
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
(cherry picked from commit 9d1d0c13292004487f57c7fd1ed8fb23d604725a)

2 years agoUpdate version of helm3 for OSM community installer 49/11649/1
garciadeblas [Tue, 14 Dec 2021 17:02:30 +0000 (18:02 +0100)]
Update version of helm3 for OSM community installer

Change-Id: Ia3c7c957d3283d9b9761d5585f5f04fa4282c7bc
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoBug 1841: LTS Support Helm 18/11618/9
aticig [Wed, 2 Feb 2022 09:09:05 +0000 (12:09 +0300)]
Bug 1841: LTS Support Helm

Upgrading k8s version to 1.23, juju version to 2.9.22:,
kubectl version to 1.23, helm version to 3.7.2.

Change-Id: I651e246f5b72707bcb99cc6fff4f1b418fcd826c
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoBug 1879 Speed up Artifactory search 30/11630/1
beierlm [Fri, 4 Feb 2022 16:14:33 +0000 (11:14 -0500)]
Bug 1879 Speed up Artifactory search

The addition of the build parameter to the Artifactory search results
in what would appear to be a full index scan, taking over 2 minutes
to complete.  With this change, we still get the exact artifact
we need, however the search completes in less than 1 second.

Fixes Bug 1879

Change-Id: Ibe5987e06cac39e3651b9dbec61993c0cfb567b8
Signed-off-by: beierlm <mark.beierl@canonical.com>
(cherry picked from commit 499b442f67119589220a1ff144e3b26a9b7714ed)

2 years agoBug 1876: Artifactory times out 25/11625/2 v11.0.1
beierlm [Tue, 1 Feb 2022 21:46:40 +0000 (16:46 -0500)]
Bug 1876: Artifactory times out

Added a lockable resource semaphore around queries to artifactory
to prevent overloading the server.

Fixes Bug 1876

Change-Id: I17979e7fa5d2ed2405873e7dda588d7104741817
Signed-off-by: beierlm <mark.beierl@canonical.com>
(cherry picked from commit f83c20ab3304291aca8224ebe2dd88b58b5dc1b4)

2 years agoBug 1841: LTS Support 70/11570/2
beierlm [Wed, 26 Jan 2022 15:18:21 +0000 (10:18 -0500)]
Bug 1841: LTS Support

Updates base to Ubuntu 20.04
Updates python to 3.8
Updates pip dependencies to more recent versions
Adds apt cache to stage 2 dockerfile
Change stage 3 base image to Ubuntu 20.04 so we can use
python3.8

Fixes bug 1841

Change-Id: I442d0ecf09f033946bbbc3301fd8de54382a4195
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoRemoving Fog05 VIM RO Plugin 96/11496/1
sousaedu [Mon, 13 Dec 2021 22:34:01 +0000 (22:34 +0000)]
Removing Fog05 VIM RO Plugin

Change-Id: Iaff583362ed0421318ae79d0010e81ee5d974de4
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoFix bug 1818 to report correctly osm_unhealthy 77/11477/1
garciadeblas [Fri, 3 Dec 2021 10:37:40 +0000 (11:37 +0100)]
Fix bug 1818 to report correctly osm_unhealthy

Change-Id: I5ca8b030f9124a35325876a5e88752483f668f50
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFix bug 1809 - Disabling RO OpenNebula plugin 52/11452/1 v11.0.0 v11.0.0rc2
sousaedu [Mon, 29 Nov 2021 09:46:14 +0000 (09:46 +0000)]
Fix bug 1809 - Disabling RO OpenNebula plugin

Change-Id: I2d7a6256249ff4b2688b6fc5126ffe435757cfe1
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
(cherry picked from commit 630b40ab807db159acb4e922cd627f95e02e358b)

2 years agoFix propagation of failures in installer scripts 23/11423/1
garciadeblas [Thu, 25 Nov 2021 10:57:18 +0000 (11:57 +0100)]
Fix propagation of failures in installer scripts

Change-Id: Ie83a4c9284ea63b40c37975da261634f930b6317
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agobugfix: prometheus config loop to avoid crashes during jobs collection changes listening 18/11418/1
bravof [Tue, 23 Nov 2021 20:21:58 +0000 (17:21 -0300)]
bugfix: prometheus config loop to avoid crashes during jobs collection changes listening

Change-Id: Ieb4e4caec3fe7f89f6bf0b4fc400ff0db88f3c4c
Signed-off-by: bravof <fbravo@whitestack.com>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agofix(prometheus): decoupling prometheus/lcm modules. Depends on changes made to lcm 17/11417/1
bravof [Wed, 21 Oct 2020 19:58:50 +0000 (16:58 -0300)]
fix(prometheus): decoupling prometheus/lcm modules. Depends on changes made to lcm

Change-Id: I52b26344eac166a4b76523986c7900078342eb5b
Signed-off-by: bravof <fbravo@whitestack.com>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoPrevent tests Dockerfile to use cache of osm-packages repo 15/11415/1
garciadeblas [Wed, 24 Nov 2021 17:28:51 +0000 (18:28 +0100)]
Prevent tests Dockerfile to use cache of osm-packages repo

Change-Id: I867590f408bb401f7bd66785645f7d185ce6861e
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFix bug 1800: Add hostpath mount option in OSM charms 81/11381/2
David Garcia [Thu, 18 Nov 2021 15:45:05 +0000 (16:45 +0100)]
Fix bug 1800: Add hostpath mount option in OSM charms

Change-Id: Ie5ef484759bd37d6cc8dcea0f32573e2a7dd3a11
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoMove NG-UI Dockerfile to use a build stage 69/11369/1 v11.0.0rc1
sousaedu [Thu, 18 Nov 2021 13:15:38 +0000 (13:15 +0000)]
Move NG-UI Dockerfile to use a build stage

Change-Id: I23685d6fea5a61048b367981468a91fcd8de0473
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoFix bug 1770: pin osmclient to v11.0 track (charmed installer) 54/11354/2
David Garcia [Mon, 15 Nov 2021 12:35:48 +0000 (13:35 +0100)]
Fix bug 1770: pin osmclient to v11.0 track (charmed installer)

Change-Id: I4d14be3de36f6ca530ebcf561b5484641cc2b4e2
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoFix bug 1778 - Adding openstack client to Keystone dockerfile 65/11365/1
sousaedu [Tue, 16 Nov 2021 23:16:09 +0000 (23:16 +0000)]
Fix bug 1778 - Adding openstack client to Keystone dockerfile

Change-Id: Ia4d8fc323a8d9b8a64810b676d4cb206d5fcd01f
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoAdd NTP Sync 61/11361/1
beierlm [Tue, 16 Nov 2021 15:27:42 +0000 (10:27 -0500)]
Add NTP Sync

Adds ntp to the new VM and forces a full clock sync to avoid
any drift between Jenkins and ETSI VIM

Fixes bug 1774

Change-Id: I7cec55cdedcf53f6206ee54959dea4f8f1cfeb65
Signed-off-by: beierlm <mark.beierl@canonical.com>
(cherry picked from commit b59bd0dbeec7956585b656606ae03f8f294c5d45)

2 years agoFix bug 1765: update to latest charm revisions (Charmed installer) 17/11317/3
David Garcia [Tue, 9 Nov 2021 07:45:49 +0000 (08:45 +0100)]
Fix bug 1765: update to latest charm revisions (Charmed installer)

The new revisions include:
 - fixed security issues: secret management
 - Authentication in prometheus and grafana
 - Fix n2vc path in LCM charm (debug-mode)

Change-Id: I4ace5a2e8e7f96883e439047dff739c8a9b40870
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoFix bug 1764: Set 11 as the default tag in charmed installer 18/11318/3
David Garcia [Tue, 9 Nov 2021 07:49:14 +0000 (08:49 +0100)]
Fix bug 1764: Set 11 as the default tag in charmed installer

Change-Id: I665b08f11bb2134eec85ca236bd48c3b05a4678b
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoFix bug 1754: update keystone dockerfile to ubuntu 20.04 27/11327/3
bravof [Wed, 20 Oct 2021 14:48:16 +0000 (11:48 -0300)]
Fix bug 1754: update keystone dockerfile to ubuntu 20.04

Change-Id: I79eddf6085d27823ea67561113bdba9593ad6a41
Signed-off-by: bravof <fbravo@whitestack.com>
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoFix bug 1756 to send installation_id in track function 35/11335/1
garciadeblas [Thu, 11 Nov 2021 08:54:38 +0000 (09:54 +0100)]
Fix bug 1756 to send installation_id in track function

Change-Id: I798ae4be20cd7fc267a30c5aeda12c20e9beb1f0
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFix bug 1750 to add GCP connector to RO Dockerfile and RO charm 26/11326/1
garciadeblas [Tue, 9 Nov 2021 22:30:47 +0000 (23:30 +0100)]
Fix bug 1750 to add GCP connector to RO Dockerfile and RO charm

Change-Id: I00237ab83be75629bcef93c7cbfd6f132f85c3f3
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFix bug 1747 to allow installation without docker proxy 15/11315/1
garciadeblas [Mon, 8 Nov 2021 22:02:01 +0000 (23:02 +0100)]
Fix bug 1747 to allow installation without docker proxy

Change-Id: I900f1acf9656ca79b96dac60aad4a99c7b1576af
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFix bug 1744 to update installers and manifests for Release ELEVEN 12/11312/1
garciadeblas [Mon, 8 Nov 2021 11:40:18 +0000 (12:40 +0100)]
Fix bug 1744 to update installers and manifests for Release ELEVEN

Change-Id: I40af57c22e28e6b4a22d25edb8e0a0110f251093
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFeature 10892/10893/8460: refactor of OSM installer 81/11281/15 release-v11.0-start
garciadeblas [Wed, 20 Oct 2021 20:16:17 +0000 (22:16 +0200)]
Feature 10892/10893/8460: refactor of OSM installer

This change covers:

- Feature 10892. Installation of OSM on top of Ubuntu20.04. Changes
  are mostly in full_install_osm.sh and are related to the use of new
  versions of kubeadm and docker-ce. In addition, changes in Jenkins
  groovy files have been done to indicate the base image to be used,
  either 18.04 or 20.04.
- Feature 10893. Better tracking of installation. The code for tracking
  in in common/track. There is a function track that it is called in
  the different steps of the installation.
- Feature 8460: Cleanup old code in full_install_osm.sh. The script
  full_install_osm.sh has been split in different scripts performing
  specific tasks, thus simplifying the installer: install_docker_ce.sh,
  install_juju.sh and install_kubeadm_cluster.sh.

Change-Id: I1e388ec56285337eaf34f68470aa5a9b23ff45ff
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoUpdate juju agent to 2.9.17 05/11305/2
David Garcia [Thu, 4 Nov 2021 08:23:54 +0000 (09:23 +0100)]
Update juju agent to 2.9.17

Change-Id: I669943ab80eb494e0b5c59089d26a9434e4a53fd
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoFix bug 1726: fix metallb ip range 01/11301/2
David Garcia [Wed, 3 Nov 2021 10:31:18 +0000 (11:31 +0100)]
Fix bug 1726: fix metallb ip range

Metallb was complaining when indicating an IP range of a single IP.
This commit changes the IP range "<IP>-<IP>" to CIDR format: "<IP>/32"

Change-Id: If879fab2b272927a6a8ffda00f9c49f218224ac0
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoUpdated the Tests container's Dockerfile to include the conformance-tests folder 75/11275/1
veleza [Tue, 19 Oct 2021 14:43:44 +0000 (14:43 +0000)]
Updated the Tests container's Dockerfile to include the conformance-tests folder

Change-Id: I1c6eaf4f32b949adf2586a41210e2f778a9a9c2e
Signed-off-by: veleza <axel.velez@etsi.org>
2 years agoMinor fix in prepare_pods.sh (charmed osm debug-mode) 52/11252/2
David Garcia [Mon, 11 Oct 2021 17:52:33 +0000 (19:52 +0200)]
Minor fix in prepare_pods.sh (charmed osm debug-mode)

Change-Id: Id6df73247e4227607b6ee5475d5ab9c6e06f056a
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years ago(charmed-osm) Add auth to prometheus and update kafka/zk 53/11253/2
David Garcia [Mon, 11 Oct 2021 17:56:53 +0000 (19:56 +0200)]
(charmed-osm) Add auth to prometheus and update kafka/zk

- Authentication to prometheus:
  - Update prometheus relation to provide auth credentials (user/pass)
  - Update grafana datasource to include credentials to prometheus
- Update kafka and zookeeper charms:
  - Add support for the charms to talk to the new kafka charm
  - Add kafka and zookeeper charms in local bundle

Change-Id: Ifb83769583178f3a2069ae6756aa430ec69eecce
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoFixing LDAP bool variable convertion for secret population 45/11245/1
sousaedu [Fri, 8 Oct 2021 05:52:29 +0000 (06:52 +0100)]
Fixing LDAP bool variable convertion for secret population

Change-Id: I222213dbf0b738e9e54916e3568baa9fb5738e16
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoFixing LDAP variable convertion for secret population 40/11240/1
sousaedu [Thu, 7 Oct 2021 13:18:51 +0000 (14:18 +0100)]
Fixing LDAP variable convertion for secret population

Change-Id: Ifd3371a6e456d4dd56df4f40b75e0bc441418617
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoFix bug 1680 to run stage-test only if changes in installer charms 31/11231/4
garciadeblas [Sun, 3 Oct 2021 22:03:32 +0000 (00:03 +0200)]
Fix bug 1680 to run stage-test only if changes in installer charms

Change-Id: Ibf372557be7de1ce40461315b0fdb40f8f0ad1ca
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoUpdate K8s version for community installer to 1.20.11 09/11109/16
garciadeblas [Fri, 13 Aug 2021 15:13:25 +0000 (17:13 +0200)]
Update K8s version for community installer to 1.20.11

Change-Id: I835da2f886f5bbf9eb342d52362a8a005710c255
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoPin version of LXD to latest LTS 34/11234/1
David Garcia [Tue, 5 Oct 2021 14:13:08 +0000 (16:13 +0200)]
Pin version of LXD to latest LTS

Change-Id: I31f5540e0d8991006e8b3767a94fe4126945cafb
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoAdd web ui authentication 26/11226/2
David Garcia [Thu, 30 Sep 2021 08:36:33 +0000 (10:36 +0200)]
Add web ui authentication

Change-Id: I29c61f84dd8443a650cf45a4a2dfcc99efed1106
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoPin pylint to 2.10.2 in osm charms 25/11225/2
David Garcia [Thu, 30 Sep 2021 08:35:54 +0000 (10:35 +0200)]
Pin pylint to 2.10.2 in osm charms

Change-Id: I238d04075c56ed6544df6d91eef16fc1a6b545c4
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoClean-up of apt information in docker layers 11/11211/3
garciadeblas [Thu, 23 Sep 2021 15:43:15 +0000 (17:43 +0200)]
Clean-up of apt information in docker layers

Change-Id: I25949f4e61d327f61dfee8b7a9c3115738c445ac
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoAdding security_context flag to charms 16/11216/3
sousaedu [Wed, 29 Sep 2021 00:53:30 +0000 (01:53 +0100)]
Adding security_context flag to charms

security_context is set to false while we don't have new
container images.

Change-Id: I99cf8c1ab7446811887445d596f416f7e79574e7
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoClean-up of jenkins and common folder 10/11210/2
garciadeblas [Wed, 22 Sep 2021 19:53:40 +0000 (21:53 +0200)]
Clean-up of jenkins and common folder

Change-Id: I9cfdce4355f4fe7526f2e6b7da885f47b3a5f4e9
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoAdd secret-management in Charmed OSM 58/11158/8
David Garcia [Wed, 8 Sep 2021 15:48:40 +0000 (17:48 +0200)]
Add secret-management in Charmed OSM

Change-Id: Ic5714571c673e4d82e3a905daa57f631640b94bb
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoUpdate MON and LCM Dockerfile to install ca-certificates in the appropriate docker... 90/11190/1
garciadeblas [Wed, 22 Sep 2021 16:11:54 +0000 (18:11 +0200)]
Update MON and LCM Dockerfile to install ca-certificates in the appropriate docker layer

Change-Id: I5b60040f9b0afbde05309ea93aeb92d879d24591
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFix bug 1665 to remove LW-UI from newtag.sh 81/11181/1
garciadeblas [Wed, 15 Sep 2021 11:42:34 +0000 (13:42 +0200)]
Fix bug 1665 to remove LW-UI from newtag.sh

The commit removes LW-UI from the set of repos where the tag
will be created.

It also checks whether the branch exists or not, skipping the tagging
if the branch does not exist in the repo.

Change-Id: I2d48ab18fa20708ff2697b2c0d9c2ef5c9fba7b9
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoMinor fixes and enhancements in local-build.sh 13/11013/10
David Garcia [Wed, 16 Jun 2021 08:37:34 +0000 (10:37 +0200)]
Minor fixes and enhancements in local-build.sh

- Typo in the --help: --install-local-regitstry --> --install-local-registry
- Fix conditional. When VIM_AUTH_URL does not exist, the script was
showing this error message: "bash: [: too many arguments"
- Change from xip.io to nip.io
- Parameterize the osm/tests image tag. This allows to use the published
osm/tests image without needing to execute the stage-3 command
- Add print_section function: Cleaner way of printing section
information
- Add --vim-vca option. Allows to attach an existing VCA (registered in
OSM) to be used by the VIM account.

Change-Id: I2c1375e031f042f505f126586c0e819c21e1dd4c
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoFix bug 1652 to update osm_health increasing time_for_failure 53/11153/2
garciadeblas [Tue, 7 Sep 2021 16:58:35 +0000 (18:58 +0200)]
Fix bug 1652 to update osm_health increasing time_for_failure

Recent tests showed that the 5 minutes assigned to the time for checking
failures in pods were not enough. This change increases the time to 7
minutes, which will be enough even for the long tail cases.

Change-Id: Ic9c721811a187292c1da6f421f2ed4311b7f4622
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoRevert "Use Juju 2.9.12" 73/11173/2
beierlm [Fri, 10 Sep 2021 16:21:21 +0000 (18:21 +0200)]
Revert "Use Juju 2.9.12"

This reverts commit f5051cb9a979b5e5478534f03bab3444fe800b45.

Reason for revert:

Juju 2.9.12 has bugs that require us to stick with original until they are fixed.

Change-Id: I4f5b7af7278b67c39c9e236fa67e051eccf295e7
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoPin LXD version to 4.17 60/11160/3
David Garcia [Thu, 9 Sep 2021 15:23:42 +0000 (17:23 +0200)]
Pin LXD version to 4.17

Change-Id: Ibcbbffd7be34462e4fb0521458ca739f1d0aa150
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agojujudatafolder variable is removed at line 539 62/11162/1
aktas [Fri, 10 Sep 2021 06:31:10 +0000 (09:31 +0300)]
jujudatafolder variable is removed at line 539

In this merged commit https://osm.etsi.org/gerrit/c/osm/devops/+/11149/, a variable was left by mistake.
This commit resolves the issue.

Change-Id: Iaa91ebe5d37c3c6f9b56757f4e6268214d36eb51
Signed-off-by: aktas <emin.aktas@ulakhaberlesme.com.tr>
2 years agoUse Juju 2.9.12 50/11150/2
David Garcia [Tue, 7 Sep 2021 09:12:11 +0000 (11:12 +0200)]
Use Juju 2.9.12

Change-Id: Ic8aa87248317c9b0da160af62ebb31e82331ed1b
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoRemoving juju installation in the jenkins pipeline 49/11149/1
aktas [Mon, 6 Sep 2021 10:30:09 +0000 (13:30 +0300)]
Removing juju installation in the jenkins pipeline

With the new way of the juju accces in k8s_08 testsuite,
installing juju in the container is not needed.
k8s_08 testsuite changes: https://osm.etsi.org/gerrit/c/osm/tests/+/11104

Change-Id: I7c5a59a776df23ca21b21a17728e658ad6d4e388
Signed-off-by: aktas <emin.aktas@ulakhaberlesme.com.tr>
2 years agoRevert stage3 to use default installer 44/11144/2
sousaedu [Thu, 2 Sep 2021 18:15:17 +0000 (19:15 +0100)]
Revert stage3 to use default installer

Change-Id: I9338d4108bddfe8db212d5aad82d9d8ad1473992
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoFix validation error for ImagePullPolicy in charms 27/11127/2
sousaedu [Mon, 30 Aug 2021 15:33:33 +0000 (16:33 +0100)]
Fix validation error for ImagePullPolicy in charms

Change-Id: I00711202fdbacd73e9205dd3fc34424893440be5
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoAdding HA support for Grafana charm 50/11050/6
sousaedu [Wed, 30 Jun 2021 14:03:28 +0000 (15:03 +0100)]
Adding HA support for Grafana charm

Change-Id: Icac0e15706e49cb387ac6686cb26337b98a5a319
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoUpgrading setuptools to 51.0.0 31/11131/4
sousaedu [Tue, 31 Aug 2021 17:52:26 +0000 (18:52 +0100)]
Upgrading setuptools to 51.0.0

Some newer packages, in requirements.txt, use the Metadata
version format available in 51.0.0.

Docs: https://setuptools.readthedocs.io/en/latest/userguide/declarative_config.html#metadata

Change-Id: I2a7c22c2fa42e7111aed462b81f5be9040d0d7f9
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoFix bug 1647: OpenEBS error in OSM installer 39/11139/1
aguilard [Wed, 1 Sep 2021 10:12:07 +0000 (12:12 +0200)]
Fix bug 1647: OpenEBS error in OSM installer

Updated OpenEBS to version 1.12.0 using Helm
Updated Helm from v2.15.2 to v3.6.3

Change-Id: Ie31239181a7fbcf7a250ebbdf9123d4088ca75b3
Signed-off-by: aguilard <e.dah.tid@telefonica.com>
2 years agoAdd Kafka and Zookeeper charms in operator framework 28/11128/5
David Garcia [Mon, 30 Aug 2021 16:01:22 +0000 (18:01 +0200)]
Add Kafka and Zookeeper charms in operator framework

Change-Id: I15645825ab8ff927ad0f72bbfd53ea71343b2be4
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoDefault to Charmed Install 29/11129/3
beierlm [Mon, 30 Aug 2021 17:57:09 +0000 (13:57 -0400)]
Default to Charmed Install

OpenEBS is giving us troubles again, so we need to use the --charmed option
in the installer until we can figure out how to fix the K8s installer.

Change-Id: I6dcd24f9b7c1f70d074bcd40f63fb110fb1c355b
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoFixed error in ci_stage_3.groovy file 26/11126/1
aguilard [Mon, 30 Aug 2021 08:16:31 +0000 (10:16 +0200)]
Fixed error in ci_stage_3.groovy file

There was a typo in threshold variables.

Change-Id: Ib4cf608e0694e89f015212c6a011d4faa001d88c
Signed-off-by: aguilard <e.dah.tid@telefonica.com>
2 years agoAdd private key to docker/tests to access OSM instance 08/11108/2
garciadeblas [Fri, 13 Aug 2021 14:43:15 +0000 (16:43 +0200)]
Add private key to docker/tests to access OSM instance

Some of the tests require access to OSM instance in order
to run some commands from there. Those commands could be run
using ssh, but a private key is required to be able connect to
that OSM instance.

This change gets the private key corresponding to the public key in
OSM instance and mounts it in docker/tests so that the container can
access to OSM instance via ssh and run commands there.

Change-Id: Id12ede582d5e519afbc41647b90d192b80cf8fcf
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoAdd charmcraft.yaml debug_mode to charmed-osm 11/11111/8
David Garcia [Tue, 17 Aug 2021 09:03:55 +0000 (11:03 +0200)]
Add charmcraft.yaml debug_mode to charmed-osm

- Added a debug_mode option to lcm, mon, nbi, pol, and ro charms
- Added a script to prepare pods for debugging:
  - setup .ssh/config to easily ssh from vscode to the pods
- Added a README that explains how to prepare the environment for
testing

Change-Id: Ieb56b565c15e61c68ad000b60897abd27e1eeb0e
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoAdding ImagePullPolicy config option to OSM Charms 20/11120/2
sousaedu [Tue, 24 Aug 2021 18:57:24 +0000 (19:57 +0100)]
Adding ImagePullPolicy config option to OSM Charms

Change-Id: I04ad8444088e8a360755dc4e22b7ea53942682b2
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoUpdate lcm revision and juju agent version 98/11098/6
David Garcia [Tue, 3 Aug 2021 08:21:34 +0000 (10:21 +0200)]
Update lcm revision and juju agent version

Change-Id: I83bb8548dec9ad155a63bde4a734fda0edde9f89
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoFix bug 1633 - Pinning packages to major version 05/11105/1
sousaedu [Thu, 12 Aug 2021 14:35:51 +0000 (15:35 +0100)]
Fix bug 1633 - Pinning packages to major version

Change-Id: Iea7fd8ebfd7de5033a2ff0197a1a5f1bc53f48b4
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoFix for Bug 1626: Build failed due to upstream dependency not found 99/11099/10
palsus [Wed, 4 Aug 2021 18:12:21 +0000 (18:12 +0000)]
Fix for Bug 1626: Build failed due to upstream dependency not found

Change-Id: I719c106e6f2fb92c6f00d2f9595715e1a30c7362
Signed-off-by: palsus <subhankar.pal@altran.com>
2 years agoFix bug 1620 - adding option to LCM charm to configure Helm CA certificates 95/11095/2
sousaedu [Fri, 30 Jul 2021 12:40:47 +0000 (14:40 +0200)]
Fix bug 1620 - adding option to LCM charm to configure Helm CA certificates

Change-Id: I90f2f9ab1379deb45240a2d94e123cbbcd4ecf42
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoFix bug 1618 - adding start script to LCM to install CA certificates 93/11093/1
sousaedu [Fri, 30 Jul 2021 09:52:48 +0000 (11:52 +0200)]
Fix bug 1618 - adding start script to LCM to install CA certificates

Change-Id: I900b8e7db66924e8f12dbc6ce3b9a10cbc14f160
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoFix bug 1600 - checking for db user keystone creation 78/11078/1
sousaedu [Wed, 28 Jul 2021 10:08:43 +0000 (12:08 +0200)]
Fix bug 1600 - checking for db user keystone creation

Change-Id: Ibe382eaec6b2afefe3743cc818a75f60983bfcaa
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoChanging microstack port 49/11049/2
beierlm [Wed, 30 Jun 2021 12:05:37 +0000 (08:05 -0400)]
Changing microstack port

Now that Chrome has decided to block 10080, we should change the default
horizon port for microstack to something less likely to get blocked

Change-Id: Ibd73785149e551f376e21f12ee99ff5177efe2b0
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoFeature 10884: Juju 2.9 support 52/11052/2
David Garcia [Mon, 28 Jun 2021 14:50:42 +0000 (16:50 +0200)]
Feature 10884: Juju 2.9 support

- Update osm bundles (charmed)
- Update Juju version (snap and agent version) (charmed and k8s)
- Update to new mongodb charm (charmed and k8s)
- Fix ingress issue by adding an ingress_class config
- Charmed installer: point to local bundles until all charms are in
CharmHub
Change-Id: I6ff8328e5db6719bbf9d5d4c9b5490f478b2ace8
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoAdding Juju in the pipeline for Robot tests 88/10888/10
aktas [Thu, 27 May 2021 06:47:19 +0000 (09:47 +0300)]
Adding Juju in the pipeline for Robot tests

* Getting Juju data from installed osm
* Bind the Juju data to robot-systest container

Change-Id: I3fedd01fe0314b59e7b9db625b3fb206ceca4353
Signed-off-by: aktas <emin.aktas@ulakhaberlesme.com.tr>
2 years agoUpdate osm bundles to cs:osm-67 and cs:osm-ha-52 23/11023/3
David Garcia [Thu, 17 Jun 2021 13:55:30 +0000 (15:55 +0200)]
Update osm bundles to cs:osm-67 and cs:osm-ha-52

The updated bundles contain these patches:
 - https://osm.etsi.org/gerrit/#/c/osm/devops/+/11022
 - https://osm.etsi.org/gerrit/#/c/osm/devops/+/11019
 - https://osm.etsi.org/gerrit/#/c/osm/devops/+/11015

Change-Id: Ib361f6b7f43bd24be6c6476b6f012b519c32e5cb
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoFix bug 1571 - Keystone charm needs to pass CA SSL certificate 22/11022/2
sousaedu [Thu, 17 Jun 2021 11:43:59 +0000 (12:43 +0100)]
Fix bug 1571 - Keystone charm needs to pass CA SSL certificate

Change-Id: I7bce4fc0f4bc0d96b2bc7b84eff9eef655e8b098
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoFix bug 1571 - Certificate for LDAPS not written if TLS is disabled in Keystone 17/11017/4
sousaedu [Thu, 17 Jun 2021 10:04:34 +0000 (11:04 +0100)]
Fix bug 1571 - Certificate for LDAPS not written if TLS is disabled in Keystone

Change-Id: I9d4d3f96c7607c1b6f2172cb0de0a5bdcbffbfc3
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agofix deploy ng-ui 20/11020/1
endika [Thu, 17 Jun 2021 10:51:23 +0000 (12:51 +0200)]
fix deploy ng-ui

Change-Id: I59022bf0b58f952d9a698a1ec5024c47512db1bf
Signed-off-by: endika <endika.aldecoa@ehu.eus>
2 years agoFix bug 1570 - Escaping spaces in Keystone LDAP config 14/11014/2
sousaedu [Wed, 16 Jun 2021 15:17:48 +0000 (16:17 +0100)]
Fix bug 1570 - Escaping spaces in Keystone LDAP config

Change-Id: Ia862be33f8ce408f3d033c8a469f3548e86075e0
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoUpdate osm bundles to cs:osm-66 and cs:osm-ha-51 82/10982/2
David Garcia [Thu, 10 Jun 2021 10:29:52 +0000 (12:29 +0200)]
Update osm bundles to cs:osm-66 and cs:osm-ha-51

Change-Id: Ie0b411d15c8b727fda2603ab0576ee46d80cb54d
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 years agoLocal Build Script 40/10640/5
beierlm [Wed, 14 Apr 2021 17:51:53 +0000 (13:51 -0400)]
Local Build Script

Script to help perform builds locally, so that developers can recreate
the Jenkins experience at home

Change-Id: Ib1a3a555d28e6a5233f6fc3ee9062bb124c946d0
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoFix bug 1560 to ensure that OSM is healthy after installation 32/9432/9
ramonsalguer [Thu, 16 Jul 2020 12:42:04 +0000 (14:42 +0200)]
Fix bug 1560 to ensure that OSM is healthy after installation

This change updates health-check to determine more accurately when the system
is ready. All the deployments and statefulsets must have all its pods running
and stable during some time.

Change-Id: Ibe7ab30415ce81fd95caa0fdd66710746de7605b
Signed-off-by: ramonsalguer <javier.ramon@telefonica.com>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFix bug 1559 to update installers and manifests for Release TEN 87/10887/5
garciadeblas [Wed, 26 May 2021 14:54:05 +0000 (16:54 +0200)]
Fix bug 1559 to update installers and manifests for Release TEN

Change-Id: I1e985dc5d27f3cfe246a0e52a8e08b15155842d5
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFix bug 1558 to add DEVOPS_PATH default value to install_osm.sh 42/10842/7
garciadeblas [Wed, 19 May 2021 08:54:46 +0000 (10:54 +0200)]
Fix bug 1558 to add DEVOPS_PATH default value to install_osm.sh

Change-Id: I03f013768106da62f6b8ece360e436b4950af239
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>