oom/offline-installer.git
3 years agoUpdating RKE version to Frankfurt 47/107447/6 6.0.0-ONAP
Tomáš Levora [Mon, 11 May 2020 11:50:06 +0000 (13:50 +0200)]
Updating RKE version to Frankfurt

Updating RKE to v1.0.4 for Kubernetes 1.15.9

Issue-ID: OOM-2403

Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Change-Id: I87c3f9f4800aa40f62d7569b4ecf3fa373a16796

3 years agoMerge "Fix: Fix docker cli version mismatch"
Tomáš Levora [Wed, 27 May 2020 10:51:44 +0000 (10:51 +0000)]
Merge "Fix: Fix docker cli version mismatch"

3 years agoUpdating helm for Frankfurt 45/107445/6
Tomáš Levora [Mon, 11 May 2020 11:15:11 +0000 (13:15 +0200)]
Updating helm for Frankfurt

Updaing helm to v2.16.6 as required by OOM Frankfurt

Issue-ID: OOM-2363

Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Change-Id: Ibcf47c26dadc359cb86e039d802ff6afbef7efbd

3 years agoMerge "Updating kubectl for Frankurt"
Tomáš Levora [Thu, 21 May 2020 11:18:08 +0000 (11:18 +0000)]
Merge "Updating kubectl for Frankurt"

3 years agoFix: Fix docker cli version mismatch 83/107983/1
Mateusz Pilat [Wed, 20 May 2020 12:58:50 +0000 (14:58 +0200)]
Fix: Fix docker cli version mismatch

Docker cli version is different than docker engine version & Improve output of verification job

Issue-ID: OOM-2415
Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com>
Change-Id: Iebf8946c4a8b3eb3abd45402d6d573e403ac9ef2

4 years agoMerge "Adding Ubuntu support in Ansible - vncserver role"
Bartek Grzybowski [Mon, 18 May 2020 09:50:24 +0000 (09:50 +0000)]
Merge "Adding Ubuntu support in Ansible - vncserver role"

4 years agoAdding Ubuntu support in Ansible - vncserver role 87/101487/13
Jan Benedikt [Mon, 10 Feb 2020 15:36:30 +0000 (16:36 +0100)]
Adding Ubuntu support in Ansible - vncserver role

Extending ansible playbooks of ubuntu support.
Creating new test with Ubuntu image for Molecule in vncserver role.

Issue-ID: OOM-1671
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
Change-Id: Ie57885d30166f319629e160c38a9053c18837515

4 years agoAdding Ubuntu support in Ansible - package-repository role 78/101478/18
Jan Benedikt [Mon, 10 Feb 2020 15:29:43 +0000 (16:29 +0100)]
Adding Ubuntu support in Ansible - package-repository role

Extending ansible playbooks of ubuntu support.
Creating new test with Ubuntu image for Molecule in package-repository role.

Issue-ID: OOM-1671
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
Change-Id: I85d4e6857536fa06c7eb4f4042c1ed64fcbf903e

4 years agoFix: docker-images-collector.sh collect empty image name in output list. Adding... 79/107679/1
Mateusz Pilat [Thu, 14 May 2020 12:43:53 +0000 (14:43 +0200)]
Fix: docker-images-collector.sh collect empty image name in output list.  Adding also masterPassword param for helm templating

The root cause is that not all parameters are present in aaf chart. It is an issue not only for image params, however other cases are not impacting us.  Issue-ID: OOM-2405

Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com>
Change-Id: I1ad1d33717488a82a2ce1eebe524ee41e1264d40

4 years agoUpdating kubectl for Frankurt 48/107448/2
Tomáš Levora [Mon, 11 May 2020 12:03:17 +0000 (14:03 +0200)]
Updating kubectl for Frankurt

Updating kubectl to v1.15.11 as required for Frankfurt

Issue-ID: OOM-2404

Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Change-Id: I4165271fea9b8024e68f9d395f257e858bd605d7

4 years agoFix lint errors in package-repository-check role 81/107081/4
Jan Benedikt [Tue, 5 May 2020 06:46:19 +0000 (08:46 +0200)]
Fix lint errors in package-repository-check role

In package-repository-check was changed command module to service module due to lint failing.
Failing was caused by errors:
[301] Commands should not change things if nothing needs doing
[303] service used in place of service module

Added molecule test.

Issue-ID: OOM-2395
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
Change-Id: I6cfdfe920eabfb9a0c43cc9ba4ffcd81df1d6852

4 years agoMerge "Adding docker images collector requirement"
Bartek Grzybowski [Mon, 4 May 2020 14:20:37 +0000 (14:20 +0000)]
Merge "Adding docker images collector requirement"

4 years agoChange name of clashing 'packages' variables 36/107036/3
Bartek Grzybowski [Mon, 4 May 2020 12:55:18 +0000 (14:55 +0200)]
Change name of clashing 'packages' variables

This fixes a regression from b6455ee: 'packages' variable
is injected in 'firewall' role by package_facts module with
a higher priority than variable of same name defined in 'docker'
roles' defaults.

Change-Id: I41e0f992ceaab871ae38fb1b8211fd71c042c9b2
Issue-ID: INT-1578
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
4 years agoAdding docker images collector requirement 28/107028/1
Tomáš Levora [Mon, 4 May 2020 11:07:07 +0000 (13:07 +0200)]
Adding docker images collector requirement

Adding pyyaml to requirements as it's required by
docker-images-collector.sh

Issue-ID: OOM-2393

Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Change-Id: I52036a8f905fa50eecaddee062d73a38ad2ed9ca

4 years agoMerge "Verify required packages were installed on target host"
Bartek Grzybowski [Mon, 4 May 2020 08:16:40 +0000 (08:16 +0000)]
Merge "Verify required packages were installed on target host"

4 years agoVerify required packages were installed on target host 86/106886/2
Bartek Grzybowski [Thu, 30 Apr 2020 12:02:03 +0000 (05:02 -0700)]
Verify required packages were installed on target host

Change-Id: Ic074cbabfee614daf7862466a1bbafc9ff0fb6be
Issue-ID: INT-1576
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
4 years agoAdding Ubuntu support in Ansible - application role install make 88/106888/1
Jan Benedikt [Thu, 30 Apr 2020 12:04:05 +0000 (14:04 +0200)]
Adding Ubuntu support in Ansible - application role install make

Helm using "make" package for building local helm repository.
In Ubuntu distribution is this package missing so is necessary to install it.

Issue-ID: OOM-1671
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
Change-Id: I808dcb57396caf82a60d17f50515bae59b5d85ca

4 years agoMerge "Adding Ubuntu support in Ansible - package-repository-check role"
Bartek Grzybowski [Thu, 30 Apr 2020 11:30:12 +0000 (11:30 +0000)]
Merge "Adding Ubuntu support in Ansible - package-repository-check role"

4 years agoMerge "Adding Ubuntu support in Ansible - helm role"
Bartek Grzybowski [Thu, 30 Apr 2020 11:25:49 +0000 (11:25 +0000)]
Merge "Adding Ubuntu support in Ansible - helm role"

4 years agoAdding Ubuntu support in Ansible - package-repository-check role 80/101480/9
Jan Benedikt [Mon, 10 Feb 2020 15:13:58 +0000 (16:13 +0100)]
Adding Ubuntu support in Ansible - package-repository-check role

Extending ansible playbooks of ubuntu support.
Creating new test with Ubuntu image for Molecule in package-repository-check role.

Issue-ID: OOM-1671
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
Change-Id: I9dcdbab00169ccfc13a10c1d9b6ec9cf10572688

4 years agoAdding Ubuntu support in Ansible - helm role 68/101468/7
Jan Benedikt [Mon, 10 Feb 2020 14:43:55 +0000 (15:43 +0100)]
Adding Ubuntu support in Ansible - helm role

Extending ansible playbooks of ubuntu support.
Creating new test with Ubuntu image for Molecule in helm role.

Issue-ID: OOM-1671
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
Change-Id: If28ee7674c4f9eebc4420f4dbbb1385a408d3802

4 years agoMerge "Adding Ubuntu support in Ansible - certificates role"
Bartek Grzybowski [Thu, 30 Apr 2020 10:25:21 +0000 (10:25 +0000)]
Merge "Adding Ubuntu support in Ansible - certificates role"

4 years agoAdding git package as additional one 38/103738/5
Ondřej Šmalec [Mon, 16 Mar 2020 14:23:11 +0000 (15:23 +0100)]
Adding git package as additional one

Adding git package into additional_packages.list
It is needed to download additional stuff using git on infra server.

Issue-ID: OOM-2338
Signed-off-by: Ondřej Šmalec <o.smalec@partner.samsung.com>
Change-Id: Ibc7708de697bfd5d2318d9ef30d4d556e20b0798

4 years agoMerge "Adding Ubuntu support in Ansible - docker role"
Bartek Grzybowski [Thu, 30 Apr 2020 09:26:19 +0000 (09:26 +0000)]
Merge "Adding Ubuntu support in Ansible - docker role"

4 years agoMerge "Adding Ubuntu support in Ansible - chrony role"
Bartek Grzybowski [Thu, 30 Apr 2020 09:19:17 +0000 (09:19 +0000)]
Merge "Adding Ubuntu support in Ansible - chrony role"

4 years agoAdding support for another packages lists 70/103970/4
Jan Benedikt [Thu, 19 Mar 2020 15:03:25 +0000 (16:03 +0100)]
Adding support for another packages lists

Adding support for another packages lists in create_repo script.
Additional package lists is for packages which are for example helpful tools for debugging.

Issue-ID: OOM-2340
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
Change-Id: If0bcb437809b60d83ed92436adade086314ccfac

4 years agoAdding Ubuntu support in Ansible - chrony role 08/103508/4
Jan Benedikt [Wed, 11 Mar 2020 12:48:52 +0000 (13:48 +0100)]
Adding Ubuntu support in Ansible - chrony role

Extending ansible playbooks of ubuntu support.
Change the order in role calls.
Chrony role was moved due to its absence in Ubuntu distribution.
Firstly is necessary to initialize package repository and after that install Chrony.

Issue-ID: OOM-1671
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
Change-Id: Icadf8e106fba4a369148db0959dcac07a79257c2

4 years agoAdding Ubuntu support in Ansible - certificates role 61/101461/6
Jan Benedikt [Mon, 10 Feb 2020 14:15:41 +0000 (15:15 +0100)]
Adding Ubuntu support in Ansible - certificates role

Extending ansible playbooks of ubuntu support.
Creating new test with Ubuntu image for Molecule in certificates role.

Issue-ID: OOM-1671
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
Change-Id: I82f0f8590812c277f2969d71f95fb6475c72f7c8

4 years agoMerge "Adding support for Ubuntu in create_repo and docker_entrypoint scripts"
Tomáš Levora [Wed, 29 Apr 2020 11:10:26 +0000 (11:10 +0000)]
Merge "Adding support for Ubuntu in create_repo and docker_entrypoint scripts"

4 years agoAdding Ubuntu support in Ansible - docker role 82/103782/5
Jan Benedikt [Tue, 17 Mar 2020 10:31:39 +0000 (11:31 +0100)]
Adding Ubuntu support in Ansible - docker role

Extending ansible playbooks of ubuntu support.
Creating new test with Ubuntu image for Molecule in docker role.

Issue-ID: OOM-1671
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
Change-Id: I4786dcd4b2de3f8d189db3b619c3d75315302506

4 years agoMerge "Adding Ubuntu support in Ansible - resource-data role"
Bartek Grzybowski [Thu, 23 Apr 2020 08:46:50 +0000 (08:46 +0000)]
Merge "Adding Ubuntu support in Ansible - resource-data role"

4 years agoAdding Ubuntu support in Ansible - resource-data role 83/101483/4
Jan Benedikt [Mon, 10 Feb 2020 15:25:21 +0000 (16:25 +0100)]
Adding Ubuntu support in Ansible - resource-data role

Extending ansible playbooks of ubuntu support.
Creating new test with Ubuntu image for Molecule in resource-data role.

Issue-ID: OOM-1671
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
Change-Id: I7b6852cb235a2983f5cc6eb6a3bfa122d6a1fd2e

4 years agoAdding Ubuntu support in Ansible - nginx role 77/101477/10
Jan Benedikt [Mon, 10 Feb 2020 15:23:04 +0000 (16:23 +0100)]
Adding Ubuntu support in Ansible - nginx role

Extending ansible playbooks of ubuntu support.
Creating new test with Ubuntu image for Molecule in nginx role.

Issue-ID: OOM-1671
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
Change-Id: I5f6a5aedfd9a2e17d3b1bb711d3e85a242b5e2d5

4 years agoMerge "Adding Ubuntu support in Ansible - kubectl role"
Bartek Grzybowski [Wed, 22 Apr 2020 09:28:42 +0000 (09:28 +0000)]
Merge "Adding Ubuntu support in Ansible - kubectl role"

4 years agoAdding support for Ubuntu in create_repo and docker_entrypoint scripts 48/101448/8
Jan Benedikt [Mon, 10 Feb 2020 12:46:52 +0000 (13:46 +0100)]
Adding support for Ubuntu in create_repo and docker_entrypoint scripts

Extend script for creating repository with adding Ubuntu platform support.

Issue-ID: OOM-1671
Change-Id: I6b1c63cda18e53277fc2aad6dfa3eceefc9a0023
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
4 years agoMerge "Remove python 2 dependency"
Bartek Grzybowski [Tue, 21 Apr 2020 13:53:52 +0000 (13:53 +0000)]
Merge "Remove python 2 dependency"

4 years agoAdding Ubuntu support in Ansible - application role 57/101457/5
Jan Benedikt [Mon, 10 Feb 2020 13:45:09 +0000 (14:45 +0100)]
Adding Ubuntu support in Ansible - application role

Extending ansible playbooks of ubuntu support. Creating new test with Ubuntu image for Molecule in application role.

Issue-ID: OOM-1671
Change-Id: I7662506263a143cb7193583d2058766ac7829d93
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
4 years agoMerge "Adding Ubuntu support in Ansible - setup role"
Bartek Grzybowski [Tue, 21 Apr 2020 13:03:17 +0000 (13:03 +0000)]
Merge "Adding Ubuntu support in Ansible - setup role"

4 years agoMerge "Adding Ubuntu support in Ansible - dns role"
Bartek Grzybowski [Tue, 21 Apr 2020 12:58:22 +0000 (12:58 +0000)]
Merge "Adding Ubuntu support in Ansible - dns role"

4 years agoMerge "Adding Ubuntu support in Ansible - nfs role"
Tomáš Levora [Tue, 21 Apr 2020 12:40:24 +0000 (12:40 +0000)]
Merge "Adding Ubuntu support in Ansible - nfs role"

4 years agoAdding Ubuntu support in Ansible - dns role 65/101465/6
Jan Benedikt [Mon, 10 Feb 2020 14:44:01 +0000 (15:44 +0100)]
Adding Ubuntu support in Ansible - dns role

Extending ansible playbooks of ubuntu support.
Creating new test with Ubuntu image for Molecule in dns role.

Issue-ID: OOM-1671
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
Change-Id: I414df46093fd300891b9df44e12a0225495cc906

4 years agoAdding Ubuntu support in Ansible - nfs role 74/101474/9
Jan Benedikt [Mon, 10 Feb 2020 15:06:37 +0000 (16:06 +0100)]
Adding Ubuntu support in Ansible - nfs role

Extending ansible playbooks of ubuntu support.
Creating new test with Ubuntu image for Molecule in nfs role.

Issue-ID: OOM-1671
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
Change-Id: Ib1c85e4df7ec2ba547a20684ed5e23e097351df2

4 years agoAdding Ubuntu support in Ansible - nexus role 72/101472/4
Jan Benedikt [Mon, 10 Feb 2020 14:51:36 +0000 (15:51 +0100)]
Adding Ubuntu support in Ansible - nexus role

Extending ansible playbooks of ubuntu support.
Creating new test with Ubuntu image for Molecule in nexus role.

Issue-ID: OOM-1671
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
Change-Id: If2750997057126405987a0362d915456ffe77fff

4 years agoRemove python 2 dependency 38/105638/1
Tomáš Levora [Thu, 9 Apr 2020 08:14:57 +0000 (10:14 +0200)]
Remove python 2 dependency

Removing python 2 dependency from docker-image-collector.sh

Issue-ID: OOM-2359

Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Change-Id: I6aa4d27cdb10e93981e3dacfb16b2d02a0bf0762

4 years agoMerge "Automation adds index.rst"
Jessica Wagantall [Wed, 8 Apr 2020 18:10:31 +0000 (18:10 +0000)]
Merge "Automation adds index.rst"

4 years agoAutomation adds index.rst 91/105391/2
LF Jenkins CI [Tue, 7 Apr 2020 17:42:30 +0000 (17:42 +0000)]
Automation adds index.rst

Issue-ID: CIMAN-376

Change-Id: I340cb246cd95962e2cb8a0b5de951fbe798b5fe0
Signed-off-by: lf-jobbuilder <releng+lf-jobbuilder@linuxfoundation.org>
4 years agoAutomation adds index.rst 99/105199/2
LF Jenkins CI [Mon, 6 Apr 2020 20:57:46 +0000 (20:57 +0000)]
Automation adds index.rst

Issue-ID: CIMAN-33

Change-Id: I26c678d018b70275bff466eafd14a3ead60d4193
Signed-off-by: lf-jobbuilder <releng+lf-jobbuilder@linuxfoundation.org>
4 years agoMerge "Migrate oom-offline-installer docs"
Sylvain Desbureaux [Thu, 2 Apr 2020 14:10:08 +0000 (14:10 +0000)]
Merge "Migrate oom-offline-installer docs"

4 years agoAdd Sylvain and Krzysztof on offline installer 82/104982/2
Sylvain Desbureaux [Thu, 2 Apr 2020 12:19:59 +0000 (14:19 +0200)]
Add Sylvain and Krzysztof on offline installer

Sylvain is acting PTL of OOM and thus needs to do some administrative
tasks
Krzysztof is an important comitter in OOM and may help Sylvain on those
tasks.

Issue-ID: CIMAN-134
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I8dfd87467a983dfa3bfc7ff96e08098ab453f4f0

4 years agoMerge "Removing python 2 reference in BuildGuide"
Bartek Grzybowski [Wed, 1 Apr 2020 09:47:12 +0000 (09:47 +0000)]
Merge "Removing python 2 reference in BuildGuide"

4 years agoAdding Ubuntu support in Ansible - kubectl role 69/101469/2
Jan Benedikt [Mon, 10 Feb 2020 14:46:53 +0000 (15:46 +0100)]
Adding Ubuntu support in Ansible - kubectl role

Extending ansible playbooks of ubuntu support.
Creating new test with Ubuntu image for Molecule in kubectl role.

Issue-ID: OOM-1671
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
Change-Id: I707ff9f609ece2b227dd84f32fdf519019f76e80

4 years agoUpgrading package.py requirements 30/104730/1
Tomáš Levora [Tue, 31 Mar 2020 08:22:54 +0000 (10:22 +0200)]
Upgrading package.py requirements

Upgrading gitpython from 2.11.1 to 3.1.0 because of incompatiblity

with actual version of gitdb2 (4.0.2)

Issue-ID: OOM-2344

Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Change-Id: Ibde20ee7f842858cb26f3ed4b45cb0339093a59f

4 years agoRemoving python 2 reference in BuildGuide 26/104726/1
Tomáš Levora [Tue, 31 Mar 2020 08:15:32 +0000 (10:15 +0200)]
Removing python 2 reference in BuildGuide

As python 2 support ends, removing its rereferences from buildguide

Issue-ID: OOM-2345

Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Change-Id: I1130fd15af21d3e5a8bb80228d4cb31b5d25e41d

4 years agoAdd Sylvain as committer 84/104384/4
Sylvain Desbureaux [Wed, 25 Mar 2020 15:48:46 +0000 (16:48 +0100)]
Add Sylvain as committer

Issue-ID: CIMAN-134
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: Icd72c24af9c7eb6a5e5ee9578fba8d32abf787a5

4 years agoAdding Ubuntu support in Ansible - setup role 86/101486/4
Jan Benedikt [Mon, 10 Feb 2020 15:32:31 +0000 (16:32 +0100)]
Adding Ubuntu support in Ansible - setup role

Extending ansible playbooks of ubuntu support.
Creating new test with Ubuntu image for Molecule in setup role.

Issue-ID: OOM-1671
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
Change-Id: I7a609613a517932939adf2e011c3ceb4e1d15bba

4 years agoMerge "Add necessary packages to Ubuntu Dockerfile"
Bartek Grzybowski [Fri, 20 Mar 2020 09:26:15 +0000 (09:26 +0000)]
Merge "Add necessary packages to Ubuntu Dockerfile"

4 years agoAdd necessary packages to Ubuntu Dockerfile 77/103877/2
Jan Benedikt [Wed, 18 Mar 2020 14:54:19 +0000 (15:54 +0100)]
Add necessary packages to Ubuntu Dockerfile

Added iproute2 and python3-docker to ubuntu docker file.
These packages is necessary for docker functionality in Molecule testing.
Is necessary to install them because there are not in ubuntu image by default.

Issue-ID: OOM-1671
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
Change-Id: I4e4f6bf342da3d5acba5b7b12c2dae9d64099426

4 years agoFixing helm lint 21/103921/1
Ondřej Šmalec [Thu, 19 Mar 2020 07:46:41 +0000 (08:46 +0100)]
Fixing helm lint

quoting helm lint parameter

Issue-ID: OOM-2339
Signed-off-by: Ondřej Šmalec <o.smalec@partner.samsung.com>
Change-Id: I56083798e4f26fb175b8d6f22c5d07de622e5b88

4 years agoSkip helm lint 74/103874/1
Ondřej Šmalec [Wed, 18 Mar 2020 14:16:03 +0000 (15:16 +0100)]
Skip helm lint

Because of new templates in ONAP,
make command takes a long time and our ansible role timeout

Adding SKIP_LINT parameter to this role.

Issue-ID: OOM-2339
Signed-off-by: Ondřej Šmalec <o.smalec@partner.samsung.com>
Change-Id: Ie7f0db95e51816ccc781b1253539b3a0dae9eb7b

4 years agoAdding Ubuntu support in Ansible - docker-dind role 83/103783/4
Jan Benedikt [Tue, 17 Mar 2020 10:39:38 +0000 (11:39 +0100)]
Adding Ubuntu support in Ansible - docker-dind role

Extending ansible playbooks of ubuntu support.

Issue-ID: OOM-1671
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
Change-Id: I6028736b54ce825d3eae257ca61cb6efab19a913

4 years agoMerge "Specify Python in Ansible inventory template file"
Bartek Grzybowski [Fri, 6 Mar 2020 09:44:40 +0000 (09:44 +0000)]
Merge "Specify Python in Ansible inventory template file"

4 years agoMerge "Fix: Losing dns configuration after reboot"
Bartek Grzybowski [Thu, 5 Mar 2020 08:28:47 +0000 (08:28 +0000)]
Merge "Fix: Losing dns configuration after reboot"

4 years agoSpecify Python in Ansible inventory template file 13/101813/11
Jan Benedikt [Mon, 17 Feb 2020 08:26:54 +0000 (09:26 +0100)]
Specify Python in Ansible inventory template file

Created copy of inventory template due to set var of Python interpreter.
Python interpreter cannot be set in ansible.cfg file due to bug:
https://github.com/ansible/ansible/issues/45852

Issue-ID: OOM-1671
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
Change-Id: I9683a2a764e8c6696a39625a6ddc40cda20f9333

4 years agoFix: Losing dns configuration after reboot 14/101614/3
Mateusz Pilat [Wed, 12 Feb 2020 09:19:28 +0000 (10:19 +0100)]
Fix: Losing dns configuration after reboot

Issue-ID: OOM-2295

Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com>
Change-Id: Ic10203be6fc2cd2c805679a293efa0f2ddea9465

4 years agoFix packaging script - Memory error in md5 calculations 56/101756/2
Mateusz Pilat [Fri, 14 Feb 2020 17:37:35 +0000 (18:37 +0100)]
Fix packaging script - Memory error in md5 calculations

During package preparation whole file is read and stashed in to RAM. when the file is large, like ONAP package it will result in an error

Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com>
Issue-ID: OOM-2308
Change-Id: Ic2dbea4018162bd4cfb380f6fb34078062c38a09

4 years agoAdding checksum of packages into package.info 16/101116/5
Ondřej Šmalec [Tue, 4 Feb 2020 14:30:48 +0000 (15:30 +0100)]
Adding checksum of packages into package.info

Function to add checksum of created packges
to package.info

Modified --add-metadata parameter to handle
more parameters in format key=value

Issue-ID: OOM-2288
Signed-off-by: Ondřej Šmalec <o.smalec@partner.samsung.com>
Change-Id: I29114c4566fdfd9643ab5c60951ee65f5680d2fe

4 years agoUse POSIX compliant shell command in cicdansible 34/101534/1
Bartek Grzybowski [Tue, 11 Feb 2020 13:25:46 +0000 (14:25 +0100)]
Use POSIX compliant shell command in cicdansible

"[[ ]]" is a bash specific command that doesn't work in
dash which is Ubuntu's default shell.

Change-Id: Idd09c2e1e8c409503b12756141632527ab91b5ec
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Issue-ID: OOM-1671

4 years agoDisable 'pipefile' shell opt in cloud-init's runcmd module 28/101528/1
Bartek Grzybowski [Tue, 11 Feb 2020 11:52:44 +0000 (12:52 +0100)]
Disable 'pipefile' shell opt in cloud-init's runcmd module

Cloud-init runs runcmd module with default OS shell which
evaluates to dash for Ubuntu and which in turn doesn't support
'pipefile' option. This makes cloud-init fail the module on
Ubuntu OS. In runcmd script there are no pipes so it's safe
to remove it from shell opts.

Change-Id: I0402fbfe13fe528832e64d107c1bc07bb5516fc2
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Issue-ID: OOM-1671

4 years agoMigrate oom-offline-installer docs 52/101352/1
Jessica Wagantall [Thu, 6 Feb 2020 23:25:17 +0000 (15:25 -0800)]
Migrate oom-offline-installer docs

Merging this will create
https://onap-oom-offline-installer.readthedocs.io
This build will run in parallel
to the current docs generation method
until we are ready to cut over.

Issue-ID: CIMAN-364
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Change-Id: I73ad66c0ec946d75c5164776228f8f06550f5f7d

4 years agoMerge "Removed version from package name"
Bartek Grzybowski [Thu, 30 Jan 2020 11:03:12 +0000 (11:03 +0000)]
Merge "Removed version from package name"

4 years agoRemoved version from package name 49/100749/2
Ondřej Šmalec [Fri, 24 Jan 2020 13:03:38 +0000 (14:03 +0100)]
Removed version from package name

Version is kept in package.info file.
No need to have it as well in package name.
package.info file is present in each tar package.

Issue-ID: OOM-2277
Signed-off-by: Ondřej Šmalec <o.smalec@partner.samsung.com>
Change-Id: I19fd80cb18e5eac614ac743af954f049536deb3b

4 years agoMerge "Help script to remove runtime images from datalist"
Bartek Grzybowski [Fri, 24 Jan 2020 12:57:24 +0000 (12:57 +0000)]
Merge "Help script to remove runtime images from datalist"

4 years agoHelp script to remove runtime images from datalist 75/100675/3
Ondřej Šmalec [Thu, 23 Jan 2020 11:56:18 +0000 (12:56 +0100)]
Help script to remove runtime images from datalist

Issue-ID: OOM-2276
Signed-off-by: Ondřej Šmalec <o.smalec@partner.samsung.com>
Change-Id: I8f848dbb73747f0744a16fb5831627c20d9f8303

4 years agoReplace master branch in BuildGuide 66/100666/6
Ondřej Šmalec [Thu, 23 Jan 2020 10:40:54 +0000 (11:40 +0100)]
Replace master branch in BuildGuide

changed master branch to generic <branch> variable.

Issue-ID: OOM-2274
Signed-off-by: Ondřej Šmalec <o.smalec@partner.samsung.com>
Change-Id: I2fef04e00c6aa096e0fe3cd8d48327c5bf197cc1

4 years agoMerge "Option for additional metadata in package.py"
Tomáš Levora [Thu, 23 Jan 2020 07:57:48 +0000 (07:57 +0000)]
Merge "Option for additional metadata in package.py"

4 years agoOption for additional metadata in package.py 78/100578/2
Ondřej Šmalec [Wed, 22 Jan 2020 06:38:29 +0000 (07:38 +0100)]
Option for additional metadata in package.py

Issue-ID: OOM-2269
Signed-off-by: Ondřej Šmalec <o.smalec@partner.samsung.com>
Change-Id: I6b23512746171fdeaac3883fb61695db2c48c3ab

4 years agoMerge changes from topic "OOM-1853"
Tomáš Levora [Mon, 20 Jan 2020 14:59:13 +0000 (14:59 +0000)]
Merge changes from topic "OOM-1853"

* changes:
  Run env setup only once
  Fix condition for checking if tests are defined

4 years agoMerge "Improve offline-installer-review.sh logic to only run relevant tests"
Tomáš Levora [Mon, 20 Jan 2020 14:58:57 +0000 (14:58 +0000)]
Merge "Improve offline-installer-review.sh logic to only run relevant tests"

4 years agoMerge "Remove reference to Appendix in BuildGuide"
Tomáš Levora [Mon, 20 Jan 2020 14:58:04 +0000 (14:58 +0000)]
Merge "Remove reference to Appendix in BuildGuide"

4 years agoMerge "Add robot config at onap install"
Bartek Grzybowski [Mon, 20 Jan 2020 10:40:26 +0000 (10:40 +0000)]
Merge "Add robot config at onap install"

4 years agoRemove reference to Appendix in BuildGuide 68/100468/1
Bartek Grzybowski [Mon, 20 Jan 2020 09:01:22 +0000 (10:01 +0100)]
Remove reference to Appendix in BuildGuide

Appendix was removed in change I8859ba42420d351ce12347cd63bf11f95a4b528d

Fixed some wording.

Change-Id: I3ad585b67532a4a44bf272d8ebfefec03ec3cc12
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Issue-ID: OOM-2158

4 years agoRun env setup only once 11/100411/1
Bartek Grzybowski [Fri, 17 Jan 2020 13:54:11 +0000 (14:54 +0100)]
Run env setup only once

prep_ubuntu_16_04_for_molecule routine was taken out of
run_molecule function so that it's not superfluously run
on each molecule invocation

Change-Id: I1e4d3f32fbec4fa1e96389d9d65740747bffcef6
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Issue-ID: OOM-1853

4 years agoFix condition for checking if tests are defined 10/100410/1
Bartek Grzybowski [Fri, 17 Jan 2020 13:35:38 +0000 (14:35 +0100)]
Fix condition for checking if tests are defined

Native shell conditional is used as previously the condition
would give warnings on stderr in certain cases, e.g. when
role was removed script reported:
"find: ‘ansible/roles/<rolename>’: No such file or directory"

Change-Id: I63f50bda94e144a17307d927a6be70ae270f28bf
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Issue-ID: OOM-1853

4 years agoImprove offline-installer-review.sh logic to only run relevant tests 06/100406/1
Bartek Grzybowski [Fri, 17 Jan 2020 08:29:15 +0000 (09:29 +0100)]
Improve offline-installer-review.sh logic to only run relevant tests

Main CI wrapper script refactored so that it runs tests in a more
granulated manner, i.e. matching between changed files and relevant
tests to run was optimised.

Change-Id: I09086099d7d16c52e29da2fe19440bcfd79ad295
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Issue-ID: OOM-1853

4 years agoAdd tests for rke playbook 32/89532/8
Michal Zegan [Thu, 6 Jun 2019 15:49:51 +0000 (17:49 +0200)]
Add tests for rke playbook

This adds tests for the rke playbook.

Change-Id: Idbb90bb9674d67c1877302877b60d3d60d44e36b
Issue-ID: OOM-1907
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
4 years agoDecrease tests resource footprint on CI minion 60/100360/2
Bartek Grzybowski [Thu, 16 Jan 2020 08:24:46 +0000 (09:24 +0100)]
Decrease tests resource footprint on CI minion

Due to constrained CI minion resources docker volumes
need to be pruned after each test invocation to prevent
false negative which occurs in case when multiple playbook
level tests are run.

Heavy VNC Server image (1GB) needs to be mocked with
lightweight alpine image in play-infrastructure test
for same reasons.

Change-Id: I1026593a375853575cf210aefe29bc320d4e5c64
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Issue-ID: OOM-1907

4 years agoAdd test scenario for unsafe volatile storage 48/100248/1
Bartek Grzybowski [Mon, 13 Jan 2020 12:23:19 +0000 (13:23 +0100)]
Add test scenario for unsafe volatile storage

This tests rke role with etcd storage configured on tmpfs.

Change-Id: I57feb705a38e87c1b2127294c3443d99cc2595aa
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Issue-ID: OOM-2259

4 years agoChange group_vars inclusion mode in rke role tests 88/100188/1
Bartek Grzybowski [Fri, 10 Jan 2020 14:13:32 +0000 (15:13 +0100)]
Change group_vars inclusion mode in rke role tests

Inclusion switched from inventory.links declaration in
molecule config to filesystem symlink.

Change-Id: Idcdd40ba196963f61b587c78718564c9374fa731
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Issue-ID: OOM-2259

4 years agoInclude etcd storage configuration task in testing 85/100185/1
Bartek Grzybowski [Fri, 10 Jan 2020 13:56:23 +0000 (14:56 +0100)]
Include etcd storage configuration task in testing

It was missing since adding feature for etcd storage configuration
in https://gerrit.onap.org/r/c/oom/offline-installer/+/94135

Change-Id: I1d354af1fd48df8cb8de002f473d32cd5d4f9075
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Issue-ID: OOM-2259

4 years agoLimit resource footprint of rke role tests 77/100177/1
Bartek Grzybowski [Fri, 10 Jan 2020 08:51:18 +0000 (09:51 +0100)]
Limit resource footprint of rke role tests

Number of kubernetes nodes created by rke role tests
was limited to 1 - higher number caused resource exhaustion
in CI worker (8gb memory limit).

Verifier timeout was increased in routine where pod
readiness is checked.

Change-Id: I2c30aa999b92c4ceddccf682c4f918e953da2621
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Issue-ID: OOM-2257

4 years agoAdd static and dynamic kubelet config support 46/98246/2
Petr Ospalý [Mon, 11 Nov 2019 14:33:20 +0000 (15:33 +0100)]
Add static and dynamic kubelet config support

Kubelet can be configured on startup now - just add new key/values in:
kubelet-static-config.yml.j2

Also kubelet static (startup) configuration can be overriden later
(dynamically) during its runtime - for more info read this:
https://kubernetes.io/docs/tasks/administer-cluster/reconfigure-kubelet/

Issue-ID: OOM-2199

Change-Id: Ia4790a4dfc04f0caed695df7bfd343253bd95bc0
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
4 years agoAdd robot config at onap install 42/99142/8
Denis Kasanic [Wed, 4 Dec 2019 12:40:07 +0000 (13:40 +0100)]
Add robot config at onap install

Change onap network cidr to /16 due to robot hardcoded config.
Adding onap network id to configuration at installation part.
Adding optional connection to demo usecases network at deploy step
Update patch scripts for specify network and kubernetes namespace
Enable config_drive parameter at openstack instances deploying to get openstack metadata

Issue-ID: OOM-1996
Signed-off-by: Denis Kasanic <d.kasanic@partner.samsung.com>
Change-Id: I4403e8ca0f385060ac815372ffd91eda60026ddb

4 years agoMerge "Add screen and jq to onap_rpm.list"
Tomáš Levora [Mon, 16 Dec 2019 14:37:45 +0000 (14:37 +0000)]
Merge "Add screen and jq to onap_rpm.list"

4 years agoAdd screen and jq to onap_rpm.list 50/98350/5
Jan Benedikt [Wed, 13 Nov 2019 09:13:34 +0000 (04:13 -0500)]
Add screen and jq to onap_rpm.list

Added screen and jq packages to RPM repository list.
These packages was added as helpful tools for debugging.
Oniguruma package is dependency for jq package.
Issue-ID: OOM-2200

Change-Id: I2bbd8bf75569156e845341a9766214b03401ec35
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
4 years agoArchive helm_charts with command module 48/99148/7
Ondřej Šmalec [Wed, 4 Dec 2019 14:36:31 +0000 (15:36 +0100)]
Archive helm_charts with command module

Due to bug in ansible archive module empty files are not added into tar file.
Hence kibana-onborading.json missing in helm_charts on infra node.
Changing archive module into command module to tar helm_charts.

Issue-ID: OOM-2231
Signed-off-by: Ondřej Šmalec <o.smalec@partner.samsung.com>
Change-Id: I5527bd0f52976a93ac2861d9de010fbb79eb97fd

4 years agoMerge "docker-images-collector.sh to use override values.yaml"
Samuli Silvius [Thu, 28 Nov 2019 08:10:18 +0000 (08:10 +0000)]
Merge "docker-images-collector.sh to use override values.yaml"

4 years agodocker-images-collector.sh to use override values.yaml 95/98795/3
Samuli Silvius [Mon, 25 Nov 2019 06:45:12 +0000 (08:45 +0200)]
docker-images-collector.sh to use override values.yaml

Change docker-images-collector.sh script to use file
oom/kubernetes/onap/resources/overrides/onap-all.yaml as
input instead of oom/kubernetes/onap/values.yaml.

Also small enable script running in Windows git bash.

Issue-ID: OOM-2222

Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Change-Id: Idf7143ed9880ac510c103f4d3a4d5a45f375d71a

4 years agoDownloading docker images does not work on Windows 96/98796/1
Samuli Silvius [Mon, 25 Nov 2019 07:13:41 +0000 (09:13 +0200)]
Downloading docker images does not work on Windows

Changing build/download/docker_downloader.py to connect
docker engine in more default way i.e. taking engine
parameters from environment fixes this script.

Issue-ID: OOM-2223

Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Change-Id: Iddf69593bb4cf4596e713c8d537a90424c5925ef

4 years agoScript for adding image into offline nexus repository 04/98604/2
Ondřej Šmalec [Tue, 19 Nov 2019 14:28:38 +0000 (15:28 +0100)]
Script for adding image into offline nexus repository

Help script for adding docker image into nexus repository on infra server.

Issue-ID: OOM-2210
Signed-off-by: Ondřej Šmalec <o.smalec@partner.samsung.com>
Change-Id: I0ea81170a701b87ad1c4ecc53cfc6e03a3e95684

4 years agoFix helm behavior 62/98462/1
Petr Ospalý [Fri, 15 Nov 2019 17:00:18 +0000 (18:00 +0100)]
Fix helm behavior

When 'helm serve' is not running and helm is not listening on
localhost:8879 then helm starts to delete everything...instead of
aborting or doing something sensible...

This commit fix this misbehavior: we abort

Issue-ID: OOM-2074

Change-Id: Icb4d25163012e4aedf5ec1598a4f20c738c04974
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>