summaryrefslogtreecommitdiffstats
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
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-01-25Merge "Fix repository bug in nexus_image_add"Bartek Grzybowski1-1/+1
2020-12-30Support setting custom dns resolverBartek Grzybowski3-0/+8
This change allows setting custom dns resolvers on control node and all k8s hosts. Change-Id: I49db6e5d5d3b5be5082adc73810eb282dce14eed Issue-ID: OOM-2650 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-12-30Support setting custom docker registry mirror in cicdansibleBartek Grzybowski3-1/+20
This facility allows setting custom docker registry mirror on k8s hosts in Docker global config. Change-Id: I01d02bdbabf2bed0b5b55819ae22770dd52de771 Issue-ID: OOM-2650 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-08-20Merge "Refactor helm-healer script"Tomáš Levora1-68/+122
2020-07-29Fix linting issues in Python scriptsBartek Grzybowski2-16/+15
Change-Id: I198340670f808d42aa6fb16de573db4a65005985 Issue-ID: INT-1667 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-07-14Fix repository bug in nexus_image_addOndřej Šmalec1-1/+1
Script assume repository is always part of image name. So if image to be download was put without repository, it caused removal of subdirectory. Previously: nexus3.onap.org/onap/aaf:1.0 -> onap/aaf:1.0 onap/aaf:1.0 -> aaf:1.0 Now: nexus3.onap.org/onap/aaf:1.0 -> onap/aaf:1.0 onap/aaf:1.0 -> onap/aaf:1.0 Issue-ID: OOM-2510 Signed-off-by: Ondřej Šmalec <o.smalec@partner.samsung.com> Change-Id: Ia5deedf4695790cf25e1d062d5dccbf9173e5592
2020-07-13Refactor helm-healer scriptMateusz Pilat1-68/+122
Extending helm-helper.sh funtionalities: -detecting orphaned resources -removing persistance storage for volumes Issue-ID: OOM-2074 Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com> Change-Id: Ia7fd21ab61bfedc39647a30528a122a49a8fd79f
2020-02-29Specify Python in Ansible inventory template fileJan Benedikt2-1/+4
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-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-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
2019-12-18Add robot config at onap installDenis Kasanic6-2/+51
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-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-10-08Merge "Fixing invalid hostname filled by ci-installer"Michal Ptacek1-3/+3
2019-10-08Fixing deprecation warning in ci-installerTomáš Levora1-1/+1
Issue-ID: OOM-2128 Change-Id: I5b25007b0521596083f539be296291adc21bb1d8 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2019-10-02Fixing invalid hostname filled by ci-installerTomáš Levora1-3/+3
ci-installer filled hostname containing underscore what is invalid Issue-ID: OOM-2119 Change-Id: I26dfa7115ba9e700715e0fae441c21a26fde3382 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2019-09-16Make cicdansible to set external ipMichal Zegan1-0/+4
Make cicdansible to set external_ip correctly using floating ips. Change-Id: I3791ee670806c7008073389e43dec5e887abfda9 Issue-ID: OOM-2112 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-09-06Add ability to put dockerdata-nfs on root diskMichal Zegan3-1/+18
Modify the heat template so that it becomes possible to skip volume creation for dockerdata-nfs. This feature can be toggled at will. It is useful for the cases where /dockerdata-nfs needs to be fast, but there are no ssd volumes available. Of course, large enough ephemeral disks are needed, around 60 gb. Change-Id: I37e29e7cf7273d1d4a6e896ec017d9ef8177b1d0 Issue-ID: OOM-2042 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-09-06Make kubernetes nodes to be placed on different computesMichal Zegan3-0/+18
Modify the heat template so that kubernetes node instances are not placed on the same compute nodes, but each on a different node. This is called anti-affinity. Change-Id: I16cad7cc2f503130bae80be3820c477890214594 Issue-ID: OOM-2042 Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com> Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-09-06Change the way how volume map is constructedMichal Zegan2-11/+34
This commit modifies volume handling in heat template in cicdansible. Namely, it simplifies the generation of node to volume list mapping and makes it more readable and understandable, and also more flexible, because now parts of it could be conditionalized. This is required for a followup commit. Change-Id: I204aefd819f40050a2cb9e6a031dfb2c62da1f48 Issue-ID: OOM-2042 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-09-04Merge changes from topic "OOM-2042"Michal Ptacek30-0/+932
* changes: Add ansible configuration file Add cicdansible playbook Add onap installation role Add onap instance configuration role Add ansible role to deploy onap infrastructure on openstack Add floating ip fact retrieval module Add inventory for cicdansible playbook Add heat template to deploy onap infrastructure Add the .gitignore for cicdansible
2019-09-04Add ansible configuration fileMichal Zegan1-0/+18
This commit adds the ansible configuration file, that configures pretty logging and, handling of connections and inventory, etc to make the playbook nicer to use. Change-Id: Ibf9eded62f87d338b4b215e8b0b37d80ec86b219 Issue-ID: OOM-2042 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-09-04Add cicdansible playbookMichal Zegan1-0/+36
This playbook runs the cicdansible roles on hosts defined, statically or dynamically, in the inventory. It deploys onap infrastructure on openstack, then installs onap. Change-Id: Idf618ff137c1adbad8f9b2f1bf878eaa9f20465d Issue-ID: OOM-2042 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-09-04Add onap installation roleMichal Zegan5-0/+94
This role generates offline installer parameters and inventory, downloads offline installer sw package, and initiates onap installation, waiting for it to finish. Change-Id: I5c79d9732b8d77f57278f5009f4e5089377fc2cf Issue-ID: OOM-2042 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-09-04Add onap instance configuration roleMichal Zegan4-0/+44
This change adds a role that configures deployed onap infrastructure instances. This role is generic and not openstack dependent. This role configures instances to reach each other by name, to mutually authenticate with the given ssh keys, etc. This mainly makes it easier for developers to do troubleshooting, and allows offline installer to work smoothly. Change-Id: I26750b0a8a69f56297f0a5f7ff491463ed2e9e32 Issue-ID: OOM-2042 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-09-04Add ansible role to deploy onap infrastructure on openstackMichal Zegan7-0/+153
This role deploys the onap infrastructure on open stack using the heat template, passing it needed parameters from inventory. It also formats and mounts all cinder volumes attached to the instances, so that they can be utilized. Change-Id: I0cb13a5b55bd31445acaa2f7c1db80a925daa5cb Issue-ID: OOM-2042 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-09-04Add floating ip fact retrieval moduleMichal Zegan1-0/+61
This change adds the ansible module that retrieves facts about floating ips, that is missing from the ansible core modules. This module is used to translate floating ips into their resource identifiers before using heat template. Change-Id: I7a8756eff30b33f82dade2f35227ff241a8c5972 Issue-ID: OOM-2042 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-09-04Add inventory for cicdansible playbookMichal Zegan5-0/+113
This change adds the basic inventory file and group_vars used when running cicdansible playbook to deploy onap on openstack. This inventory contains only instances that must be present, other inventory entries are dynamically registered during install. Also, it delegates to group_vars for things like floating ip addresses. group_vars contains default settings for the playbook, and especially the all.yml must be modified for the environment to be deployed. Change-Id: Ia93e6b98841d7edc45699b44b2479af6daff6c4f Issue-ID: OOM-2042 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-09-04Add heat template to deploy onap infrastructureMichal Zegan5-0/+411
This change adds a heat template that deploys empty onap infrastructure on open stack. Infrastructure consists of an installer instance + infra instance + specified number of kubernetes nodes. All instances are empty after creation, and live in the internal network with cidr 10.1.0.0/24. They are isolated by security groups in order not to have external network access except possibly the intranet, but it is possible to enable internet access if required. Change-Id: I70024e1e2344ed75f443f03b2239b460a71d0151 Issue-ID: OOM-2042 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-08-22Add the .gitignore for cicdansibleMichal Zegan1-0/+2
Adds the .gitignore file for the ansible playbook. Change-Id: If6e52f55e045ccccd164992108d1977c2a46a413 Issue-ID: OOM-2042 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-08-16Move help script to toolsPetr Ospalý1-0/+306
Change-Id: I03d1c65d05df534aecff5c6d08cfbdf97705dbdf Issue-ID: OOM-1984 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-08-16Add helm redeploy toolPetr Ospalý1-0/+537
Simple script to try to redeploy failed charts or explicitly desired chart(s). It supports override files for helm - but please, beware that helm or more specifically the onap helm plugin (deploy.sh) is not capable of handling whitespace in filenames so I don't support that in the script either (I made a version which does but it is no use if helm will break anyway). Change-Id: I69bf0672a64c45e30d4e4239da561647d00637a7 Issue-ID: OOM-1984 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>