oom/offline-installer.git
5 years agoMerge "Remove cleanup-rancher test role"
Samuli Silvius [Wed, 5 Jun 2019 10:54:41 +0000 (10:54 +0000)]
Merge "Remove cleanup-rancher test role"

5 years agoMerge "Remove cleanup-containers test role"
Samuli Silvius [Wed, 5 Jun 2019 10:54:21 +0000 (10:54 +0000)]
Merge "Remove cleanup-containers test role"

5 years agoMerge "Removing rancher simulations from nginx"
Michal Ptacek [Wed, 5 Jun 2019 10:23:21 +0000 (10:23 +0000)]
Merge "Removing rancher simulations from nginx"

5 years agoMerge "Adapting to Dublin realase"
Michal Zegan [Wed, 5 Jun 2019 09:05:05 +0000 (09:05 +0000)]
Merge "Adapting to Dublin realase"

5 years agoRemove the cleanup-directories test role 56/89256/1
Michal Zegan [Tue, 4 Jun 2019 13:32:29 +0000 (15:32 +0200)]
Remove the cleanup-directories test role

This role is no longer needed after
removing it's usage from the nfs role.

Issue-ID: OOM-1902
Change-Id: I3f4d27e769c9edc3caef1b0d85a61f071e3a3b2f
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoRemoving rancher simulations from nginx 53/89253/1
Michal Ptacek [Tue, 4 Jun 2019 13:51:35 +0000 (13:51 +0000)]
Removing rancher simulations from nginx

For Dublin/RKE we don't need to simulate those 2 domains,
they were needed in Casablanca for rancher git repos.

Change-Id: I66a2615284150c4b466994b0906bbe3e215793d5
Issue-ID: OOM-1800
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
5 years agoRemove cleanup from play-resources 55/89255/1
Michal Zegan [Tue, 4 Jun 2019 13:35:22 +0000 (15:35 +0200)]
Remove cleanup from play-resources

When play-resources does not use
bindmounting, there is no need to manually clean up resource files.
That makes it possible to remove cleanup.yml all together.
This is in preparation to remove the othervise unneeded
cleanup-directories role.

Change-Id: Id6c05700e8cd2e9c8f91a3cfdf46022b170e1e1e
Issue-ID: OOM-1902
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoDo not use bindmounts for nfs tests 54/89254/1
Michal Zegan [Tue, 4 Jun 2019 13:28:08 +0000 (15:28 +0200)]
Do not use bindmounts for nfs tests

This commit removes bindmounting
of host directories to containers in play-resources tests.
It seems that it is unneeded, and it is enough to just create anonymous volumes
instead of cluttering host filesystem.
This is one part of a preparation for removing the cleanup-directories
role that won't be needed anymore.
Note: similar changes were made to the nfs
role tests, for the same reasons, but
cleanup-directories is not used there

Change-Id: Ib33543427d72b4bc7ede532e5eb9a5023931f1fe
Issue-ID: OOM-1902
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoRemove cleanup-rancher test role 30/89230/1
Michal Zegan [Tue, 4 Jun 2019 10:59:58 +0000 (12:59 +0200)]
Remove cleanup-rancher test role

This role is not used by rancher tests anymore.

Issue-ID: OOM-1902
Change-Id: I989c41dfbf6dec8054befad87ac367bbf1afbc02
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoRemove cleanup-containers test role 27/89227/1
Michal Zegan [Tue, 4 Jun 2019 11:04:53 +0000 (13:04 +0200)]
Remove cleanup-containers test role

This removes cleanup-containers test role,
that is not used by any tests after dind changes.

Change-Id: I2244257de1faa2b268e9d2f74d286c19de99fab0
Issue-ID: OOM-1902
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoMerge "Add molecule tests for rke role"
Michal Ptacek [Tue, 4 Jun 2019 10:49:53 +0000 (10:49 +0000)]
Merge "Add molecule tests for rke role"

5 years agoAdapting to Dublin realase 22/89022/2
root [Fri, 31 May 2019 12:03:05 +0000 (14:03 +0200)]
Adapting to Dublin realase

In Dublin:
First project has taken ownership of own helm charts, oom repository must be obtained with subrepositories.
By default no applications are enabled, introducing a way to submit more override files in to installer

Issue-ID: OOM-1861
Signed-off-by: root <m.pilat@partner.samsung.com>
Change-Id: I1724de6b87bd0e9d17df4d0f55615a3f1c439d40

5 years agoMerge changes from topic "tags"
Michal Ptacek [Tue, 4 Jun 2019 05:11:15 +0000 (05:11 +0000)]
Merge changes from topic "tags"

* changes:
  Remove tag support from nexus blob build script
  Fixing some typos in usage in build_nexus_blob.sh

5 years agoMerge "Updating list of docker images for ONAP"
Michal Ptacek [Tue, 4 Jun 2019 05:10:24 +0000 (05:10 +0000)]
Merge "Updating list of docker images for ONAP"

5 years agoMerge "Updating PIP packages list for Dublin"
Michal Ptacek [Mon, 3 Jun 2019 13:15:51 +0000 (13:15 +0000)]
Merge "Updating PIP packages list for Dublin"

5 years agoMerge changes from topic "collector"
Michal Ptacek [Mon, 3 Jun 2019 13:15:30 +0000 (13:15 +0000)]
Merge changes from topic "collector"

* changes:
  Fixing bug in docker-images-collector.sh
  Add comment to automatically generated docker list
  Remove tag parameter from docker-image-collector.sh

5 years agoAdd molecule tests for rke role 18/86618/12
Michal Zegan [Tue, 30 Apr 2019 12:52:13 +0000 (14:52 +0200)]
Add molecule tests for rke role

This change adds molecule tests for the rke role, and
modifies the rke role itself to be more idempotent/to
pass linter.
Note that this molecule test case uses a separate
role to install docker in containers, that runs
docker daemon inside of them instead of using host docker.

Issue-ID: OOM-1778
Change-Id: I875f3ff2ab961e5428acee5a02287a8d2d6e9969
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoMerge changes from topic "OOM-1806"
Michal Ptacek [Mon, 3 Jun 2019 10:41:03 +0000 (10:41 +0000)]
Merge changes from topic "OOM-1806"

* changes:
  Add doc for new healthcheck feature in helm_deployment_status.py
  Make healthcheck script output unbuffered
  Support running healthcheck in any mode supported
  Always show healthcheck output if it was run
  Support SSL certificate based authentication to kube API
  Add Kubernetes class to track API connection settings

5 years agoFixing bug in docker-images-collector.sh 24/89024/1
Tomáš Levora [Fri, 31 May 2019 12:10:15 +0000 (14:10 +0200)]
Fixing bug in docker-images-collector.sh

Some images from oom/kubernetes/common/ were not correctly collected
by creating_data/docker-images-collector.sh script

Issue-ID: OOM-1886

Change-Id: I044ca8a26353da44cd6f8e94fcb822570c954b49
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoAdd comment to automatically generated docker list 18/88918/2
Tomáš Levora [Thu, 30 May 2019 15:11:28 +0000 (17:11 +0200)]
Add comment to automatically generated docker list

Add comment to docker image list generated by docker-images-collector.sh
to reffer to commit id in case of ONAP or to project in other cases

Issue-ID: OOM-1884

Change-Id: I7ff32fae84db3476495eb2e560c3bf61e41e2ddb
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoRemove tag parameter from docker-image-collector.sh 32/88832/7
Tomáš Levora [Thu, 30 May 2019 07:31:24 +0000 (09:31 +0200)]
Remove tag parameter from docker-image-collector.sh

Removing tag parameter from docker-image-collector.sh as it's not
necessary as described in OOM-1881

Issue-ID: OOM-1885

Change-Id: Id83b396c4b994cfa659c518e3f03e704a84d65f0
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoUpdating list of docker images for ONAP 34/88834/3
Tomáš Levora [Thu, 30 May 2019 08:10:00 +0000 (10:10 +0200)]
Updating list of docker images for ONAP

Updating list of docker images for Dublin ONAP deployment

Issue-ID: OOM-1800

Change-Id: If8c1aa1e1bd058a0e0c84987d87bcbe676e14101
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoMerge "Add Molecule tests for 'dns' role"
Samuli Silvius [Thu, 30 May 2019 15:30:21 +0000 (15:30 +0000)]
Merge "Add Molecule tests for 'dns' role"

5 years agoMerge "Make molecule tests for certificates independent from docker role"
Samuli Silvius [Thu, 30 May 2019 15:24:02 +0000 (15:24 +0000)]
Merge "Make molecule tests for certificates independent from docker role"

5 years agoMerge "Modify docker role to use dind"
Samuli Silvius [Thu, 30 May 2019 15:23:26 +0000 (15:23 +0000)]
Merge "Modify docker role to use dind"

5 years agoMerge "prepare-docker-dind: make docker start optional"
Samuli Silvius [Thu, 30 May 2019 15:22:56 +0000 (15:22 +0000)]
Merge "prepare-docker-dind: make docker start optional"

5 years agoAdd Molecule tests for 'dns' role 48/87448/8
Bartek Grzybowski [Fri, 10 May 2019 10:33:59 +0000 (12:33 +0200)]
Add Molecule tests for 'dns' role

This commit supplements 'Molecule test for
infrastructure playbook' with role level tests.

Change-Id: I14cdeedf1c80c0ee06bacf0a391ee1d7ccd6df55
Issue-ID: OOM-1841
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoModify rancher molecule tests to use dind 77/88277/3
Michal Zegan [Wed, 22 May 2019 15:53:00 +0000 (17:53 +0200)]
Modify rancher molecule tests to use dind

This change modifies molecule tests of rancher role to
use prepare-docker-dind.
Also:
- it modifies prepare-common role to retrieve cluster_ip of the actual
node in question,
- it fixes the rancher role itself to work at all by removing auto_remove.
It has been tested by running molecule converge.

Change-Id: I7af4e9998feedd5f8fc3df8215e03c1b0485529c
Issue-ID: OOM-1864
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoMerge "Add prepare-docker-dind role"
Samuli Silvius [Thu, 30 May 2019 10:46:07 +0000 (10:46 +0000)]
Merge "Add prepare-docker-dind role"

5 years agoAdd doc for new healthcheck feature in helm_deployment_status.py 55/88855/1
Bartek Grzybowski [Thu, 30 May 2019 09:52:40 +0000 (11:52 +0200)]
Add doc for new healthcheck feature in helm_deployment_status.py

A description of new --health-mode option for
helm_deployment_status.py script was added to
InstallGuide.rst.

Change-Id: I8dd93e86eee9ade2c279f3124e01e7312e1baee5
Issue-ID: OOM-1806
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoUpdating PIP packages list for Dublin 39/88839/1
Tomáš Levora [Thu, 30 May 2019 08:44:39 +0000 (10:44 +0200)]
Updating PIP packages list for Dublin

Removing some leftover

Issue-ID: OOM-1800

Change-Id: I6e07b89a1fc2b0d8cfc29e7acc3a71204e9f0372
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoMake healthcheck script output unbuffered 36/88836/1
Bartek Grzybowski [Thu, 30 May 2019 08:12:36 +0000 (10:12 +0200)]
Make healthcheck script output unbuffered

A subprocess.Popen object is created instead of
convenience check_output() routine usage to allow
unbuffered reading stdout from asynchronously
running subprocess.

Change-Id: I0dca13d6ac5d533d0ef19ddc5713830c57b37175
Issue-ID: OOM-1806
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoChanging patchfile naming convention 82/88782/1
Michal Ptacek [Wed, 29 May 2019 14:56:50 +0000 (14:56 +0000)]
Changing patchfile naming convention

Its not needed to preserve onap release version in
patch naming.

Change-Id: I8dfaa56d3a74cd5227523c3acd5e31fa540a75a2
Issue-ID: OOM-1869
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
5 years agoMerge changes from topic "OOM-1816"
Michal Ptacek [Wed, 29 May 2019 13:31:03 +0000 (13:31 +0000)]
Merge changes from topic "OOM-1816"

* changes:
  Molecule test for infrastructure playbook.
  Add the prepare-package-repository role
  Add prepare-nexus role
  Add prepare-nginx role
  Add the prepare-dns role
  Add prepare-vncserver role
  Allow unsafe writes when modifying resolv.conf
  Add nexus_come_up_wait_retries variable to nexus role
  Remove docker restart condition from docker role

5 years agoMerge "Add support for extra helm install arguments"
Michal Ptacek [Wed, 29 May 2019 12:24:07 +0000 (12:24 +0000)]
Merge "Add support for extra helm install arguments"

5 years agoMerge "Updating PIP packages list for Dublin"
Michal Ptacek [Wed, 29 May 2019 11:28:51 +0000 (11:28 +0000)]
Merge "Updating PIP packages list for Dublin"

5 years agoMolecule test for infrastructure playbook. 07/85907/22
Samuli Silvius [Sun, 21 Apr 2019 16:24:18 +0000 (19:24 +0300)]
Molecule test for infrastructure playbook.

These tests execute the whole infrastructure playbook.

Issue-ID: OOM-1816
Change-Id: I793191e05cb0b527c3da6d820c1916231e69d865
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoAdd the prepare-package-repository role 39/88539/4
Michal Zegan [Mon, 27 May 2019 12:01:50 +0000 (14:01 +0200)]
Add the prepare-package-repository role

This role may be used by infra playbook tests.
It downloads docker rpm packages and their dependencies to disk and
creates a simulated offline rpm repository that
can then be used to test installation of packages.

Change-Id: Ia1a1bed1b124e036219ccc12c4650ce446955f01
Issue-ID: OOM-1816
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoAdd prepare-nexus role 38/88538/5
Michal Zegan [Mon, 27 May 2019 12:00:13 +0000 (14:00 +0200)]
Add prepare-nexus role

This role can be used by nexus role/infra playbook tests.
It downloads and archives the nexus image used by these tests.
It also archives some example docker images that
can be used to test runtime image pushing.

Change-Id: I027dd5dda60ab0abba7701cb038f6552a72e3599
Issue-ID: OOM-1816
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoAdd prepare-nginx role 37/88537/5
Michal Zegan [Mon, 27 May 2019 11:59:16 +0000 (13:59 +0200)]
Add prepare-nginx role

This role can be used by nginx role/infra playbook tests.
It builds and archives the nginx docker image used
by these tests.

Change-Id: I51052f4d587926be0331203fffd0bbd69a7dc58d
Issue-ID: OOM-1816
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoAdd the prepare-dns role 36/88536/5
Michal Zegan [Mon, 27 May 2019 11:57:24 +0000 (13:57 +0200)]
Add the prepare-dns role

This role can be used by infra playbook or dns role
tests to download the dnsmasq docker images
used during test.

Change-Id: I05d9ccd1f2ac3d635c032b43078ca9a2179cb547
Issue-ID: OOM-1818
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoAdd prepare-vncserver role 35/88535/5
Michal Zegan [Mon, 27 May 2019 11:55:40 +0000 (13:55 +0200)]
Add prepare-vncserver role

This role is used by infra playbook tests
introduced in a follow up commit and
it downloads the docker vncserver image used during testing.
This role may also be useful for vncserver role tests.

Change-Id: Ib9fc8041519d716207f2c1887f68fb29faab911f
Issue-ID: OOM-1816
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoAllow unsafe writes when modifying resolv.conf 34/88534/3
Michal Zegan [Mon, 27 May 2019 11:52:53 +0000 (13:52 +0200)]
Allow unsafe writes when modifying resolv.conf

The package-repository role edits /etc/resolv.conf.
Ansible modifies files atomically to prevent data loss on crash, but that
does not work in docker containers because /etc/resolv.conf is
bind-mounted.
Allow ansible to fall back to non atomic writes in such cases.
This makes it unnecessary to hack around this.

Change-Id: I066205322de5cc06569e6ea3aa38885d3834f9cd
Issue-ID: OOM-1816
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoAdd nexus_come_up_wait_retries variable to nexus role 33/88533/4
Michal Zegan [Mon, 27 May 2019 11:51:41 +0000 (13:51 +0200)]
Add nexus_come_up_wait_retries variable to nexus role

This variable is used to set the number
of retries when waiting for nexus to be running.
It may occassionally be useful to increase it on slower
test environments.

Change-Id: Id34106dd8f9a8b2b1949b80adb22fbec3df71e23
Issue-ID: OOM-1816
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoRemove docker restart condition from docker role 32/88532/2
Michal Zegan [Mon, 27 May 2019 11:49:29 +0000 (13:49 +0200)]
Remove docker restart condition from docker role

Docker role doesn't trigger docker restart when run in docker container
(e.g. molecule). Remove the condition, as in dind case
docker in container works same way as docker out of container.

Change-Id: I8c80a09baccd76c78f2cbb8e474044351fd9b3d3
Issue-ID: OOM-1816
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoAdd support for extra helm install arguments 48/88348/4
Petr Ospalý [Thu, 23 May 2019 12:34:22 +0000 (14:34 +0200)]
Add support for extra helm install arguments

Change-Id: Ie0b4e812acf6fba4e4b8f082533ab2f998456095
Issue-ID: OOM-1877
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
5 years agoMerge "Adding source identification for docker data list"
Samuli Silvius [Wed, 29 May 2019 08:47:18 +0000 (08:47 +0000)]
Merge "Adding source identification for docker data list"

5 years agoMerge "Fixing access permissions for docker image list"
Samuli Silvius [Wed, 29 May 2019 08:41:51 +0000 (08:41 +0000)]
Merge "Fixing access permissions for docker image list"

5 years agoRemove tag support from nexus blob build script 40/88740/1
Tomáš Levora [Wed, 29 May 2019 07:45:29 +0000 (09:45 +0200)]
Remove tag support from nexus blob build script

Remove tag support from build script for Nexus blob to simplify the configuration
and the  be align with lists naming for Dublin as described in OOM-1881

Issue-ID: OOM-1882

Change-Id: I009fa35830b44454530a7b7e565d23d99af99df8
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoFixing some typos in usage in build_nexus_blob.sh 71/88671/2
Tomáš Levora [Tue, 28 May 2019 14:18:24 +0000 (16:18 +0200)]
Fixing some typos in usage in build_nexus_blob.sh

Issue-ID: OOM-1848

Change-Id: I7c1ccd75083274a262d65b0da0b184fcd1f0eeef
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoAdding source identification for docker data list 68/88668/1
Michal Ptacek [Tue, 28 May 2019 14:11:24 +0000 (14:11 +0000)]
Adding source identification for docker data list

Important to know what source commit was taken for this
example docker images data list we took for validation.

Change-Id: Idafb60e1d965bb896d3794677de0d702081bbfa5
Issue-ID: OOM-1800
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
5 years agoSupport running healthcheck in any mode supported 66/88666/1
Bartek Grzybowski [Tue, 28 May 2019 13:59:05 +0000 (15:59 +0200)]
Support running healthcheck in any mode supported

So far it was only possible to run health checking
script with a default option of 'health'. This patch
allows passing through to healtcheck script any mode
that it supports via --health-mode runtime option.

Change-Id: Ic0145e5b4a1f17d64867287538dd63b850d86feb
Issue-ID: OOM-1806
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoAdd needed pypi patching for oof 64/88664/1
Michal Ptacek [Tue, 28 May 2019 13:59:07 +0000 (13:59 +0000)]
Add needed pypi patching for oof

OOF component recently introduced new internet dependency
and it's downloading flask and requests pip packages.
This patch is needed for fixing this in offline platform.

Change-Id: I5bb707bf13af30f6df5cfd42cee75e2d1839821e
Issue-ID: OPTFRA-509
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
5 years agoFixing access permissions for docker image list 58/88658/1
Tomáš Levora [Tue, 28 May 2019 13:45:04 +0000 (15:45 +0200)]
Fixing access permissions for docker image list

chmod from 775 to 664

Issue-ID: OOM-1800

Change-Id: I0f459a246bc636d696f4bbc32cca6e27ca37db80
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoUpdating PIP packages list for Dublin 57/88657/1
Tomáš Levora [Tue, 28 May 2019 13:40:19 +0000 (15:40 +0200)]
Updating PIP packages list for Dublin

Issue-ID: OOM-1800

Change-Id: I3a7a58534c2b7f8fa8f338b6fc65f6ef6fd11523
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoAlways show healthcheck output if it was run 36/88636/1
Bartek Grzybowski [Tue, 28 May 2019 11:59:13 +0000 (13:59 +0200)]
Always show healthcheck output if it was run

This patch changes the default behavior of showing
healthcheck script results. So far output was printed
only in increased verbosity mode but the proper action
should be to print it whenever it was called.

A bug in exec_healthcheck() routine is also fixed
(subprocess.check_output() returns byte string, not
an object with 'output' attribute).

Change-Id: Ifd7294de9bed321123f74977f881999ce69cf878
Issue-ID: OOM-1806
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoMerge "Modify build_nexus_blob.sh to accept more input parameters"
Michal Ptacek [Tue, 28 May 2019 05:10:03 +0000 (05:10 +0000)]
Merge "Modify build_nexus_blob.sh to accept more input parameters"

5 years agoMerge "Adding list of docker images for ONAP"
Michal Ptacek [Tue, 28 May 2019 05:09:27 +0000 (05:09 +0000)]
Merge "Adding list of docker images for ONAP"

5 years agoMerge "Updating NPM list for Dublin"
Michal Ptacek [Mon, 27 May 2019 14:59:29 +0000 (14:59 +0000)]
Merge "Updating NPM list for Dublin"

5 years agoFix wrong path to backup files 37/88337/2
Tomáš Levora [Thu, 23 May 2019 10:25:44 +0000 (12:25 +0200)]
Fix wrong path to backup files

In the Nexus build script were incomplete paths to backup files what is
fixed by this patch

Issue-ID: OOM-1875

Change-Id: I86e3f157d6f142f87013c18c79fb58e52cad42f9
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoAdding list of docker images for ONAP 43/88543/2
Tomáš Levora [Mon, 27 May 2019 12:20:11 +0000 (14:20 +0200)]
Adding list of docker images for ONAP

Adding initial list of docker images for Dublin ONAP deployment

Issue-ID: OOM-1800

Change-Id: I887ff6a5f8688fe9353d3562a9892606ae169072
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoUpdating NPM list for Dublin 51/88551/1
Tomáš Levora [Mon, 27 May 2019 13:34:41 +0000 (15:34 +0200)]
Updating NPM list for Dublin

Issue-ID: OOM-1800

Change-Id: Iff7389dbc95e4aec501b0c53e9276869eb1e2e38
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
5 years agoModify build_nexus_blob.sh to accept more input parameters 58/88358/6
Mateusz Pilat [Thu, 23 May 2019 13:55:56 +0000 (15:55 +0200)]
Modify build_nexus_blob.sh to accept more input parameters

In order to connect nexus build blob with dynamically generated input files

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

5 years agoMerge "Adjusting patching file for Dublin"
Michal Ptacek [Mon, 27 May 2019 13:15:51 +0000 (13:15 +0000)]
Merge "Adjusting patching file for Dublin"

5 years agoMerge "Updating git datalist for Dublin"
Michal Ptacek [Mon, 27 May 2019 13:13:36 +0000 (13:13 +0000)]
Merge "Updating git datalist for Dublin"

5 years agoSupport SSL certificate based authentication to kube API 47/88547/1
Bartek Grzybowski [Mon, 27 May 2019 12:57:55 +0000 (14:57 +0200)]
Support SSL certificate based authentication to kube API

With this change script by default connects to kube API
performing SSL authentication with certificates that it
tries to read from kube config. A flag of '--no-ssl-auth'
is provided to disable this behaviour.

Change-Id: Ibc1ea21c0c9f3c4a298b5bfef35d916652b598d4
Issue-ID: OOM-1806
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoAdd Kubernetes class to track API connection settings 46/88546/1
Bartek Grzybowski [Mon, 27 May 2019 12:39:26 +0000 (14:39 +0200)]
Add Kubernetes class to track API connection settings

This patch moves get_resources() routine into Kubernetes
class. It's object now holds all needed API connection
properties and tracks it's state to avoid passing these
settings through intermediary functions all the way down
to actual API calling routine.

Additional checks are added in get_resources() to produce
more meaningfull debug info in case of connection failure.

Change-Id: Ia50fa086d22466c0fbed9eb677d2dc52709bef9f
Issue-ID: OOM-1806
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoAdd list of docker images for rke 65/85865/13
Petr Ospalý [Sat, 20 Apr 2019 03:49:02 +0000 (05:49 +0200)]
Add list of docker images for rke

Change-Id: I322cce3dd073844bb7cb0772877873b4e24fe09f
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 "Make RKE the default cluster deployment tool"
Michal Ptacek [Sun, 26 May 2019 16:53:47 +0000 (16:53 +0000)]
Merge "Make RKE the default cluster deployment tool"

5 years agoMerge changes from topic "data-download"
Michal Ptacek [Fri, 24 May 2019 12:11:50 +0000 (12:11 +0000)]
Merge changes from topic "data-download"

* changes:
  Improve download of npm packages
  Improve download of http files
  Improve download of rpm
  Improve download of git repositories
  Improve docker image download script

5 years agoAdjusting patching file for Dublin 60/88460/1
Michal Ptacek [Fri, 24 May 2019 12:05:04 +0000 (12:05 +0000)]
Adjusting patching file for Dublin

some oom helm charts patching from Casablanca is not needed,
this is the rest we need to keep eye on.

Change-Id: I0011d2bfdb4552c08745822989f830969f46ab9a
Issue-ID: OOM-1869
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
5 years agoModify docker role to use dind 41/88241/2
Michal Zegan [Wed, 22 May 2019 12:50:23 +0000 (14:50 +0200)]
Modify docker role to use dind

This modifies the docker role to use dind.
Note that it now uses pepare-docker-dind role, but
*disables* start of docker.

Change-Id: I55ac8d1f69531ba7496c34f990818b894a7d02a5
Issue-ID: OOM-1864
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoprepare-docker-dind: make docker start optional 40/88240/2
Michal Zegan [Wed, 22 May 2019 12:03:44 +0000 (14:03 +0200)]
prepare-docker-dind: make docker start optional

This change makes it possible to disable docker start after
prepare-docker-dind role executes.
Needed for docker role that wants to start docker by itself.
Note that the docker role also tries to install docker by itself, and
prepare-docker-dind does the same.
The reason is that it makes it possible to fix the version of installed docker.

Change-Id: I7487bc46b316c0e6c782b22d8e24afea35c3c2d5
Issue-ID: OOM-1863
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoImprove download of npm packages 83/87683/17
Milan Verespej [Tue, 14 May 2019 14:10:35 +0000 (16:10 +0200)]
Improve download of npm packages

Issue-ID: OOM-1803

Change-Id: I332d7ef6ad628a08b5c9279d65b9d7286f06ee97
Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
5 years agoImprove download of http files 46/87146/30
Milan Verespej [Tue, 7 May 2019 12:50:20 +0000 (14:50 +0200)]
Improve download of http files

Issue-ID: OOM-1803

Change-Id: If2aeb1aa4fab27641511a6300832ccd7be95e846
Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
5 years agoImprove download of rpm 83/87983/9
Milan Verespej [Fri, 17 May 2019 12:14:21 +0000 (14:14 +0200)]
Improve download of rpm

Issue-ID: OOM-1803

Change-Id: I8a6df03a5ede68968e9ccdf8d4de3f9f17d91963
Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
5 years agoImprove download of git repositories 66/88066/11
Milan Verespej [Mon, 20 May 2019 07:44:23 +0000 (09:44 +0200)]
Improve download of git repositories

Issue-ID: OOM-1803

Change-Id: I167f66f3cb6b96d9e21c5ffbd0cf0eb33ef4932e
Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
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 typo in download-pip.sh script 81/88381/1
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>
5 years agoUpdating git datalist for Dublin 79/88379/1
Michal Ptacek [Thu, 23 May 2019 15:43:09 +0000 (15:43 +0000)]
Updating git datalist for Dublin

This seems to be the only required git repo from the original
list. Its hard to automate such data list creation. Plan
is to get rid of git repos from offline installer completely.

Change-Id: I00b2089ad90060af23b41a8c4abdda6ec80b3608
Issue-ID: OOM-1800
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
5 years agoMake molecule tests for certificates independent from docker role 47/88247/2
Michal Zegan [Wed, 22 May 2019 13:52:37 +0000 (15:52 +0200)]
Make molecule tests for certificates independent from docker role

Currently molecule tests for certificates role call the
docker role just to make one handler available.
It actually breaks best practices of unit testing,
the docker role shouldn't be called nor tested in
unit test of certificates role.
This commit makes certificates role independent by just
creating fake handlers.

Change-Id: Iec7934c7c1f4e9b37ff523e1d86a3beaaa88bdcf
Issue-ID: OOM-1864
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
5 years agoMake RKE the default cluster deployment tool 43/88243/1
Bartek Grzybowski [Wed, 22 May 2019 12:53:31 +0000 (14:53 +0200)]
Make RKE the default cluster deployment tool

This change substitutes rancher_kubernetes.yml for
rke.yml in site.yml making the RKE default deployment
mechanism for kubernetes cluster.

Change-Id: Ie1a0cb1eb94a3c5e8efd5c2c7e682c0292bc9152
Issue-ID: OOM-1873
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
5 years agoAdd prepare-docker-dind role 42/87142/6
Michal Zegan [Tue, 7 May 2019 12:31:43 +0000 (14:31 +0200)]
Add prepare-docker-dind role

This change adds the prepare-docker-dind role intended to
be used in tests to install docker on test containers.
Contrary to the prepare-docker role it arranges for docker daemon to be launched inside
of the test containers instead of using/polluting a test host.
It is a prerequisite to the rke role molecule tests.

Change-Id: I6be270758b01f7e9c4fa09aebcc32930c0977ea3
Issue-ID: OOM-1778
Signed-off-by: Michal Zegan <m.zegan@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>