osm/devops.git
2 years agoFix bug 1813: update keystone dockerfile to ubuntu 20.04 59/11459/1
bravof [Wed, 20 Oct 2021 14:48:16 +0000 (11:48 -0300)]
Fix bug 1813: 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>
3 years agoAdd NTP Sync 63/11363/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 1776

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

3 years agoPin version of LXD to latest LTS, and pin juju 2.8.11 37/11237/1
David Garcia [Tue, 5 Oct 2021 14:13:08 +0000 (16:13 +0200)]
Pin version of LXD to latest LTS, and pin juju 2.8.11

Change-Id: I31f5540e0d8991006e8b3767a94fe4126945cafb
Signed-off-by: David Garcia <david.garcia@canonical.com>
3 years agoUpdate MON and LCM Dockerfile to install ca-certificates in the appropriate docker... 21/11221/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>
3 years agoRevert stage3 to use default installer 45/11145/1 v9.1.4
sousaedu [Thu, 2 Sep 2021 18:19:08 +0000 (19:19 +0100)]
Revert stage3 to use default installer

Change-Id: I01322091d8a9e23bdb3ce6b7ba74122787447e02
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoUpgrading setuptools to 51.0.0 33/11133/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>
3 years agoFix bug 1647: OpenEBS error in OSM installer 42/11142/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>
(cherry picked from commit fdbe776e9bb9e43f7d4dc0f8c023b93d258666e2)

3 years agoDefault to Charmed Install 36/11136/1
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>
(cherry picked from commit 205920ea8c6d155c25b380b76d7f1bc1f7af71ba)

3 years agoFix bug 1635 - Pinning packages to major version 07/11107/1
sousaedu [Thu, 12 Aug 2021 14:35:51 +0000 (15:35 +0100)]
Fix bug 1635 - Pinning packages to major version

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

Change-Id: I719c106e6f2fb92c6f00d2f9595715e1a30c7362
Signed-off-by: palsus <subhankar.pal@altran.com>
3 years agoFix bug 1619 - adding start script to LCM to install CA certificates 94/11094/1
sousaedu [Fri, 30 Jul 2021 09:52:48 +0000 (11:52 +0200)]
Fix bug 1619 - adding start script to LCM to install CA certificates

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

Change-Id: Ibe382eaec6b2afefe3743cc818a75f60983bfcaa
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoFix bug 1571 - Certificate for LDAPS not written if TLS is disabled in Keystone 19/11019/3 v9.1.2 v9.1.3
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>
3 years agoFix bug 1570 - Escaping spaces in Keystone LDAP config 15/11015/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>
3 years agoRemoval of Light UI 74/10974/1
beierlm [Mon, 7 Jun 2021 18:04:45 +0000 (14:04 -0400)]
Removal of Light UI

We are no longer building light ui as of 9.1.1 onwards
as agreed in @021-06-07 TSC+MDL+TF meeting:

- LW-UI failing 
  - Remove (@MarkB)
  - We will retag 9.1.1 as 9.1.2

Change-Id: I0f607dc076020727239017a9b6f428e6402b38d5
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agoFeature 10296 51/10951/1
beierlm [Thu, 3 Jun 2021 18:01:05 +0000 (14:01 -0400)]
Feature 10296

Added missing logic for apt pool, missing from commit 41165ed

Change-Id: I7ef809809c115f4af22f9435dd28ac0ec0669505
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agoFeature 10296 34/10934/1
David Garcia [Wed, 17 Mar 2021 14:28:47 +0000 (15:28 +0100)]
Feature 10296

Update dockerfiles to fetch dependencies from Artifactory
.deb and using pip3 -r instead of apt to resolve all upstream
depenencies

Update stage_3 to use URLs for artifactory packages instead
of apt server for installation of packages

Change-Id: I3abb1e1314862f386fb090cb18429f4283b0273d
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agoFix 1527 for v9.0 61/10761/1
beierlm [Thu, 6 May 2021 17:58:24 +0000 (13:58 -0400)]
Fix 1527 for v9.0

Manual cherry pick of c395a45 to swtich from defunct xip.io to nip.io

Fixes bug 1527 in v9.0

Change-Id: I56ba9ef730a3b5ca6be4994cf7270605453fa459
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agoFix bug 1514 41/10741/1
David Garcia [Wed, 5 May 2021 07:48:16 +0000 (09:48 +0200)]
Fix bug 1514

Pin version of paramiko to 2.7.2

Change-Id: Ie9f7aaf10e78d5e243b75fc4523820473c19f4f9
Signed-off-by: David Garcia <david.garcia@canonical.com>
3 years agofix bug 1483: read only the IP address of the right device with the default route 17/10717/1
garciadeblas [Mon, 29 Mar 2021 09:45:29 +0000 (11:45 +0200)]
fix bug 1483: read only the IP address of the right device with the default route

Change-Id: I84a239ad062d00abc993fbab9f090f1c0a2b2a19
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoFix bug 1151 to install openebs operator 08/10708/1
garciadeblas [Tue, 13 Apr 2021 16:26:55 +0000 (18:26 +0200)]
Fix bug 1151 to install openebs operator

This change updates the method install_k8s_storageclass of
full_install_osm.sh.

The change creates a temporary folder for downloading the K8s manifest
file for openebs. The download of the manifest file is decoupled from
its application with kubectl (in the same way that it isdone for the
CNI provider). After its application, an additional check is added to
verify that the storage class openebs-hostpath has been defined. If it
does not exist, the installation will fail and exit. Otherwise, it will
proceed. Finally, the timeout for the openebs-hostpath storage class
has been increased from 300s to 400s.

Change-Id: Ic1da8b9606bd7b3265f38c1da7389e5b2cdc741b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoFixed Openstack SDK and client version issues 50/10550/2 branch-bug1511-start v9.1.1 v9.1.1rc1
Antonio Marsico [Fri, 19 Mar 2021 17:54:57 +0000 (18:54 +0100)]
Fixed Openstack SDK and client version issues

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

3 years agoConfigure keystone service password on MON env variables 48/10548/1
limon [Thu, 4 Mar 2021 12:43:09 +0000 (13:43 +0100)]
Configure keystone service password on MON env variables

Change-Id: I04553aa703d2f4106d5bbf5585bec9ab2e202249
Signed-off-by: limon <alimonj@indra.es>
(cherry picked from commit 6dc17050539cddb69457e8b32d1fc567b1d997fb)

3 years agoapt hold k8s packages 24/10524/2
endika [Mon, 22 Mar 2021 16:13:45 +0000 (17:13 +0100)]
apt hold k8s packages

Change-Id: Ib940a950bb0a7a40f2d867dcd5e9b3d46e7238c0
Signed-off-by: endika <endika.aldecoa@ehu.eus>
3 years agoAnsible installer update 17/10517/1
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>
(cherry picked from commit 75a38c73867914a576062a3b50d5c80ace795f6c)

3 years agoUbuntu version updated to 20.04 45/10445/1 v9.1.0
palsus [Thu, 25 Feb 2021 20:16:19 +0000 (20:16 +0000)]
Ubuntu version updated to 20.04

Change-Id: I03dffeb5f1934828f0f8d85760a0b396373ae082
Signed-off-by: palsus <subhankar.pal@aricent.com>
(cherry picked from commit 9687207f24cc4ff95c6b0bd147d658c99c47ab93)

3 years agoAdded CACHE_DATE arg to force recreating the docker layer during docker build of... 35/10435/1
garciadeblas [Tue, 2 Mar 2021 17:21:36 +0000 (17:21 +0000)]
Added CACHE_DATE arg to force recreating the docker layer during docker build of tests image

Change-Id: Icbe3c76be7618c557b461227c61463cfcc34d0ac
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoMinor fix to charmed installer. Expose OSM_HOSTNAME properly 21/10421/1
David Garcia [Tue, 2 Mar 2021 11:20:14 +0000 (12:20 +0100)]
Minor fix to charmed installer. Expose OSM_HOSTNAME properly

Change-Id: I585eb7f490099fc9a86d072ab8e9a4b40ee378b9
Signed-off-by: David Garcia <david.garcia@canonical.com>
3 years agoFix --microstack flag in charmed installer 13/10313/4
David Garcia [Mon, 15 Feb 2021 12:38:42 +0000 (13:38 +0100)]
Fix --microstack flag in charmed installer

This commit does several things:
- Geneneral fix for installing the most stable release of microstack
- Configure and set up microstack so it is ready to use: create an
osm-ext network, a router, configure the security groups etc; so it is
ready to be used by OSM
- Add xenial, bionic, and focal images to microstack
- Add microstack as VIM to OSM

Change-Id: Id15531ee94c893e2670b7ee8a89b2eb4e55cead0
Signed-off-by: David Garcia <david.garcia@canonical.com>
3 years agoChange VM Size 80/10380/1
beierlm [Tue, 23 Feb 2021 16:37:01 +0000 (11:37 -0500)]
Change VM Size

Changes flavor to a sanity constant so we can tailor it without
needing further code changes.

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

3 years agoCorrect Docker Proxy Syntax 57/10357/1
beierlm [Fri, 19 Feb 2021 14:34:57 +0000 (09:34 -0500)]
Correct Docker Proxy Syntax

Updates the syntax for managing the docker proxy so we can avoid
the rate limit issue

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

3 years agoFixes Bug 1436 - docker/tests/Dockerfile: cryptography dependencies 26/10326/2
João Fonseca [Mon, 15 Feb 2021 15:57:51 +0000 (15:57 +0000)]
Fixes Bug 1436 - docker/tests/Dockerfile: cryptography dependencies

Change-Id: I1c3fad357012407285e5ada403916b829312cd97
Signed-off-by: João Fonseca <jpedrofonseca@av.it.pt>
(cherry picked from commit b3daa3a5aa897ea1f0708c520e325bfd682d2a12)

3 years agoPin juju version to 2.8.8 87/10287/1
David Garcia [Wed, 10 Feb 2021 16:43:15 +0000 (17:43 +0100)]
Pin juju version to 2.8.8

Change-Id: Ifa3b66d489adfd2522814d07a99886b35492dc67
Signed-off-by: David Garcia <david.garcia@canonical.com>
3 years agoFix minor issue with permissions in Charmed Installer 69/10269/2
David Garcia [Mon, 8 Feb 2021 14:18:27 +0000 (15:18 +0100)]
Fix minor issue with permissions in Charmed Installer

Change-Id: I53068cdbfd15e357d25cb18c2c5435a69601824f
Signed-off-by: David Garcia <david.garcia@canonical.com>
3 years agoFixes Bug 1275- aiokafka version updated 74/10274/2
João Fonseca [Mon, 8 Feb 2021 19:56:26 +0000 (19:56 +0000)]
Fixes Bug 1275- aiokafka version  updated

Change-Id: I0b3d5615b072ab8d5df3d7d69a886775ca7ef3e2
Signed-off-by: João Fonseca <jpedrofonseca@av.it.pt>
3 years agoCherry picks from master 70/10270/1
beierlm [Mon, 8 Feb 2021 16:10:53 +0000 (11:10 -0500)]
Cherry picks from master

https://osm.etsi.org/gerrit/c/osm/devops/+/10223
https://osm.etsi.org/gerrit/c/osm/devops/+/10195
https://osm.etsi.org/gerrit/c/osm/devops/+/10142

Change-Id: I80cb5afe884c03a6e97553b4b805fc98c4a5e41b
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agoFixes Bug 1429: Add a different way to install nodejs 49/10249/1
fonsecaj [Wed, 3 Feb 2021 10:27:58 +0000 (10:27 +0000)]
Fixes Bug 1429: Add a different way to install nodejs

Change-Id: Ica1150cb1f85e9706d2259904fd5ddc483b48754
Signed-off-by: fonsecaj <jpedrofonseca@av.it.pt>
(cherry picked from commit 988b7868af92877714dab49ff9d877f55569d39e)

3 years agoPin PLA image tag to "8" 24/10224/1
David Garcia [Wed, 27 Jan 2021 12:13:10 +0000 (13:13 +0100)]
Pin PLA image tag to "8"

This needs to be reverted when PLA is correctly published to DockerHub

Change-Id: I1aa509288ae49233f110e5951c491f3598be8b05
Signed-off-by: David Garcia <david.garcia@canonical.com>
3 years agoFix for Bug 1397: Inconsistent behaviour between MON image in dockerhub and MON image... 13/10213/2
palsus [Mon, 18 Jan 2021 08:36:26 +0000 (08:36 +0000)]
Fix for Bug 1397: Inconsistent behaviour between MON image in dockerhub and MON image built from git repo

Change-Id: I8f66786134cf08d91a70b9da7ddfbb1a5ca03800
Signed-off-by: palsus <subhankar.pal@aricent.com>
(cherry picked from commit e3cecd90b15c05a04df7eca459e2a35a4bf31df8)

3 years agoSnap promotion fix 11/10211/1
beierlm [Fri, 22 Jan 2021 20:53:31 +0000 (15:53 -0500)]
Snap promotion fix

Changes snapcraft to run directly on host instead of in docker
continer.  This adds the requirement to have snapcraft installed
in the Jenkins agent, but is more reliable as the snapcraft docker
image is not the best practice anymore for building snaps.

Change-Id: I3c26773a4989551da92a0015749717fe2d622b22
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agoFix bug 1404: helm2 initialization with new stable repo URL 78/10178/2
garciadeblas [Fri, 15 Jan 2021 11:37:49 +0000 (11:37 +0000)]
Fix bug 1404: helm2 initialization with new stable repo URL

Change-Id: I30e5a84002c2f5675f0f0403ddaef2383980296f
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoFix installation to use 9 tag as default for docker images 51/10151/4
garciadeblas [Mon, 21 Dec 2020 11:50:36 +0000 (11:50 +0000)]
Fix installation to use 9 tag as default for docker images

Change-Id: Ia0bed5627301fa7bbcaa5a5229ea9138f70d2d92
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agofull_install_osm.sh: fixes for docker proxy and docker tag for PLA 50/10150/4
garciadeblas [Thu, 17 Dec 2020 21:48:24 +0000 (21:48 +0000)]
full_install_osm.sh: fixes for docker proxy and docker tag for PLA

Change-Id: I272668b9461d3ccd1fc6509fa61dfd1765d824f5
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoSeveral fixes to the charmed installer 79/10179/1
David Garcia [Fri, 15 Jan 2021 11:58:59 +0000 (12:58 +0100)]
Several fixes to the charmed installer

- fix bug 1394: update images defining a default TAG (=9)
- fix bug 1401: add --advertise-address option to kube-apiserver in
microk8s
- fix bug 1405
- fix bug 1406: pin the version of the osmclient snap. Add the logic to
install/refresh the snap to the proper version. Add channel preference
(stable -> candidate -> beta -> edge), so the installers tries first
with stable, but if it does not exist, then tries with candidate, etc.

Change-Id: I02edaaeed81e3b06ed328e81ecab2bf71d42c628
Signed-off-by: David Garcia <david.garcia@canonical.com>
3 years agoFix 1391: New version of yq snap makes charmed installer to fail 56/10156/3
calvinosanc1 [Mon, 4 Jan 2021 10:50:09 +0000 (11:50 +0100)]
Fix 1391: New version of yq snap makes charmed installer to fail
Fix 1394: Use of R9 images

Change-Id: I0e246889e914c93963984b26423ab5620cb65efe
Signed-off-by: calvinosanc1 <guillermo.calvino@canonical.com>
3 years agoUse Ref as Revision 45/10145/3 v9.0.0
beierlm [Fri, 18 Dec 2020 12:30:48 +0000 (07:30 -0500)]
Use Ref as Revision

Change to use the short ref for the proposed revision instead
of Gerrit Ref Spec.  This allows the job to succeed even if
there is no refspec, such as when a new branch is created.

Change-Id: Icec5615f8e01f33507dc87765a240a3de2489e09
Signed-off-by: beierlm <mark.beierl@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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>