summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-03-17Adding Ubuntu support in Ansible - docker-dind roleJan Benedikt4-24/+66
Extending ansible playbooks of ubuntu support. Issue-ID: OOM-1671 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com> Change-Id: I6028736b54ce825d3eae257ca61cb6efab19a913
2020-03-06Merge "Specify Python in Ansible inventory template file"Bartek Grzybowski3-2/+5
2020-03-05Merge "Fix: Losing dns configuration after reboot"Bartek Grzybowski2-0/+22
2020-02-29Specify Python in Ansible inventory template fileJan Benedikt3-2/+5
Created copy of inventory template due to set var of Python interpreter. Python interpreter cannot be set in ansible.cfg file due to bug: https://github.com/ansible/ansible/issues/45852 Issue-ID: OOM-1671 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com> Change-Id: I9683a2a764e8c6696a39625a6ddc40cda20f9333
2020-02-17Fix: Losing dns configuration after rebootMateusz Pilat2-0/+22
Issue-ID: OOM-2295 Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com> Change-Id: Ic10203be6fc2cd2c805679a293efa0f2ddea9465
2020-02-14Fix packaging script - Memory error in md5 calculationsMateusz Pilat1-3/+5
During package preparation whole file is read and stashed in to RAM. when the file is large, like ONAP package it will result in an error Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com> Issue-ID: OOM-2308 Change-Id: Ic2dbea4018162bd4cfb380f6fb34078062c38a09
2020-02-13Adding checksum of packages into package.infoOndřej Šmalec1-5/+42
Function to add checksum of created packges to package.info Modified --add-metadata parameter to handle more parameters in format key=value Issue-ID: OOM-2288 Signed-off-by: Ondřej Šmalec <o.smalec@partner.samsung.com> Change-Id: I29114c4566fdfd9643ab5c60951ee65f5680d2fe
2020-02-11Use POSIX compliant shell command in cicdansibleBartek Grzybowski1-1/+1
"[[ ]]" is a bash specific command that doesn't work in dash which is Ubuntu's default shell. Change-Id: Idd09c2e1e8c409503b12756141632527ab91b5ec Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: OOM-1671
2020-02-11Disable 'pipefile' shell opt in cloud-init's runcmd moduleBartek Grzybowski1-1/+1
Cloud-init runs runcmd module with default OS shell which evaluates to dash for Ubuntu and which in turn doesn't support 'pipefile' option. This makes cloud-init fail the module on Ubuntu OS. In runcmd script there are no pipes so it's safe to remove it from shell opts. Change-Id: I0402fbfe13fe528832e64d107c1bc07bb5516fc2 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: OOM-1671
2020-01-30Merge "Removed version from package name"Bartek Grzybowski1-6/+3
2020-01-30Removed version from package nameOndřej Šmalec1-6/+3
Version is kept in package.info file. No need to have it as well in package name. package.info file is present in each tar package. Issue-ID: OOM-2277 Signed-off-by: Ondřej Šmalec <o.smalec@partner.samsung.com> Change-Id: I19fd80cb18e5eac614ac743af954f049536deb3b
2020-01-24Merge "Help script to remove runtime images from datalist"Bartek Grzybowski1-0/+79
2020-01-24Help script to remove runtime images from datalistOndřej Šmalec1-0/+79
Issue-ID: OOM-2276 Signed-off-by: Ondřej Šmalec <o.smalec@partner.samsung.com> Change-Id: I8f848dbb73747f0744a16fb5831627c20d9f8303
2020-01-23Replace master branch in BuildGuideOndřej Šmalec1-2/+6
changed master branch to generic <branch> variable. Issue-ID: OOM-2274 Signed-off-by: Ondřej Šmalec <o.smalec@partner.samsung.com> Change-Id: I2fef04e00c6aa096e0fe3cd8d48327c5bf197cc1
2020-01-23Merge "Option for additional metadata in package.py"Tomáš Levora1-4/+13
2020-01-22Option for additional metadata in package.pyOndřej Šmalec1-4/+13
Issue-ID: OOM-2269 Signed-off-by: Ondřej Šmalec <o.smalec@partner.samsung.com> Change-Id: I6b23512746171fdeaac3883fb61695db2c48c3ab
2020-01-20Merge changes from topic "OOM-1853"Tomáš Levora1-2/+3
* changes: Run env setup only once Fix condition for checking if tests are defined
2020-01-20Merge "Improve offline-installer-review.sh logic to only run relevant tests"Tomáš Levora1-14/+55
2020-01-20Merge "Remove reference to Appendix in BuildGuide"Tomáš Levora1-4/+2
2020-01-20Merge "Add robot config at onap install"Bartek Grzybowski10-528/+78
2020-01-20Remove reference to Appendix in BuildGuideBartek Grzybowski1-4/+2
Appendix was removed in change I8859ba42420d351ce12347cd63bf11f95a4b528d Fixed some wording. Change-Id: I3ad585b67532a4a44bf272d8ebfefec03ec3cc12 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: OOM-2158
2020-01-17Run env setup only onceBartek Grzybowski1-1/+2
prep_ubuntu_16_04_for_molecule routine was taken out of run_molecule function so that it's not superfluously run on each molecule invocation Change-Id: I1e4d3f32fbec4fa1e96389d9d65740747bffcef6 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: OOM-1853
2020-01-17Fix condition for checking if tests are definedBartek Grzybowski1-1/+1
Native shell conditional is used as previously the condition would give warnings on stderr in certain cases, e.g. when role was removed script reported: "find: ‘ansible/roles/<rolename>’: No such file or directory" Change-Id: I63f50bda94e144a17307d927a6be70ae270f28bf Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: OOM-1853
2020-01-17Improve offline-installer-review.sh logic to only run relevant testsBartek Grzybowski1-14/+55
Main CI wrapper script refactored so that it runs tests in a more granulated manner, i.e. matching between changed files and relevant tests to run was optimised. Change-Id: I09086099d7d16c52e29da2fe19440bcfd79ad295 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: OOM-1853
2020-01-16Add tests for rke playbookMichal Zegan5-0/+102
This adds tests for the rke playbook. Change-Id: Idbb90bb9674d67c1877302877b60d3d60d44e36b Issue-ID: OOM-1907 Signed-off-by: Michal Zegan <m.zegan@samsung.com> Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-01-16Decrease tests resource footprint on CI minionBartek Grzybowski2-6/+5
Due to constrained CI minion resources docker volumes need to be pruned after each test invocation to prevent false negative which occurs in case when multiple playbook level tests are run. Heavy VNC Server image (1GB) needs to be mocked with lightweight alpine image in play-infrastructure test for same reasons. Change-Id: I1026593a375853575cf210aefe29bc320d4e5c64 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: OOM-1907
2020-01-13Add test scenario for unsafe volatile storageBartek Grzybowski2-0/+75
This tests rke role with etcd storage configured on tmpfs. Change-Id: I57feb705a38e87c1b2127294c3443d99cc2595aa Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: OOM-2259
2020-01-10Change group_vars inclusion mode in rke role testsBartek Grzybowski2-3/+1
Inclusion switched from inventory.links declaration in molecule config to filesystem symlink. Change-Id: Idcdd40ba196963f61b587c78718564c9374fa731 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: OOM-2259
2020-01-10Include etcd storage configuration task in testingBartek Grzybowski1-0/+7
It was missing since adding feature for etcd storage configuration in https://gerrit.onap.org/r/c/oom/offline-installer/+/94135 Change-Id: I1d354af1fd48df8cb8de002f473d32cd5d4f9075 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: OOM-2259
2020-01-10Limit resource footprint of rke role testsBartek Grzybowski2-19/+1
Number of kubernetes nodes created by rke role tests was limited to 1 - higher number caused resource exhaustion in CI worker (8gb memory limit). Verifier timeout was increased in routine where pod readiness is checked. Change-Id: I2c30aa999b92c4ceddccf682c4f918e953da2621 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: OOM-2257
2020-01-08Add static and dynamic kubelet config supportPetr Ospalý4-2/+23
Kubelet can be configured on startup now - just add new key/values in: kubelet-static-config.yml.j2 Also kubelet static (startup) configuration can be overriden later (dynamically) during its runtime - for more info read this: https://kubernetes.io/docs/tasks/administer-cluster/reconfigure-kubelet/ Issue-ID: OOM-2199 Change-Id: Ia4790a4dfc04f0caed695df7bfd343253bd95bc0 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-12-18Add robot config at onap installDenis Kasanic10-528/+78
Change onap network cidr to /16 due to robot hardcoded config. Adding onap network id to configuration at installation part. Adding optional connection to demo usecases network at deploy step Update patch scripts for specify network and kubernetes namespace Enable config_drive parameter at openstack instances deploying to get openstack metadata Issue-ID: OOM-1996 Signed-off-by: Denis Kasanic <d.kasanic@partner.samsung.com> Change-Id: I4403e8ca0f385060ac815372ffd91eda60026ddb
2019-12-16Merge "Add screen and jq to onap_rpm.list"Tomáš Levora2-2/+11
2019-12-16Add screen and jq to onap_rpm.listJan Benedikt2-2/+11
Added screen and jq packages to RPM repository list. These packages was added as helpful tools for debugging. Oniguruma package is dependency for jq package. Issue-ID: OOM-2200 Change-Id: I2bbd8bf75569156e845341a9766214b03401ec35 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
2019-12-06Archive helm_charts with command moduleOndřej Šmalec1-3/+6
Due to bug in ansible archive module empty files are not added into tar file. Hence kibana-onborading.json missing in helm_charts on infra node. Changing archive module into command module to tar helm_charts. Issue-ID: OOM-2231 Signed-off-by: Ondřej Šmalec <o.smalec@partner.samsung.com> Change-Id: I5527bd0f52976a93ac2861d9de010fbb79eb97fd
2019-11-28Merge "docker-images-collector.sh to use override values.yaml"Samuli Silvius2-5/+4
2019-11-25docker-images-collector.sh to use override values.yamlSamuli Silvius2-5/+4
Change docker-images-collector.sh script to use file oom/kubernetes/onap/resources/overrides/onap-all.yaml as input instead of oom/kubernetes/onap/values.yaml. Also small enable script running in Windows git bash. Issue-ID: OOM-2222 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com> Change-Id: Idf7143ed9880ac510c103f4d3a4d5a45f375d71a
2019-11-25Downloading docker images does not work on WindowsSamuli Silvius1-1/+1
Changing build/download/docker_downloader.py to connect docker engine in more default way i.e. taking engine parameters from environment fixes this script. Issue-ID: OOM-2223 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com> Change-Id: Iddf69593bb4cf4596e713c8d537a90424c5925ef
2019-11-21Script for adding image into offline nexus repositoryOndřej Šmalec1-0/+103
Help script for adding docker image into nexus repository on infra server. Issue-ID: OOM-2210 Signed-off-by: Ondřej Šmalec <o.smalec@partner.samsung.com> Change-Id: I0ea81170a701b87ad1c4ecc53cfc6e03a3e95684
2019-11-15Fix helm behaviorPetr Ospalý1-0/+35
When 'helm serve' is not running and helm is not listening on localhost:8879 then helm starts to delete everything...instead of aborting or doing something sensible... This commit fix this misbehavior: we abort Issue-ID: OOM-2074 Change-Id: Icb4d25163012e4aedf5ec1598a4f20c738c04974 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-11-15Improve cleanup (--delete-all) usagePetr Ospalý1-60/+134
It cleans all orphaned images and volumes on each kubernetes node: docker system prune --force --all --volumes Also it now fixes the requirement for an override file when '--clean-only' is used and it adds more kubernetes resource object to redeploy. + improve help description + add use_help to not print all help when not asked + fix function name: redeploy_component -> undeploy_component + fix messages on some systems by switching echo to printf + fix grep to not match (e.g.) onap-bars when onap-bar was requested + add trap and fix terminal colors on abort Issue-ID: OOM-2074 Change-Id: I54958d6e97febbda461bfb68f3829b002e7200b4 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-11-15Remove deprecated flagPetr Ospalý1-7/+3
This commit fixes this warning: Flag --include-uninitialized has been deprecated, The Initializers feature has been removed. This flag is now a no-op, and will be removed in v1.15 + Fix whitespace in help Issue-ID: OOM-2074 Change-Id: I23b1a5cbe10fc07ec9342119be1753402ef6e041 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-11-15Merge "Update documentation"Tomáš Levora2-21/+20
2019-11-15Update documentationDenis Kasanic2-21/+20
Fix several typos in Build and Install parts of docs Fix paths of configuration files in Install part Remove note discouraging making changes in config files Issue-ID: OOM-2158 Issue-ID: OOM-2197 Signed-off-by: Denis Kasanic <d.kasanic@partner.samsung.com> Change-Id: I28d9b43a56791bc3c1c53c12f7c852f5a1a885c6
2019-11-15Merge "Updating docker images for El Alto"Bartek Grzybowski1-132/+131
2019-11-15Merge "Fix relative path in package.py"Bartek Grzybowski1-11/+16
2019-11-15Merge "Chaging name of rhel resource directory to rpm"Bartek Grzybowski8-15/+15
2019-11-15Merge "Adding relative path support"Bartek Grzybowski1-7/+8
2019-11-15Updating docker images for El AltoTomáš Levora1-132/+131
Issue-ID: OOM-2147 Change-Id: Ia80d034f562879dc3820d56ebe18d0046bd42b68 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2019-11-14Fix relative path in package.pyDenis Kasanic1-11/+16
Issue-ID: OOM-1994 Signed-off-by: Denis Kasanic <d.kasanic@partner.samsung.com> Change-Id: Ie8bbe23c90a4c2d1fd60d3fad36fcd8f741e6f63