oom/offline-installer.git
5 years agoImprove docker image download script 89/85689/38
Milan Verespej [Thu, 18 Apr 2019 12:37:51 +0000 (14:37 +0200)]
Improve docker image download script

This is part of the series of changes that will improve
download scripts.

Issue-ID: OOM-1803

Change-Id: I6606762f8e05c25132257e5612997418a9d6d701
Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
5 years agoFixing dnsmasq container not starting bug 44/88144/4
Michal Ptacek [Tue, 21 May 2019 08:01:33 +0000 (08:01 +0000)]
Fixing dnsmasq container not starting bug

Two problems are fixed in this commit. Firstly handler
is not triggered so dnsmasq is not started. Secondly
dns is not working due to loop in dns settings.

Change-Id: If6874c99dcc42ef63da167abe8d1f7cdd8e0fcb1
Issue-ID: OOM-1866
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
5 years agoMerge changes from topic "RHEL"
Michal Ptacek [Tue, 21 May 2019 07:07:25 +0000 (07:07 +0000)]
Merge changes from topic "RHEL"

* changes:
  Upgrade docker version to 18.09.5
  Update of docker for RHEL

5 years agoMerge "Adding new simulated domains"
Michal Ptacek [Mon, 20 May 2019 12:28:10 +0000 (12:28 +0000)]
Merge "Adding new simulated domains"

5 years agoAdd kubernetes dashboard 64/85864/10
Petr Ospalý [Sat, 20 Apr 2019 03:25:23 +0000 (05:25 +0200)]
Add kubernetes dashboard

Either run kubectl proxy, but you must setup routes or kubectl on some
node (only infra has kubectl by default). Another option is connecting
onto the node where the dashboard is exposed via NodePort. Instructions
are here:
https://github.com/kubernetes/dashboard/wiki/Accessing-dashboard
(1.7.X and above)

Change-Id: I5a28f458c0ae949278b1e6eaf6eb063d09f93fc0
Issue-ID: OOM-1778
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoMerge changes from topic "rke-support"
Michal Ptacek [Mon, 20 May 2019 10:35:30 +0000 (10:35 +0000)]
Merge changes from topic "rke-support"

* changes:
  Add setup for kubectl and helm
  Add support for RKE kubernetes implementation

5 years agoUpgrade docker version to 18.09.5 64/87864/4
Bartek Grzybowski [Thu, 16 May 2019 11:36:00 +0000 (13:36 +0200)]
Upgrade docker version to 18.09.5

This patch upgrades docker version for
Molecule tests to 18.09.5; it also sanitizes
tasks in 'docker' role to supplement this
change: https://gerrit.onap.org/r/c/87761/

Change-Id: I14beffafb129b24e7c15f8da45f1a25e27ccae9c
Issue-ID: OOM-1852
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoUpdate of docker for RHEL 61/87761/5
Tomáš Levora [Wed, 15 May 2019 11:38:00 +0000 (13:38 +0200)]
Update of docker for RHEL

Updating docker to 18.09 and its dependencies accordingly

Issue-ID: OOM-1857

Change-Id: Ifa3ee7091e2ceeecf8c56d48c31a20a33d273f43
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoAdd setup for kubectl and helm 63/85863/9
Michal Zegan [Tue, 23 Apr 2019 14:34:58 +0000 (16:34 +0200)]
Add setup for kubectl and helm

the kubeconfig is copied from the cluster config directory to ~/.kube/config.
Also, the playbook runs kubectl and helm roles to install tools.
Change-Id: I29ee98f6502bbb7923b1ae6812dd642ca206dbce
Issue-ID: OOM-1778
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoAdd support for RKE kubernetes implementation 62/85862/11
Petr Ospalý [Fri, 19 Apr 2019 22:53:01 +0000 (00:53 +0200)]
Add support for RKE kubernetes implementation

Added a new playbook rke.yml and role rke which uses rancher RKE:
https://github.com/rancher/rke

It's an implementation of the kubernetes from rancher.com folks
and it is an alternative to the official kubernetes tool: kubeadm.

NOTE: Rancher has a notion of a 'control plane' which cannot run with
etcd on all nodes in a multi-node setup. Control-plane node is the
first kubernetes node from the inventory (as of now).

Change-Id: I0bf669442a5183efa20d44fb1cac823e7ce54348
Issue-ID: OOM-1778
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoAdding new simulated domains 77/87877/1
Tomáš Levora [Thu, 16 May 2019 13:29:10 +0000 (15:29 +0200)]
Adding new simulated domains

Because of some new images in Dublin and RKE there need to be simulated additional following domains:

k8s.gcr.io
pndareg.ctao6.net
quay.io

Issue-ID: OOM-1859

Change-Id: Ib6a0f50722a2d6f37acaef114f2d496a6c9d9028
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoMolecule tests for application role. 18/85618/4
Samuli Silvius [Wed, 17 Apr 2019 16:42:59 +0000 (19:42 +0300)]
Molecule tests for application role.

Issue-ID: OOM-1812

Change-Id: Ifb6f5a10afb4014b20be77a4141371e561d346ce
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoAdding rke binary download 47/87847/2
Tomáš Levora [Thu, 16 May 2019 07:29:09 +0000 (09:29 +0200)]
Adding rke binary download

Adding rke binary to download script to ensure it will be in place in the
offline-installer package

Issue-ID: OOM-1778

Change-Id: Ie3249511ab0e49a657608076c38f4d3b67e28f74
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoUpdate kubectl and helm binaries 44/87844/3
Tomáš Levora [Thu, 16 May 2019 06:46:06 +0000 (08:46 +0200)]
Update kubectl and helm binaries

kubectl and helm binaries need to be updated for proper usage with Dublin release

kubectl: v1.13.5
helm: v2.12.3

Issue-ID: OOM-1858

Change-Id: I824362c8321317cbf0601ae2bd15ff39ef5c807e
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoMerge "Adding script for autocollection of docker images"
Michal Ptacek [Wed, 15 May 2019 13:15:46 +0000 (13:15 +0000)]
Merge "Adding script for autocollection of docker images"

5 years agoMerge "Fix idempotence issue in dns role"
Samuli Silvius [Wed, 15 May 2019 11:42:18 +0000 (11:42 +0000)]
Merge "Fix idempotence issue in dns role"

5 years agoFix idempotence issue in dns role 22/87422/7
Bartek Grzybowski [Fri, 10 May 2019 07:29:10 +0000 (09:29 +0200)]
Fix idempotence issue in dns role

Docker_container module was called twice: in a taks
'Start dns server container' and then as a handler
but there was a divergent set o parameters for the
module in them. This had the efect of the container
being started by the means of the task itself but
immediately after it was killed and started again
by the handler because it had different set of
arguments for the module. The fix is to include the
handler itself as a task so the whole run is idempotent.

Change-Id: I9078f9dfe5894d94d4b6a9e44411f034508992e7
Issue-ID: OOM-1845
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoFix idempotency issue in 'prepare-docker' role 53/87653/1
Bartek Grzybowski [Tue, 14 May 2019 10:12:38 +0000 (12:12 +0200)]
Fix idempotency issue in 'prepare-docker' role

This adds 'creates' arg to 'command' module used in
the role scope.

Change-Id: Ib500680114fb267cc08ab52f09fa691738ea4a1a
Issue-ID: OOM-1850
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoMerge "Don't set 'container' env in Molecule containers"
Samuli Silvius [Fri, 10 May 2019 17:40:58 +0000 (17:40 +0000)]
Merge "Don't set 'container' env in Molecule containers"

5 years agoMolecule test for resources playbook. 59/85659/7
Samuli Silvius [Thu, 18 Apr 2019 08:08:19 +0000 (11:08 +0300)]
Molecule test for resources playbook.

Issue-ID: OOM-1813

Change-Id: I5c070f1ed20bf29b432c91e9de5d861267802b6d
Signed-off-by: Samuli Silvius <s.silvius@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 agoDon't set 'container' env in Molecule containers 42/87342/2
Bartek Grzybowski [Thu, 9 May 2019 09:53:14 +0000 (11:53 +0200)]
Don't set 'container' env in Molecule containers

Molecule role tests that use pre build images had
superfluous 'container' env variable declaration.
It's not needed as this env is already set in
Dockerfiles, for both: pre-built and custom built
images.

Change-Id: Iee9cc38919da894ee6cc6a2a5f1acc60d76865de
Issue-ID: OOM-1841
Signed-off-by: Bartek Grzybowski <b.grzybowski@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 agoAdding script for autocollection of docker images 40/79640/13
Tomáš Levora [Mon, 4 Mar 2019 15:40:09 +0000 (16:40 +0100)]
Adding script for autocollection of docker images

This script is collecting docker images from oom based on enabled
subsystems to specified list

There are missing images downloaded in run time based on blueprints and
images necessary for rancher

Issue-ID: OOM-1678

Change-Id: I4367a8a7c755bbf6045ad192bbfc4dd68daa92f8
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"