kuberef.git
14 months agoApplying Piccolo theme 66/73866/11 master
xudan16 [Mon, 13 Feb 2023 07:36:55 +0000 (15:36 +0800)]
Applying Piccolo theme

Signed-off-by: xudan16 <xudan16@huawei.com>
Change-Id: If169f3250aaa8ba326919c98fb36170eb8402232
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/73866
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Gergely Csatari <gergely.csatari@nokia.com>
14 months agoChange gitlab deploy pod tag to be unh-ri2-pod1 68/73868/3
xudan16 [Wed, 15 Feb 2023 03:28:14 +0000 (11:28 +0800)]
Change gitlab deploy pod tag to be unh-ri2-pod1

Switch the gitlab pipeline pod to be unh-ri2-pod1-shell
and unh-ri2-pod1-docker.
Change the env in deploy.env to be unh to use the
pdf anf idf of unh pod1.

Signed-off-by: xudan16 <xudan16@huawei.com>
Change-Id: Id69e8daeca69d3327919efaaa2a8d9fabb3569d4
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/73868
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
14 months agoAdd example files about IDF and PDF 40/73840/5
zhuguanyu [Mon, 30 Jan 2023 11:14:09 +0000 (19:14 +0800)]
Add example files about IDF and PDF

Issue-ID: KUB-59
Signed-off-by: zhuguanyu <zhuguanyu5@huawei.com>
Change-Id: I3f69e19f56f6322d46f5f756d0cca9a3a1887166
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/73840
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Dan Xu <xudan16@huawei.com>
14 months agoFix the Doc lint, shellcheck and doc links Errors 67/73867/4
xudan16 [Tue, 14 Feb 2023 04:26:02 +0000 (12:26 +0800)]
Fix the Doc lint, shellcheck and doc links Errors

Signed-off-by: xudan16 <xudan16@huawei.com>
Change-Id: I15b4cd15a17782999af30234b459f8aacf45e768
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/73867
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
23 months agoadd sudo 88/73388/3 stable/moselle
sharath reddy [Wed, 25 May 2022 10:37:43 +0000 (16:07 +0530)]
add sudo

Issue-ID: KUB-64

Signed-off-by: sharath reddy <bs.reddy@huawei.com>
Change-Id: If7b5b20a46881fb06e873f3fd8d4427dad7bdb91
Signed-off-by: sharath reddy <bs.reddy@huawei.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/73388
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Dan Xu <xudan16@huawei.com>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
Reviewed-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com>
23 months agoautomated few manual steps 39/73339/6
sharath reddy [Thu, 5 May 2022 10:47:00 +0000 (16:17 +0530)]
automated few manual steps

Issue-ID: KUB-64

Signed-off-by: sharath reddy <bs.reddy@huawei.com>
Change-Id: I3ad2c50d7ad84a04f5a7270238f14111e58fc20a
Signed-off-by: sharath reddy <bs.reddy@huawei.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/73339
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
2 years agoFix bug of loading wrong PDF and IDF files 06/73306/3
xudan16 [Thu, 14 Apr 2022 09:13:26 +0000 (17:13 +0800)]
Fix bug of loading wrong PDF and IDF files

Also fix KUB-62 and another tiny bug

JIRA: KUB-62

Signed-off-by: xudan16 <xudan16@huawei.com>
Change-Id: I0ec0837b60110fc6af6bd49c6e5c9564dc38adc2
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/73306
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
2 years agoUpdate deployment guide doc 33/73233/7
xudan16 [Tue, 1 Mar 2022 07:21:56 +0000 (15:21 +0800)]
Update deployment guide doc

After trying to deploy with vms, find some errors and additional
requirements that need to be added into the deployment guide.

Also add some minor updates in function.sh.

Signed-off-by: xudan16 <xudan16@huawei.com>
Change-Id: I91f1d4efb28178c79d6a68f011da2b165633f345
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/73233
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
2 years agoUpdate INFO file 23/73223/3
Rihab Banday [Thu, 17 Feb 2022 10:09:19 +0000 (11:09 +0100)]
Update INFO file

This change updates the entries of INFO.yaml
with the new changes.

Change-Id: I75e45e94cf08d847e547a0375110c18d232bbc42
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/73223
Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
Reviewed-by: Dan Xu <xudan16@huawei.com>
Reviewed-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com>
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
2 years agoReplace previous links in the documentation 28/73228/3
Rihab Banday [Tue, 22 Feb 2022 10:25:56 +0000 (11:25 +0100)]
Replace previous links in the documentation

Due to the recent effort of converting the docs from markdown
to rst format, the old links in the documentation aren't working.
This change updates the previous links and adds minor updates.

Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Change-Id: I8f8d5509a0d0c2bee84e49553e58baf276004544
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/73228
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Dan Xu <xudan16@huawei.com>
Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
2 years agoFix pip3 version issues 24/73224/2
Rihab Banday [Thu, 17 Feb 2022 10:27:53 +0000 (11:27 +0100)]
Fix pip3 version issues

The latest pipelines have been failing due to issues
caused by an older version of pip3 while setting up DPDK
in CentOS 7 based deployments. This patch includes an update
to fix it.

Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Change-Id: Ie338adaa4908850af25dc65a551b62549d431f81
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/73224
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>
2 years agoUpdate release notes 04/73104/2 stable/lakelse
Rihab Banday [Tue, 14 Dec 2021 15:17:44 +0000 (16:17 +0100)]
Update release notes

This change adds release notes for the Anuket
Lakelse Release.

Change-Id: Ia419963d5aa4558b0050beb0441929c548320a42
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/73104
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
2 years agoFix bugs with preflight check and DPDK dependency 91/72991/2
Michael Pedersen [Wed, 27 Oct 2021 09:49:18 +0000 (11:49 +0200)]
Fix bugs with preflight check and DPDK dependency

Remove preflight check for isolcpus as this breaks libvirt (VM) deployments
Update DPDK dependency on meson as v0.60.0 breaks build process

Signed-off-by: Michael Pedersen <michaelx.pedersen@intel.com>
Change-Id: I5f0a46c80c88958437b7ab8c34de5fefc337de60
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72991
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>
2 years agoRemove k8s.io in .gitlab-ci.yml 82/72982/2
Cédric Ollivier [Fri, 22 Oct 2021 09:10:08 +0000 (11:10 +0200)]
Remove k8s.io in .gitlab-ci.yml

e2e.tests removed all unlabeled tests in v1.21.
Then Functest Kubernetes removed this test cases (they are mostly part
of sig_node now).

Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: I08b9ce066cb5246bd1a775eb7927a285a03c3984
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72982
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
2 years agoReplace localhost with K8s Master IP in kubeconfig 83/72983/2
Rihab Banday [Fri, 22 Oct 2021 10:26:12 +0000 (12:26 +0200)]
Replace localhost with K8s Master IP in kubeconfig

This change is needed to fix the issue observed in
failing testcases as discussed on Slack.

Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Change-Id: I8dff51883031aeed3c770b085d7c3c546942a352
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72983
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
2 years agoUpdate .gitlab-ci.yml file to include k8s v1.21 tags 79/72979/2
Rihab Banday [Mon, 18 Oct 2021 07:41:34 +0000 (09:41 +0200)]
Update .gitlab-ci.yml file to include k8s v1.21 tags

This change updates the .gitlab-ci.yml file to
include the k8s release v1.21 tags supported
by the new BMRA v21.08 release.

Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Change-Id: Ia69f94f676030f3774b7aeea559754eca2b975e0
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72979
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
Reviewed-by: Cedric Ollivier <cedric.ollivier@orange.com>
2 years agoUpdates Kuberef to use BMRA v21.08 27/72927/5
Michael S. Pedersen [Wed, 22 Sep 2021 11:35:35 +0000 (13:35 +0200)]
Updates Kuberef to use BMRA v21.08

Updates BMRA tag to v21.08
Updates Kuberef templates for BMRA configuration
Updates idf.yml (hw_config) to match changes to BMRA
Adds new and updated BMRA patches
Fixes a few bugs in functions.sh

Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com>
Change-Id: Ifbd4d60af76dac45e49145f00cbeb90de0f7c719
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72927
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
2 years agoAdd documentation to deploy Kuberef on VM's 95/72895/5
Rihab Banday [Wed, 8 Sep 2021 10:25:00 +0000 (12:25 +0200)]
Add documentation to deploy Kuberef on VM's

This change adds the steps to deploy Kuberef on
VM's and minor changes in functions.sh.

Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Change-Id: I9a0a2df6f452a456935cd119c5d78ffd147369ab
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72895
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>
2 years agoAdd initial config to support deployments on VMs 21/72621/10
Rihab Banday [Mon, 31 May 2021 18:23:21 +0000 (20:23 +0200)]
Add initial config to support deployments on VMs

* Add initial version of PDF and IDF that
will be consumed by the hardware provisioner used in
Kuberef to bring up libvirt VMs (for now 2 VMs for dev purposes).
* Add deploy_on_vms.sh script to deploy Kuberef on VMs
* Add new functions referenced by the deploy_on_vms.sh
script - these can be merged with existing functions
* Modify some of te BMRA templates to accomodate new changes.

This has been tested on Ubuntu 18.04 baremetal server.

Change-Id: I95a5e85cdab95befd24a1cae9f367b32ce26621e
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72621
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
2 years agoRemove sig_network_serial 69/72869/2
Cédric Ollivier [Thu, 26 Aug 2021 14:27:58 +0000 (16:27 +0200)]
Remove sig_network_serial

PerformanceDNS is now optional [1] and "DNS configMap nameserver" makes
operations on coredns which could break a living deployment [2].

sig_network_serial is now empty and then can be safely removed.

[1] https://github.com/cntt-n/CNTT/pull/2580
[2] https://github.com/kubernetes/kubernetes/blob/c262d09bb7d22d62665aa215b5c6d1dd2a865007/test/e2e/network/dns_common.go#L238

Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: Ic6d1e700161838c7bed421bf28527b04dc7d588b
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72869
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
2 years agoRemove SIG CLI 62/72862/2
Cédric Ollivier [Thu, 26 Aug 2021 09:09:15 +0000 (11:09 +0200)]
Remove SIG CLI

It conforms to https://github.com/cntt-n/CNTT/pull/2579

Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: If87ae541897d60dc04187efd8e1ec05d0204c49e
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72862
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
2 years agoFix jinja2 rendering issue 25/72825/2
Rihab Banday [Thu, 12 Aug 2021 13:42:13 +0000 (15:42 +0200)]
Fix jinja2 rendering issue

This patch changes the order of the lines to fix
the jinja2 rendering issue caused by the introduction
of license headers.

Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Change-Id: I216c40669a71f5ff233ba8e154c535fdc45ec76c
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72825
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>
2 years agoChange the order of testcases to test functest-kubernetes-smoke 17/72817/2
Rihab Banday [Wed, 11 Aug 2021 16:11:05 +0000 (18:11 +0200)]
Change the order of testcases to test functest-kubernetes-smoke

This patch moves the job functest-kubernetes-cnf to the end
to test the kubernetes-smoke test cases (as discussed during Kuberef
meeting on 11-08-2021).

Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Change-Id: I20a3b141da0772ad596ea3fe1cf4bdf652c00e97
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72817
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
Reviewed-by: Cedric Ollivier <cedric.ollivier@orange.com>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
2 years agoAdding license files to repository 03/72803/2
Georg Kunz [Mon, 9 Aug 2021 14:42:03 +0000 (16:42 +0200)]
Adding license files to repository

It is good practise to have the license files stored in
the repository.

Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
Change-Id: I71457e492f2fbc299ca28199a176dcff33ba77c1
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72803
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
2 years agoAlign license headers with REUSE guidelines 04/72804/3
Georg Kunz [Mon, 9 Aug 2021 14:43:55 +0000 (16:43 +0200)]
Align license headers with REUSE guidelines

This patch applies a consistent use of license and copyright
headers to all source files according to the guidelines of
REUSE.

Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
Change-Id: I8973efe304e8fb03ad0861d4b8356221d898d548
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72804
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
2 years agoUpdate infra-engine commit ID to solve locale bug 05/72805/2
Rihab Banday [Tue, 10 Aug 2021 07:59:27 +0000 (09:59 +0200)]
Update infra-engine commit ID to solve locale bug

The latest deployments have been failing due to a missing
locale setting. This patch updates the infra-engine commit
ID which includes that setting.

Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Change-Id: I7c89551dac525a8bd47e344e56536754b701e830
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72805
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>
2 years agoAdded support for Docker Hub credentials (CI) 68/72768/4
Michael S. Pedersen [Fri, 9 Jul 2021 09:27:02 +0000 (09:27 +0000)]
Added support for Docker Hub credentials (CI)

When credentials are available on the Ansible host (/opt/kuberef/docker_config)
they will be added to the K8s nodes.

Also includes a minor change to increase the resources in the Kuberef VM

Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com>
Change-Id: I9acb0df97d2b423449ee57ae3d8241b2d9567ba2
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72768
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
2 years agoUpdate requirements.txt for BMRA Kubespray 55/72755/2
Rihab Banday [Mon, 5 Jul 2021 10:49:18 +0000 (12:49 +0200)]
Update requirements.txt for BMRA Kubespray

This patch adds the new ruamel.yaml.clib requirement recently
introduced in Kubespray to support Python 2.7.

Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Change-Id: Ia93e807e21c27a9f0c8c2e9c01023badae0409b5
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72755
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
2 years agoAdd ruamel.yaml.clib requirement for Python 2.7 49/72749/2
Rihab Banday [Fri, 2 Jul 2021 13:47:34 +0000 (15:47 +0200)]
Add ruamel.yaml.clib requirement for Python 2.7

Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Change-Id: I0bac2dd043464cbabe56ade2016fb50b6bd95cde
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72749
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
2 years agoChanging OPNFV to Anuket in documentation 48/72748/2
Georg Kunz [Fri, 2 Jul 2021 13:17:23 +0000 (15:17 +0200)]
Changing OPNFV to Anuket in documentation

Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
Change-Id: Iaea4f1229b0d83e6f58816b81e1323a0b2b42989
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72748
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
2 years agoUpdating release name in release notes 45/72745/2
Georg Kunz [Thu, 1 Jul 2021 18:59:22 +0000 (20:59 +0200)]
Updating release name in release notes

Replacing Jerma with Kali in the release notes.

Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
Change-Id: Icc6653560a064e645bc8aac1f618131c0e94e1ff
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72745
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
2 years agoAdding anchors for references into kubref documentation 40/72740/2
Georg Kunz [Thu, 1 Jul 2021 14:22:16 +0000 (16:22 +0200)]
Adding anchors for references into kubref documentation

All three documentation items: installation instructions, user guide,
and configuration guide are all included in a single file, hence
adding all three anchors.

Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
Change-Id: I4e43e286084ff598d007c9b6c0a03539d3ece136
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72740
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
2 years agoPin current version of infra engine framework 15/72715/3
Rihab Banday [Tue, 29 Jun 2021 11:48:04 +0000 (13:48 +0200)]
Pin current version of infra engine framework

This patch adds a specific commit id of the infra
engine to avoid fetching latest changes from
the master branch which may affect the deployments.

Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Change-Id: I042f144f09db2cfa51f7a488a78426ebfabe65be
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72715
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
2 years agoChange the order of testcases to test kubernetes-benchmarking 22/72622/2
Rihab Banday [Tue, 1 Jun 2021 08:06:05 +0000 (10:06 +0200)]
Change the order of testcases to test kubernetes-benchmarking

This patch changes the order of the testcases to test
kubernetes-benchmarking first followed by other
test cases.

Change-Id: I0ee05a7722c09d71ee7d23a41185379d004fd193
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72622
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
2 years agoRemove duplicate content from functions.sh 42/72542/2
Rihab Banday [Tue, 18 May 2021 16:04:27 +0000 (18:04 +0200)]
Remove duplicate content from functions.sh

This patch removes the CentOS 7 pip upgrade
as that is now included in sw_config/bmra/patched_rhel_packages.yml.

Change-Id: Ibdea16d2929c3c4770deb755a064db2abcccc01c
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72542
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
2 years agoAdd netperf in Kuberef gates 04/72504/2
Cédric Ollivier [Mon, 10 May 2021 14:58:10 +0000 (16:58 +0200)]
Add netperf in Kuberef gates

It has been backported to v1.19.

Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: I24cd90c05c991d75f0b5f8e0ad188b47ed99dd86
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72504
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
2 years agoUpdate workaround for python cachetools 94/72494/3
Michael S. Pedersen [Mon, 10 May 2021 09:08:13 +0000 (09:08 +0000)]
Update workaround for python cachetools

Adds conditional to install cachetools v3.1.1 on Centos 7 (Python 2) and v4.2.1 in other cases

Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com>
Change-Id: I6fa648f228c7d12f1d5dedbf75ff96be3257ef62
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72494
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
2 years agoAdd workaround for cachetools version being too recent for Python 2 77/72477/2
Michael S. Pedersen [Tue, 4 May 2021 12:05:18 +0000 (12:05 +0000)]
Add workaround for cachetools version being too recent for Python 2

Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com>
Change-Id: If819e206cd1ab84baa3f69d5ddc397bbc1fccc23
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72477
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
2 years agoRename cnf_conformance -> cnf_testsuite 76/72476/2
Cédric Ollivier [Tue, 4 May 2021 11:59:54 +0000 (13:59 +0200)]
Rename cnf_conformance -> cnf_testsuite

It conforms with the disruptive upstream change [1]

[1] https://github.com/cncf/cnf-testsuite

Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: I6d6fc47b9567d7185ccb142cdb6c18161941ad1b
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72476
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
2 years agoUpdate .gitlab-ci.yml file to include k8s v1.19 75/72475/2
Rihab Banday [Tue, 4 May 2021 08:19:09 +0000 (10:19 +0200)]
Update .gitlab-ci.yml file to include k8s v1.19
tags

This change updates the .gitlab-ci.yml file to
include the k8s release v1.19 tags supported
by the new BMRA v21.03 release.

Change-Id: I70df4f1682e974b7d46b0c9d40d71fab4851b702
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72475
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
Reviewed-by: Cedric Ollivier <cedric.ollivier@orange.com>
2 years agoUpdate BMRA image and pip version for CentOS7 38/72438/2
Rihab Banday [Thu, 29 Apr 2021 08:18:32 +0000 (10:18 +0200)]
Update BMRA image and pip version for CentOS7

This change updates the BMRA image to v21.03 and
the pip version to the recommended one.

Change-Id: I28b69fcb105cac05fbcc2d4606714c9fd9be0cc4
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72438
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
2 years agoAdd support for deployment on multiple OS distros 43/71843/6
Rihab Banday [Tue, 2 Feb 2021 16:16:57 +0000 (17:16 +0100)]
Add support for deployment on multiple OS distros

This patch introduces a variable to support
deployments on different OS distros.

Change-Id: I9cad126a57acbf662c4c97cfc5a275594f4d3f06
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71843
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
3 years agoUpdate BMRA to v21.03 29/72429/4
Michael S. Pedersen [Fri, 23 Apr 2021 10:04:20 +0000 (10:04 +0000)]
Update BMRA to v21.03

Update Kuberef to use most recent release of BMRA.
Also updates configuration with minor changes and additions.

Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com>
Change-Id: Ifc4ef114564a2085000c23347390089227c0ebd9
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72429
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoRemove sig_node_serial from test case list 74/72374/2
Cédric Ollivier [Wed, 14 Apr 2021 13:38:32 +0000 (15:38 +0200)]
Remove sig_node_serial from test case list

It's fully disrutive (NoExecuteTaintManager) and then is being removed
from Functest.

Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: Ifca16a87e0ad1b539414391b723d6ddc28560d6e
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72374
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoUpdate Functest K8s test case list 48/72248/6
Cédric Ollivier [Mon, 22 Mar 2021 08:46:25 +0000 (09:46 +0100)]
Update Functest K8s test case list

It adds last e2e-based test cases.
Here are the related sigs:
- sig-api-machinery
- sig-apps
- sig-auth
- sig-cli
- sig-cluster-lifecycle
- sig-instrumentation
- sig-node

Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: I71fcb1ab05a4815a76abfbe587dd7029efaf9a45
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72248
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
3 years agoUpdated PDF and IDF for Ericsson Hardware 49/72149/2
Rihab Banday [Tue, 9 Mar 2021 14:26:54 +0000 (15:26 +0100)]
Updated PDF and IDF for Ericsson Hardware

This change updates the config files for Ericsson POD 1
and removes existing Ericsson POD 2 configuration based
on recent hardware and software updates.

Change-Id: I4d26be681b4d805029e5de9c91f96a7634974990
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72149
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>
3 years agouse `--no-cache-dir` flag to `pip` in dockerfiles to save space 63/71763/2
Pratik raj [Wed, 23 Dec 2020 13:52:30 +0000 (19:22 +0530)]
use `--no-cache-dir` flag to `pip` in dockerfiles to save space

using "--no-cache-dir" flag in pip install ,make sure downloaded packages
by pip don't cached on system . This is a best practice which make sure
to fetch from repo instead of using local cached one . Further , in case
of Docker Containers , by restricting caching , we can reduce image size.
In term of stats , it depends upon the number of python packages
multiplied by their respective size . e.g for heavy packages with a lot
of dependencies it reduce a lot by don't caching pip packages.

Further , more detail information can be found at

https://medium.com/sciforce/strategies-of-docker-images-optimization-2ca9cc5719b6

Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
Change-Id: I690a12f6e9cdedb2ced7b2ed1c96fac904bac3a8
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71763
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
Reviewed-by: Cedric Ollivier <cedric.ollivier@orange.com>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoSupport Ubuntu 18.04 and 20.04 LTS as target OS 88/71788/4
Michael S. Pedersen [Thu, 21 Jan 2021 14:18:53 +0000 (14:18 +0000)]
Support Ubuntu 18.04 and 20.04 LTS as target OS

Fixes:
[KUB-42] Add support for Ubuntu 18.04 and 20.04 LTS as host OS on target nodes

Also includes patch for using vfio-pci module on Ubuntu 18.04 LTS

Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com>
Change-Id: Id6150ff30040addfdd7d860bec48583e33a25c59
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71788
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoCheck prerequisites after sourcing env variables 59/71959/2
Rihab Banday [Wed, 10 Feb 2021 14:08:10 +0000 (15:08 +0100)]
Check prerequisites after sourcing env variables

Env variables should be set before checking the
prerequisites as the check function depends on some
env variables.

Change-Id: I75a4b08d0ef077154924df37a859fc7638744343
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71959
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
3 years agoSwitch to Python Virtual Environment 95/71195/5
Victor Morales [Thu, 1 Oct 2020 21:24:32 +0000 (17:24 -0400)]
Switch to Python Virtual Environment

Virtual Environments allow the python modules installation without
affecting the hosting node. This helps to control dependencies required
by this project.

Signed-off-by: Victor Morales <v.morales@samsung.com>
Change-Id: Ib53d9dd335a4707ff863a6fd732d23d323513430
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71195
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoAdd latest backported Functest testcases 22/72122/4
Cédric Ollivier [Fri, 19 Feb 2021 14:29:28 +0000 (15:29 +0100)]
Add latest backported Functest testcases

In addition to k8s_conformance, a couple of e2e test cases were
added to cover sig-network and sig-storage testing.

They are not yet included in CNTT RC2.

Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: I9b76ff6c19289a626ee13bc6cfe648885924ad16
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72122
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoUpdate .gitlab-ci.yml to support functest v1.18 13/72113/2
Rihab Banday [Thu, 18 Feb 2021 16:28:02 +0000 (17:28 +0100)]
Update .gitlab-ci.yml to support functest v1.18

This patch updates the current GitLab CI based
pipeline to run functest v1.18 compliance tests
on Intel Pod 19.

Change-Id: Ib36fd6bf421c7eaa3223234c4f3c739cb1250f22
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72113
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
3 years agoUpdate BMRA to v2.1 64/72064/3
Michael S. Pedersen [Tue, 16 Feb 2021 08:23:52 +0000 (08:23 +0000)]
Update BMRA to v2.1

Updated Kuberef to use BMRA v2.1 instead of v2.0.
Removed a few workarounds used for BMRA v2.0.
Updated a few dependencies in deployment container.
Updated Kuberef templates for BMRA configuration.

Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com>
Change-Id: I091da09277ca9ecc0d3d7574dc3c4f000e73432d
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72064
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoUpdated deployment steps in documentation 44/71844/2
Michael S. Pedersen [Thu, 4 Feb 2021 08:48:17 +0000 (08:48 +0000)]
Updated deployment steps in documentation

Adds additional detail for configuring jump host prior to runnig Kuberef.
Steps are provided for Ubuntu 20.04 LTS and CentOS 8

Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com>
Change-Id: I18b3ff9fbec4ef510888d8105a37e315119e5df5
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71844
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoFixes issue with backing image format (https://libvirt.org/kbase/backing_chains.html... 41/71841/2
Michael S. Pedersen [Mon, 1 Feb 2021 12:05:44 +0000 (12:05 +0000)]
Fixes issue with backing image format (https://libvirt.org/kbase/backing_chains.html#manual-image-creation)

Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com>
Change-Id: I6b0c39b7c4a4f20911e01014687a23c2c42a9e26
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71841
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoFix a set of issues with K8s deployment 84/71784/2
Michael S. Pedersen [Fri, 15 Jan 2021 09:59:13 +0000 (09:59 +0000)]
Fix a set of issues with K8s deployment

[KUB-37] BMRA v2.0 fails to install on Centos 8.3
[KUB-38] [BMRA] Helm repo is unreachable
[KUB-39] [BMRA] CMK binary doesn't run on Centos 8
[KUB-40] [BMRA] CMK isn't installed on host
[KUB-41] [Equinix Metal] Unexpected GRUB settings on CentOS

Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com>
Change-Id: Ie7deb0517cda02352936420a9d36348238caa467
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71784
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
3 years agoUpdate IDF of Intel Pod 19 based on new IDF structure 12/71612/3
Rihab Banday [Thu, 3 Dec 2020 19:34:27 +0000 (20:34 +0100)]
Update IDF of Intel Pod 19 based on new IDF structure

This patch updates the IDF of Intel Pod 19 to include
additional config required for BMRA 2.0

Change-Id: I6088f16af2a8b3d508ebd28f98efc8a6d4d6c3a5
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71612
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
3 years agoReplace older BMRA docker image with new one & add 13/71613/4
Rihab Banday [Thu, 3 Dec 2020 19:53:32 +0000 (20:53 +0100)]
Replace older BMRA docker image with new one & add
changes for running it in CentOS 7

This change updates the Docker file of the BMRA
container & replaces the old image by the new one.
Additionally, it introduces changes needed to deploy
BMRA on CentOS 7.

Change-Id: I3f951bd147b457606719243d95fe48df14ecd449
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71613
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
3 years agoUpdate BMRA to v2.0 04/71504/3
Michael S. Pedersen [Thu, 26 Nov 2020 11:19:08 +0000 (11:19 +0000)]
Update BMRA to v2.0

Also adds configuration of BMRA through the existing hw_config files (idf, pdf)
and better handling of dependencies.

Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com>
Change-Id: Iedaf249f01ea3e1e00c889e846e21644adff98c7
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71504
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 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>