kuberef.git
3 years agoUpdate documentation for Jerma release 78/71478/3 stable/jerma opnfv-10.0.0
Rihab Banday [Tue, 24 Nov 2020 09:57:06 +0000 (10:57 +0100)]
Update documentation for Jerma release

This patch updates the content of documentation for the
upcoming OPNFV Jerma release.

Change-Id: I9618f2a14cfb85f464ca8817ac86d6b9e011ab1c
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71478
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Victor Morales <chipahuac@hotmail.com>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
3 years agoAdding scripts for running RC2 testcases 88/71188/18
Rihab Banday [Fri, 25 Sep 2020 12:28:27 +0000 (14:28 +0200)]
Adding scripts for running RC2 testcases

This patch adds support for running RC2 Functest
testcases suite on the K8s cluster deployed by
Kuberef deployer.

It leverages on Gitlab CI/CD variables to prepare
next Docker runners (for the time being, the
deployment script wrongly forces Shell runners).

Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: I7652aa817ad9b434235abf0fab9ba63f4ad2f23e
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71188
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Cedric Ollivier <cedric.ollivier@orange.com>
3 years agoAdd support for deploying to Equinix Metal bare-metal servers 01/71301/19
Michael S. Pedersen [Fri, 23 Oct 2020 12:24:43 +0000 (12:24 +0000)]
Add support for deploying to Equinix Metal bare-metal servers

Adds an additional hw_config which is simplified (equinix-metal).
Adds support for skipping HW provisioning (pre-provisioned through EM).
Usage: deploy.sh [k8s]
Adds a few new helper functions, and updates existing to support changes.

Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com>
Signed-off-by: Victor Morales <v.morales@samsung.com>
Change-Id: I2f84c662d183ba224e0edd8a218abe8b46c1fe45
Signed-off-by: Victor Morales <v.morales@samsung.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71301
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-by: Victor Morales <chipahuac@hotmail.com>
3 years agoSwitch to older settings for ansible playbooks and 33/71233/3
Rihab Banday [Tue, 6 Oct 2020 07:45:11 +0000 (09:45 +0200)]
Switch to older settings for ansible playbooks and
VM creation steps

This change introduces two (older) settings needed for
CentOS 7 which were removed by recent patches that were
tested only on Ubuntu 16.04. These settings have been
already tested on Ubtunu 16.04.

Change-Id: I3039d650b59869d45e11afdda8827c850f686195
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Co-Authored-By: Victor Morales <v.morales@samsung.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71233
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
3 years agoFix linting issues 77/71377/2
Victor Morales [Thu, 12 Nov 2020 01:52:09 +0000 (20:52 -0500)]
Fix linting issues

This change fixes some linting issues accumulated from previous
patchsets and ignored by the CI jobs.

Signed-off-by: Victor Morales <v.morales@samsung.com>
Change-Id: I0bf2e67aee786505e9c01570d4d8d99df62b1f9f
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71377
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Tested-by: Georg Kunz <georg.kunz@ericsson.com>
Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
3 years agoRefactor functions.sh script 78/71378/2
Victor Morales [Thu, 12 Nov 2020 02:07:22 +0000 (21:07 -0500)]
Refactor functions.sh script

This change refactors some common instructions used by the functions.sh
script.

Signed-off-by: Victor Morales <v.morales@samsung.com>
Change-Id: Ic8cf3cfdd4a46d6fc32f45e4021a07cadc027736
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71378
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoAdded structure for OPNFV documentation 98/71298/2
Georg Kunz [Wed, 21 Oct 2020 19:12:46 +0000 (21:12 +0200)]
Added structure for OPNFV documentation

Having this structure in place is a requirement for passing release
milestone M2. This change does not modify the content of the
current documentation / deployment guide.

Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
Change-Id: I07e8820901970da1199f4a474161e49f25707ecc
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71298
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
Reviewed-by: Sofia Wallin <sofia.wallin@est.tech>
3 years agoModify setup_network function to add support for Node 3-5 43/71243/6
Rihab Banday [Wed, 7 Oct 2020 16:35:42 +0000 (18:35 +0200)]
Modify setup_network function to add support for Node 3-5

This change modifies setup_network function to add support
for configuring networking for pod 19 node 3,4 and 5.

Change-Id: I9cbdedfe57b86b0b64f96a51ede0ad7b2490d797
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71243
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
Reviewed-by: Victor Morales <chipahuac@hotmail.com>
3 years agoUpdate check of libvirt(d) group 57/71257/2
Michael S. Pedersen [Thu, 15 Oct 2020 10:31:04 +0000 (10:31 +0000)]
Update check of libvirt(d) group

Current check assumes whitespaces on either side of group name.
This patch removes that assumption

Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com>
Change-Id: I4802420530be05831b8611b812c9866055cac714
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71257
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Victor Morales <chipahuac@hotmail.com>
Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
3 years agoAdd yq checker 30/71230/3
Victor Morales [Mon, 5 Oct 2020 22:42:01 +0000 (18:42 -0400)]
Add yq checker

The yq parser is required by the deploy.env file to extract values from
PDF and IDF files. This change ensures that binary is present.

Signed-off-by: Victor Morales <v.morales@samsung.com>
Change-Id: I5400bc4910ea88da74fab188bf1cfdbebe3cbed1
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71230
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
3 years agoUpdated PDF and IDF for Intel POD 19 34/71234/3
Rihab Banday [Tue, 6 Oct 2020 08:45:04 +0000 (10:45 +0200)]
Updated PDF and IDF for Intel POD 19

This change updates the config files for Intel
POD 19 based on recent hardware updates. Additionally it
adds config for node 3, 4 and 5.

Change-Id: I3a8caf6c8f273567057e325ab27d65f8920ba4ad
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71234
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Victor Morales <chipahuac@hotmail.com>
Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
3 years agoAdding .gitlab-ci.yml for GitLab 94/70894/6
Rihab Banday [Fri, 28 Aug 2020 10:27:30 +0000 (12:27 +0200)]
Adding .gitlab-ci.yml for GitLab

This patch introduces .gitlab-ci.yml file to
test the e2e deployment and RC2 testcases suite
in GitLab.

Change-Id: If9e39d42a433611e35ced296c60dcb4d2ffbe5a2
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/70894
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Tested-by: Georg Kunz <georg.kunz@ericsson.com>
Reviewed-by: Victor Morales <chipahuac@hotmail.com>
Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
3 years agoRendering BMRA inventory from IDF and PDF via ansible 92/70892/4
Georg Kunz [Thu, 27 Aug 2020 14:53:01 +0000 (16:53 +0200)]
Rendering BMRA inventory from IDF and PDF via ansible

This patch adds a simple playbook which renders the BMRA inventory
from the supplied set of PDF and IDF.

Signed-off-by: Georg Kunz <georg.kunz@est.tech>
Change-Id: I2cd555440ad51594d5a2b482bfad085769d0e4e0
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/70892
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoSeparate tox dependencies 23/71023/3
Victor Morales [Tue, 8 Sep 2020 16:37:41 +0000 (09:37 -0700)]
Separate tox dependencies

Having tox dependencies in a separate file can help to easily track
changes and licenses of them. This change creates a
`test-requirements.txt` for listing those dependencies.

Signed-off-by: Victor Morales <v.morales@samsung.com>
Change-Id: I779055d0d885c7f92c359dab6dae62344ae74600
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71023
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoDisable Ansible host key checking in BMRA container 81/71081/4
Rihab Banday [Fri, 11 Sep 2020 12:49:54 +0000 (14:49 +0200)]
Disable Ansible host key checking in BMRA container

This change avoids the need to copy SSH keys to the
provisioned hosts during BMRA provisioning by loading
the respective env variable inside the BMRA container.

Change-Id: I30cef25f65492da26435259b7f028f79c3b8cb01
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71081
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michael.soelvkaer@gmail.com>
Reviewed-by: Georg Kunz <georg.kunz@est.tech>
3 years agoReplace worker node specific config file by a common file 74/71074/2
Rihab Banday [Thu, 10 Sep 2020 16:50:45 +0000 (18:50 +0200)]
Replace worker node specific config file by a common file

This change replaces the BMRA node1.yml file by a common config
file under group_vars which includes overrides for all the
worker nodes in a cluster.

Change-Id: I305fd227ba0032f80cbf1daa9019fdfd881baa30
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71074
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michael.soelvkaer@gmail.com>
Reviewed-by: Georg Kunz <georg.kunz@est.tech>
3 years agoImplementing jump VM create via ansible 82/70882/11
Georg Kunz [Mon, 24 Aug 2020 21:09:51 +0000 (23:09 +0200)]
Implementing jump VM create via ansible

This patch reimplements the creation of the jump VM as ansible
playbook. The advantage of this approach is a more deterministic
behavior and the ability to render configuration files using
templates based on the pdf and idf.

Moreover, this patch allows to overwrite the VENDOR variable.
This is necessary to allow deployment in different labs via
CI.

The BMRA configuration has not yet been transformed to ansible
template and needs to follow in subsequent patches.

Signed-off-by: Georg Kunz <georg.kunz@est.tech>
Signed-off-by: Victor Morales <v.morales@samsung.com>
Change-Id: I2cde41dcecec7480bddf71ed864f06244a89f1f3
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/70882
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Victor Morales <chipahuac@hotmail.com>
3 years agoFixing broken copy of BMRA host_vars 93/70893/5
Georg Kunz [Thu, 27 Aug 2020 19:43:22 +0000 (21:43 +0200)]
Fixing broken copy of BMRA host_vars

The host_vars directory is not correctly copied during deployment
resulting in a deployment failure.

Signed-off-by: Georg Kunz <georg.kunz@est.tech>
Change-Id: Ic56c9073d7f535245aafe9b962b627622052a9a0
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/70893
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoAdding checks for installation prerequisites 41/70841/4
Georg Kunz [Fri, 21 Aug 2020 14:09:59 +0000 (16:09 +0200)]
Adding checks for installation prerequisites

This patch adds a few preliminary checks for installation prerequisites,
currently covering software dependencies and runtime prerequisites. More
checks need to be added over time.

Signed-off-by: Georg Kunz <georg.kunz@est.tech>
Change-Id: Ic59b99873983511b74ebdce06d3aeb2ade318a76
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/70841
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Victor Morales <chipahuac@hotmail.com>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoExtending PDF and IDF of Ericsson pod2 to all nodes 22/71022/2
Georg Kunz [Tue, 8 Sep 2020 15:52:40 +0000 (17:52 +0200)]
Extending PDF and IDF of Ericsson pod2 to all nodes

Pod2 of the Ericsson OPNFV lab should be used for CI jobs deploying RI2
on all 5 nodes. This adds the missing hardware infos for provisinioning
all 5 nodes.

Note: The BMRA deployment still considers only 2 nodes. This will be addressed
in a separate patch.

Signed-off-by: Georg Kunz <georg.kunz@est.tech>
Change-Id: Ie31365cf04f6fc041d3173099e7c2e8f7020d6b8
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71022
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Victor Morales <chipahuac@hotmail.com>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoFix PyYAML error caused by net-attach-defs-create role in BMRA 39/70839/6
Rihab Banday [Fri, 21 Aug 2020 13:03:34 +0000 (15:03 +0200)]
Fix PyYAML error caused by net-attach-defs-create role in BMRA

This change modifies net-attach-defs-create role to fix PyYAML
errors discovered during installation of openshift package on
remote nodes.

Change-Id: I45d9fef77942b8bec0bfc5fb50d8be53c96adb75
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/70839
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Georg Kunz <georg.kunz@est.tech>
3 years agoFixing linting errors 95/70895/3
Georg Kunz [Fri, 28 Aug 2020 19:07:04 +0000 (21:07 +0200)]
Fixing linting errors

Fixing linting errors raised by shellcheck.

Signed-off-by: Georg Kunz <georg.kunz@est.tech>
Change-Id: I3996b81d930724cf37a855649c615782d756d809
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/70895
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoFix linting issues 90/70890/3
Victor Morales [Thu, 27 Aug 2020 15:08:38 +0000 (11:08 -0400)]
Fix linting issues

The CI job has been enabled and there are some issues reported by
tox and shellcheck. This change fixes them.

Signed-off-by: Victor Morales <v.morales@samsung.com>
Change-Id: I2678dbfeffdce61aa330aa9bba36010622f7227e
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/70890
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Tested-by: Georg Kunz <georg.kunz@est.tech>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-by: Georg Kunz <georg.kunz@est.tech>
3 years agoPDF and IDF for Ericsson pod 2 to be used in CI 26/70826/3
Georg Kunz [Tue, 18 Aug 2020 15:36:59 +0000 (17:36 +0200)]
PDF and IDF for Ericsson pod 2 to be used in CI

Pod 2 is meant to be used for verification deployment jobs. This
patch adds the PDF and IDF config files for this pod.

Signed-off-by: Georg Kunz <georg.kunz@est.tech>
Change-Id: I33231547921e82cf77c7051e6ba0319ffb66a09a
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/70826
Reviewed-by: Victor Morales <chipahuac@hotmail.com>
Tested-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoAlways copy configuration data inside jump VM 06/70706/3
Georg Kunz [Tue, 11 Aug 2020 08:15:19 +0000 (10:15 +0200)]
Always copy configuration data inside jump VM

This helps to pick up changes between redeploys.

Signed-off-by: Georg Kunz <georg.kunz@est.tech>
Signed-off-by: Victor Morales <v.morales@samsung.com>
Change-Id: I4a1b23ad4187f63cbb2b638f62fb463ed2b37af5
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/70706
Reviewed-by: Victor Morales <chipahuac@hotmail.com>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
Tested-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoDockerfile of the container that installs BMRA 38/70838/2
Rihab Banday [Fri, 21 Aug 2020 13:20:55 +0000 (15:20 +0200)]
Dockerfile of the container that installs BMRA

This change adds a Dockerfile for building a container with
all the dependencies required to install BMRA. Currently, the
tooling uses a pre-built image, but this file can be useful
during troubleshooting issues.

Change-Id: Ibe086da10f3ece069327cee521af6f7fbe990a8f
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/70838
Reviewed-by: Victor Morales <chipahuac@hotmail.com>
Reviewed-by: Georg Kunz <georg.kunz@est.tech>
Tested-by: Georg Kunz <georg.kunz@est.tech>
3 years agoIgnore E006 bashate rule 33/70833/1
Victor Morales [Wed, 19 Aug 2020 18:12:28 +0000 (14:12 -0400)]
Ignore E006 bashate rule

The E006 bashate rule enforces to use less than 80 characters per line.
Even when this is a good practice to be enforced most of the time makes
development process harder so we can skip it for now.

Signed-off-by: Victor Morales <v.morales@samsung.com>
Change-Id: Id0468b707bda01d719af36c57c6d1ce54246dae1

3 years agoMerge ""Better" pattern matching for name of jump VM"
Rihab Banday [Wed, 19 Aug 2020 07:35:35 +0000 (07:35 +0000)]
Merge ""Better" pattern matching for name of jump VM"

3 years agoMerge "Disable strict host checking everywhere"
Rihab Banday [Wed, 19 Aug 2020 07:35:24 +0000 (07:35 +0000)]
Merge "Disable strict host checking everywhere"

3 years agoMerge "Adding Deployment Guide"
Rihab Banday [Wed, 19 Aug 2020 07:34:07 +0000 (07:34 +0000)]
Merge "Adding Deployment Guide"

3 years agoMerge "Set Jumpbox root's password"
Georg Kunz [Tue, 18 Aug 2020 20:28:18 +0000 (20:28 +0000)]
Merge "Set Jumpbox root's password"

3 years agoFix minor bugs observed in hw_config files 25/70825/2
Rihab Banday [Tue, 18 Aug 2020 08:51:24 +0000 (10:51 +0200)]
Fix minor bugs observed in hw_config files

This patch fixes minor bugs observed in hw_config files:

1. Rename admin network to public in Intel's IDF to have
consistent network naming schemes across IDF's.

2. Remove arbitary/unverified VLAN's from Intel's PDF.

3. Move shebang to top to fix linting error.

Change-Id: Ibad63e80431880ef5558864bf890dd1877400b08
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoAdding Deployment Guide 11/70711/5
Rihab Banday [Tue, 11 Aug 2020 08:56:54 +0000 (08:56 +0000)]
Adding Deployment Guide

This patch adds a deployment guide that describes the steps to initiate
the deployment.

Change-Id: I1835c0b6eee5945990ae078a20d2e2c92516c6b1
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoSet Jumpbox root's password 18/70618/3
Victor Morales [Fri, 31 Jul 2020 17:02:54 +0000 (13:02 -0400)]
Set Jumpbox root's password

Every OS has different root's passwords which complicates the
throubleshooting process. This change sets the root password of
the jumpbox to what's defined in the ROOT_PASSWORD env variable.

Signed-off-by: Victor Morales <v.morales@samsung.com>
Change-Id: I7b926f9500de9341a660b86ccb1c9eafbfaf6053

3 years agoDisable strict host checking everywhere 05/70705/3
Georg Kunz [Tue, 11 Aug 2020 08:13:31 +0000 (10:13 +0200)]
Disable strict host checking everywhere

Disable stricty host key checking for all SSH commands.

Signed-off-by: Georg Kunz <georg.kunz@est.tech>
Change-Id: Id08a4e2ef3f441b2a3ba20868c4e3af7fc04c1c5

3 years ago"Better" pattern matching for name of jump VM 42/70642/3
Georg Kunz [Sun, 2 Aug 2020 20:35:33 +0000 (22:35 +0200)]
"Better" pattern matching for name of jump VM

The pattern currently used matches also non-exact hits, such as
"jumphost" and "xci-jumphost". This tweak attempts to achieve better
exact word matches. Note: the -w option of grep does not seem to do
the trick as well.

Signed-off-by: Georg Kunz <georg.kunz@est.tech>
Change-Id: I8cb98a5540a41f5e6044efe12584403b7f4398df

3 years agoUpdate env variable extraction and VM creation steps 09/70609/9
Rihab Banday [Thu, 30 Jul 2020 09:16:28 +0000 (09:16 +0000)]
Update env variable extraction and VM creation steps

This change uses YAML parser to extract environmental variables from PDF
and IDF. Additionally it merges the VM creation step with the main
functions script.

Change-Id: I2089b7a84f15e892d57fbadf06252db8769f0fbf
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoMerge "Remove creation of httpboot folder"
Rihab Banday [Mon, 17 Aug 2020 08:44:56 +0000 (08:44 +0000)]
Merge "Remove creation of httpboot folder"

3 years agoMerge "Remove double quotes around EOF"
Rihab Banday [Sun, 16 Aug 2020 20:41:47 +0000 (20:41 +0000)]
Merge "Remove double quotes around EOF"

3 years agoRemove creation of httpboot folder 51/70751/3
Rihab Banday [Wed, 12 Aug 2020 09:01:24 +0000 (11:01 +0200)]
Remove creation of httpboot folder

Remove creation of httpboot folder and manual copy
of CentOS 7 image as the support is now added
upstream by [1] and [2].

[1] https://gerrit.nordix.org/c/infra/provisioner/bifrost/+/5547
[2] https://gerrit.nordix.org/c/infra/stack/ironic/+/5550

Change-Id: I3eae2816091e2631d2170f9950fedd2f13e84db7
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoRemove double quotes around EOF 53/70753/2
Rihab Banday [Wed, 12 Aug 2020 16:25:30 +0000 (18:25 +0200)]
Remove double quotes around EOF

The double quotes introduced by linting tool
around EOF in functions.sh causes issues during
deployment in CentOS. This change removes the double quotes.

Change-Id: I23f4739e9bfbde296c48d4cf260b8483a844fd0b
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoImprove wait instruction 21/70621/2
Victor Morales [Fri, 31 Jul 2020 19:37:01 +0000 (15:37 -0400)]
Improve wait instruction

The time that the jumpbox takes can be different every time that is
created so waiting for a specific state can help during the creation.

Signed-off-by: Victor Morales <v.morales@samsung.com>
Change-Id: Idee038556bc669594660a308e405e79fe13ba118

3 years agoMerge "Implement linting process"
Rihab Banday [Wed, 12 Aug 2020 15:39:02 +0000 (15:39 +0000)]
Merge "Implement linting process"

3 years agoMerge "Adding pdf and idf for Ericsson pod 1"
Rihab Banday [Wed, 12 Aug 2020 15:38:43 +0000 (15:38 +0000)]
Merge "Adding pdf and idf for Ericsson pod 1"

3 years agoImplement linting process 17/70617/4
Victor Morales [Thu, 30 Jul 2020 21:56:36 +0000 (17:56 -0400)]
Implement linting process

This commit pretends to make changes required by yamllint and shellcheck
tools.

Signed-off-by: Victor Morales <v.morales@samsung.com>
Change-Id: I73b0a3b54f89b2692c1c3af7940a3acf1124fadb

3 years agoAdding pdf and idf for Ericsson pod 1 40/70640/4
Georg Kunz [Sun, 2 Aug 2020 20:27:32 +0000 (22:27 +0200)]
Adding pdf and idf for Ericsson pod 1

This adds the pod descriptor file and installer descriptor file
for Ericsson pod 1.

Signed-off-by: Georg Kunz <georg.kunz@est.tech>
Change-Id: Ie518f71a35b657ef4a7b17464cb8f0e4116a3771

3 years agoMerge "Drop VM_IP environment variable"
Rihab Banday [Tue, 11 Aug 2020 09:41:55 +0000 (09:41 +0000)]
Merge "Drop VM_IP environment variable"

3 years agoDrop VM_IP environment variable 20/70620/1
Victor Morales [Fri, 31 Jul 2020 17:34:33 +0000 (13:34 -0400)]
Drop VM_IP environment variable

It's not necessary to declare this variable because the IP address
of the jumpbox can retrieved calling the get_vm_ip function.

Signed-off-by: Victor Morales <v.morales@samsung.com>
Change-Id: I92f29a70ea1924eb105d66781d9d313427e2d1f0

3 years agoAdding gitignore file to repo 16/70616/1
Georg Kunz [Fri, 31 Jul 2020 13:21:47 +0000 (15:21 +0200)]
Adding gitignore file to repo

Signed-off-by: Georg Kunz <georg.kunz@est.tech>
Change-Id: I87faf75ee5801259fb2bdb1534934d84fc2b3a5d

3 years agoAdding Victor Morales as committer to Info file 15/70615/2
Georg Kunz [Thu, 30 Jul 2020 22:20:25 +0000 (00:20 +0200)]
Adding Victor Morales as committer to Info file

Change-Id: I101159dcf90247ecdc75153a0826eea2d975e5d2
Signed-off-by: Georg Kunz <georg.kunz@est.tech>
3 years agoMerge "Automation adds INFO.yaml"
Georg Kunz [Thu, 30 Jul 2020 22:10:03 +0000 (22:10 +0000)]
Merge "Automation adds INFO.yaml"

3 years agoInitial structure for e2e deployment scripting 69/70569/6
Rihab Banday [Tue, 21 Jul 2020 10:49:45 +0000 (10:49 +0000)]
Initial structure for e2e deployment scripting

This patch includes the initial skeleton of the e2e deployment
tooling. This is expected to evolve as further development progresses.

Change-Id: Ie1e334e672acb2213e8f6c2174506b685f826f98
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoAutomation adds INFO.yaml 85/70385/2
LF Jenkins CI [Mon, 13 Jul 2020 17:26:58 +0000 (17:26 +0000)]
Automation adds INFO.yaml

Change-Id: Iac88d52ed23707059e075daec53ee9de70244f0d
Signed-off-by: lf-jobbuilder <releng+lf-jobbuilder@linuxfoundation.org>
3 years agoAutomation adds .gitreview 84/70384/2
LF Jenkins CI [Mon, 13 Jul 2020 17:10:37 +0000 (17:10 +0000)]
Automation adds .gitreview

Change-Id: I6f433cb9f4db682c5e9061e37ad9a153e75c5c7b
Signed-off-by: lf-jobbuilder <releng+lf-jobbuilder@linuxfoundation.org>
3 years agoInitial empty repository
LF Jenkins CI [Mon, 13 Jul 2020 17:10:27 +0000 (17:10 +0000)]
Initial empty repository