summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-05-24Modify docker role to use dindMichal Zegan3-6/+7
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>
2019-05-24prepare-docker-dind: make docker start optionalMichal Zegan2-0/+4
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>
2019-05-21Add prepare-docker-dind roleMichal Zegan3-0/+31
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>
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
2019-05-15Fix idempotence issue in dns roleBartek Grzybowski2-19/+12
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>
2019-05-14Fix idempotency issue in 'prepare-docker' roleBartek Grzybowski1-0/+2
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>
2019-05-10Merge "Don't set 'container' env in Molecule containers"Samuli Silvius5-12/+2
2019-05-10Molecule test for resources playbook.Samuli Silvius10-0/+162
Issue-ID: OOM-1813 Change-Id: I5c070f1ed20bf29b432c91e9de5d861267802b6d Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
2019-05-10Merge "Updating offline platform with latest 3.0.2"Michal Ptacek7-1527/+2094
2019-05-10Fix 'cleanup' stage in 'nfs' role testBartek Grzybowski1-0/+1
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>
2019-05-09Merge "Extending molecule test to playbooks"Samuli Silvius4-34/+68
2019-05-09Updating offline platform with latest 3.0.2Michal Ptacek7-1527/+2094
- 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>
2019-05-09Merge "Make simplified version of build_nexus_blob.sh"Tomáš Levora2-239/+179
2019-05-09Extending molecule test to playbooksMateusz Pilat4-34/+68
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>
2019-05-09Fix download scripts to handle empty linesTomáš Levora7-57/+52
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>
2019-05-09Don't set 'container' env in Molecule containersBartek Grzybowski5-12/+2
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>
2019-05-09Make simplified version of build_nexus_blob.shTomáš Levora2-239/+179
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>
2019-05-07Merge "Add script to start review for offline installer in community Jenkins"Michal Ptacek2-2/+65
2019-05-07Merge "minor documentation updates"Michal Ptacek1-15/+15
2019-05-07Merge "Updating docker image list for 3.0.2"Michal Ptacek1-8/+7
2019-05-06Add script to start review for offline installer in community JenkinsMateusz Pilat2-2/+65
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>
2019-05-06Merge "Fix for Molecule images build-all.sh"Michal Ptacek1-2/+2
2019-05-03Updating docker image list for 3.0.2Tomáš Levora1-8/+7
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>
2019-05-03Adding script for autocollection of docker imagesTomáš Levora1-0/+118
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>
2019-05-02Merge "Make 'prepare-docker' install proper docker-ce version"Michal Ptacek5-33/+27
2019-04-30Fix docker run in ansible/test/bin/molecule.sh.Mateusz Pilat1-1/+1
-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>
2019-04-30Make 'prepare-docker' install proper docker-ce versionBartek Grzybowski5-33/+27
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>
2019-04-26Fix for Molecule images build-all.shMateusz Pilat1-2/+2
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>
2019-04-26Cleanup Rancher containers after Molecule convergeBartek Grzybowski4-6/+123
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>
2019-04-26minor documentation updateseronkeo1-15/+15
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>
2019-04-25Merge "Replace VNC server docker image"Michal Ptacek2-2/+2
2019-04-24Merge "Adding docker image list for 3.0.2"Michal Ptacek1-0/+220
2019-04-24Merge changes from topic 'rancher_api'Michal Ptacek3-0/+679
* changes: Add support for resetting the admin password Add support for rancher authentication Refactor rancher1_api module Add support for rancher 1.6 API
2019-04-24Add support for resetting the admin passwordPetr Ospalý3-41/+110
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>
2019-04-24Add support for rancher authenticationPetr Ospalý3-28/+236
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>
2019-04-23Replace VNC server docker imageTomáš Levora2-2/+2
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>