oom/offline-installer.git
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 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 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 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 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 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 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>
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"