summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-05-29Molecule test for infrastructure playbook.Samuli Silvius6-0/+155
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>
2019-05-29Add the prepare-package-repository roleMichal Zegan2-0/+38
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>
2019-05-29Add prepare-nexus roleMichal Zegan2-0/+75
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>
2019-05-29Add prepare-nginx roleMichal Zegan1-0/+28
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>
2019-05-29Add the prepare-dns roleMichal Zegan1-0/+22
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>
2019-05-29Add prepare-vncserver roleMichal Zegan1-0/+21
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>
2019-05-29Allow unsafe writes when modifying resolv.confMichal Zegan1-0/+1
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>
2019-05-29Add nexus_come_up_wait_retries variable to nexus roleMichal Zegan2-1/+2
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>
2019-05-29Remove docker restart condition from docker roleMichal Zegan1-3/+0
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>
2019-05-29Merge "Adding source identification for docker data list"Samuli Silvius1-0/+1
2019-05-29Merge "Fixing access permissions for docker image list"Samuli Silvius1-0/+0
2019-05-28Adding source identification for docker data listMichal Ptacek1-0/+1
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>
2019-05-28Add needed pypi patching for oofMichal Ptacek2-9/+34
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>
2019-05-28Fixing access permissions for docker image listTomáš Levora1-0/+0
chmod from 775 to 664 Issue-ID: OOM-1800 Change-Id: I0f459a246bc636d696f4bbc32cca6e27ca37db80 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2019-05-28Merge "Modify build_nexus_blob.sh to accept more input parameters"Michal Ptacek1-29/+48
2019-05-28Merge "Adding list of docker images for ONAP"Michal Ptacek4-658/+224
2019-05-27Merge "Updating NPM list for Dublin"Michal Ptacek1-321/+235
2019-05-27Fix wrong path to backup filesTomáš Levora1-2/+2
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>
2019-05-27Adding list of docker images for ONAPTomáš Levora4-658/+224
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>
2019-05-27Updating NPM list for DublinTomáš Levora1-321/+235
Issue-ID: OOM-1800 Change-Id: Iff7389dbc95e4aec501b0c53e9276869eb1e2e38 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2019-05-27Modify build_nexus_blob.sh to accept more input parametersMateusz Pilat1-29/+48
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
2019-05-27Merge "Adjusting patching file for Dublin"Michal Ptacek4-476/+52
2019-05-27Merge "Updating git datalist for Dublin"Michal Ptacek2-9/+2
2019-05-27Add list of docker images for rkePetr Ospalý1-0/+22
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>
2019-05-26Merge "Make RKE the default cluster deployment tool"Michal Ptacek3-5/+39
2019-05-24Merge changes from topic "data-download"Michal Ptacek8-0/+820
* 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
2019-05-24Adjusting patching file for DublinMichal Ptacek4-476/+52
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>
2019-05-24Improve download of npm packagesMilan Verespej1-0/+121
Issue-ID: OOM-1803 Change-Id: I332d7ef6ad628a08b5c9279d65b9d7286f06ee97 Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
2019-05-24Improve download of http filesMilan Verespej2-1/+160
Issue-ID: OOM-1803 Change-Id: If2aeb1aa4fab27641511a6300832ccd7be95e846 Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
2019-05-24Improve download of rpmMilan Verespej1-0/+66
Issue-ID: OOM-1803 Change-Id: I8a6df03a5ede68968e9ccdf8d4de3f9f17d91963 Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
2019-05-24Improve download of git repositoriesMilan Verespej2-0/+96
Issue-ID: OOM-1803 Change-Id: I167f66f3cb6b96d9e21c5ffbd0cf0eb33ef4932e Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
2019-05-24Improve docker image download scriptMilan Verespej4-0/+378
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>
2019-05-23Fixing typo in download-pip.sh scripteronkeo1-1/+1
Change-Id: I1216cb0fc2f47f29ef7f3880a03f4e6a3dfd3ec4 Issue-ID: OOM-1879 Signed-off-by: eronkeo <ronan.keogh@est.tech>
2019-05-23Updating git datalist for DublinMichal Ptacek2-9/+2
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>
2019-05-22Make RKE the default cluster deployment toolBartek Grzybowski3-5/+39
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>
2019-05-21Fixing dnsmasq container not starting bugMichal Ptacek2-1/+4
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>
2019-05-21Merge changes from topic "RHEL"Michal Ptacek8-36/+16
* changes: Upgrade docker version to 18.09.5 Update of docker for RHEL
2019-05-20Merge "Adding new simulated domains"Michal Ptacek1-0/+2
2019-05-20Add kubernetes dashboardPetr Ospalý6-1/+213
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>
2019-05-20Merge changes from topic "rke-support"Michal Ptacek13-13/+305
* changes: Add setup for kubectl and helm Add support for RKE kubernetes implementation
2019-05-17Upgrade docker version to 18.09.5Bartek Grzybowski6-27/+9
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>
2019-05-17Update of docker for RHELTomáš Levora2-9/+7
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>
2019-05-17Add setup for kubectl and helmMichal Zegan8-13/+28
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>
2019-05-17Add support for RKE kubernetes implementationPetr Ospalý8-0/+277
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>
2019-05-16Adding new simulated domainsTomáš Levora1-0/+3
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>
2019-05-16Molecule tests for application role.Samuli Silvius10-8/+184
Issue-ID: OOM-1812 Change-Id: Ifb6f5a10afb4014b20be77a4141371e561d346ce Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
2019-05-16Adding rke binary downloadTomáš Levora1-1/+5
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>
2019-05-16Update kubectl and helm binariesTomáš Levora1-6/+6
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>
2019-05-15Merge "Adding script for autocollection of docker images"Michal Ptacek1-0/+118
2019-05-15Merge "Fix idempotence issue in dns role"Samuli Silvius2-19/+12