osm/devops.git
3 years agoFix 1391: New version of yq snap makes charmed installer to fail 57/10157/2
calvinosanc1 [Mon, 4 Jan 2021 10:42:18 +0000 (11:42 +0100)]
Fix 1391: New version of yq snap makes charmed installer to fail

Change-Id: I111fe3e213002d428c21bb18f81f7d1abe8a6c7c
Signed-off-by: calvinosanc1 <guillermo.calvino@canonical.com>
3 years agoAnsible installer update 52/10152/2
Antonio Marsico [Mon, 21 Dec 2020 16:29:42 +0000 (17:29 +0100)]
Ansible installer update

  * Moved Ansible to version 2.10
  * Python Virtual env
  * New option to use a custom SSH key
  * Use of cloud-init file supported
  * Increased the number of options to be passed to the remote installer

Change-Id: I70131f1a24707656c9390445df91d17abab95763
Signed-off-by: Antonio Marsico <antonio.marsico@bt.com>
3 years agoRefactoring RO Charm to use Operator Framework 48/9948/12
sousaedu [Wed, 4 Nov 2020 21:44:01 +0000 (21:44 +0000)]
Refactoring RO Charm to use Operator Framework

This refactoring work includes tests.

Note 1: old charm is in ro-k8s folder.
Note 2: relation-departed is currently not tested because there is
        no function to remove a relation in the Testing Harness.
        There is currently one issue open and the Charmcraft team
        should provide feedback soon.

Change-Id: Ia97de802aec2c4e10a1d2c86ba2515d3f17f55af
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoBug 1389 fixed. Added --stable-repo-url https://charts.helm.sh/stable to helm init... 55/10155/2
rodriguezgar [Thu, 31 Dec 2020 12:36:06 +0000 (13:36 +0100)]
Bug 1389 fixed. Added --stable-repo-url https://charts.helm.sh/stable to helm init and changed ligut-ui to ng-ui and mongodb to mongodb-k8s

Change-Id: I91b69084ef49cdd27890cea9c5f8baea373f612f
Signed-off-by: rodriguezgar <frodriguezg@indra.es>
3 years agochange docker/RO include osm-common and remove not used osm-im old RO 36/10136/8
tierno [Thu, 17 Dec 2020 15:35:15 +0000 (15:35 +0000)]
change docker/RO include osm-common and remove not used osm-im old RO

Change-Id: I3a858b54ac7d82a0263b795b200e24a9379902f3
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoMoving charms to use latest stable release container image 64/10164/2
sousaedu [Tue, 5 Jan 2021 15:42:40 +0000 (15:42 +0000)]
Moving charms to use latest stable release container image

Change-Id: I92897515d7c8843bb619080cecee3b3c2aedb976
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoRemoving pydantic from POL charm 63/10163/2
sousaedu [Tue, 5 Jan 2021 15:25:10 +0000 (15:25 +0000)]
Removing pydantic from POL charm

Change-Id: I0c8a7cac50f7f81f61fb151d8166846cf4c4fd18
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoRemoving pydantic from MON charm 61/10161/3
sousaedu [Tue, 5 Jan 2021 14:39:30 +0000 (14:39 +0000)]
Removing pydantic from MON charm

Change-Id: Ice1c19c142f16ad8af6b9bc2ac20295f3b5215b9
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoRemoving pydantic from LCM charm 60/10160/4
sousaedu [Tue, 5 Jan 2021 14:25:19 +0000 (14:25 +0000)]
Removing pydantic from LCM charm

Change-Id: I08e4acff8b84f4f9a36846cc0f7973d06c4abc1c
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoPassing data only through unit relation data 62/10162/1
sousaedu [Tue, 5 Jan 2021 14:58:49 +0000 (14:58 +0000)]
Passing data only through unit relation data

The data between apps should only be passed through
the unit relation data.

The unit tests have also been updated.

Change-Id: Id5467922c3217c84ff1d7bbcdbe7d2a1caba19dd
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoFix k8s-based installer to be run on a VM in the stage3 37/10137/2 release-v9.0-start v9.0.0rc1
garciadeblas [Thu, 17 Dec 2020 16:17:35 +0000 (17:17 +0100)]
Fix k8s-based installer to be run on a VM in the stage3

Change-Id: I20183be13b3b4b3af8bc5158b1beb9842654c26c
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoAdding timestamps to kubectl logs in stage3 34/10134/2
garciadeblas [Thu, 17 Dec 2020 15:16:53 +0000 (16:16 +0100)]
Adding timestamps to kubectl logs in stage3

Change-Id: I0ac9f519dcf0dbc28aa5ca14325d3d19528ee283
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoUpdate scripts/start.sh from MON repo 30/10130/1
garciadeblas [Thu, 17 Dec 2020 10:47:59 +0000 (10:47 +0000)]
Update scripts/start.sh from MON repo

Change-Id: Ia22d953234da67291fa396ef8ebef4640fcc597f
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoFix bugs and pin osm bundles 21/10121/4
David Garcia [Wed, 16 Dec 2020 16:25:15 +0000 (17:25 +0100)]
Fix bugs and pin osm bundles

Keystone charm (bug 1378): Improve the way we handle the relation data from the database
relation
Ro charm (bug 1379): Fix the status of the non-leader units
Ng-ui (bug 1380): Fix the nbi-relation-changed hook for the non-leader
units
Installer: Pin the version of the OSM bundles

Change-Id: Ied07c964b1c85b1c534916eb4b30fd6bc87287a6
Signed-off-by: David Garcia <david.garcia@canonical.com>
3 years agoFix osm_health for the default installation 26/10126/1
garciadeblas [Wed, 16 Dec 2020 22:03:17 +0000 (22:03 +0000)]
Fix osm_health for the default installation

Change-Id: Idd5198f3a3ea1605742342379ac9a5b071c6d9af
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoAllocate PTY 25/10125/3
beierlm [Wed, 16 Dec 2020 18:25:48 +0000 (13:25 -0500)]
Allocate PTY

Change ssh to allocate a PTY so that lxc commands can
read from STDIN over ssh connection.

Change-Id: I4fb74880ca498431679212f40dd60ef3c39a6a00
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agoAdded docker login before pulling, to pull images from internal registry 23/10123/3
garciadeblas [Wed, 16 Dec 2020 18:03:10 +0000 (19:03 +0100)]
Added docker login before pulling, to pull images from internal registry

Change-Id: Ice7a4573200d7c8de19f08dadbc60371cab3534c
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoFixes bug 1377 20/10120/2
beierlm [Wed, 16 Dec 2020 13:46:40 +0000 (08:46 -0500)]
Fixes bug 1377

Adds the system VIM and k8s cluster the same way that the
k8s installer does.

Change-Id: I11ad41c35f11467c51f0edc2aba4b3cb5e048823
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agoremoving zfs install from install_juju 22/10122/1
garciadeblas [Wed, 16 Dec 2020 17:32:32 +0000 (18:32 +0100)]
removing zfs install from install_juju

Change-Id: I8710829669dd9e27f06df23c0e55d012ad549cfe
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoUpdates in CI pipeline and installer for the new pipeline: registry and proxy url... 58/10058/6
garciadeblas [Mon, 30 Nov 2020 14:07:03 +0000 (14:07 +0000)]
Updates in CI pipeline and installer for the new pipeline: registry and proxy url, different docker tag for specific modules

Change-Id: Id434332fd1e051d9888bb35bf03ace974cd14bbc
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoDefault installation with K8s instead of swarm 59/10059/5
garciadeblas [Mon, 6 Jul 2020 15:37:59 +0000 (15:37 +0000)]
Default installation with K8s instead of swarm

Change-Id: I5b934ced7024e3d926cec865a8a38219454956a4
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoInstaller and pipelines updates for Rel NINE 10/10110/3
garciadeblas [Tue, 15 Dec 2020 00:32:13 +0000 (00:32 +0000)]
Installer and pipelines updates for Rel NINE

Change-Id: I86786dc85eda0f717dac75049f7136bc668449d7
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoAdds JUJU_PASSWORD 17/10117/3
beierlm [Wed, 16 Dec 2020 10:20:56 +0000 (05:20 -0500)]
Adds JUJU_PASSWORD

Fetches the current juju password from the target installation
and passes that to the robot test container for use in
Basic 12 - NS Primitives.

Change-Id: I72d2af5179a29b86c076fb9e6dad7f22e31aa859
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agoChange yq to snap 19/10119/1
David Garcia [Wed, 16 Dec 2020 12:13:20 +0000 (13:13 +0100)]
Change yq to snap

Change-Id: I462edbd5c7f0a6deb6c4baab0cb2ac0714aa4698
Signed-off-by: David Garcia <david.garcia@canonical.com>
3 years agoMigrate to new NBI charm, and change in NGUI charm 97/10097/11
David Garcia [Thu, 10 Dec 2020 20:16:12 +0000 (21:16 +0100)]
Migrate to new NBI charm, and change in NGUI charm

- Fixes bug 1365
- Changes in the installer:
    - use site_url config to expose both NBI and NG-UI
    - use resources for images
- Changes in the NBI: some minor fixes
- Changes in the NG-UI: follow the same pattern as in the new set of
charms

Change-Id: I6a11009ddf9cd22689602b2a53ecf67f376830cb
Signed-off-by: David Garcia <david.garcia@canonical.com>
3 years agoPin osm bundle in charmed installer 15/10115/1
David Garcia [Tue, 15 Dec 2020 16:25:01 +0000 (17:25 +0100)]
Pin osm bundle in charmed installer

Change-Id: I4777fa038ceb2624a20a6bd182f14b5546b58d59
Signed-off-by: David Garcia <david.garcia@canonical.com>
3 years agoUse osm-packages master 13/10113/1
beierlm [Tue, 15 Dec 2020 14:21:40 +0000 (09:21 -0500)]
Use osm-packages master

Removes the checkout of the sol006 branch as it is
now merged to mater in osm-packages.

Change-Id: Iaff35776c8d867be137cc470e3e4c564b0123ad8
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agoinstall_osm.sh: fix usage function to provide same output as in full_install 57/10057/3
garciadeblas [Sat, 14 Nov 2020 23:06:42 +0000 (23:06 +0000)]
install_osm.sh: fix usage function to provide same output as in full_install

Change-Id: I915baa0e722d0b0066f5cd3cb0b42b31c3352991
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoSimpler license scan 98/10098/2
beierlm [Thu, 10 Dec 2020 20:22:15 +0000 (15:22 -0500)]
Simpler license scan

Removes the post to Fossology to simply check for the
Apache 2 license text

Change-Id: I455149474d86c85cbd3dbb0af6dbe660b599ffee
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agoPin MicroK8s version 05/10105/2
beierlm [Mon, 14 Dec 2020 14:59:19 +0000 (09:59 -0500)]
Pin MicroK8s version

Pins Microk8s to 1.19

Change-Id: Ic21f1774cb7c3d8fc6362f6a4a0b95bf4f3e5e73
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agoRemoving pydantic from NBI charm 92/10092/2
sousaedu [Thu, 10 Dec 2020 01:22:09 +0000 (01:22 +0000)]
Removing pydantic from NBI charm

Change-Id: I725aabf1da99751dae0812305e01d92b801653ee
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoAdditional arguments 79/10079/1
beierlm [Fri, 4 Dec 2020 16:32:25 +0000 (11:32 -0500)]
Additional arguments

Adds the IM_VERSION and OSMCLIENT_VERSION arguments so that the
docker build uses them.

Change-Id: Ie7dfc6aba850b534d45ef7b997606a18ab1cf748
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agofull_install_osm.sh: ng-ui as default UI 53/9853/4
garciadeblas [Fri, 16 Oct 2020 11:56:38 +0000 (11:56 +0000)]
full_install_osm.sh: ng-ui as default UI

Change-Id: Iab3b93fdfe7d1f556e2c0777c8a84e0a6a83384f
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agokeystone.env: added env variables for LDAP configuration 52/9852/4
garciadeblas [Fri, 16 Oct 2020 11:53:38 +0000 (11:53 +0000)]
keystone.env: added env variables for LDAP configuration

Change-Id: Ic0375e20c96eebee00d6c7ae36b6c949ba6ca514
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoUsing sol006 branch for the OSM packages 64/10064/2
garciadeblas [Wed, 2 Dec 2020 12:30:54 +0000 (12:30 +0000)]
Using sol006 branch for the OSM packages

Change-Id: Idf619e61e4a22a46c4c18d840ec559d4a811f147
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoInstall from APT repo 63/10063/2
beierlm [Wed, 2 Dec 2020 11:43:07 +0000 (06:43 -0500)]
Install from APT repo

Changes the build so that it will install the osmclient from the
locally created apt repository instead of attempting to build it
again from the git sources.

Change-Id: Id096ae2343811b26e96ec1f9313d45ad69a9a68f
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agoFix ro-k8s charm to include commonkey 56/10056/1
David Garcia [Mon, 30 Nov 2020 15:29:54 +0000 (16:29 +0100)]
Fix ro-k8s charm to include commonkey

Change-Id: I869b09709585c0cd1cbdd067d6837c94348872b6
Signed-off-by: David Garcia <david.garcia@canonical.com>
3 years agoInstall from edge 54/10054/2
beierlm [Sun, 29 Nov 2020 13:16:00 +0000 (08:16 -0500)]
Install from edge

Changes the charmed_installer so that it deploys from edge channel
on master.

Change-Id: I41af6dc29ddd813e1538f14d83a4bdc8ec9387e7
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agoUpdate RO charm for the newRO and update bundle 51/10051/2
David Garcia [Sat, 28 Nov 2020 13:41:22 +0000 (14:41 +0100)]
Update RO charm for the newRO and update bundle

- Add kafka and mongo relations
- Remove ui-k8s from bundle
- Add new RO relations

Change-Id: I9d68cab33dd262408b8023d58e54b0be8dc024c6
Signed-off-by: David Garcia <david.garcia@canonical.com>
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agoRevert "change charm installation for the New generation RO" 50/10050/1
David Garcia [Sat, 28 Nov 2020 13:38:35 +0000 (14:38 +0100)]
Revert "change charm installation for the New generation RO"

This reverts commit a578d7154146a7b80c4e07fc9c07d107c89cbadb.

Change-Id: I84e3765b8b05942a8aec6f3b752555a61ee73e77
Signed-off-by: David Garcia <david.garcia@canonical.com>
4 years agochange charm installation for the New generation RO 44/10044/3
tierno [Wed, 25 Nov 2020 13:25:08 +0000 (13:25 +0000)]
change charm installation for the New generation RO

Change-Id: I4d22a6e87061858ff99b44b81c3667a88e007d4e
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoFeature sol006 and 7184: Set new generation RO as default 43/9943/5
tierno [Wed, 25 Nov 2020 13:16:51 +0000 (13:16 +0000)]
Feature sol006 and 7184: Set new generation RO as default

New Generation RO uses kafka, mongo
It manages OSMRO_ variables

Change-Id: I93c898d603af3534a5e5daf57a01fdff6f59f9fe
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoUse FSMongo as the default FS in NBI and LCM 72/9972/3
David Garcia [Thu, 12 Nov 2020 15:56:29 +0000 (16:56 +0100)]
Use FSMongo as the default FS in NBI and LCM

Change-Id: I49fa01dd3ba625a64a5a61b42c5f8cab027330ed
Signed-off-by: David Garcia <david.garcia@canonical.com>
4 years agoFix 1264: Vagrant images for v8.x 36/10036/1
ramonsalguer [Thu, 26 Nov 2020 09:29:26 +0000 (10:29 +0100)]
Fix 1264: Vagrant images for v8.x

Change-Id: I4d91c4f2b032a06a44f9efee99bb414c5f3b0702
Signed-off-by: ramonsalguer <javier.ramon@telefonica.com>
4 years agoRun stage_3 install in new VM 13/10013/5
beierlm [Thu, 19 Nov 2020 16:39:36 +0000 (11:39 -0500)]
Run stage_3 install in new VM

Adds a parameter for installer to use in test.
Adds prometheus port to robot test script.
Adds hostname mapping file for robot container to avoid
use of xip.io as it can sometimes fail
Wraps execution of robot container in try block so we
can collect log files even if it fails.
Changes collection of container logs to use SSH and
SCP to pull logs back to Jenkins for archival.
Changes the Apache HTTPD to run on a specific port so
remote VM can access it.
After docker build, Pushes docker images to GitLab
at osm.etsi.org:5050/cicd/devops
Launches new VM in ETSI VIM to run the installer.
Changes install to use officially published installer
from osm-download.etsi.org.
Runs installer in new VM using images from GitLab.
Sets K8s cluster to dockerhub images from internal
OSM1 dockerhub proxy.
Changes cleanup to remove VM instead of uninstalling OSM.
Ensures HTTP server is removed on job completion.
Change makefile to use a registry for push if supplied.

Change-Id: I430173fb0b01720fa29fd971f924ff908ce69fbf
Signed-off-by: beierlm <mark.beierl@canonical.com>
4 years agoRefactoring POL Charm to use Operator Framework 49/9949/11
sousaedu [Wed, 4 Nov 2020 18:48:17 +0000 (18:48 +0000)]
Refactoring POL Charm to use Operator Framework

This refactoring work includes tests.

Note 1: old charm is in pol-k8s folder.
Note 2: relation-departed is currently not tested because there is
        no function to remove a relation in the Testing Harness.
        There is currently one issue open and the Charmcraft team
        should provide feedback soon.

Change-Id: Ib21779c5fc781cbb5901351ccf02ca5f9b36b181
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
4 years agoRefactoring MON Charm to use Operator Framework 50/9950/10
sousaedu [Wed, 4 Nov 2020 17:43:47 +0000 (17:43 +0000)]
Refactoring MON Charm to use Operator Framework

This refactoring work includes tests.

Note 1: old charm is in mon-k8s folder.
Note 2: relation-departed is currently not tested because there is
        no function to remove a relation in the Testing Harness.
        There is currently one issue open and the Charmcraft team
        should provide feedback soon.

Change-Id: I57337260579975a1d07157d616acac5bcbef0577
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
4 years agoRefactoring LCM charm to use Operator Framework 51/9951/17
sousaedu [Wed, 4 Nov 2020 15:13:35 +0000 (15:13 +0000)]
Refactoring LCM charm to use Operator Framework

This refactoring work includes tests.

Note 1: old charm is in lcm-k8s folder.
Note 2: relation-departed is currently not tested because there is
        no function to remove a relation in the Testing Harness.
        There is currently one issue open and the Charmcraft team
        should provide feedback soon.

Change-Id: Iae2a0e59e74fab8820d2a9a0ef3f3ec449349dbe
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
4 years agoUpdating unit tests for NBI charm 98/9998/3
sousaedu [Tue, 17 Nov 2020 14:30:47 +0000 (14:30 +0000)]
Updating unit tests for NBI charm

Change-Id: I21f92498364691c225164faa580788e07e133f47
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
4 years agoAdded helm3 installation to LCM docker 94/9994/1
lloretgalleg [Mon, 16 Nov 2020 10:27:49 +0000 (10:27 +0000)]
Added helm3 installation to LCM docker

Change-Id: Ifd538622dbc35bc227f0da06cfab5a58f480e179
Signed-off-by: lloretgalleg <illoret@indra.es>
4 years agoAdd grafana config options to MON charm 70/9970/3
David Garcia [Thu, 12 Nov 2020 14:30:56 +0000 (15:30 +0100)]
Add grafana config options to MON charm

Added options:
- grafana_url
- grafana_user
- grafana_password

Change-Id: Ifa152297aaac876c86f36a1a5dace01491538145
Signed-off-by: David Garcia <david.garcia@canonical.com>
4 years agoLogging data validation exceptions in NBI charm 66/9966/1
sousaedu [Wed, 11 Nov 2020 17:06:31 +0000 (17:06 +0000)]
Logging data validation exceptions in NBI charm

Change-Id: Ie818fd1c7092b64b61ddac5184c5d817a7880f46
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
4 years agoAdd kubernetes to LCM dockerfile 64/9964/1
David Garcia [Wed, 11 Nov 2020 15:53:07 +0000 (16:53 +0100)]
Add kubernetes to LCM dockerfile

Change-Id: Icf834e20527f3489481d0b97af8bb0fc31980c14
Signed-off-by: David Garcia <david.garcia@canonical.com>
4 years agoAdd missing annotation to the nbi charm 62/9962/1
David Garcia [Wed, 11 Nov 2020 11:51:38 +0000 (12:51 +0100)]
Add missing annotation to the nbi charm

Change-Id: I85aa5d066eb7e18995a22c1cc2e9a5fe6f021dd7
Signed-off-by: David Garcia <david.garcia@canonical.com>
4 years agoRefactoring NBI Charm to use Operator Framework 17/9917/22
sousaedu [Tue, 13 Oct 2020 22:46:51 +0000 (23:46 +0100)]
Refactoring NBI Charm to use Operator Framework

This refactoring work includes tests.

Note 1: old charm is in nbi-k8s folder.
Note 2: relation-departed is currently not tested because there is
        no function to remove a relation in the Testing Harness.
        There is currently one issue open and the Charmcraft team
        should provide feedback soon.

Change-Id: I25b94d205d2a004946189a231b5309da1deaa8ed
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
4 years agoUse mongodb charm in k8s installer 58/9958/7
David Garcia [Mon, 19 Oct 2020 13:42:42 +0000 (15:42 +0200)]
Use mongodb charm in k8s installer

- Update JUJU_AGENT_VERSION to 2.8.6
- Use mongodb charm and update needed osm pod specs to point at it

Change-Id: I7c03ae7de6611fcacef35716646ff08bfc1ff988
Signed-off-by: David Garcia <david.garcia@canonical.com>
4 years agoAdding registry flag 54/9954/2
beierlm [Thu, 5 Nov 2020 22:04:05 +0000 (17:04 -0500)]
Adding registry flag

Allow alternate registry to be supplied, with optional credentials.

If registry is just host:port/path, no credentials will be used
If user:pass@host:port/path, user and pass will be supplied as
credentials.

Change-Id: I8acf67b2916fea059fb306782388910e543b4046
Signed-off-by: beierlm <mark.beierl@canonical.com>
4 years agoAdd image_username and image_password to charms 45/9945/1
David Garcia [Wed, 4 Nov 2020 17:34:41 +0000 (18:34 +0100)]
Add image_username and image_password to charms

This commit will allow us to pull images for OSM components from a
private docker registry, protected with username and password

Change-Id: I854028d6abbb1cae07c61692ba73d08825763212
Signed-off-by: David Garcia <david.garcia@canonical.com>
4 years agoFeature 9912: Kubernetes VCA in K8s installation 13/9913/5
David Garcia [Fri, 23 Oct 2020 08:40:20 +0000 (10:40 +0200)]
Feature 9912: Kubernetes VCA in K8s installation

Changes:
- bootstrap juju to k8s
- add lxd as external cloud
- iptables are not needed anymore
- expose the vca to the outside using metallb

Change-Id: I15b33cbf621af00c53c4f12836500aecafcfcb9a
Signed-off-by: David Garcia <david.garcia@canonical.com>
4 years agoFixes Bug 1275 and Bug 1273 - aiokafka>0.7.0 needs extra dependency for python <... 27/9927/6
fonsecaj [Thu, 29 Oct 2020 19:04:26 +0000 (19:04 +0000)]
Fixes Bug 1275 and Bug 1273 - aiokafka>0.7.0 needs extra dependency for python < 3.7.0

Change-Id: I5226e1d790c37d889fac2e6d8285f41f033e9529
Signed-off-by: fonsecaj <jpedrofonseca@av.it.pt>
4 years agoMerge branch 'v8.0' 15/9915/2
beierlm [Fri, 23 Oct 2020 18:54:56 +0000 (14:54 -0400)]
Merge branch 'v8.0'

Change-Id: I96d3bae3abca7b2a5f66bca591b4358d6c921f3d
Signed-off-by: beierlm <mark.beierl@canonical.com>
4 years agoPin libjuju to 2.8.4 97/9897/4
David Garcia [Wed, 21 Oct 2020 14:12:04 +0000 (16:12 +0200)]
Pin libjuju to 2.8.4

Change-Id: I7fbc227561744283569942d320f3a35307c6ee9f
Signed-off-by: David Garcia <david.garcia@canonical.com>
4 years agoFixes bug 1254 and bug 1247 96/9896/1
beierlm [Fri, 16 Oct 2020 16:53:51 +0000 (12:53 -0400)]
Fixes bug 1254 and bug 1247

Update the ingress rules to be explicit about version to avoid
extensions/v1beta1 Ingress is deprecated in v1.14+ message.
Use kubectl annotate instead of kubectl replace.
Ensure microk8s is in ready state before installing juju.
Report error if non-existing vca is requested.
Expose prometheus and grafana.

Change-Id: I0a8aa78c5c9be3163918c0b08b38b4c47d8fae6c
Signed-off-by: beierlm <mark.beierl@canonical.com>
4 years agoAdding extra LDAP configurations to Keystone docker 88/9888/2
sousaedu [Tue, 20 Oct 2020 00:15:37 +0000 (01:15 +0100)]
Adding extra LDAP configurations to Keystone docker

Adding the following configuration options:
- chase_referrals
- page_size
- group_tree_dn
- group_objectclass

Change-Id: Ibcfb6cd1ebb11db6081c229d35ac44c8ae2c5a3f
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
4 years agoAdding extra LDAP configuration options to Keystone charm 87/9887/1
sousaedu [Tue, 20 Oct 2020 00:06:32 +0000 (01:06 +0100)]
Adding extra LDAP configuration options to Keystone charm

Adding the following configuration options:
- chase_referrals
- page_size
- group_tree_dn
- group_objectclass

Change-Id: I413de917a5d31142527f7136e24eceef457f013b
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
4 years agoFixes bug 1254 and bug 1247 63/9863/4
beierlm [Fri, 16 Oct 2020 16:53:51 +0000 (12:53 -0400)]
Fixes bug 1254 and bug 1247

Update the ingress rules to be explicit about version to avoid
extensions/v1beta1 Ingress is deprecated in v1.14+ message.
Use kubectl annotate instead of kubectl replace.
Ensure microk8s is in ready state before installing juju.
Report error if non-existing vca is requested.
Expose prometheus and grafana.

Change-Id: I0a8aa78c5c9be3163918c0b08b38b4c47d8fae6c
Signed-off-by: beierlm <mark.beierl@canonical.com>
4 years agoAdding HA support for Keystone charm 24/9824/10
sousaedu [Fri, 9 Oct 2020 23:25:26 +0000 (00:25 +0100)]
Adding HA support for Keystone charm

Change-Id: I691154ef2952bc124d7ddb689e39455c213c2a4b
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
4 years agoRevert "Workaround for Bug 1262" 71/9871/2
beierlm [Fri, 16 Oct 2020 21:05:14 +0000 (23:05 +0200)]
Revert "Workaround for Bug 1262"

This reverts commit 69b532b05f993931ce73b997de85123a7da09d35.

Reason for revert: LW-UI has been updated via these changes:

https://osm.etsi.org/gerrit/c/osm/devops/+/9869
https://osm.etsi.org/gerrit/c/osm/LW-UI/+/9870

Change-Id: I4eea04dd3ab519fe401d100b34738c39f3d244d9
Signed-off-by: beierlm <mark.beierl@canonical.com>
4 years agoFix bug 1262: docker build updates to use latest npm and ubuntu1804 69/9869/1
garciadeblas [Fri, 16 Oct 2020 11:25:57 +0000 (11:25 +0000)]
Fix bug 1262: docker build updates to use latest npm and ubuntu1804

Change-Id: I63a0b1ae854e6bd3173c938b04d6c1793412780f
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
(cherry picked from commit 0eb6c8b8eb96a05fda9543e53db046ad4d92399f)

4 years agoRevert "Workaround for Bug 1262" 67/9867/2
beierlm [Fri, 16 Oct 2020 19:47:19 +0000 (21:47 +0200)]
Revert "Workaround for Bug 1262"

This reverts commit c3a33005ded347572dcf09d49df469ac88a67db7.

Reason for revert: LW-UI has been updated via these changes:

https://osm.etsi.org/gerrit/c/osm/devops/+/9851
https://osm.etsi.org/gerrit/c/osm/LW-UI/+/9829

Change-Id: I3a53718237bc7318e9caf2a56e72b12fa9db8a7b
Signed-off-by: beierlm <mark.beierl@canonical.com>
4 years agoFix bug 1262: docker build updates to use latest npm and ubuntu1804 51/9851/1
garciadeblas [Fri, 16 Oct 2020 11:25:57 +0000 (11:25 +0000)]
Fix bug 1262: docker build updates to use latest npm and ubuntu1804

Change-Id: I63a0b1ae854e6bd3173c938b04d6c1793412780f
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
4 years agoFix bug 1128 27/9827/2
Antonio Marsico [Thu, 8 Oct 2020 15:34:07 +0000 (17:34 +0200)]
Fix bug 1128

Resolves Light-UI and NG-UI deployed at the same time

Change-Id: I07f97714dba9adf48df121b7f61c19c10960a93a
Signed-off-by: Antonio Marsico <antonio.marsico@bt.com>
(cherry picked from commit 25aca0c601f202d8a0341fc436553ed4dbc77462)

4 years agoWorkaround for Bug 1262 35/9835/1
beierlm [Wed, 14 Oct 2020 11:25:16 +0000 (07:25 -0400)]
Workaround for Bug 1262

Disable the build of light-ui until it can be updated with a newer
version of Ubuntu, Python 3 and NPM.

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

4 years agoWorkaround for Bug 1262 26/9826/5
beierlm [Wed, 14 Oct 2020 11:25:16 +0000 (07:25 -0400)]
Workaround for Bug 1262

Disable the build of light-ui until it can be updated with a newer
version of Ubuntu, Python 3 and NPM.

Change-Id: I6ed11216c4ba71fd784c113342d49bd941349fd3
Signed-off-by: beierlm <mark.beierl@canonical.com>
4 years agoFix bug 1128 18/9818/1
Antonio Marsico [Thu, 8 Oct 2020 15:34:07 +0000 (17:34 +0200)]
Fix bug 1128

Resolves Light-UI and NG-UI deployed at the same time

Change-Id: I07f97714dba9adf48df121b7f61c19c10960a93a
Signed-off-by: Antonio Marsico <antonio.marsico@bt.com>
4 years agoPin libjuju versions to 2.8.4 78/9778/1 v8.0.2
David Garcia [Thu, 1 Oct 2020 16:41:57 +0000 (18:41 +0200)]
Pin libjuju versions to 2.8.4

Change-Id: I10afc20b8e4b5099cbf3867b644b589702cabcf8
Signed-off-by: David Garcia <david.garcia@canonical.com>
4 years agoRevert Juju Version 66/9766/1
beierlm [Wed, 30 Sep 2020 10:03:45 +0000 (06:03 -0400)]
Revert Juju Version

Pins the Juju agent version to 2.8.1 as the model cleanup can
timeout, but this does not happen in master where the version
is 2.8.1

Bug 1216

Change-Id: I223be2e36cc11ce045aaeffa2c164e592d96ec12
Signed-off-by: beierlm <mark.beierl@canonical.com>
4 years agoBug 1233: Accept vca argument in installer script 56/9756/1
Dominik Fleischmann [Fri, 25 Sep 2020 10:17:54 +0000 (12:17 +0200)]
Bug 1233: Accept vca argument in installer script

This fixes bug 1233 which caused the full_install_osm.sh
to not recognize the vca argument which is for the charmed
installation.

Bug: https://osm.etsi.org/bugzilla/show_bug.cgi?id=1233
Change-Id: Id5c653fa7ea543d946bdd7ae4fcdad3d431e9099
Signed-off-by: Dominik Fleischmann <dominik.fleischmann@canonical.com>
4 years agoPin Juju 2.8.3 55/9755/1
beierlm [Thu, 24 Sep 2020 19:27:53 +0000 (15:27 -0400)]
Pin Juju 2.8.3

Updates the juju version and also pins the charmed bundle
versions.

Increases the install timeout by checking for 10 minutes
where no services progress at all, vs 10 minutes total
time.

Fixes bug 1229

Change-Id: I95db91162ad646a2d04b351558ae5f8b64ea579c
Signed-off-by: beierlm <mark.beierl@canonical.com>
4 years agoAdding LDAP support for Keystone charm 44/9744/2
sousaedu [Wed, 23 Sep 2020 12:28:25 +0000 (13:28 +0100)]
Adding LDAP support for Keystone charm

Change-Id: Ic07622ef2332943479d1e9212f9d968ba6554ead
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
4 years agoFix juju status in OSM Charms 47/9647/4
David Garcia [Tue, 1 Sep 2020 08:12:16 +0000 (10:12 +0200)]
Fix juju status in OSM Charms

Change-Id: Iab33813f81c394f2444fb9407b4fab4b70929c90
Signed-off-by: David Garcia <david.garcia@canonical.com>
4 years agofix 1220: LCM Dockerfile remove grpcio-tools grpclib 35/9735/1
tierno [Tue, 22 Sep 2020 09:40:46 +0000 (09:40 +0000)]
fix 1220: LCM Dockerfile remove  grpcio-tools grpclib

These dependencies are installed with the debian python3-osm-lcm
package, using a post-install script. This script get the
required version.

Removed other packages not needed

Change-Id: I6472e756cb3da32632ca18a9d165ef2e8ec7d270
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agofix 1220: LCM Dockerfile remove grpcio-tools grpclib 30/9730/2
tierno [Tue, 22 Sep 2020 09:40:46 +0000 (09:40 +0000)]
fix 1220: LCM Dockerfile remove  grpcio-tools grpclib

These dependencies are installed with the debian python3-osm-lcm
package, using a post-install script. This script get the
required version.

Removed other packages not needed

Change-Id: I6472e756cb3da32632ca18a9d165ef2e8ec7d270
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoPin Juju Version 10/9710/1
beierlm [Tue, 15 Sep 2020 20:00:34 +0000 (16:00 -0400)]
Pin Juju Version
Pins the agent version of juju to ensure consistent
behaviour.

Change-Id: I7112638fd02bc9ab9e6be5aa18481f93dd955f3a
Signed-off-by: beierlm <mark.beierl@canonical.com>
4 years agoPin Juju Version 09/9709/1
beierlm [Tue, 15 Sep 2020 20:00:34 +0000 (16:00 -0400)]
Pin Juju Version
Pins the agent version of juju to ensure consistent
behaviour.

Change-Id: I7112638fd02bc9ab9e6be5aa18481f93dd955f3a
Signed-off-by: beierlm <mark.beierl@canonical.com>
4 years agoExecute docker health commands with docker group 02/9702/1
endika [Fri, 11 Sep 2020 13:19:52 +0000 (15:19 +0200)]
Execute docker health commands with docker group

Fixes bug #1205

Change-Id: Iccf15a31c4925421820e25d7c0821e322955267a
Signed-off-by: endika <endika.aldecoa@ehu.eus>
4 years agoAdd keystone charm and interface 42/9642/7 new-pipeline
David Garcia [Thu, 27 Aug 2020 14:53:44 +0000 (16:53 +0200)]
Add keystone charm and interface

- Bundles updated
- Installer updated

Change-Id: I0f8e9aafd51e9579159f9166864eb8634292f99c
Signed-off-by: David Garcia <david.garcia@canonical.com>
4 years agoAllow more image types 80/9680/1
beierlm [Thu, 3 Sep 2020 18:02:30 +0000 (14:02 -0400)]
Allow more image types

Removes need for license from .tiff and .svg files.

Fixes bug 1202

Change-Id: Iff9dab4acab33328e161dab86be766021da2bb38
Signed-off-by: beierlm <mark.beierl@canonical.com>
4 years agoImprove annotations for exposing OSM services in charmed installer 72/9672/2
David Garcia [Wed, 2 Sep 2020 09:40:12 +0000 (11:40 +0200)]
Improve annotations for exposing OSM services in charmed installer

Change-Id: Iffde16ff5f92aa3a99f2fb8e1ff22c8b9eb61caf
Signed-off-by: David Garcia <david.garcia@canonical.com>
4 years agoPin grpc versions 79/9679/1
beierlm [Wed, 2 Sep 2020 12:58:10 +0000 (08:58 -0400)]
Pin grpc versions

Due to new version of grpc being released, the docker build
fails with errors.

Fixes bug 1200

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

4 years agoPin grpc versions 78/9678/1
beierlm [Wed, 2 Sep 2020 12:58:10 +0000 (08:58 -0400)]
Pin grpc versions

Due to new version of grpc being released, the docker build
fails with errors.

Fixes bug 1200

Change-Id: Ifd958708a92a10a13c357fcd4f1960e6889ef89e
Signed-off-by: beierlm <mark.beierl@canonical.com>
4 years agoMerge v8.0 Into Master 25/9625/4
beierlm [Fri, 26 Jun 2020 16:55:01 +0000 (12:55 -0400)]
Merge v8.0 Into Master

This is a combination of all the commits.

=======================================================================

Enable Robot Tests

Enabling robot tests in CI/CD pipeline
Propagate the parameter DO_ROBOT to stage_3-merge
Setting OSM_HOSTNAME for robot test execution
Adding prometheus_hostname env variable for ci/cd tests
Archive containers logs in robot test execution

Signed-off-by: beierlm <mark.beierl@canonical.com>
Author: Felipe Vicens <felipe.vicens@atos.net>

8716 - K8s Proxy Charms

This commit contains the following changes:

- Changes to LCM Charm to configure vca k8s cloud
- K8s installation:
  - Add storageclass to K8s
  - Add k8s to VCA
  - Configure lcm.env to pass k8s cloud name
- Pass k8s cloud name to LCM Charm in charmed
installation
- Pin juju version tu 2.8/stable
- Instal juju after Microk8s in charmed
installation

Signed-off-by: Dominik Fleischmann <dominik.fleischmann@canonical.com>
Add PLA charm

Signed-off-by: David Garcia <david.garcia@canonical.com>
Add NG-UI Charm

Signed-off-by: David Garcia <david.garcia@canonical.com>
Fix bugs in NG-UI charm

Signed-off-by: David Garcia <david.garcia@canonical.com>
Updated Dockerfiles to use ReleaseEIGHT-daily repo by default

Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Fix bug 1124: K8s added to juju after k8s has been initialized

Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Helm and k8s storage initialization for k8s-based installation

Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Fix bug 1125: iptables must be installed and configured if not present

Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Fix bug 1129: juju_addk8s requires the storage class

Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Fix issue in UI charm

Scale policy is only available in stateful pods

Signed-off-by: David Garcia <david.garcia@canonical.com>
Adds image overlay to bundle

When installing using a bundle, the image overlay was not being
generated, resulting in the --tag option being ignored.

Bug 1130

Signed-off-by: beierlm <mark.beierl@canonical.com>
Fix uninstall process, will fix issues is daily-stage4

Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Fix PLA relations, add missing ENVs, and include it in the bundle

Signed-off-by: David Garcia <david.garcia@canonical.com>
Fix 1127 bug: Use config instead of resources for SSL certificates

Signed-off-by: David Garcia <david.garcia@canonical.com>
Remove unused config from PLA overlayx

Signed-off-by: David Garcia <david.garcia@canonical.com>
Installer: refactor file generation, improved ng-ui and light-ui separation, fixes in PLA

Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Pin libjuju version to 2.8.2

This fixes bug 1144

Signed-off-by: David Garcia <david.garcia@canonical.com>
Pin libjuju version to 2.8.2

Fixes bug 1144

Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
Remove api_proxy variable in charmed installer

- Fixes bug 1154

Signed-off-by: David Garcia <david.garcia@canonical.com>
Add waiting period to Storage Class creation

This commit adds a waiting period until the
storage class is available.

It also fixes a minor bug in the juju add-k8s
command.

This fixes Bug 1155

Signed-off-by: Dominik Fleischmann <dominik.fleischmann@canonical.com>
Remove api_proxy from osm bundles

Signed-off-by: David Garcia <david.garcia@canonical.com>
Make Charmed Installer Idempotent

By default, the charmed installer will create a controller called
'controller', unless an external VCA is specified using the --vca
option.  Upon uninstall, it is not known or safe to remove this
Juju controller as there might be other applications using it.

This change shows that message on uninstall, giving the user the
opportunity to remove it with a command.

Also, as part of the installation, this change checks for the
controller and if it exists, presents the user with options for
how to resolve the situation.

Fixes bug 1126

Signed-off-by: beierlm <mark.beierl@canonical.com>
Remove unneeded mysql interface in PLA, fix osm-ha bundle, and add README.md to bundles

Signed-off-by: David Garcia <david.garcia@canonical.com>
Expose NBI and NG-UI

Adds ingress rules for K8s installation to expose the NBI, the
NG-UI and allow for unlimited content size.

Fixes bug 1171

Signed-off-by: beierlm <mark.beierl@canonical.com>
Installer Quits Too Soon

Increases the timeout and provides more feedback on progress.

Signed-off-by: beierlm <mark.beierl@canonical.com>
Change in returned storage status format from microk8s

Signed-off-by: calvinosanc1 <guillermo.calvino@canonical.com>
========================================================================================

Change-Id: I9223675bb9ad25a0da1f20215e79ef392e544eb5
Signed-off-by: beierlm <mark.beierl@canonical.com>
4 years agoLCM Dockerfile: added grpclib 32/9632/2
garciadeblas [Sun, 5 Jul 2020 07:43:07 +0000 (07:43 +0000)]
LCM Dockerfile: added grpclib

Change-Id: I808c6817cd112a3a4b50223344e104e3238665ea
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
(cherry picked from commit f04b99d63ea4404e604c92fbf435748d2fa5f913)

4 years agofull_install_osm.sh: fix k8s installation, node must be tainted before juju_addk8s... 34/9634/2
garciadeblas [Wed, 8 Jul 2020 14:13:40 +0000 (14:13 +0000)]
full_install_osm.sh: fix k8s installation, node must be tainted before juju_addk8s and install_helm

Change-Id: I1c14736ad832f184f7a8f4f9bfa389705511c558
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
(cherry picked from commit ac5bd33c65d4a8a108efd788022d1ef2a994945b)

4 years agofull_install_osm.sh: separate taint of master node and deployment of osm 33/9633/1
garciadeblas [Wed, 8 Jul 2020 14:30:29 +0000 (14:30 +0000)]
full_install_osm.sh: separate taint of master node and deployment of osm

Change-Id: I6b5b314949d9775b6e71312d97dc293a49385945
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
(cherry picked from commit f7d00303fa336fc223280cceca30a1b3679f6795)

4 years agoPin libjuju version to 2.8.2 31/9631/2
David Garcia [Wed, 15 Jul 2020 14:03:40 +0000 (16:03 +0200)]
Pin libjuju version to 2.8.2

This fixes bug 1144

Change-Id: If5fc3dad9a8a5f3e2f8ca2ac55fb875d5ec12d64
Signed-off-by: David Garcia <david.garcia@canonical.com>
(cherry picked from commit 84e74693b05dbff800c8e0a8c5e5237732d114c5)

4 years agoPin libjuju version to 2.8.2 30/9630/1
Mark Beierl [Wed, 15 Jul 2020 16:52:44 +0000 (12:52 -0400)]
Pin libjuju version to 2.8.2

Fixes bug 1144

Change-Id: Ib50f76e45b9d429f019972c367b6692ed2d5ed79
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
(cherry picked from commit 2ed0e235700fcf05c0ff207d1a3f4f97f7302021)

4 years agoPromote snaps to beta 20/9620/2
beierlm [Thu, 20 Aug 2020 20:49:40 +0000 (16:49 -0400)]
Promote snaps to beta

Adds logic to check if the snap in the edge channel is newer
than the beta channel.  If so, promote the edge snap to beta.

Change-Id: I27bf9ca01b9ed6cf177addffeedc0fa29aae6bb5
Signed-off-by: beierlm <mark.beierl@canonical.com>
4 years agoChange in returned storage status format from microk8s 23/9623/1 v8.0.1
calvinosanc1 [Fri, 21 Aug 2020 10:12:52 +0000 (12:12 +0200)]
Change in returned storage status format from microk8s

Change-Id: I70a7c1ee52381f3465266d8b455cd1bc023dbf2e
Signed-off-by: calvinosanc1 <guillermo.calvino@canonical.com>
4 years agoUpdate juju images 96/9596/6
calvinosanc1 [Mon, 17 Aug 2020 09:45:15 +0000 (11:45 +0200)]
Update juju images

Change-Id: I661fa4bb2030fe6a0b4a75ac435a046bc46e2a90
Signed-off-by: calvinosanc1 <guillermo.calvino@canonical.com>