oom/offline-installer.git
5 years agoAdding docker image list for 3.0.2 78/85578/3
Tomáš Levora [Wed, 17 Apr 2019 13:06:40 +0000 (15:06 +0200)]
Adding docker image list for 3.0.2

New docker image list based on Casablanca MR 3.0.2-ONAP

Issue-ID: OOM-1802

Change-Id: Ic521cae2003299e1431c71750de9c603f07f9675
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoMerge "Molecule tests for chrony role"
Samuli Silvius [Wed, 17 Apr 2019 08:18:55 +0000 (08:18 +0000)]
Merge "Molecule tests for chrony role"

5 years agoImprove nfs role 84/84684/3
Michal Zegan [Tue, 9 Apr 2019 13:21:52 +0000 (15:21 +0200)]
Improve nfs role

This commit improves the nfs role by
using cluster_ip variable instead of ansible_host for getting
nfs client/server address, and
using /etc/exports.d instead of /etc/exports for
exporting nfs filesystem.
Also, this commit fixes other
issues in molecule found along the way.

Change-Id: Ibd4ea5d4fd937116e2dc9e1b6f85c3e019f62e17
Issue-ID: OOM-1770
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoMolecule tests for rancher role 85/84185/9
Samuli Silvius [Thu, 4 Apr 2019 05:22:08 +0000 (08:22 +0300)]
Molecule tests for rancher role

Issue-ID: OOM-1775

Change-Id: I6ea11db932cd77e03909e4c72acc4b92a544eb4b
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoMolecule tests for chrony role 80/83980/11
Bartek Grzybowski [Tue, 2 Apr 2019 13:39:25 +0000 (15:39 +0200)]
Molecule tests for chrony role

Change-Id: I2cfee4ef44b1aa0ddff0b5d93712390988846c90
Issue-ID: OOM-1710
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoMolecule test run wrappers against CI 58/85458/2
Samuli Silvius [Tue, 16 Apr 2019 12:41:26 +0000 (15:41 +0300)]
Molecule test run wrappers against CI

Add ci-molecule.sh script to work as an interface
towards CI pipe for running Molecule tests.

Issue-ID: OOM-1749

Change-Id: Ib6e74d9b03b569a172a606f4db41b707602bf279
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoFix for running Molecule on Centos host 63/85063/2
Bartek Grzybowski [Thu, 11 Apr 2019 14:24:36 +0000 (16:24 +0200)]
Fix for running Molecule on Centos host

On Centos7.6 /dev/loop* device nodes are
created dynamically upon alocation (by default
there is no /dev/loop<N> device nodes) - this
has effect of failing to allocate those in
Docker container, even when run in privileged
mode.

Change-Id: If2c852de3a74ea7fe1df9f5c863f184b9bc13acb
Issue-ID: OOM-1774
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoMolecule container for running Molecule 11/83711/9
Samuli Silvius [Fri, 29 Mar 2019 11:20:28 +0000 (13:20 +0200)]
Molecule container for running Molecule

Add own Dockerfile and build script for creating
customized molecule runner image from Molecule image
provided by https://quay.io/repository/ansible/molecule.

Customization enables running of molecule container with
current host's user to avoid root owned files bloating
to developer's machine.

Add wrapper script molecule.sh to utilize custom image
and suitable for testing offline-installer roles.

Issue-ID: OOM-1768

Change-Id: I14ed75decb8fa637c044675543de56f1c0796271
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoMolecule tests for certificates role 11/83311/7
Samuli Silvius [Tue, 26 Mar 2019 08:24:39 +0000 (10:24 +0200)]
Molecule tests for certificates role

Issue-ID: OOM-1762

Change-Id: Ic13d7ec775a52ad95fc0388e8b84ea8ab7367666
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoMolecule tests for docker role 27/83227/14
Samuli Silvius [Mon, 25 Mar 2019 16:46:24 +0000 (18:46 +0200)]
Molecule tests for docker role

Issue-ID: OOM-1759

Change-Id: I9e1ee7f248147b3f7229625c7a20fa84e8e67aac
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoMerge "Molecule tests for resource-data role"
Michal Ptacek [Tue, 16 Apr 2019 10:52:59 +0000 (10:52 +0000)]
Merge "Molecule tests for resource-data role"

5 years agoMerge "Molecule tests for firewall role"
Michal Ptacek [Tue, 16 Apr 2019 10:49:57 +0000 (10:49 +0000)]
Merge "Molecule tests for firewall role"

5 years agoMerge "Molecule role tests for setup role"
Michal Ptacek [Tue, 16 Apr 2019 10:46:49 +0000 (10:46 +0000)]
Merge "Molecule role tests for setup role"

5 years agoMerge "Molecule tests for package-repository role"
Michal Ptacek [Tue, 16 Apr 2019 10:45:35 +0000 (10:45 +0000)]
Merge "Molecule tests for package-repository role"

5 years agoMerge "Add monitoring script for deployment progress"
Tomáš Levora [Tue, 16 Apr 2019 06:42:09 +0000 (06:42 +0000)]
Merge "Add monitoring script for deployment progress"

5 years agoMolecule role tests for setup role 09/82809/5
Samuli Silvius [Wed, 20 Mar 2019 14:14:55 +0000 (16:14 +0200)]
Molecule role tests for setup role

Issue-ID: OOM-1742

Change-Id: I3087952f3d4e5de20af83e714c0d5444999a5ee2
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoMolecule tests for firewall role 13/83113/4
Samuli Silvius [Sun, 24 Mar 2019 11:36:08 +0000 (13:36 +0200)]
Molecule tests for firewall role

Issue-ID: OOM-1757

Change-Id: I48639bd0fb67383a58f736aa1c12c38e3ddc9ab0
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoMolecule tests for package-repository role 43/83043/3
Samuli Silvius [Fri, 22 Mar 2019 13:37:39 +0000 (15:37 +0200)]
Molecule tests for package-repository role

Issue-ID: OOM-1755

Change-Id: Iac20072200f24a3102c9ed2edf5c5aa8054dd9c2
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoMolecule tests for resource-data role 03/83003/6
Samuli Silvius [Fri, 22 Mar 2019 07:33:05 +0000 (09:33 +0200)]
Molecule tests for resource-data role

Initial molecule tests. Tests now ssh transfer but
test files fully supports also testing nfs transfer.
Creating nfs transfer as separate scenario later when
find out better ways to share common code.

Issue-ID: OOM-1754

Change-Id: Ia728ecfed4378c01f7e305d5a4446b0172fe42d9
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoAdd monitoring script for deployment progress 95/82795/11
Milan Verespej [Wed, 20 Mar 2019 12:51:40 +0000 (13:51 +0100)]
Add monitoring script for deployment progress

Issue-ID: OOM-1724

Change-Id: Ie634a441641abd3afd4093661c5d4f57245946ee
Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
5 years agoMerge "Dockerfile and build script for Ubuntu"
Samuli Silvius [Mon, 15 Apr 2019 12:38:57 +0000 (12:38 +0000)]
Merge "Dockerfile and build script for Ubuntu"

5 years agoMerge "Update Testing Guide"
Samuli Silvius [Tue, 9 Apr 2019 18:33:20 +0000 (18:33 +0000)]
Merge "Update Testing Guide"

5 years agoMerge "Improve dockerfile for Centos7"
Samuli Silvius [Tue, 9 Apr 2019 14:09:28 +0000 (14:09 +0000)]
Merge "Improve dockerfile for Centos7"

5 years agoMerge "Fix patching registry in NPM"
Michal Ptacek [Tue, 9 Apr 2019 14:05:02 +0000 (14:05 +0000)]
Merge "Fix patching registry in NPM"

5 years agoMerge "Fixing minor inaccuracies in BuildGuide"
Michal Ptacek [Tue, 9 Apr 2019 14:02:02 +0000 (14:02 +0000)]
Merge "Fixing minor inaccuracies in BuildGuide"

5 years agoUpdate Testing Guide 64/84664/2
Bartek Grzybowski [Tue, 9 Apr 2019 11:22:43 +0000 (13:22 +0200)]
Update Testing Guide

Covers aspects related to multi scenario testing.

Clarifies build scripts and pre-build images
usage scenarios.

Change-Id: Ib30a80a8c695387b51c9014d046cabff33229244
Issue-ID: OOM-1710
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoUpdate image name for Molecule 31/84631/1
Bartek Grzybowski [Tue, 9 Apr 2019 08:26:20 +0000 (10:26 +0200)]
Update image name for Molecule

Sanitizing image name for Molecule testing with
new updated naming pattern.

Change-Id: I1565242f0ddd88b0df758ebb3519f2e059f22c02
Issue-ID: OOM-1774
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoImprove dockerfile for Centos7 30/84630/1
Bartek Grzybowski [Tue, 9 Apr 2019 08:21:16 +0000 (10:21 +0200)]
Improve dockerfile for Centos7

All packages are upgraded and '/run' volume is
being created.

Change-Id: I9a7056cf4615932b322c1c5b073ab60787ac54e0
Issue-ID: OOM-1774
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoFixing minor inaccuracies in BuildGuide 10/84310/8
Michal Ptacek [Fri, 5 Apr 2019 06:39:31 +0000 (06:39 +0000)]
Fixing minor inaccuracies in BuildGuide

Repos are configured differently on RHEL/Centos platforms

Issue-ID: OOM-1761

Change-Id: Ic91b7c91f0c0fb47170709d6628f210b65a56425
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
5 years agoFix patching registry in NPM 16/84616/1
Tomáš Levora [Tue, 9 Apr 2019 07:27:06 +0000 (09:27 +0200)]
Fix patching registry in NPM

Fix URL in patching of registry in NPM package tsscmp-1.0.5.tgz

Issue-ID: OOM-1787

Change-Id: I937b851edf0b09a1f43b309310ce21bf66a09b8b
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoChanging version control for rancher 16/84316/3
Tomáš Levora [Fri, 5 Apr 2019 09:25:01 +0000 (11:25 +0200)]
Changing version control for rancher

Changing the way of version control for rancher in accordance with
patchset #83634

Issue-ID: OOM-1767

Change-Id: I67f08dcf47f469c35da9a62ff435e187fae07724
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoMerge "Adding versions for infra related docker images"
Michal Ptacek [Fri, 5 Apr 2019 13:03:08 +0000 (13:03 +0000)]
Merge "Adding versions for infra related docker images"

5 years agoMerge "Simplify Centos Dockerfile for Molecule"
Tomáš Levora [Fri, 5 Apr 2019 11:48:35 +0000 (11:48 +0000)]
Merge "Simplify Centos Dockerfile for Molecule"

5 years agoAdding versions for infra related docker images 34/83634/12
Tomáš Levora [Thu, 28 Mar 2019 16:45:55 +0000 (17:45 +0100)]
Adding versions for infra related docker images

1. latest tag replaced by version number for vnc server
2. added specific version for own_nginx image
3. version control improved in ansible roles accordingly

Solves OOM-1766

Issue-ID: OOM-1767

Change-Id: I147c56b46a419188099d8ed3e78fed68810893e2
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoMerge "Our bare repos need to have casablanca branch"
Michal Ptacek [Fri, 5 Apr 2019 11:34:33 +0000 (11:34 +0000)]
Merge "Our bare repos need to have casablanca branch"

5 years agoOur bare repos need to have casablanca branch 01/84101/4
Michal Ptacek [Wed, 3 Apr 2019 13:55:29 +0000 (13:55 +0000)]
Our bare repos need to have casablanca branch

This is required to align with OOM charts, otherwise
some components like DMAAP might be not initialized
properly. Furthmore removing duplicated files, most
of our data_lists are same for Casablanca MR and
Casablanca base releases.

Change-Id: I376410c7915d8f2682287c31392e2f3796adc990
Issue-ID: OOM-1771
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
5 years agoSimplify Centos Dockerfile for Molecule 12/84312/2
Bartek Grzybowski [Fri, 5 Apr 2019 08:10:12 +0000 (10:10 +0200)]
Simplify Centos Dockerfile for Molecule

Base the Centos image for molecule on official
CentOS systemd docker container.

Align the tagging policy with Centos images
on docker hub.

Change-Id: Ia2743ab78faed858dc5a7f3611cffb779b23d463
Issue-ID: OOM-1774
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoMerge changes I2e1aef32,Ib93e9d2a
Michal Ptacek [Fri, 5 Apr 2019 10:26:22 +0000 (10:26 +0000)]
Merge changes I2e1aef32,Ib93e9d2a

* changes:
  Molecule test for nfs role
  Fix nfs role issues based on molecule testing

5 years agoFix wrapper shell script in chroot 11/84311/1
Petr Ospalý [Fri, 5 Apr 2019 07:59:30 +0000 (09:59 +0200)]
Fix wrapper shell script in chroot

Change-Id: I4f88d47c633096a82ef113dca2d58e584c43d1ae
Issue-ID: OOM-1744
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoMerge "Building and Dockerfile for centos7"
Michal Ptacek [Fri, 5 Apr 2019 07:48:51 +0000 (07:48 +0000)]
Merge "Building and Dockerfile for centos7"

5 years agoDockerfile and build script for Ubuntu 09/84109/3
Bartek Grzybowski [Wed, 3 Apr 2019 14:58:13 +0000 (16:58 +0200)]
Dockerfile and build script for Ubuntu

Dockerfile that allows building a Systemd
compliant Ubuntu image (for Ubuntu releases
that support it).

A build script for building the image.

Change-Id: I3456e40e7ac96e611e957b2912405f9030dc0f04
Issue-ID: OOM-1774
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoMerge "Rewrite the run_chroot.sh script"
Michal Ptacek [Thu, 4 Apr 2019 11:58:13 +0000 (11:58 +0000)]
Merge "Rewrite the run_chroot.sh script"

5 years agoMerge "Document molecule testing"
Samuli Silvius [Thu, 4 Apr 2019 10:55:12 +0000 (10:55 +0000)]
Merge "Document molecule testing"

5 years agoDocument molecule testing 65/82665/10
Samuli Silvius [Tue, 19 Mar 2019 11:40:50 +0000 (13:40 +0200)]
Document molecule testing

Documentation for Molecule testing used in offline installer.

Issue-ID: OOM-1703

Change-Id: I00fb74dbfcd39ce22107c981df14cb42da73808a
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoMerge "Improving docker restart handler"
Michal Ptacek [Wed, 3 Apr 2019 14:12:14 +0000 (14:12 +0000)]
Merge "Improving docker restart handler"

5 years agoVerify offline app repo is working 91/82091/8
Bartek Grzybowski [Wed, 13 Mar 2019 08:33:53 +0000 (09:33 +0100)]
Verify offline app repo is working

A patch for failing fast if configured offline
application repository is not working properly.
Just adding repo to repolist doesn't guarantee
it's really operational.

Change-Id: I65372b9b1ea5f5dcb797548b14e3ae1295668592
Issue-ID: OOM-1689
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoMerge "Support time synchronization on hosts"
Michal Ptacek [Wed, 3 Apr 2019 10:27:40 +0000 (10:27 +0000)]
Merge "Support time synchronization on hosts"

5 years agoMerge "Improve kubectl role testability."
Samuli Silvius [Wed, 3 Apr 2019 10:15:33 +0000 (10:15 +0000)]
Merge "Improve kubectl role testability."

5 years agoMerge "Improve rancher role testability"
Samuli Silvius [Wed, 3 Apr 2019 10:15:25 +0000 (10:15 +0000)]
Merge "Improve rancher role testability"

5 years agoBuilding and Dockerfile for centos7 08/83008/4
Samuli Silvius [Fri, 22 Mar 2019 08:00:43 +0000 (10:00 +0200)]
Building and Dockerfile for centos7

Add initial Dockerfile for centos7 for molecule testing.

Issue-ID: OOM-1750

Change-Id: Ie4da3d80c713d1da56465c598774b370b4c01b36
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoAdd helm override instructions to install guide 74/83974/4
Michal Zegan [Tue, 2 Apr 2019 13:33:30 +0000 (15:33 +0200)]
Add helm override instructions to install guide

This commit adds instruction about using the new
helm chart overrides feature.

Change-Id: I6a5d973ee91562ae618d357fd3fdecc1cf4f03bf
Issue-ID: OOM-1752
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoSupport time synchronization on hosts 69/83369/4
Bartek Grzybowski [Tue, 26 Mar 2019 15:10:10 +0000 (16:10 +0100)]
Support time synchronization on hosts

This change introduces functionality to synchronize
infra/kube nodes' clock with external NTP authority.

Configuring external time source is optional, however
default behaviour will be to setup NTP time source on
infra-node and sync kube-nodes clock with it.

It's also possible to setup custom time zone.

Change-Id: I725ce9a306da1977628b6c03d5ff10fca77fb3b0
Issue-ID: OOM-1710
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoMerge "Wrong filename does not fail transfer"
Samuli Silvius [Mon, 1 Apr 2019 17:48:13 +0000 (17:48 +0000)]
Merge "Wrong filename does not fail transfer"

5 years agoMolecule test for nfs role 02/83102/3
Samuli Silvius [Sat, 23 Mar 2019 12:09:41 +0000 (14:09 +0200)]
Molecule test for nfs role

Issue-ID: OOM-1756

Change-Id: I2e1aef3296689c284a4b530e6a2022302c7b86f7
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoFix nfs role issues based on molecule testing 01/83101/3
Samuli Silvius [Sat, 23 Mar 2019 11:54:34 +0000 (13:54 +0200)]
Fix nfs role issues based on molecule testing

Based on Molecule testing fix following issues on
nfs role.

 - enable nfs services (previously only started)
 - create handler for exportfs to deal idempotency
 - add all kubernetes nodes to exports as it was dependent on ansible inventory order wheather correct hosts was on the list
 - add inventory_hostname as default host incase ansible_host variable not defined.

Issue-ID: OOM-1756

Change-Id: Ib93e9d2a9cf49003d04dd5f890294eda1eb966ff
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoMerge "nginx update for long server names"
Samuli Silvius [Mon, 1 Apr 2019 15:54:13 +0000 (15:54 +0000)]
Merge "nginx update for long server names"

5 years agoAllow passing any values to override.yaml 91/83191/9
Michal Zegan [Mon, 25 Mar 2019 12:13:00 +0000 (13:13 +0100)]
Allow passing any values to override.yaml

This change allows passing any values that will then
be stored to override.yaml.
These values are passed from the "overrides" key, that
may be set either as an extra variable or in inventory/group_vars.
The root certificate is merged with the overrides dictionary before
saving the file.

Change-Id: I772c342b3c9eafe1849d1678b810319afaaf75bf
Issue-ID: OOM-1752
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoImprove application role testability 28/82628/6
Samuli Silvius [Tue, 19 Mar 2019 06:45:54 +0000 (08:45 +0200)]
Improve application role testability

Remove different phases for application role as
those are supposed to run after each other anyway
from playbook and pre/post steps can be disabled
by other means.

Enable Helm override file generation customization by
delegating it to separate role.

Separate Helm file transfer to own module.

NOTE: install.yml with all Helm commands (shell/command)
is not idempotent and should be fixed with separate
commit.

Issue-ID: OOM-1655

Change-Id: Ib29773c4d64a0529c71c3f93c2af7265ae94059f
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoMerge "Fix idempotence for firewall role"
Michal Ptacek [Mon, 1 Apr 2019 11:15:38 +0000 (11:15 +0000)]
Merge "Fix idempotence for firewall role"

5 years agoMerge "Update Maven artifact dependency list again"
Michal Ptacek [Mon, 1 Apr 2019 10:26:20 +0000 (10:26 +0000)]
Merge "Update Maven artifact dependency list again"

5 years agoFix helm install command not showing error 15/83715/1
Milan Verespej [Fri, 29 Mar 2019 11:50:40 +0000 (12:50 +0100)]
Fix helm install command not showing error

Issue-ID: OOM-1737

Change-Id: I240415793ea2a078ab6c6d9c0727852dc2d9ada3
Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
5 years agoUpdate Maven artifact dependency list again 29/83629/1
kaihlavi [Thu, 28 Mar 2019 16:14:08 +0000 (18:14 +0200)]
Update Maven artifact dependency list again

 Updated additional Maven artifact dependencies for offline Nexus

Issue-ID: OOM-1706
Signed-off-by: kaihlavi <l.kaihlavirt@partner.samsung.com>
Change-Id: I3c744be33447fc5816bc547c0ae3cce6428dc57c

5 years agonginx update for long server names 99/83599/1
eronkeo [Thu, 28 Mar 2019 12:03:26 +0000 (12:03 +0000)]
nginx update for long server names

This issue addresses the following
error when starting nginx container:
  nginx: [emerg] could not build the \
  server_names_hash, you should increase \
  server_names_hash_bucket_size: 64

Change-Id: I369075edd16801aca6b09c6727370060225c428c
Issue-ID: OOM-1765
Signed-off-by: eronkeo <ronan.keogh@est.tech>
5 years agoImproving docker restart handler 94/83494/3
Michal Ptacek [Wed, 27 Mar 2019 15:05:44 +0000 (15:05 +0000)]
Improving docker restart handler

There is a bug in docker which leads to not properly
shutdown service preventing subsequent startup.
https://github.com/moby/moby/issues/30348
This commit is preventing this problem to appear.

Change-Id: I29505610bd9954af01d73264e5414fdb2b9ac99d
Issue-ID: OOM-1735
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
5 years agoWrong filename does not fail transfer 72/83372/2
Samuli Silvius [Tue, 26 Mar 2019 15:30:48 +0000 (17:30 +0200)]
Wrong filename does not fail transfer

User typo on resource package filename or dir does not cause install to fail
but just skips that resource package.

Change resource paths handling to skip resource only if
variable is not defined or empty, but if a value is given
resource must exist or transfer fails otherwise.

Issue-ID: OOM-1736

Change-Id: I765c5dc8eb5e58875f032e056f9a8360aee702c0
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoAdd python-jsonpointer as a new dependency 93/83193/2
Petr Ospalý [Mon, 25 Mar 2019 12:25:45 +0000 (13:25 +0100)]
Add python-jsonpointer as a new dependency

Our custom ansible module requires python-jsonpointer module
to deal with jsons.

Change-Id: Idd7bfcf8fcf75e4397fba51d8219b73c57df5f0e
Issue-ID: OOM-1758
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoMerge "Sanitize input arguments validation"
Michal Ptacek [Tue, 26 Mar 2019 14:29:55 +0000 (14:29 +0000)]
Merge "Sanitize input arguments validation"

5 years agoRewrite the run_chroot.sh script 41/83041/5
Michal Zegan [Fri, 22 Mar 2019 13:16:04 +0000 (14:16 +0100)]
Rewrite the run_chroot.sh script

This change heavily changes run_chroot.sh script.
Major change is that most of the real script logic is now run in a namespace,
so that all mounts are done in namespace.
Also, all the cleanup code and some checks are removed, also the
shell wrapper is removed.
This change is for simplifying the run_chroot.sh. It will function the same as before
from the user's point of view, except that now the script does not have to explicitly
unmount filesystems that it mounted before, so
no cleanup code isneeded. Also,
all processes run from inside a chroot should be killed immediately
when the chroot command finishes.

Change-Id: I45a3dc7c6583cb9693746cc04f42b7af325724dd
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
Issue-ID: OOM-1744

5 years agoMerge "Fixing some yaml-lint warnings"
Michal Ptacek [Tue, 26 Mar 2019 09:07:18 +0000 (09:07 +0000)]
Merge "Fixing some yaml-lint warnings"

5 years agoFixing some yaml-lint warnings 23/82923/5
Michal Ptacek [Thu, 21 Mar 2019 12:32:20 +0000 (12:32 +0000)]
Fixing some yaml-lint warnings

Scope of this commit is to fix warnings reported by
offline-installer-master-yaml-lint jenkins job

Change-Id: Id858a37ce35d53ad1ffd5e5797607faae484ed15
Issue-ID: OOM-1753
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
5 years agoMerge ".gitignore for Molecule testing"
Michal Ptacek [Tue, 26 Mar 2019 08:24:05 +0000 (08:24 +0000)]
Merge ".gitignore for Molecule testing"

5 years agoMerge "Fix issue with proxy for deb download behind proxy"
Michal Ptacek [Tue, 26 Mar 2019 08:20:20 +0000 (08:20 +0000)]
Merge "Fix issue with proxy for deb download behind proxy"

5 years agoMerge "Fix git repos not using tag 3.0.1-ONAP"
Michal Ptacek [Tue, 26 Mar 2019 08:19:42 +0000 (08:19 +0000)]
Merge "Fix git repos not using tag 3.0.1-ONAP"

5 years agoFix idempotence for firewall role 12/83112/1
Samuli Silvius [Sun, 24 Mar 2019 11:32:44 +0000 (13:32 +0200)]
Fix idempotence for firewall role

Based on Molecule testing, fix idempotence.

Issue-ID: OOM-1757

Change-Id: Ie2c4cdcf65aeac664d4b76daa7e979f4f23b6bdf
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years ago.gitignore for Molecule testing 03/83103/1
Samuli Silvius [Sat, 23 Mar 2019 12:34:51 +0000 (14:34 +0200)]
.gitignore for Molecule testing

Issue-ID: OOM-1748

Change-Id: Ie1558112d6d2af2c77f9f9d0a142d417b3269589
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoImprove kubectl role testability. 38/82538/4
Samuli Silvius [Sun, 17 Mar 2019 17:28:33 +0000 (19:28 +0200)]
Improve kubectl role testability.

Move kubectl related functionality from rancher role to kubectl role
and change order of execution in playbook to satisfy kubectl role
dependency to rancher role regarding server value inserted into
kubeconfig file.

Introduced defaults and moved technical variables from group_vars
into role defaults.

Issue-ID: OOM-1730

Change-Id: I6339664ba52928566487edcdca8a3b42db86eeed
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoImprove rancher role testability 37/82537/5
Samuli Silvius [Sun, 17 Mar 2019 16:06:33 +0000 (18:06 +0200)]
Improve rancher role testability

Move functionality from playbook to rancher role.
Introduce defaults for holding default values in rancher role.
Other small changes noticed while testing rancher role with molecule.

Issue-ID: OOM-1729

Change-Id: I83befa9f0964c67e209d3def76bafd2a61c1ef33
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoupdate for missing nginx tarfile 01/82701/3
eronkeo [Wed, 20 Mar 2019 15:00:20 +0000 (15:00 +0000)]
update for missing nginx tarfile

This update adds an entry to the docker_images lists file to ensure
it is saved as a tar file and available for processing in the
"Prepare infra related images to infra folder" section.

Change-Id: I293144daa96b3c579443a2e76a407ea04821dce7
Issue-ID: OOM-1738
Signed-off-by: eronkeo <ronan.keogh@est.tech>
5 years agoFix issue with proxy for deb download behind proxy 04/82804/1
Tomáš Levora [Wed, 20 Mar 2019 13:53:41 +0000 (14:53 +0100)]
Fix issue with proxy for deb download behind proxy

As curl tries to use ftp transfer for some of the packages in the
list, what causes an issue behind some corporate proxies, this commit
unifies the sources to prevent ftp

Issue-ID: OOM-1746

Change-Id: Ia7cac5a1c3d508749c3bea830c3df1137128e709
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoFix git repos not using tag 3.0.1-ONAP 97/82797/1
Tomáš Levora [Wed, 20 Mar 2019 13:22:29 +0000 (14:22 +0100)]
Fix git repos not using tag 3.0.1-ONAP

Tag 3.0.1-ONAP is not created for projects not included in the
Casablanca Maintenance release, so casablanca branch is used instead

Issue-ID: OOM-1745

Change-Id: I652ab0a87ddcdda0d72088609fdd1ce678159ff0
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoMerge "Update Maven artifact dependency list"
Michal Ptacek [Wed, 20 Mar 2019 13:23:53 +0000 (13:23 +0000)]
Merge "Update Maven artifact dependency list"

5 years agoMerge "Add default logging settings for docker"
Michal Ptacek [Wed, 20 Mar 2019 13:20:42 +0000 (13:20 +0000)]
Merge "Add default logging settings for docker"

5 years agoMerge "Changing keystore to trustore in policy"
Tomáš Levora [Wed, 20 Mar 2019 13:19:38 +0000 (13:19 +0000)]
Merge "Changing keystore to trustore in policy"

5 years agoUpdate Maven artifact dependency list 16/82416/2
kaihlavi [Fri, 15 Mar 2019 11:48:52 +0000 (13:48 +0200)]
Update Maven artifact dependency list

 Update required Maven artifact dependencies for offline Nexus
 to Casablanca level

Change-Id: I2c0eb230e05bb691911497eff4439b121b2a01d5
Issue-ID: OOM-1706
Signed-off-by: kaihlavi <l.kaihlavirt@partner.samsung.com>
5 years agoMerge "Change cert signing from command to module"
Michal Ptacek [Tue, 19 Mar 2019 09:54:50 +0000 (09:54 +0000)]
Merge "Change cert signing from command to module"

5 years agoAdd default logging settings for docker 90/79590/7
Petr Ospalý [Mon, 4 Mar 2019 05:56:33 +0000 (06:56 +0100)]
Add default logging settings for docker

- Default configuration of logging for docker daemon.
- New ansible module for generic handling of JSON files.
- New setting in ansible.cfg: jinja2_native = True
  To preserve double-quotes in json values (OOM-1698).

Issue-ID: OOM-1681
Change-Id: I8f8e19ebc290fd48a63146e96f418b98344e4433
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoSanitize input arguments validation 94/82594/1
Bartek Grzybowski [Mon, 18 Mar 2019 15:09:51 +0000 (16:09 +0100)]
Sanitize input arguments validation

This patch ensures non-positional parameters
are given past positional args. So far mixing
them led to malicious script behaviour.

Change-Id: Idf2b6a57d0cd8561e74e467f68ddc5d086e7a0c0
Issue-ID: OOM-1621
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoMerge "Don't remove target dir by default"
Michal Ptacek [Mon, 18 Mar 2019 10:15:37 +0000 (10:15 +0000)]
Merge "Don't remove target dir by default"

5 years agoChanging keystore to trustore in policy 86/82386/2
Michal Ptacek [Fri, 15 Mar 2019 08:12:07 +0000 (08:12 +0000)]
Changing keystore to trustore in policy

Casablanca policy is using different file as its keystore.
We need to adjust our patch accordingly

Issue-ID: OOM-1727

Change-Id: I67cb3f098a8e56467594832050dbc2c66dbe124c
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
5 years agoDon't remove target dir by default 61/82261/1
Bartek Grzybowski [Thu, 14 Mar 2019 14:34:51 +0000 (15:34 +0100)]
Don't remove target dir by default

If target dir given as an argument is not empty
script exits and gives verbose reasoning.

Introduced '--force' flag to allow overwriting
non empty target dir.

Improved usage synopsis.

Change-Id: Ic03c926011a41e9620c941f28dbc580b5b9933ac
Issue-ID: OOM-1621
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoChange cert signing from command to module 73/79773/3
Milan Verespej [Wed, 6 Mar 2019 11:32:24 +0000 (12:32 +0100)]
Change cert signing from command to module

With newer Ansible we are now able to sign nexus certificate
with own CA using openssl_certificate module.

Issue-ID: OOM-1700

Change-Id: Idc54955160caef4a57bd50fc86678923511b5bce
Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
5 years agoFix repo checkout cmd in build guide 28/82228/1
Bartek Grzybowski [Thu, 14 Mar 2019 08:38:52 +0000 (09:38 +0100)]
Fix repo checkout cmd in build guide

As there is no 'casablanca' branch 'master' should
be checked out.

Change-Id: I9fba8ef0b10d3de3891d0e7612571789dfdc9449
Issue-ID: OOM-1621
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoImprove certificates role testability 68/79568/5
Samuli Silvius [Sun, 3 Mar 2019 11:34:16 +0000 (13:34 +0200)]
Improve certificates role testability

Move certs source path to defaults and make other small re-factoring.

Issue-ID: OOM-1694

Change-Id: Ie0a4b543b40314dc5a7772dd4667b1ad218d3543
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoMerge "Refine application_pre_install_role variable usage"
Michal Ptacek [Fri, 8 Mar 2019 08:34:07 +0000 (08:34 +0000)]
Merge "Refine application_pre_install_role variable usage"

5 years agoModify ansible version in docker/chroot 39/79639/4
Petr Ospalý [Mon, 4 Mar 2019 15:23:23 +0000 (16:23 +0100)]
Modify ansible version in docker/chroot

Updating to ansible version: 2.7.8
Current ansible version: 2.6.3

The current version breaks json values in playbooks.

Change-Id: I9858339a08711ad921122b2e7b6ccf04d62454a3
Issue-ID: OOM-1698
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoMerge "Adding postinstall section in InstallGuide"
Michal Ptacek [Fri, 8 Mar 2019 06:35:44 +0000 (06:35 +0000)]
Merge "Adding postinstall section in InstallGuide"

5 years agoIgnore checksum from existence check of resources 87/79887/2
Samuli Silvius [Thu, 7 Mar 2019 09:49:20 +0000 (11:49 +0200)]
Ignore checksum from existence check of resources

To speed up resource packages existency check, ignore
checsum.
This change was accidentally left out from previous commit
as merging was not communicated.

Issue-ID: OOM-1654

Change-Id: I567eaba49e6a5244d51187d42af719bf360b41f0
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoRefine application_pre_install_role variable usage 25/79625/6
Bartek Grzybowski [Mon, 4 Mar 2019 14:34:19 +0000 (15:34 +0100)]
Refine application_pre_install_role variable usage

As 'application_pre_install_role' variable set in
config/application_configuration.yml must stay in
sync with patch role directory name defined in
package.conf under APP_CONFIGURATION variable, it's
name shall stay under complete user control without
any variable as part of it's name.

App_helm_build_targets list and app_helm_chart_name
should default to 'onap' in application_configuration.yml
as customizing them isn't supported at the moment.

Also fixed some wording in comments/docs in relevant
files.

Change-Id: I82b6dd519fbc3426739a11fac1e02eb495a668c0
Issue-ID: OOM-1697
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoAdding postinstall section in InstallGuide 94/79794/2
Michal Ptacek [Wed, 6 Mar 2019 16:25:43 +0000 (16:25 +0000)]
Adding postinstall section in InstallGuide

Describing common issues with onap deployments into InstallGuide.

Change-Id: I7b039fbc357901c8bfa1d57db69f9344eea07077
Issue-ID: OOM-1701
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
5 years agoFix wrong detection of uploaded resources 62/79462/4
Milan Verespej [Fri, 1 Mar 2019 13:49:25 +0000 (14:49 +0100)]
Fix wrong detection of uploaded resources

Issue-ID: OOM-1596

Change-Id: I091cd558f7574f49dddf4380df24e11141a4b78d
Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>