oom/offline-installer.git
4 years agoFixing typo in download-pip.sh script 61/88461/1 casablanca
eronkeo [Thu, 23 May 2019 15:50:42 +0000 (15:50 +0000)]
Fixing typo in download-pip.sh script

Change-Id: I1216cb0fc2f47f29ef7f3880a03f4e6a3dfd3ec4
Issue-ID: OOM-1879
Signed-off-by: eronkeo <ronan.keogh@est.tech>
(cherry picked from commit 507bda29594ce40ed66830183ec5647f39031299)

5 years agoAdding notes from vFWCL exercise on Casablanca 26/87626/4
Michal Ptacek [Tue, 14 May 2019 07:26:01 +0000 (07:26 +0000)]
Adding notes from vFWCL exercise on Casablanca

In this new doc we are summarizing all relevant steps we had to
pass in order to get vFirewall demo working in our offline platform.
It is collecting information from various sources so it can be
interesting reading also for people trying vFWCL on online deployments.

Change-Id: Ided64eba7d3f0163447ebc514690832cfb3c2f94
Issue-ID: OOM-1805
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
Signed-off-by: kaihlavi <l.kaihlavirt@partner.samsung.com>
5 years agoMerge "Updating offline platform with latest 3.0.2"
Michal Ptacek [Fri, 10 May 2019 12:25:46 +0000 (12:25 +0000)]
Merge "Updating offline platform with latest 3.0.2"

5 years agoFix 'cleanup' stage in 'nfs' role test 18/87018/3
Bartek Grzybowski [Mon, 6 May 2019 11:17:25 +0000 (13:17 +0200)]
Fix 'cleanup' stage in 'nfs' role test

This commit reverts removal of 'ignore_unreachable'
option in 'cleanup.yml' for 'nfs' role tests in
96a4baf. It's needed for cleanup stage to succeed
if called prior to 'create' stage (default 'test'
matrix behaviour)

Change-Id: I9177fb950786f05a55c45a0089fb3632503f14f5
Issue-ID: OOM-1809
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoMerge "Extending molecule test to playbooks"
Samuli Silvius [Thu, 9 May 2019 16:13:36 +0000 (16:13 +0000)]
Merge "Extending molecule test to playbooks"

5 years agoUpdating offline platform with latest 3.0.2 14/87114/8
Michal Ptacek [Tue, 7 May 2019 07:38:40 +0000 (07:38 +0000)]
Updating offline platform with latest 3.0.2

- Adding missing artifacts into onap_3.0.x-http_files.list
- Some fine-tuning of examples in DOCs

Issue-ID: OOM-1805

Change-Id: Ic5a55590a9fa9a244c43aff6a63554aefaea6cc5
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
5 years agoMerge "Make simplified version of build_nexus_blob.sh"
Tomáš Levora [Thu, 9 May 2019 14:57:15 +0000 (14:57 +0000)]
Merge "Make simplified version of build_nexus_blob.sh"

5 years agoExtending molecule test to playbooks 33/87233/7
Mateusz Pilat [Wed, 8 May 2019 11:33:46 +0000 (13:33 +0200)]
Extending molecule test to playbooks

Review should also execute molecule tests for ansible/test/play-xxx when anything in /ansible/test has been changed

Change-Id: I9a106a1c141b1053db6ac892e2dcecd4e646fd5b
Issue-ID: OOM-1801
Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com>
5 years agoFix download scripts to handle empty lines 48/86048/6
Tomáš Levora [Tue, 23 Apr 2019 12:28:47 +0000 (14:28 +0200)]
Fix download scripts to handle empty lines

Fixing download and saving scripts to be able to ignore empty or 00D
ending lines in lists

Issue-ID: OOM-1818

Change-Id: I55ef1dfbea628f8c1d4b19745536e629a2dbe0c9
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoMake simplified version of build_nexus_blob.sh 33/82033/21
Tomáš Levora [Tue, 12 Mar 2019 14:06:35 +0000 (15:06 +0100)]
Make simplified version of build_nexus_blob.sh

Removed requirement for configuration file with a lot of necessary
inputs from user

Removed dependency resolution for RHEL systems

Added interconnect with the whole offline-installer build process from
list generating to packaging

Removed creating of nexus_data tarball

Small improvements of the process

Issue-ID: OOM-1704

Change-Id: Idd34e1a6bf160ec40413db16138c849334d9ca44
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoMerge "Add script to start review for offline installer in community Jenkins"
Michal Ptacek [Tue, 7 May 2019 13:10:00 +0000 (13:10 +0000)]
Merge "Add script to start review for offline installer in community Jenkins"

5 years agoMerge "minor documentation updates"
Michal Ptacek [Tue, 7 May 2019 08:01:16 +0000 (08:01 +0000)]
Merge "minor documentation updates"

5 years agoMerge "Updating docker image list for 3.0.2"
Michal Ptacek [Tue, 7 May 2019 07:32:39 +0000 (07:32 +0000)]
Merge "Updating docker image list for 3.0.2"

5 years agoAdd script to start review for offline installer in community Jenkins 47/87047/1
Mateusz Pilat [Mon, 6 May 2019 15:12:36 +0000 (17:12 +0200)]
Add script to start review for offline installer in community Jenkins

script to detect what tests are supposed to be executed for a given change

Change-Id: I8e392e5d67bb56ab7653d4a5176a3b8df1dc72c9
Issue-ID: OOM-1801
Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com>
5 years agoMerge "Fix for Molecule images build-all.sh"
Michal Ptacek [Mon, 6 May 2019 07:40:26 +0000 (07:40 +0000)]
Merge "Fix for Molecule images build-all.sh"

5 years agoUpdating docker image list for 3.0.2 11/86511/2
Tomáš Levora [Mon, 29 Apr 2019 11:12:02 +0000 (13:12 +0200)]
Updating docker image list for 3.0.2

Updated docker image list based on Casablanca MR 3.0.2-ONAP

Issue-ID: OOM-1802

Change-Id: I748d5c2d69c0158b89beecb8d3a5ac49262196d4
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoMerge "Make 'prepare-docker' install proper docker-ce version"
Michal Ptacek [Thu, 2 May 2019 15:09:26 +0000 (15:09 +0000)]
Merge "Make 'prepare-docker' install proper docker-ce version"

5 years agoFix docker run in ansible/test/bin/molecule.sh. 21/86621/1
Mateusz Pilat [Tue, 30 Apr 2019 13:16:33 +0000 (15:16 +0200)]
Fix docker run in ansible/test/bin/molecule.sh.

-it in docker run does not work well with jenkins

Change-Id: Ic1bfedfb64e0a862aa9d49b5615048b9eccf9670
Issue-ID: OOM-1833
Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com>
5 years agoMake 'prepare-docker' install proper docker-ce version 28/86528/3
Bartek Grzybowski [Mon, 29 Apr 2019 14:13:49 +0000 (16:13 +0200)]
Make 'prepare-docker' install proper docker-ce version

Docker-ce version should be aligned with Docker release
installed on target platform
(see build/creating_data/create-rhel-repo.sh)

This patch also optimizes package installation process
in Molecule tests.

Change-Id: I3f0cb7cd36a3f91027b2be43a925e54167d9c6d0
Issue-ID: OOM-1815
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoFix for Molecule images build-all.sh 04/86404/1
Mateusz Pilat [Fri, 26 Apr 2019 14:15:29 +0000 (16:15 +0200)]
Fix for Molecule images build-all.sh

ansible/test/images/docker/build-all.sh works only if executed under folder where script is located.

Change-Id: Ic91656656788a48bdd12cb8003e875011a71cbe3
Issue-ID: OOM-1829
Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com>
5 years agoCleanup Rancher containers after Molecule converge 90/86390/3
Bartek Grzybowski [Fri, 26 Apr 2019 11:26:45 +0000 (13:26 +0200)]
Cleanup Rancher containers after Molecule converge

Rancher role test do remove rancher/agent and rancher/server
containers at 'cleanup' stage but Rancher Agent spawned
containers are left orphaned. This patch adds tasks to
remove them.

This patch also adds custom ansible module for listing
docker containers (as of ansible 2.7.10 no upstream module
provides that feature, even new docker_container_info info
module in ansible's devel branch doesn't have it)

Change-Id: I6325dc81063b55b70136280273f8f6138c7a0375
Issue-ID: OOM-1811
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agominor documentation updates 57/86157/6
eronkeo [Wed, 24 Apr 2019 15:18:18 +0000 (15:18 +0000)]
minor documentation updates

Some minor documentation updates to address
invalid paths and some duplicate and missing references
in the nexus_build.conf file template.

Added 3.0.2-ONAP refference

Change-Id: I466b6ac740388d56f1b3fb7b9d8771412262a9b5
Issue-ID: OOM-1826
Signed-off-by: eronkeo <ronan.keogh@est.tech>
5 years agoMerge "Replace VNC server docker image"
Michal Ptacek [Thu, 25 Apr 2019 08:34:02 +0000 (08:34 +0000)]
Merge "Replace VNC server docker image"

5 years agoMerge "Adding docker image list for 3.0.2"
Michal Ptacek [Wed, 24 Apr 2019 14:26:50 +0000 (14:26 +0000)]
Merge "Adding docker image list for 3.0.2"

5 years agoMerge changes from topic 'rancher_api'
Michal Ptacek [Wed, 24 Apr 2019 14:20:09 +0000 (14:20 +0000)]
Merge changes from topic 'rancher_api'

* changes:
  Add support for resetting the admin password
  Add support for rancher authentication
  Refactor rancher1_api module
  Add support for rancher 1.6 API

5 years agoAdd support for resetting the admin password 72/84472/5
Petr Ospalý [Mon, 8 Apr 2019 06:39:41 +0000 (08:39 +0200)]
Add support for resetting the admin password

The module rancher1_api can now reset an admin password of the default
admin account (account_id: '1a1') and keep local authentication enabled.

By default the authentication is not enabled, because the ansible
module rancher_k8s_environment.py is not idempotent and it would need to
be rewritten.

Change-Id: Ib432537651b91216c32438ec1233dba3602e3faf
Issue-ID: OOM-1734
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoAdd support for rancher authentication 71/84471/5
Petr Ospalý [Mon, 8 Apr 2019 02:55:47 +0000 (04:55 +0200)]
Add support for rancher authentication

This commit adds a new mode to the rancher1_api module, which enables
the rancher local authentication (username/password).

There is an already predefined rancher admin user called 'admin' and
that is the account, which this mode modifies. Due to the complex
API and the fact that rancher 1.6 is soon to be obsoleted, this module
is going the simpler route and it is just editing this default admin
account instead of creating a completely arbitrary username/password
credentials. For that reason is using the 'account_id', which is unique
for all accounts and the default admin account of rancher has '1a1'.

As of now this module cannot handle changed password once the auth. is
enabled.

Change-Id: Iea8923c71bdb82267c966a00d62f0f43eb5adb76
Issue-ID: OOM-1734
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoReplace VNC server docker image 41/86041/1
Tomáš Levora [Tue, 23 Apr 2019 11:12:05 +0000 (13:12 +0200)]
Replace VNC server docker image

Replace VNC server docker image based on CentOS
(consol/centos-icewm-vnc:1.4.0) by the one based on
Ubuntu (consol/centos-icewm-vnc:1.4.0) - Ubuntu based image is smaller
and the VNC server does not work in the current CentOS based image.

Solves OOM-1819

Issue-ID: OOM-1821

Change-Id: I9e06ab8bfccb11ae8950717db5339062704a31f9
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoMerge "Optimize test for 'resource-data' role"
Samuli Silvius [Fri, 19 Apr 2019 15:48:20 +0000 (15:48 +0000)]
Merge "Optimize test for 'resource-data' role"

5 years agoMerge "Add fix for Molecule Docker"
Samuli Silvius [Fri, 19 Apr 2019 15:46:18 +0000 (15:46 +0000)]
Merge "Add fix for Molecule Docker"

5 years agoMerge "Sanitize Molecule code for 'nfs' role"
Samuli Silvius [Fri, 19 Apr 2019 15:45:26 +0000 (15:45 +0000)]
Merge "Sanitize Molecule code for 'nfs' role"

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 agoOptimize test for 'resource-data' role 92/85692/1
Bartek Grzybowski [Thu, 18 Apr 2019 13:26:49 +0000 (15:26 +0200)]
Optimize test for 'resource-data' role

Moved 'file' package installation from Molecule's
'prepare' stage to Dockerfile to shorten the test
invocation.

Change-Id: Icbb805c54a4fd42003d0cde037fa56208bd6008a
Issue-ID: OOM-1809
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoAdd fix for Molecule Docker 58/85558/5
Mateusz Pilat [Wed, 17 Apr 2019 10:19:10 +0000 (12:19 +0200)]
Add fix for Molecule Docker

Molecule Docker was not running when built by the root user

Issue-ID: OOM-1808
Change-Id: I27c3ecb6d5670ac1c447acba688b25e10d5a5a4d
Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com>
5 years agoReducing number of NPMs in list 76/85576/1
Tomáš Levora [Wed, 17 Apr 2019 12:59:58 +0000 (14:59 +0200)]
Reducing number of NPMs in list

Reducing list of NPMs needed for offline deployment based on download
stats from Nexus repository from running environment

Issue-ID: OOM-1709

Change-Id: I402c4802210a63ed90ab97f7bcbfe79852b7e92e
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoSanitize Molecule code for 'nfs' role 62/85562/1
Bartek Grzybowski [Wed, 17 Apr 2019 11:32:37 +0000 (13:32 +0200)]
Sanitize Molecule code for 'nfs' role

Cleaning up of nfs mounts should only happen
on clients, not on server itself.

Explicit declaration of 'cleanup' stage playbook
not needed as it's in the default location.

Change-Id: I54e00220048f01160c15fc9631ae62586596114c
Issue-ID: OOM-1809
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoRefactor rancher1_api module 70/84470/4
Petr Ospalý [Fri, 5 Apr 2019 07:57:03 +0000 (09:57 +0200)]
Refactor rancher1_api module

This rewrite enables to add easier more features supported by the rancher
API. The initial idea of a simple get and set through the JSON REST API
is not feasible. To achieve something with the API one may have to setup
more options on different URLs and in a particular order. For this reason
the module comes with the mechanism of "modes", which is a wrapper around
some feature in the rancher and which can require multiple steps to do.

Rancher1_api module could also support "raw" mode where the user will not
be limited by a few implemented modes in the module, but he can craft all
requests by hand - but due to the fact that such thing can be done easily
with just curl command and ansible shell module, there is no benefit in
doing so. Especially when rancher 1.6 is already obsoleted within the ONAP.

The useful value of this module is to give the user a simple means to set
something in the rancher and hide all the boilerplate from him via a mode.

- Original logic was rewritten to utilize the "mode" mechanism.
- New module structure is also easier to test outside of ansible.

Issue-ID: OOM-1681
Change-Id: I0e7932199df9ec1acd80af545060199867ad17fa
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoAdd support for rancher 1.6 API 15/83415/7
Petr Ospalý [Tue, 26 Mar 2019 21:13:00 +0000 (22:13 +0100)]
Add support for rancher 1.6 API

- New ansible module to handle rancher API
- Setting up of the cattle db and log related options
  to achieve lower space usage.

As of this moment it does what was intended:
- it setups new values for db and log related options
- it can be used for any other setting options

Change-Id: I25048469df0cb035cc6eac39740210cdfa175ada
Issue-ID: OOM-1681
Signed-off-by: Petr Ospalý <p.ospaly@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>