oom/offline-installer.git
3 years agoPush all images to simulated Docker registry only 58/114158/3
Bartek Grzybowski [Thu, 22 Oct 2020 09:40:20 +0000 (11:40 +0200)]
Push all images to simulated Docker registry only

In previous implementation all images were pushed to
their original registries which were simulated locally.
This change retags all images to locally simulated docker
registry only and pushes them there accordingly.

Created temporary tag is dropped at the end for order.

Change-Id: If1b6633fdcc13d47c6e2b26792980320dce7f49a
Issue-ID: OOM-2605
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
3 years agoSupport setting custom Nexus container name 88/114088/2
Bartek Grzybowski [Wed, 21 Oct 2020 11:58:05 +0000 (13:58 +0200)]
Support setting custom Nexus container name

Change-Id: I41098413b96ac08fe479167aa0f5d0c4a699ef33
Issue-ID: OOM-2605
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
3 years agoBump the nfs-utils package version 81/114081/1
Bartek Grzybowski [Wed, 21 Oct 2020 08:09:46 +0000 (10:09 +0200)]
Bump the nfs-utils package version

Previous version was no longer available in repository

Change-Id: I5bf1048c6ef6438b4cd50ad4231132da2f67432e
Issue-ID: OOM-2604
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
3 years agoSet SKIP_LINT=true prior to building helm repository 41/113941/1
Bartek Grzybowski [Fri, 16 Oct 2020 11:05:59 +0000 (13:05 +0200)]
Set SKIP_LINT=true prior to building helm repository

SKIP_LINT was already configured to be set in
deployment stage in change 0d90cf8fe895e62b7343088ca9a017eff32e92dd
but was missed to be set in build script.

Change-Id: I599882eaa2e509fda6a41ca5bf5ff77a275adf93
Issue-ID: OOM-2599
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
3 years agoIgnore error if helm stable repo is already removed 14/113714/1
Bartek Grzybowski [Fri, 9 Oct 2020 08:50:46 +0000 (10:50 +0200)]
Ignore error if helm stable repo is already removed

Fixes e941ec1

Change-Id: I8b5cb6a81998e32204d49c0f2630e1097f830aee
Issue-ID: OOM-2591
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
3 years agoRemove helm "stable" repo while building charts 85/113685/1
Bartek Grzybowski [Thu, 8 Oct 2020 12:55:32 +0000 (14:55 +0200)]
Remove helm "stable" repo while building charts

"Stable" repo is removed on targed deployment by a relevant
ansible task, it should be removed in build stage as well.

Change-Id: Ia89435e73c547e7d1cc4de19d635173307d083f4
Issue-ID: OOM-2591
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
3 years agoCreate directory for output list file if it doesn't exist 96/113096/1
Bartek Grzybowski [Thu, 24 Sep 2020 10:09:22 +0000 (12:09 +0200)]
Create directory for output list file if it doesn't exist

Should the output list file directory passed as second param
not exist the script would fail.

Change-Id: I4586df54b42eba2ace49f6aaf03b68042354b44a
Issue-ID: OOM-2578
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
3 years agoWorkaround random application_dir removal failure 64/113064/1
Bartek Grzybowski [Wed, 23 Sep 2020 13:50:15 +0000 (15:50 +0200)]
Workaround random application_dir removal failure

In cases where --output-dir is set to a directory on a
NFS share shutil fails to remove the application_dir.
This WO will silence errors from rmtree routine.

Change-Id: I0c5d06982f0ba2eb5b15276890b474afc46894e0
Issue-ID: OOM-2577
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
3 years agoAdd feature to install shell autocompletion for kubectl 05/112705/6
Bartek Grzybowski [Tue, 15 Sep 2020 14:51:24 +0000 (16:51 +0200)]
Add feature to install shell autocompletion for kubectl

Change-Id: I732dcd92144f9a8489a351047ab88b53ca36759e
Issue-ID: OOM-2564
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
3 years agoFix repository directory name 79/112279/1
Bartek Grzybowski [Tue, 8 Sep 2020 13:59:07 +0000 (15:59 +0200)]
Fix repository directory name

This fixes a regression bug introduced in 5907acf due
to not all 'rhel' path elements updated.

Change-Id: I21a7448aa4605f705cfb7a75030d69a0db04319f
Issue-ID: OOM-2150
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
3 years agoAdding missing rpm packages 23/112023/1
Tomáš Levora [Wed, 2 Sep 2020 05:58:04 +0000 (07:58 +0200)]
Adding missing rpm packages

If target OS is installed from RHEL 7.6 DVD ISO, there are missing
additional packages added by to the list by this patch.

Issue-ID: OOM-2549

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

3 years agoMerge "Refactor helm-healer script"
Tomáš Levora [Thu, 20 Aug 2020 06:29:14 +0000 (06:29 +0000)]
Merge "Refactor helm-healer script"

3 years agoAdd automatic virtualenv provisioner for download and package script 36/110736/1
Bartek Grzybowski [Thu, 30 Jul 2020 13:00:02 +0000 (15:00 +0200)]
Add automatic virtualenv provisioner for download and package script

Change-Id: I072d514c7c2f03991caf6714dbdc0d2d7e5c8bb9
Issue-ID: INT-1670
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
3 years agoFix linting issues in Python scripts 92/110692/1
Bartek Grzybowski [Wed, 29 Jul 2020 13:36:15 +0000 (15:36 +0200)]
Fix linting issues in Python scripts

Change-Id: I198340670f808d42aa6fb16de573db4a65005985
Issue-ID: INT-1667
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
3 years agoAdd Tox and Coala setup for Python linter 91/110691/1
Bartek Grzybowski [Wed, 29 Jul 2020 13:33:27 +0000 (15:33 +0200)]
Add Tox and Coala setup for Python linter

Change-Id: Ic2e16c14f13c244f77c16fa5f38349f4549603a3
Issue-ID: INT-1666
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
3 years agoRefactor helm-healer script 09/110009/5
Mateusz Pilat [Thu, 9 Jul 2020 13:31:58 +0000 (15:31 +0200)]
Refactor helm-healer script

Extending helm-helper.sh funtionalities:
-detecting orphaned resources
-removing persistance storage for volumes

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

4 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

4 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"

4 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

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

4 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