oom/offline-installer.git
4 years agoMerge "Updating docker images list in El Alto" into elalto elalto
Tomáš Levora [Thu, 21 May 2020 10:54:13 +0000 (10:54 +0000)]
Merge "Updating docker images list in El Alto" into elalto

4 years agoUpdating docker images list in El Alto 49/105649/2
Tomáš Levora [Thu, 9 Apr 2020 11:55:48 +0000 (13:55 +0200)]
Updating docker images list in El Alto

In accordance with El Alto OOM updating docker images list
in offline-installer

Issue-ID: OOM-2361

Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Change-Id: Ie07e07e8e6aa20ebf586b3de499476312b3533f1

4 years agoAdding docker images collector requirement 06/106906/1
Tomáš Levora [Mon, 4 May 2020 11:07:07 +0000 (13:07 +0200)]
Adding docker images collector requirement

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

4 years agoRemove python 2 dependency 31/105631/1
Tomáš Levora [Thu, 9 Apr 2020 08:14:57 +0000 (10:14 +0200)]
Remove python 2 dependency

Removing python 2 dependency from docker-image-collector.sh

Issue-ID: OOM-2359

Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Change-Id: I6aa4d27cdb10e93981e3dacfb16b2d02a0bf0762

4 years agoUpgrading package.py requirements 40/104640/1
Tomáš Levora [Tue, 31 Mar 2020 08:22:54 +0000 (10:22 +0200)]
Upgrading package.py requirements

Upgrading gitpython from 2.11.1 to 3.1.0 because of incompatiblity

with actual version of gitdb2 (4.0.2)

Issue-ID: OOM-2344

Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Change-Id: Ibde20ee7f842858cb26f3ed4b45cb0339093a59f

4 years agoFix packaging script - Memory error in md5 calculations 63/101763/1
Mateusz Pilat [Fri, 14 Feb 2020 17:37:35 +0000 (18:37 +0100)]
Fix packaging script - Memory error in md5 calculations

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
(cherry picked from commit f1d9816984b695fc4ae6a011c23c5f274385070e)

4 years agoAdding checksum of packages into package.info 33/101733/1
Ondřej Šmalec [Tue, 4 Feb 2020 14:30:48 +0000 (15:30 +0100)]
Adding checksum of packages into package.info

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
(cherry picked from commit d8b17a1fe40bdc1fb1df0a70be6e92cdbc5ce09c)

4 years agoOption for additional metadata in package.py 08/100908/1
Ondřej Šmalec [Wed, 22 Jan 2020 06:38:29 +0000 (07:38 +0100)]
Option for additional metadata in package.py

Issue-ID: OOM-2269
Signed-off-by: Ondřej Šmalec <o.smalec@partner.samsung.com>
Change-Id: I6b23512746171fdeaac3883fb61695db2c48c3ab
(cherry picked from commit 6e5944123a88f62c5adda619cf258700146e85d1)

4 years agoHelp script to remove runtime images from datalist 05/100805/1
Ondřej Šmalec [Thu, 23 Jan 2020 11:56:18 +0000 (12:56 +0100)]
Help script to remove runtime images from datalist

Issue-ID: OOM-2276
Signed-off-by: Ondřej Šmalec <o.smalec@partner.samsung.com>
Change-Id: I8f848dbb73747f0744a16fb5831627c20d9f8303
(cherry picked from commit 13aa60d4c34994c12b24c140547ed300e77fd494)

4 years agoArchive helm_charts with command module 21/99321/1
Ondřej Šmalec [Wed, 4 Dec 2019 14:36:31 +0000 (15:36 +0100)]
Archive helm_charts with command module

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
(cherry picked from commit d8c6d9acfd8b74dc3f3187d069b393405e5c1b18)

4 years agodocker-images-collector.sh to use override values.yaml 20/98920/1
Samuli Silvius [Mon, 25 Nov 2019 06:45:12 +0000 (08:45 +0200)]
docker-images-collector.sh to use override values.yaml

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

4 years agoDownloading docker images does not work on Windows 17/98917/1
Samuli Silvius [Mon, 25 Nov 2019 07:13:41 +0000 (09:13 +0200)]
Downloading docker images does not work on Windows

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

4 years agoFix helm behavior 62/98462/1
Petr Ospalý [Fri, 15 Nov 2019 17:00:18 +0000 (18:00 +0100)]
Fix helm behavior

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>
4 years agoImprove cleanup (--delete-all) usage 61/98461/1
Petr Ospalý [Fri, 15 Nov 2019 14:39:42 +0000 (15:39 +0100)]
Improve cleanup (--delete-all) usage

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>
4 years agoRemove deprecated flag 60/98460/1
Petr Ospalý [Wed, 30 Oct 2019 13:01:00 +0000 (14:01 +0100)]
Remove deprecated flag

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>
4 years agoMerge "Update documentation"
Tomáš Levora [Fri, 15 Nov 2019 12:15:15 +0000 (12:15 +0000)]
Merge "Update documentation"

4 years agoUpdate documentation 04/98404/2
Denis Kasanic [Thu, 14 Nov 2019 11:35:46 +0000 (12:35 +0100)]
Update documentation

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

4 years agoMerge "Updating docker images for El Alto"
Bartek Grzybowski [Fri, 15 Nov 2019 11:01:59 +0000 (11:01 +0000)]
Merge "Updating docker images for El Alto"

4 years agoMerge "Fix relative path in package.py"
Bartek Grzybowski [Fri, 15 Nov 2019 10:21:36 +0000 (10:21 +0000)]
Merge "Fix relative path in package.py"

4 years agoMerge "Chaging name of rhel resource directory to rpm"
Bartek Grzybowski [Fri, 15 Nov 2019 09:54:23 +0000 (09:54 +0000)]
Merge "Chaging name of rhel resource directory to rpm"

4 years agoMerge "Adding relative path support"
Bartek Grzybowski [Fri, 15 Nov 2019 09:53:35 +0000 (09:53 +0000)]
Merge "Adding relative path support"

4 years agoUpdating docker images for El Alto 46/97546/3
Tomáš Levora [Thu, 24 Oct 2019 13:16:10 +0000 (15:16 +0200)]
Updating docker images for El Alto

Issue-ID: OOM-2147

Change-Id: Ia80d034f562879dc3820d56ebe18d0046bd42b68
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
4 years agoFix relative path in package.py 01/98401/1
Denis Kasanic [Thu, 14 Nov 2019 09:43:56 +0000 (10:43 +0100)]
Fix relative path in package.py

Issue-ID: OOM-1994

Signed-off-by: Denis Kasanic <d.kasanic@partner.samsung.com>
Change-Id: Ie8bbe23c90a4c2d1fd60d3fad36fcd8f741e6f63

4 years agoRevert "Fix packaging offline-installer" 07/98307/1
Tomáš Levora [Tue, 12 Nov 2019 14:28:27 +0000 (14:28 +0000)]
Revert "Fix packaging offline-installer"

This reverts commit 92477974b68c7638a43ffc869e3ea9fb854b3534.

Reason for revert: Not solved handling of application_configuration.yml in package.py

Change-Id: I814c01dc1f7334a961e991c42fd485d9af4675a1
Signed-off-by: Tomas Levora <t.levora@partner.samsung.com>
Issue-ID: OOM-2201

4 years agoFix packaging offline-installer 43/98243/1
Denis Kasanic [Mon, 11 Nov 2019 14:47:04 +0000 (15:47 +0100)]
Fix packaging offline-installer

Fix typos in Build and Install documentation
Fix using relative paths in args for package.py
Fix missing hosts.yml & application_configuration.yml in sw_package
Change default build-version of packaging to empty as used in docs
Give possibility to specify own inventory file to package in package.py

Issue-ID: OOM-1994
Issue-ID: OOM-2197
Issue-ID: OOM-2158

Signed-off-by: Denis Kasanic <d.kasanic@partner.samsung.com>
Change-Id: I76598fb71a42ada1a71c9905ef2d32bc03d8f71c

4 years agoMerge "Update build documentation"
Samuli Silvius [Thu, 7 Nov 2019 18:33:57 +0000 (18:33 +0000)]
Merge "Update build documentation"

4 years agoUpdate build documentation 17/98017/5
Denis Kasanic [Tue, 5 Nov 2019 08:50:00 +0000 (09:50 +0100)]
Update build documentation

Add note for using root shell
Add example for populate local nexus
Use absolute path in package.py script
Remove Appendix
Add clone oom with all submodules
Fix example for pulling images in list

Signed-off-by: Denis Kasanic <d.kasanic@partner.samsung.com>
Change-Id: I8859ba42420d351ce12347cd63bf11f95a4b528d
Issue-ID: OOM-2158
Issue-ID: OOM-2160

4 years agoAdding relative path support 35/98035/1
Tomáš Levora [Wed, 6 Nov 2019 10:49:52 +0000 (11:49 +0100)]
Adding relative path support

Adding support for relative paths for all files and dirs provided as
parameters to build_nexus_blob.sh

Issue-ID: OOM-1927

Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Change-Id: I18481508d91b9d432889215605fce51c3c6d7c82

4 years agoChaging name of rhel resource directory to rpm 04/97604/4
Jan Benedikt [Fri, 25 Oct 2019 07:35:51 +0000 (03:35 -0400)]
Chaging name of rhel resource directory to rpm

Changing name of rhel resource directory in "resources/pkg" from rhel to rpm due to platfrom independent repository for all distributions supporting RPM packages.

Issue-ID: OOM-2150

Change-Id: Ie5425df8b8550c618440586b495907f86c4cc509
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
4 years agoUpdating instructions for vFWCL on ElAlto 88/97888/1
Michal Ptacek [Mon, 4 Nov 2019 06:45:08 +0000 (06:45 +0000)]
Updating instructions for vFWCL on ElAlto

Commit contains also some patch files due to POLICY-2191,
this is expected to be removed shortly after new drools image is
created.

Issue-ID: OOM-1996

Change-Id: Ia2db50fc6dc66ea0c7598d6859eb08007b59a0b9
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
4 years agoFixing helm repo add missing second argument bug 42/97742/2
Tomáš Levora [Wed, 30 Oct 2019 14:01:21 +0000 (15:01 +0100)]
Fixing helm repo add missing second argument bug

Fixing bug in creating new helm repository when the HELM_REPO was passed
as one argument instead of two

Issue-ID: OOM-2159

Change-Id: Id8aabad7d8e59aa4fb2eef01cfff28e3b7ab1259
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
4 years agoMerge "Update onap_rpm.list"
Michal Ptacek [Thu, 24 Oct 2019 11:42:05 +0000 (11:42 +0000)]
Merge "Update onap_rpm.list"

4 years agoUpdating documentation for El Alto 58/96858/5
Tomáš Levora [Thu, 10 Oct 2019 12:04:08 +0000 (14:04 +0200)]
Updating documentation for El Alto

Removing necessity of merging docker data lists manually as it's already
solved in the build_nexus_blob.sh script

Updating all links and references to El Alto

Issue-ID: OOM-2016

Change-Id: I1e343a8af1d26f7f6f80a8d76fa7997883b678e4
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
4 years agoUpdate onap_rpm.list 14/97414/1
Jan Benedikt [Tue, 22 Oct 2019 08:36:38 +0000 (04:36 -0400)]
Update onap_rpm.list

Some packages was obsollete and those packages was not in public CentOS repository.
This commit updates versions of soma packages in onap_rpm.list.

Issue-ID: OOM-2133

Change-Id: I9b31fee243a22ced86b21fae3d78ed9c4cb6e208
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
4 years agoMerge "Fixing wrong dependency directory in create_repo"
Petr Ospalý [Thu, 17 Oct 2019 14:41:56 +0000 (14:41 +0000)]
Merge "Fixing wrong dependency directory in create_repo"

4 years agoFixing wrong dependency directory in create_repo 13/97113/5
Jan Benedikt [Tue, 15 Oct 2019 10:07:46 +0000 (06:07 -0400)]
Fixing wrong dependency directory in create_repo

Improving logic of create_repo.sh script.
Changed from one common path to two different paths.
One path for cloned offline-installer directory and second for resources directory.

Issue-ID: OOM-2136

Change-Id: I627db02594c25df172c270ea015f167ea7050ca0
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
4 years agoUpdate rke, kubectl and helm 55/96555/7
Tomáš Levora [Thu, 3 Oct 2019 11:31:54 +0000 (13:31 +0200)]
Update rke, kubectl and helm

This commit updates rke (implementing K8S 1.15.4), kubectl binary and
helm binary with tiller image:

rke             0.3.0
kubernetes      1.15.4
kubectl         1.15.4
helm            2.14.2
dashboard       2.0.0-beta4

Kubernetes dashboard is also updated to be compliant with the 1.15 K8S.

Note 1:
There is a new datalist to split rke only images from other K8S related
images.

Note 2:
El Alto recommendation cannot be fullfilled to the letter, because rke
does not have any release supporting 1.15.2 version of kubernetes (only
experimental).

Issue-ID: OOM-2122

Change-Id: I02cf0955158eca622bcac40ceed42588dbdd3499
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
4 years agoMerge "Remove git repos list and simulation"
Petr Ospalý [Tue, 15 Oct 2019 13:23:55 +0000 (13:23 +0000)]
Merge "Remove git repos list and simulation"

4 years agoMerge "Remove NPMs and PYPIs from nexus blob"
Petr Ospalý [Tue, 15 Oct 2019 13:18:56 +0000 (13:18 +0000)]
Merge "Remove NPMs and PYPIs from nexus blob"

4 years agoMerge "Remove patching from offline-installer"
Petr Ospalý [Tue, 15 Oct 2019 13:18:01 +0000 (13:18 +0000)]
Merge "Remove patching from offline-installer"

4 years agoRemove git repos list and simulation 21/94921/3
Tomáš Levora [Wed, 4 Sep 2019 12:18:54 +0000 (14:18 +0200)]
Remove git repos list and simulation

As no external git repo should be required, removing the list and the
simulation

Issue-ID: OOM-2014

Change-Id: I7b8bbaab93db173bc3f1438592d288f6090d3641
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
4 years agoRemove NPMs and PYPIs from nexus blob 19/94919/5
Tomáš Levora [Wed, 4 Sep 2019 11:56:53 +0000 (13:56 +0200)]
Remove NPMs and PYPIs from nexus blob

Issue-ID: OOM-2015

Change-Id: Ie8bc1219291b52410ca7ec5a40ed3e70a11cd315
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
4 years agoMerge "Adding platform independent RPM download"
Michal Ptacek [Tue, 15 Oct 2019 07:48:06 +0000 (07:48 +0000)]
Merge "Adding platform independent RPM download"

4 years agoAdding platform independent RPM download 23/96723/5
Jan Benedikt [Tue, 8 Oct 2019 14:01:41 +0000 (10:01 -0400)]
Adding platform independent RPM download

Updated onap_rpm.list with new versions of packages.
Added scripts for creating centos container in docker with rpm repository.
RPM repo is now created in centos container during download phase, but will work on both centos/rhel platforms.
Issue-ID: OOM-2094

Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
Change-Id: I1b5bfe99da25e6815e85b449304b12fa6036c6b3

4 years agoRemove patching from offline-installer 46/91846/7
Tomáš Levora [Mon, 22 Jul 2019 10:40:08 +0000 (12:40 +0200)]
Remove patching from offline-installer

The patching of OOM should not be necessary to bypass offline state,
therefore this custom patching can be removed in offline-installer

Issue-ID: OOM-2014

Change-Id: I61b4cd48cfada613a7914ef5001bb64f7584815a
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
4 years agoMerge "Update INFO.yaml"
Michal Ptacek [Wed, 9 Oct 2019 07:47:25 +0000 (07:47 +0000)]
Merge "Update INFO.yaml"

4 years agoMerge "Fixing invalid hostname filled by ci-installer"
Michal Ptacek [Tue, 8 Oct 2019 12:02:34 +0000 (12:02 +0000)]
Merge "Fixing invalid hostname filled by ci-installer"

4 years agoFixing deprecation warning in ci-installer 13/96713/1
Tomáš Levora [Tue, 8 Oct 2019 09:08:20 +0000 (11:08 +0200)]
Fixing deprecation warning in ci-installer

Issue-ID: OOM-2128

Change-Id: I5b25007b0521596083f539be296291adc21bb1d8
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
4 years agoMerge "Add more info to generated blob data"
Bartek Grzybowski [Thu, 3 Oct 2019 09:12:35 +0000 (09:12 +0000)]
Merge "Add more info to generated blob data"

4 years agoFixing invalid hostname filled by ci-installer 02/96502/1
Tomáš Levora [Wed, 2 Oct 2019 11:53:26 +0000 (13:53 +0200)]
Fixing invalid hostname filled by ci-installer

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>
4 years agoUpdating pip packages to newer versions 53/96453/1
Tomáš Levora [Tue, 1 Oct 2019 08:00:20 +0000 (10:00 +0200)]
Updating pip packages to newer versions

As there are some issues with elder versions of some pip packages, this
list contains actual versions

Issue-ID: OOM-2118

Change-Id: I12503480fab8b53c6f0e21aa7fba8d2dd8a3d779
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
4 years agoUpdate INFO.yaml 76/96276/3
Bartek Grzybowski [Thu, 26 Sep 2019 11:02:41 +0000 (13:02 +0200)]
Update INFO.yaml

Change-Id: I0fd5683089aa1c08e07ac1ab282517e915169d4c
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Issue-ID: CIMAN-134

4 years agoMerge changes from topic "OOM-2112"
Michal Ptacek [Thu, 26 Sep 2019 08:08:49 +0000 (08:08 +0000)]
Merge changes from topic "OOM-2112"

* changes:
  Make cicdansible to set external ip
  Use external_ip to populate the node address
  Add external_ip variable

4 years agoAdd more info to generated blob data 92/91092/4
Tomáš Levora [Tue, 9 Jul 2019 13:33:48 +0000 (15:33 +0200)]
Add more info to generated blob data

Changed the way of storing nexus image information to nexus.ver in built
blob

Added information about OOM commit from which was the used onap docker
images list generated

Added information about oom/offline-installer commit used to build the
nexus blob

Example of the resulting nexus.ver in the nexus_data:

nexus_image=sonatype/nexus3:3.15.2
nexus_image_digest=sha256:5d3600fd5cf27c3a789e7d4a3ce9448086d73a4247a118d8cdcdbabb1aff4ff7
used_image_list0=custom_docker_images.list
used_image_list1=onap_docker_images.list
used_image_list2=rke_docker_images.list
oom_repo_commit=106dbc9a0224a3259f1eaf24d4bcc8571ed591ab
installer_repo_commit=574255919970ffaf506c08d3eeaea8d6d7656236

Issue-ID: OOM-1969

Change-Id: Id824f97079fbd578cdc7af1ad959e95a52fe1d2c
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
4 years agoMerge "Replace jinja for with filter expression in helm deploy call"
Michal Ptacek [Fri, 20 Sep 2019 06:46:36 +0000 (06:46 +0000)]
Merge "Replace jinja for with filter expression in helm deploy call"

4 years agoMake cicdansible to set external ip 52/95752/1
Michal Zegan [Mon, 16 Sep 2019 16:04:30 +0000 (18:04 +0200)]
Make cicdansible to set external ip

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>
4 years agoUse external_ip to populate the node address 51/95751/1
Michal Zegan [Mon, 16 Sep 2019 15:28:38 +0000 (17:28 +0200)]
Use external_ip to populate the node address

Use the new external_ip inventory variable to populate node address.
Note that cluster_ip is still used if external_ip has not been set.
This makes it possible to connect to kubernetes apiserver using the external_ip
without disabling ssl cert verification.
As an added bonus, the inventory hostname is now used as the node name to make
node names more predictable.

Change-Id: I3cc25c488d68f2f858a5eb3438d96285fa7517ca
Issue-ID: OOM-2112
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
4 years agoAdd external_ip variable 50/95750/1
Michal Zegan [Mon, 16 Sep 2019 15:23:04 +0000 (17:23 +0200)]
Add external_ip variable

Adds the external_ip variable that can be used to set ip different
from cluster_ip, like public/floating/elastic ip, that can be used to externally
communicate with kubernetes nodes. Mainly useful
for the control plane and communication with
api server.

Change-Id: Ie840bff4b8479081b7397a42935c9db53db1bf4f
Issue-ID: OOM-2112
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
4 years agoRemoving unused debian datalist 71/95471/1
Michal Ptacek [Wed, 11 Sep 2019 08:27:41 +0000 (08:27 +0000)]
Removing unused debian datalist

Formely used by appc-ansible-server in Casablanca

Change-Id: I8043f8338f84c09212386c7924770d6df27024ed
Issue-ID: OOM-2098
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
4 years agoAdd ability to put dockerdata-nfs on root disk 31/95131/1
Michal Zegan [Thu, 5 Sep 2019 16:48:18 +0000 (18:48 +0200)]
Add ability to put dockerdata-nfs on root disk

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>
4 years agoMake kubernetes nodes to be placed on different computes 30/95130/1
Michal Zegan [Thu, 5 Sep 2019 16:46:05 +0000 (18:46 +0200)]
Make kubernetes nodes to be placed on different computes

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>
4 years agoChange the way how volume map is constructed 29/95129/1
Michal Zegan [Thu, 5 Sep 2019 16:36:47 +0000 (18:36 +0200)]
Change the way how volume map is constructed

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>
4 years agoMerge changes from topic "OOM-2042"
Michal Ptacek [Wed, 4 Sep 2019 15:39:20 +0000 (15:39 +0000)]
Merge changes from topic "OOM-2042"

* 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

4 years agoMerge "Add configurable etcd storage feature"
Michal Zegan [Wed, 4 Sep 2019 10:56:07 +0000 (10:56 +0000)]
Merge "Add configurable etcd storage feature"

4 years agoMerge "Move help script to tools"
Michal Zegan [Wed, 4 Sep 2019 10:45:36 +0000 (10:45 +0000)]
Merge "Move help script to tools"

4 years agoMerge "package.py - Enable adding AUX images in to packages"
Michal Zegan [Wed, 4 Sep 2019 10:45:31 +0000 (10:45 +0000)]
Merge "package.py - Enable adding AUX images in to packages"

4 years agoMerge "Skip annoying message if config.json not exists"
Michal Zegan [Wed, 4 Sep 2019 10:45:25 +0000 (10:45 +0000)]
Merge "Skip annoying message if config.json not exists"

4 years agoMerge "Adding proper npm logout"
Michal Zegan [Wed, 4 Sep 2019 10:44:14 +0000 (10:44 +0000)]
Merge "Adding proper npm logout"

4 years agoChange the way of providing docker login password 00/94900/2
Tomáš Levora [Wed, 4 Sep 2019 08:36:30 +0000 (10:36 +0200)]
Change the way of providing docker login password

As --password is insecure way, changing to recommended way using
--password-stdin instead

Issue-ID: OOM-2087

Change-Id: Ibe1799e9de63476540288b84726260f712d12616
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
4 years agoAdd ansible configuration file 19/94119/2
Michal Zegan [Thu, 22 Aug 2019 13:01:07 +0000 (15:01 +0200)]
Add ansible configuration file

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>
4 years agoAdd cicdansible playbook 18/94118/2
Michal Zegan [Thu, 22 Aug 2019 12:58:40 +0000 (14:58 +0200)]
Add cicdansible playbook

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>
4 years agoAdd onap installation role 17/94117/2
Michal Zegan [Thu, 22 Aug 2019 12:53:46 +0000 (14:53 +0200)]
Add onap installation role

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>
4 years agoAdd onap instance configuration role 16/94116/2
Michal Zegan [Thu, 22 Aug 2019 12:50:22 +0000 (14:50 +0200)]
Add onap instance configuration role

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>
4 years agoAdd ansible role to deploy onap infrastructure on openstack 15/94115/2
Michal Zegan [Thu, 22 Aug 2019 12:47:58 +0000 (14:47 +0200)]
Add ansible role to deploy onap infrastructure on openstack

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>
4 years agoAdd floating ip fact retrieval module 14/94114/2
Michal Zegan [Thu, 22 Aug 2019 12:59:55 +0000 (14:59 +0200)]
Add floating ip fact retrieval module

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>
4 years agoAdd inventory for cicdansible playbook 13/94113/2
Michal Zegan [Thu, 22 Aug 2019 12:55:16 +0000 (14:55 +0200)]
Add inventory for cicdansible playbook

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>
4 years agoAdd heat template to deploy onap infrastructure 12/94112/2
Michal Zegan [Thu, 22 Aug 2019 12:43:11 +0000 (14:43 +0200)]
Add heat template to deploy onap infrastructure

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>
4 years agoAdding proper npm logout 93/94893/1
Tomáš Levora [Wed, 4 Sep 2019 08:05:55 +0000 (10:05 +0200)]
Adding proper npm logout

Adding npm logout to prevent authentification issues with newer versions
of npm at repeated execution

Issue-ID: OOM-2086

Change-Id: Icb7d70ef1b7c2037dd9e392693b2c51cf8c60f25
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
4 years agopackage.py - Enable adding AUX images in to packages 71/94571/3
Mateusz Pilat [Thu, 29 Aug 2019 11:28:56 +0000 (13:28 +0200)]
package.py - Enable adding AUX images in to packages

Make possible to add custom images in to aux package + add versioning to package info and file names. Issue-ID: OOM-2078

Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com>
Change-Id: Ibe141f386b2534aa59c6a3a31052e454b3a79e6b

4 years agoSkip annoying message if config.json not exists 47/94347/2
Tomáš Levora [Tue, 27 Aug 2019 12:16:07 +0000 (14:16 +0200)]
Skip annoying message if config.json not exists

Preventing messages showing in case of non existing config.json file

Issue-ID: OOM-2077

Change-Id: Ifb38495d93934b2015893d2c1fc62ec4d480171b
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
4 years agoAdd configurable etcd storage feature 35/94135/2
Petr Ospalý [Thu, 22 Aug 2019 15:33:07 +0000 (17:33 +0200)]
Add configurable etcd storage feature

Plus the option to have etcd on tmpfs (volatile storage) for little
bigger (maybe) speed (NOT FOR PRODUCTION DEPLOYMENT!).

Issue-ID: OOM-2058

Change-Id: I0bbfc4fbae7f6b46e2fae49656437cd6748efd49
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
4 years agoAdd the .gitignore for cicdansible 11/94111/1
Michal Zegan [Thu, 22 Aug 2019 13:02:06 +0000 (15:02 +0200)]
Add the .gitignore for cicdansible

Adds the .gitignore file for the ansible playbook.

Change-Id: If6e52f55e045ccccd164992108d1977c2a46a413
Issue-ID: OOM-2042
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
4 years agoMerge "Add helm redeploy tool"
Michal Ptacek [Thu, 22 Aug 2019 08:48:10 +0000 (08:48 +0000)]
Merge "Add helm redeploy tool"

4 years agoMove help script to tools 06/92706/6
Petr Ospalý [Mon, 5 Aug 2019 15:43:25 +0000 (17:43 +0200)]
Move help script to tools

Change-Id: I03d1c65d05df534aecff5c6d08cfbdf97705dbdf
Issue-ID: OOM-1984
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
4 years agoAdd helm redeploy tool 05/92705/6
Petr Ospalý [Mon, 5 Aug 2019 15:38:04 +0000 (17:38 +0200)]
Add helm redeploy tool

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>
4 years agoMerge "Removing deprecated packaging script"
Michal Ptacek [Fri, 16 Aug 2019 12:50:01 +0000 (12:50 +0000)]
Merge "Removing deprecated packaging script"

4 years agoAdd support for multiple lists in nexus blob build 51/91651/6
Tomáš Levora [Wed, 17 Jul 2019 11:42:47 +0000 (13:42 +0200)]
Add support for multiple lists in nexus blob build

Because of separated lists for onap, rke or rancher adding possibility
to pass multiple lists to build_nexus_blob.sh as parameters

Issue-ID: OOM-1890

Change-Id: Ib5aa8489b612dfd6099116695b4ccc3be49a82bd
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
4 years agoMerge "Rewrite build_nexus_blob script to use functions"
Michal Zegan [Wed, 17 Jul 2019 14:00:18 +0000 (14:00 +0000)]
Merge "Rewrite build_nexus_blob script to use functions"

4 years agoAdd .gitreview 73/91473/1
Cédric Ollivier [Mon, 15 Jul 2019 18:57:59 +0000 (20:57 +0200)]
Add .gitreview

It eases configuring remote via git-review -s

Issue-ID: DOC-505

Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: I2f82f8797669d1bf9e0bbefcbb345ce4e463a60a

4 years agoMerge "Remove kubectl install from prepare-rke"
Michal Ptacek [Mon, 15 Jul 2019 07:50:29 +0000 (07:50 +0000)]
Merge "Remove kubectl install from prepare-rke"

4 years agoMerge "Fix build guide/script regarding python versioning"
Michal Ptacek [Mon, 15 Jul 2019 06:00:43 +0000 (06:00 +0000)]
Merge "Fix build guide/script regarding python versioning"

4 years agoMerge "Update INFO.yaml file"
Michal Ptacek [Mon, 15 Jul 2019 05:49:28 +0000 (05:49 +0000)]
Merge "Update INFO.yaml file"

4 years agoRemove kubectl install from prepare-rke 31/89531/2
Michal Zegan [Wed, 5 Jun 2019 16:20:22 +0000 (18:20 +0200)]
Remove kubectl install from prepare-rke

This is needed because prepare-kubectl role can do just the same.
Also fixed rke tests to match.

Change-Id: I808df650a5f755e09c26d13db62ecfc1504a317c
Issue-ID: OOM-1907
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
4 years agoRemoving deprecated packaging script 14/91314/2
Tomáš Levora [Fri, 12 Jul 2019 06:09:37 +0000 (08:09 +0200)]
Removing deprecated packaging script

Removing packaging script written in BASH and its configuration as
it's function was replaced by new python script build/package.py

Issue-ID: OOM-1932

Change-Id: Id48c2ef69d64012c456661358106703eab7d85c3
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
4 years agoReplace jinja for with filter expression in helm deploy call 61/89261/6
Michal Zegan [Tue, 4 Jun 2019 14:27:40 +0000 (16:27 +0200)]
Replace jinja for with filter expression in helm deploy call

This replaces jinja for constructions used to add helm arguments
with jinja filter usage.

Change-Id: Ia47635466f4a9251d1f33a42080d3538fc52587d
Issue-ID: OOM-1911
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
4 years agoUpdate INFO.yaml file 30/82330/7
Jessica Wagantall [Fri, 15 Mar 2019 01:29:31 +0000 (18:29 -0700)]
Update INFO.yaml file

Update missing information blocks and
indentation to pass verify job.

Change-Id: I41c96af4109df516fea771d1b0681bc2bff156d6
Issue-ID: CIMAN-134
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
4 years agoRemoving deprecated OOM patching script 80/91280/1
Michal Ptacek [Thu, 11 Jul 2019 16:04:13 +0000 (16:04 +0000)]
Removing deprecated OOM patching script

Logic of that script was included into redesigned packaging.

Issue-ID: OOM-1932

Change-Id: I7fe6e69ae3abb52213d0ebd192e0df882aab49ed
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
4 years agoFix build guide/script regarding python versioning 24/91224/2
Bartek Grzybowski [Thu, 11 Jul 2019 06:31:56 +0000 (08:31 +0200)]
Fix build guide/script regarding python versioning

Specify minimal docker release in build/requirements.txt
and build/download/requirements.txt, not a fixed one.

Change interpreter for build/package.py as it's Python 3
compliant.

Change-Id: I4352aa957371ce85bdea021101ed2f5994f9eedb
Issue-ID: OOM-1979
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
4 years agoRewrite build_nexus_blob script to use functions 31/91231/1
Tomáš Levora [Thu, 11 Jul 2019 08:38:23 +0000 (10:38 +0200)]
Rewrite build_nexus_blob script to use functions

Rewrite build_nexus_blob.sh script to functions for better future
maintenance and better possibility to add new features

Issue-ID: OOM-1977

Change-Id: I697462efbbeddbe3d89aec47ae7fcfff9f4147b7
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
4 years agoMerge "Fix docker user settings backup"
Michal Ptacek [Wed, 10 Jul 2019 11:39:31 +0000 (11:39 +0000)]
Merge "Fix docker user settings backup"