summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-11-04Override oom-cert-service docker container nameBartek Grzybowski1-2/+6
Container name for certificate generation tool is hardcoded as "generate-certs" hence multiple builds couldn't run in parallel. This change overrides DOCKER_CONTAINER oom-cert-service makefile variable changing the container name effectively. Change-Id: I397ab7f3b04d35070cfb492ca482521ee10159fa Issue-ID: OOM-2623 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-11-04Setup temporary helm repositoryBartek Grzybowski1-13/+23
A temporary helm repository will be created for the process of preparing data list and removed afterwards. This allows setting a separate working helm repo not affecting system wide configuration. Change-Id: I775e28b7c5f0e9b5259588032346ff392f1b1803 Issue-ID: OOM-2623 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-11-04Merge "Update package versions"Bartek Grzybowski1-3/+2
2020-10-30Update package versionsBartek Grzybowski1-3/+2
Drop packages that are downloaded as dependencies of others anyway Dependencies of container-selinux: --> Processing Dependency: policycoreutils-python for package: 2:container-selinux-2.119.2-1.911c772.el7_8.noarch --> Processing Dependency: audit-libs-python >= 2.1.3-4 for package: policycoreutils-python-2.5-34.el7.x86_64 --> Processing Dependency: checkpolicy for package: policycoreutils-python-2.5-34.el7.x86_64 Dependencies of nfs-utils: --> Processing Dependency: gssproxy >= 0.7.0-3 for package: 1:nfs-utils-1.3.0-0.66.el7_8.x86_64 Change-Id: Ia67399685af0205474fa21fbc1fe3ec7eea261bb Issue-ID: OOM-2615 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-10-30Fail the entrypoint script on any command failureBartek Grzybowski1-1/+2
Most importantly this will allowing propagating the failure to the wrapper script. Change-Id: I3f419f588e0f0fb5b459fa1d8e8d520b9f5c78d5 Issue-ID: OOM-2615 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-10-30Clean target repository dir prior to downloading packagesBartek Grzybowski1-0/+3
This increases idempotency and allows avoiding side effects in cases where repo dir already contains images that are not on the list of required packages. Change-Id: Ieaa4e407ae7aacdc8d25440d90860cb880df09e2 Issue-ID: OOM-2615 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-10-30Run docker container in foregroundBartek Grzybowski1-4/+2
This equals current behaviour of running in background and then attaching running container to print logs but will allow wrapper script to inherit exit code from entrypoint script. Change-Id: Ida447ef8024995de6cad81aa2dc857aec36e0d04 Issue-ID: OOM-2615 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-10-28Support setting custom Docker container name suffixBartek Grzybowski1-9/+14
Change-Id: Ic3e4553442efd4c565c834a80184ff78e978cdba Issue-ID: OOM-2612 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-10-28Drop docker container cleanup statementBartek Grzybowski1-4/+0
Container is run with "--rm" option hence manual cleanup is not needed in any case. Change-Id: Iafe8287b8486abcd4a44fec102db8bfb89af1b63 Issue-ID: OOM-2612 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-10-28Fix English in comments; fix script synopsis textBartek Grzybowski2-63/+59
Change-Id: I6a67a8e675bdde8d9febc3edf8205c7516d979b8 Issue-ID: OOM-2612 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-10-26Use temporary Docker client configBartek Grzybowski1-14/+8
Change-Id: I2c864cbd553e377aa594badf4df58206e40e5794 Issue-ID: OOM-2605 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-10-26Support publishing exposed container ports on custom host portsBartek Grzybowski1-3/+13
Change-Id: I3dcd47932821a124906f8d125697ecbe21c259af Issue-ID: OOM-2605 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-10-26Drop registry hosts simulationBartek Grzybowski1-27/+7
Instead of simulating all images original registry hostnames locally running Nexus instance IP address is used to simplify the whole procedre. Change-Id: I42de7e2bc177a9b784090aece0b4ebe7d57912e7 Issue-ID: OOM-2605 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-10-26Drop exposing additional portsBartek Grzybowski1-17/+0
As the default registry is the only one being set it's no more required to publish ports for each registry listed in images list file. Change-Id: I55a5e1f527bbc98dd4c1e1835c4218dc0fad4c1a Issue-ID: OOM-2605 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-10-26Push all images to simulated Docker registry onlyBartek Grzybowski1-15/+15
In previous implementation all images were pushed to their original registries which were simulated locally. This change retags all images to locally simulated docker registry only and pushes them there accordingly. Created temporary tag is dropped at the end for order. Change-Id: If1b6633fdcc13d47c6e2b26792980320dce7f49a Issue-ID: OOM-2605 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-10-26Support setting custom Nexus container nameBartek Grzybowski1-5/+21
Change-Id: I41098413b96ac08fe479167aa0f5d0c4a699ef33 Issue-ID: OOM-2605 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-10-21Bump the nfs-utils package versionBartek Grzybowski1-1/+1
Previous version was no longer available in repository Change-Id: I5bf1048c6ef6438b4cd50ad4231132da2f67432e Issue-ID: OOM-2604 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-10-16Set SKIP_LINT=true prior to building helm repositoryBartek Grzybowski1-0/+1
SKIP_LINT was already configured to be set in deployment stage in change 0d90cf8fe895e62b7343088ca9a017eff32e92dd but was missed to be set in build script. Change-Id: I599882eaa2e509fda6a41ca5bf5ff77a275adf93 Issue-ID: OOM-2599 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-10-09Ignore error if helm stable repo is already removedBartek Grzybowski1-1/+1
Fixes e941ec1 Change-Id: I8b5cb6a81998e32204d49c0f2630e1097f830aee Issue-ID: OOM-2591 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-10-08Remove helm "stable" repo while building chartsBartek Grzybowski1-0/+1
"Stable" repo is removed on targed deployment by a relevant ansible task, it should be removed in build stage as well. Change-Id: Ia89435e73c547e7d1cc4de19d635173307d083f4 Issue-ID: OOM-2591 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-09-24Create directory for output list file if it doesn't existBartek Grzybowski1-0/+5
Should the output list file directory passed as second param not exist the script would fail. Change-Id: I4586df54b42eba2ace49f6aaf03b68042354b44a Issue-ID: OOM-2578 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-09-23Workaround random application_dir removal failureBartek Grzybowski1-1/+1
In cases where --output-dir is set to a directory on a NFS share shutil fails to remove the application_dir. This WO will silence errors from rmtree routine. Change-Id: I0c5d06982f0ba2eb5b15276890b474afc46894e0 Issue-ID: OOM-2577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-09-17Add feature to install shell autocompletion for kubectlBartek Grzybowski5-0/+30
Change-Id: I732dcd92144f9a8489a351047ab88b53ca36759e Issue-ID: OOM-2564 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-09-08Fix repository directory nameBartek Grzybowski1-1/+1
This fixes a regression bug introduced in 5907acf due to not all 'rhel' path elements updated. Change-Id: I21a7448aa4605f705cfb7a75030d69a0db04319f Issue-ID: OOM-2150 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-09-02Adding missing rpm packagesTomáš Levora1-0/+2
If target OS is installed from RHEL 7.6 DVD ISO, there are missing additional packages added by to the list by this patch. Issue-ID: OOM-2549 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com> Change-Id: I00c8fb3e8e6fb0f1a3879bd66a5c5e2542d321d3
2020-08-20Merge "Refactor helm-healer script"Tomáš Levora1-68/+122
2020-07-30Add automatic virtualenv provisioner for download and package scriptBartek Grzybowski3-0/+16
Change-Id: I072d514c7c2f03991caf6714dbdc0d2d7e5c8bb9 Issue-ID: INT-1670 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-07-29Fix linting issues in Python scriptsBartek Grzybowski7-21/+17
Change-Id: I198340670f808d42aa6fb16de573db4a65005985 Issue-ID: INT-1667 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-07-29Add Tox and Coala setup for Python linterBartek Grzybowski2-0/+30
Change-Id: Ic2e16c14f13c244f77c16fa5f38349f4549603a3 Issue-ID: INT-1666 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
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-05-28Updating RKE version to Frankfurt6.0.0-ONAPTomáš Levora4-14/+17
Updating RKE to v1.0.4 for Kubernetes 1.15.9 Issue-ID: OOM-2403 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com> Change-Id: I87c3f9f4800aa40f62d7569b4ecf3fa373a16796
2020-05-27Merge "Fix: Fix docker cli version mismatch"Tomáš Levora5-4/+10
2020-05-21Updating helm for FrankfurtTomáš Levora3-3/+3
Updaing helm to v2.16.6 as required by OOM Frankfurt Issue-ID: OOM-2363 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com> Change-Id: Ibcf47c26dadc359cb86e039d802ff6afbef7efbd
2020-05-21Merge "Updating kubectl for Frankurt"Tomáš Levora3-3/+3
2020-05-20Fix: Fix docker cli version mismatchMateusz Pilat5-4/+10
Docker cli version is different than docker engine version & Improve output of verification job Issue-ID: OOM-2415 Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com> Change-Id: Iebf8946c4a8b3eb3abd45402d6d573e403ac9ef2
2020-05-18Merge "Adding Ubuntu support in Ansible - vncserver role"Bartek Grzybowski2-0/+40
2020-05-18Adding Ubuntu support in Ansible - vncserver roleJan Benedikt2-0/+40
Extending ansible playbooks of ubuntu support. Creating new test with Ubuntu image for Molecule in vncserver role. Issue-ID: OOM-1671 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com> Change-Id: Ie57885d30166f319629e160c38a9053c18837515
2020-05-18Adding Ubuntu support in Ansible - package-repository roleJan Benedikt9-23/+108
Extending ansible playbooks of ubuntu support. Creating new test with Ubuntu image for Molecule in package-repository role. Issue-ID: OOM-1671 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com> Change-Id: I85d4e6857536fa06c7eb4f4042c1ed64fcbf903e
2020-05-14Fix: docker-images-collector.sh collect empty image name in output list. ↵Mateusz Pilat1-1/+1
Adding also masterPassword param for helm templating The root cause is that not all parameters are present in aaf chart. It is an issue not only for image params, however other cases are not impacting us. Issue-ID: OOM-2405 Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com> Change-Id: I1ad1d33717488a82a2ce1eebe524ee41e1264d40
2020-05-14Updating kubectl for FrankurtTomáš Levora3-3/+3
Updating kubectl to v1.15.11 as required for Frankfurt Issue-ID: OOM-2404 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com> Change-Id: I4165271fea9b8024e68f9d395f257e858bd605d7
2020-05-14Fix lint errors in package-repository-check roleJan Benedikt9-4/+165
In package-repository-check was changed command module to service module due to lint failing. Failing was caused by errors: [301] Commands should not change things if nothing needs doing [303] service used in place of service module Added molecule test. Issue-ID: OOM-2395 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com> Change-Id: I6cfdfe920eabfb9a0c43cc9ba4ffcd81df1d6852
2020-05-04Merge "Adding docker images collector requirement"Bartek Grzybowski1-0/+1
2020-05-04Change name of clashing 'packages' variablesBartek Grzybowski2-2/+2
This fixes a regression from b6455ee: 'packages' variable is injected in 'firewall' role by package_facts module with a higher priority than variable of same name defined in 'docker' roles' defaults. Change-Id: I41e0f992ceaab871ae38fb1b8211fd71c042c9b2 Issue-ID: INT-1578 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-05-04Adding docker images collector requirementTomáš Levora1-0/+1
Adding pyyaml to requirements as it's required by docker-images-collector.sh Issue-ID: OOM-2393 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com> Change-Id: I52036a8f905fa50eecaddee062d73a38ad2ed9ca
2020-05-04Merge "Verify required packages were installed on target host"Bartek Grzybowski1-0/+11
2020-04-30Verify required packages were installed on target hostBartek Grzybowski1-0/+11
Change-Id: Ic074cbabfee614daf7862466a1bbafc9ff0fb6be Issue-ID: INT-1576 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-04-30Adding Ubuntu support in Ansible - application role install makeJan Benedikt1-0/+7
Helm using "make" package for building local helm repository. In Ubuntu distribution is this package missing so is necessary to install it. Issue-ID: OOM-1671 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com> Change-Id: I808dcb57396caf82a60d17f50515bae59b5d85ca
2020-04-30Merge "Adding Ubuntu support in Ansible - package-repository-check role"Bartek Grzybowski2-1/+34
2020-04-30Merge "Adding Ubuntu support in Ansible - helm role"Bartek Grzybowski3-0/+41
2020-04-30Adding Ubuntu support in Ansible - package-repository-check roleJan Benedikt2-1/+34
Extending ansible playbooks of ubuntu support. Creating new test with Ubuntu image for Molecule in package-repository-check role. Issue-ID: OOM-1671 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com> Change-Id: I9dcdbab00169ccfc13a10c1d9b6ec9cf10572688