summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-04-22[ANSIBLE 3.2.0] Use 'listen' directive for docker handlerBartek Grzybowski2-20/+20
Using 'import_tasks' for multiple step handler is no longer supported, while 'include_tasks' has some side effects. Change-Id: I61c14c937f80dfcd1780cdc2885ac781be613978 Issue-ID: OOM-2722 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-04-22[ANSIBLE 3.2.0] Upgrade 'vncserver' role's tasks to ansible 3.2.0Bartek Grzybowski2-0/+3
Change-Id: Ie721fac402c3cd5725c770313194a9ad98a07f2d Issue-ID: OOM-2722 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-04-22[ANSIBLE 3.2.0] Upgrade 'nginx' role's tasks to ansible 3.2.0Bartek Grzybowski2-1/+7
Change-Id: Ieba3f13a29240e0f8ed8ff6acb5472559a9134a5 Issue-ID: OOM-2722 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-04-22[ANSIBLE 3.2.0] Upgrade 'dns' role's tasks to ansible 3.2.0Bartek Grzybowski4-1/+4
Change-Id: I6984396d15d0592313978c751fd109ee06d8febf Issue-ID: OOM-2722 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-04-22[ANSIBLE] Drop published ports listBartek Grzybowski1-3/+0
Published ports are discarded by docker engine when using host network mode so no need to define them. Change-Id: I71537b4191e8f05d77991d08444144031747c0b7 Issue-ID: OOM-2722 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-04-22[ANSIBLE 3.2.0] Upgrade 'certificates' role tasks to be ansible 3.2.0 compliantBartek Grzybowski1-16/+2
Change-Id: Id1d8da0a1dabdbe79cdb24179ddeff5564b00f17 Issue-ID: OOM-2722 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-04-22[MOLECULE] Fix 'certificates' setup and verifier testsBartek Grzybowski7-77/+29
Change-Id: I13d4774f6860f6c3e396f58f1c60ae589beea9b1 Issue-ID: OOM-2722 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-04-22[MOLECULE] Add cleanup task for 'certificates' roleBartek Grzybowski3-0/+15
Change-Id: Ifb9c9627d840158d8a4be3a1d1a1ea75dc4038c3 Issue-ID: OOM-2722 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-04-22[MOLECULE 3.3.0] Drop scenario name in molecule.ymlBartek Grzybowski35-60/+0
In Molecule 3.x.x it's no longer needed, scenario name is assumed from its directory name. Ref.: https://github.com/ansible-community/molecule/issues/2560 Change-Id: I3b25dae499d4f40851ac3fe0183ee7ab913b7dd7 Issue-ID: OOM-2722 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-04-22[MOLECULE 3.3.0] Update converge playbook file namesBartek Grzybowski48-22/+22
In 3.x.x version family of Molecule the 'playbook.yml' file for 'converge' action has changed to 'converge.yml'. Ref.: https://github.com/ansible-community/molecule/issues/2560 Change-Id: I8710ebd5710237be138f2aff8943d6c949058dbd Issue-ID: OOM-2722 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-04-22[MOLECULE 3.3.0] Upgrade linters Molecule setupBartek Grzybowski68-276/+252
In 3.x.x version family of Molecule the syntax for linters invocation has been changed. Ref.: https://molecule.readthedocs.io/en/latest/configuration.html#lint Change-Id: I82d1fd996eb5853953ea6bc74dcbb88a485a2084 Issue-ID: OOM-2722 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-04-22[MOLECULE 3.3.0] Upgrade Molecule CI setupBartek Grzybowski3-8/+8
This upgrades following packages to specified versions: - Molecule => 3.3.0 - Ansible => 3.2.0 - Python => 3.8 Change-Id: I1bba9b2691d0b9650a08ebf4ca749798080dd441 Issue-ID: OOM-2722 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-04-07Add usage instructions for Kubernetes DashboardBartek Grzybowski3-0/+61
This adds a new section to the install guide describing details on accessing the k8s dashboard web UI that comes preinstalled with Offline platform. Change-Id: I16bd80ce1274744db2572993a910c12efc226920 Issue-ID: OOM-2715 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-04-01Upgrade Kubernetes Dashboard to v2.0.5Bartek Grzybowski2-5/+20
Currently used 2.0.0-beta4 supported k8s 1.15 at max Change-Id: I9565eaa78ebbca48377d65d87c77bc0893b29487 Issue-ID: OOM-2715 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-30Pin 'cryptography' pip package in ansible imageBartek Grzybowski1-1/+3
This rolls back alpine base layer to previous version and pins 'cryptography' pip package to the last known working version. Using alpine 3.13 has side efects as it upgrades python from 3.6 to 3.8 which breaks offline-installer playbooks. Change-Id: I3356e40943ffe75fe0febea31d71a51eb8a6f7bd Issue-ID: INT-1898 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-26Upgrade ansible's base image versionBartek Grzybowski1-1/+1
In 3.8 the 'cryptography' package no longer builds successfully Change-Id: I683e6553a9d1aa57069595dfdd56146c9cb45dc7 Issue-ID: INT-1898 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-25Add helm v3 usage instructions in build and install guideBartek Grzybowski2-0/+11
Change-Id: I1f02ac57ee4d35683595ffeec0aab7446d2fb914 Issue-ID: INT-1893 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-25Update the appendix in install guideBartek Grzybowski1-6/+6
Change-Id: I3ce931f5336b4b80ce27af383b18e65d7c0dd71a Issue-ID: INT-1893 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-25Update 'Post-installation and troubleshooting' section of install guideBartek Grzybowski1-5/+6
Change-Id: Id65f1abce59b90e7bef54f3152d24e9082fbd78a Issue-ID: INT-1893 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-25Update 'Installation' chapter of install guideBartek Grzybowski1-5/+5
Change-Id: Ie7882e98989e229b3ee7f73f74fb2be57ab3e098 Issue-ID: INT-1893 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-25Update 'Configuration' chapter of install guideBartek Grzybowski2-27/+43
Change-Id: Iea6e571f2e7c9f4a3f7c54fb5318bb05736cb97a Issue-ID: INT-1893 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-25Update prerequisites section of install guideBartek Grzybowski1-11/+9
Fix/update links to point to up to date external resources Change-Id: I62f52cd8ced162139a51a4e974b458bd31d2f231 Issue-ID: INT-1893 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-25Update links in install guideBartek Grzybowski1-2/+3
Change-Id: Iec903e45f839366f1498056bf448a758142d9383 Issue-ID: INT-1893 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-25Update the build guideBartek Grzybowski1-44/+36
Change-Id: Ib342fab062728a1820675db12bf3d52e15b0e319 Issue-ID: INT-1893 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-25Fix formattings and adjust main titleBartek Grzybowski1-3/+8
Change-Id: I1ea3192e818ca3a78561c11b80e4051927b07db9 Issue-ID: INT-1893 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-25Drop unused anchorsBartek Grzybowski1-31/+3
Shorten main section titles for clarity Change-Id: Id5bc573b7b0ad91614c8561ae8e1befe19153edd Issue-ID: INT-1893 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-25Fix rst formatting and shorten main section titleBartek Grzybowski1-4/+4
Change-Id: Ie82a3a1a8a4207ec7447755a8911f6914425df01 Issue-ID: INT-1893 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-25Exclude .tox subdir when building documentationBartek Grzybowski1-0/+2
Change-Id: I96b01f257702a9b154cb5fcc1c085883cde93a3f Issue-ID: INT-1893 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-18Upgrade docker-images-collector.sh related documentationBartek Grzybowski1-16/+13
Change-Id: I8531b816834b5b6c84436f7974ff39958160dcbe Issue-ID: OOM-2708 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-18Remove hardcoded docker image listBartek Grzybowski1-224/+0
OOM docker image list needs to be generated prior to ONAP deployment for the exact OOM project refspec used hence removing the file from repository as for most cases it'll be invalid anyway. Change-Id: I3da264e573f0d406ab7fd6adbee88f80db93b04a Issue-ID: OOM-2708 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-18Run chartmuseum in docker containerBartek Grzybowski1-31/+31
Switching from running local chartmuseum binary to chartmuseum docker container since docker engine is a runtime dependency anyway. Change-Id: I8aa66047d1fa91c2d248998a0c69a0e0a520af62 Issue-ID: OOM-2708 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-17Merge "Support Helm v3 in helm-healer script" into honoluluLasse Kaihlavirta1-5/+12
2021-03-10Support Helm v3 in helm-healer scriptBartek Grzybowski1-5/+12
Change-Id: I314b37c587c76038b1694eef7d52078f2af09a1d Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-10Upgrade rke version to 1.2.4 in Molecule setupBartek Grzybowski2-6/+1
Kubectl dependency is removed as it's no longer needed for rke tests. Change-Id: I0191b105e2a4cce1fe6e66678f4ce57fd2ce19ee Issue-ID: OOM-2686 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-10Upgrade kubectl version and download link in it's Molecule test setupBartek Grzybowski2-2/+2
Kubectl upgraded to 1.19.6 Change-Id: I331926c81b595c17700f76c4568bc76f5d1ae8c1 Issue-ID: OOM-2686 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-10Upgrade Kubernetes version deployed by RKE to v1.19.6Bartek Grzybowski3-61/+3
Manual system_images assignment in rke's cluster config is dropped as for any particular kubernetes release Rancher project holds a predefined, static map connecting Rancher's Kubernetes version with particular system images, so it's enough to define k8s version. Ref.: https://rancher.com/docs/rke/latest/en/config-options/system-images/ Change-Id: I027589c86500bbc5260caaa4aef7065d23d2241c Issue-ID: OOM-2686 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-10Drop rancher_server_image global variableBartek Grzybowski1-1/+0
It's not in use since the time 'rancher' role got obsoleted by 'rke' one Change-Id: Ibdc26103d9f7e87c9bb29a60c9276210e88d2628 Issue-ID: OOM-2686 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-10Update image data list for RKE 1.2.4Bartek Grzybowski1-21/+13
Change-Id: Icc59efb1789f31f3d4b8409d67426d5eb2d876d5 Issue-ID: OOM-2686 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-10Upgrade docker version in molecule rolesBartek Grzybowski2-2/+2
Docker release is upgraded to 19.03.15 Change-Id: I04099e32f312fe2e316ab9bac0ca3b75b7b29662 Issue-ID: OOM-2686 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-10Upgrade RKE and kubectl binaries version in data listBartek Grzybowski1-2/+2
Change-Id: I1aff068caeb4213cbcefb9bd341e961b9d26a976 Issue-ID: OOM-2686 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-10Update build guide in regard of docker engine versionBartek Grzybowski1-1/+1
Change-Id: I559ca429ca4701da4508e724069f62368cac263b Issue-ID: OOM-2686 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-10Fix docker-entrypoint.shBartek Grzybowski1-2/+2
Change-Id: Ie737420d13ee455cc2b50d2541620ab836cd36f3 Issue-ID: OOM-2686 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-03-10Upgrade docker engine version in package listBartek Grzybowski2-4/+4
Change-Id: Ic397e6d347bf52a65be68078d4110a2e1dc66726 Issue-ID: OOM-2686 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-02-16Merge changes from topic "ansible-helm3"Bartek Grzybowski58-230/+473
* changes: Run chartmuseum as a docker container Update 'helm deploy' failure criteria Fix kubeconfig file permissions Ensure k8s namespace for ONAP exists Customize helm "--timeout" option format if running helm v3 Redirect chartmuseum stdout/stderr to /dev/null Drop DIND specific test env settings for 'rke' role/playbook Improve bin utils symlink creation logic Add test scenario for Helm v3 Refactor Helm role test setup Add helm-push Helm v3 plugin to downloaded utilities list Fix Helm v3 data dir setup Add tasks to setup Helm v3 on infra node Add Helm v3 test scenario to rke playbook tests Change 'rke' role testing strategy Workaround RKE binary download issue Play 'chartmuseum' role in rke playbook if running with Helm v3 Fix variable inclusion order in RKE playbook tests Add Helm v3.3.4 to the list of downloaded utilities Add 'chartmuseum' binary to downloaded utilities list Add Molecule test scenario to verify 'chartmuseum' role on Ubuntu Add 'chartmuseum' role Split Helm v2 setup to separate playbook Improve 'application' role test coverage
2021-02-16Merge "Add Helm v3 plugin deployment playbook"Krzysztof Opasiak9-5/+111
2021-02-12Run chartmuseum as a docker containerBartek Grzybowski17-71/+68
A docker container for chartmuseum is run with chart storage volume mounted from hosts' resource dir for chart repo persistence across container/infra restarts. Change-Id: I692ff7a3d95414b439b15b5414bc8b959eb79414 Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-02-11Merge "Move Helm v2 plugin installation logic into separate playbook"Krzysztof Opasiak5-25/+30
2021-02-11Update 'helm deploy' failure criteriaBartek Grzybowski1-1/+1
Contrary to helm v2, helm v3 prints regular output to stderr hence stderr output presence can no longer be used as failure criteria. Since 'deploy' plugin (for any helm release) prints a list of charts that failed to deploy at the end of it's run, it's output is used to detect deployment failure. Change-Id: I340e4e1a5be0949d866ddedfb49c0d23a48e67cf Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-02-10Fix kubeconfig file permissionsBartek Grzybowski1-1/+1
Kubeconfig file should not be world readable. Helm v3 prints relevant warning to stderr if it's (kubeconfig) mode is incorrect. Change-Id: I9d2b8618cd3e43a49345e96f6ed5169438a29cef Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-02-09Ensure k8s namespace for ONAP existsBartek Grzybowski1-0/+6
Helm v3 does not automatically create namespace when either of "install" or "upgrade" subcommand is called even with "--namespace" option. Change-Id: I8595d8d9cdcb904b6c032695bae4d945fd07176c Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>