Tomáš Levora [Thu, 9 May 2019 14:57:15 +0000 (14:57 +0000)]
Merge "Make simplified version of build_nexus_blob.sh"
Tomáš Levora [Tue, 23 Apr 2019 12:28:47 +0000 (14:28 +0200)]
Fix download scripts to handle empty lines
Fixing download and saving scripts to be able to ignore empty or 00D
ending lines in lists
Issue-ID: OOM-1818
Change-Id: I55ef1dfbea628f8c1d4b19745536e629a2dbe0c9
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Tomáš Levora [Tue, 12 Mar 2019 14:06:35 +0000 (15:06 +0100)]
Make simplified version of build_nexus_blob.sh
Removed requirement for configuration file with a lot of necessary
inputs from user
Removed dependency resolution for RHEL systems
Added interconnect with the whole offline-installer build process from
list generating to packaging
Removed creating of nexus_data tarball
Small improvements of the process
Issue-ID: OOM-1704
Change-Id: Idd34e1a6bf160ec40413db16138c849334d9ca44
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Michal Ptacek [Tue, 7 May 2019 13:10:00 +0000 (13:10 +0000)]
Merge "Add script to start review for offline installer in community Jenkins"
Michal Ptacek [Tue, 7 May 2019 08:01:16 +0000 (08:01 +0000)]
Merge "minor documentation updates"
Michal Ptacek [Tue, 7 May 2019 07:32:39 +0000 (07:32 +0000)]
Merge "Updating docker image list for 3.0.2"
Mateusz Pilat [Mon, 6 May 2019 15:12:36 +0000 (17:12 +0200)]
Add script to start review for offline installer in community Jenkins
script to detect what tests are supposed to be executed for a given change
Change-Id: I8e392e5d67bb56ab7653d4a5176a3b8df1dc72c9
Issue-ID: OOM-1801
Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com>
Michal Ptacek [Mon, 6 May 2019 07:40:26 +0000 (07:40 +0000)]
Merge "Fix for Molecule images build-all.sh"
Tomáš Levora [Mon, 29 Apr 2019 11:12:02 +0000 (13:12 +0200)]
Updating docker image list for 3.0.2
Updated docker image list based on Casablanca MR 3.0.2-ONAP
Issue-ID: OOM-1802
Change-Id: I748d5c2d69c0158b89beecb8d3a5ac49262196d4
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Michal Ptacek [Thu, 2 May 2019 15:09:26 +0000 (15:09 +0000)]
Merge "Make 'prepare-docker' install proper docker-ce version"
Mateusz Pilat [Tue, 30 Apr 2019 13:16:33 +0000 (15:16 +0200)]
Fix docker run in ansible/test/bin/molecule.sh.
-it in docker run does not work well with jenkins
Change-Id: Ic1bfedfb64e0a862aa9d49b5615048b9eccf9670
Issue-ID: OOM-1833
Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com>
Bartek Grzybowski [Mon, 29 Apr 2019 14:13:49 +0000 (16:13 +0200)]
Make 'prepare-docker' install proper docker-ce version
Docker-ce version should be aligned with Docker release
installed on target platform
(see build/creating_data/create-rhel-repo.sh)
This patch also optimizes package installation process
in Molecule tests.
Change-Id: I3f0cb7cd36a3f91027b2be43a925e54167d9c6d0
Issue-ID: OOM-1815
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Mateusz Pilat [Fri, 26 Apr 2019 14:15:29 +0000 (16:15 +0200)]
Fix for Molecule images build-all.sh
ansible/test/images/docker/build-all.sh works only if executed under folder where script is located.
Change-Id: Ic91656656788a48bdd12cb8003e875011a71cbe3
Issue-ID: OOM-1829
Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com>
Bartek Grzybowski [Fri, 26 Apr 2019 11:26:45 +0000 (13:26 +0200)]
Cleanup Rancher containers after Molecule converge
Rancher role test do remove rancher/agent and rancher/server
containers at 'cleanup' stage but Rancher Agent spawned
containers are left orphaned. This patch adds tasks to
remove them.
This patch also adds custom ansible module for listing
docker containers (as of ansible 2.7.10 no upstream module
provides that feature, even new docker_container_info info
module in ansible's devel branch doesn't have it)
Change-Id: I6325dc81063b55b70136280273f8f6138c7a0375
Issue-ID: OOM-1811
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
eronkeo [Wed, 24 Apr 2019 15:18:18 +0000 (15:18 +0000)]
minor documentation updates
Some minor documentation updates to address
invalid paths and some duplicate and missing references
in the nexus_build.conf file template.
Added 3.0.2-ONAP refference
Change-Id: I466b6ac740388d56f1b3fb7b9d8771412262a9b5
Issue-ID: OOM-1826
Signed-off-by: eronkeo <ronan.keogh@est.tech>
Michal Ptacek [Thu, 25 Apr 2019 08:34:02 +0000 (08:34 +0000)]
Merge "Replace VNC server docker image"
Michal Ptacek [Wed, 24 Apr 2019 14:26:50 +0000 (14:26 +0000)]
Merge "Adding docker image list for 3.0.2"
Michal Ptacek [Wed, 24 Apr 2019 14:20:09 +0000 (14:20 +0000)]
Merge changes from topic 'rancher_api'
* changes:
Add support for resetting the admin password
Add support for rancher authentication
Refactor rancher1_api module
Add support for rancher 1.6 API
Petr Ospalý [Mon, 8 Apr 2019 06:39:41 +0000 (08:39 +0200)]
Add support for resetting the admin password
The module rancher1_api can now reset an admin password of the default
admin account (account_id: '1a1') and keep local authentication enabled.
By default the authentication is not enabled, because the ansible
module rancher_k8s_environment.py is not idempotent and it would need to
be rewritten.
Change-Id: Ib432537651b91216c32438ec1233dba3602e3faf
Issue-ID: OOM-1734
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
Petr Ospalý [Mon, 8 Apr 2019 02:55:47 +0000 (04:55 +0200)]
Add support for rancher authentication
This commit adds a new mode to the rancher1_api module, which enables
the rancher local authentication (username/password).
There is an already predefined rancher admin user called 'admin' and
that is the account, which this mode modifies. Due to the complex
API and the fact that rancher 1.6 is soon to be obsoleted, this module
is going the simpler route and it is just editing this default admin
account instead of creating a completely arbitrary username/password
credentials. For that reason is using the 'account_id', which is unique
for all accounts and the default admin account of rancher has '1a1'.
As of now this module cannot handle changed password once the auth. is
enabled.
Change-Id: Iea8923c71bdb82267c966a00d62f0f43eb5adb76
Issue-ID: OOM-1734
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
Tomáš Levora [Tue, 23 Apr 2019 11:12:05 +0000 (13:12 +0200)]
Replace VNC server docker image
Replace VNC server docker image based on CentOS
(consol/centos-icewm-vnc:1.4.0) by the one based on
Ubuntu (consol/centos-icewm-vnc:1.4.0) - Ubuntu based image is smaller
and the VNC server does not work in the current CentOS based image.
Solves OOM-1819
Issue-ID: OOM-1821
Change-Id: I9e06ab8bfccb11ae8950717db5339062704a31f9
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Samuli Silvius [Fri, 19 Apr 2019 15:48:20 +0000 (15:48 +0000)]
Merge "Optimize test for 'resource-data' role"
Samuli Silvius [Fri, 19 Apr 2019 15:46:18 +0000 (15:46 +0000)]
Merge "Add fix for Molecule Docker"
Samuli Silvius [Fri, 19 Apr 2019 15:45:26 +0000 (15:45 +0000)]
Merge "Sanitize Molecule code for 'nfs' role"
Tomáš Levora [Wed, 17 Apr 2019 13:06:40 +0000 (15:06 +0200)]
Adding docker image list for 3.0.2
New docker image list based on Casablanca MR 3.0.2-ONAP
Issue-ID: OOM-1802
Change-Id: Ic521cae2003299e1431c71750de9c603f07f9675
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Bartek Grzybowski [Thu, 18 Apr 2019 13:26:49 +0000 (15:26 +0200)]
Optimize test for 'resource-data' role
Moved 'file' package installation from Molecule's
'prepare' stage to Dockerfile to shorten the test
invocation.
Change-Id: Icbb805c54a4fd42003d0cde037fa56208bd6008a
Issue-ID: OOM-1809
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Mateusz Pilat [Wed, 17 Apr 2019 10:19:10 +0000 (12:19 +0200)]
Add fix for Molecule Docker
Molecule Docker was not running when built by the root user
Issue-ID: OOM-1808
Change-Id: I27c3ecb6d5670ac1c447acba688b25e10d5a5a4d
Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com>
Tomáš Levora [Wed, 17 Apr 2019 12:59:58 +0000 (14:59 +0200)]
Reducing number of NPMs in list
Reducing list of NPMs needed for offline deployment based on download
stats from Nexus repository from running environment
Issue-ID: OOM-1709
Change-Id: I402c4802210a63ed90ab97f7bcbfe79852b7e92e
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Bartek Grzybowski [Wed, 17 Apr 2019 11:32:37 +0000 (13:32 +0200)]
Sanitize Molecule code for 'nfs' role
Cleaning up of nfs mounts should only happen
on clients, not on server itself.
Explicit declaration of 'cleanup' stage playbook
not needed as it's in the default location.
Change-Id: I54e00220048f01160c15fc9631ae62586596114c
Issue-ID: OOM-1809
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Petr Ospalý [Fri, 5 Apr 2019 07:57:03 +0000 (09:57 +0200)]
Refactor rancher1_api module
This rewrite enables to add easier more features supported by the rancher
API. The initial idea of a simple get and set through the JSON REST API
is not feasible. To achieve something with the API one may have to setup
more options on different URLs and in a particular order. For this reason
the module comes with the mechanism of "modes", which is a wrapper around
some feature in the rancher and which can require multiple steps to do.
Rancher1_api module could also support "raw" mode where the user will not
be limited by a few implemented modes in the module, but he can craft all
requests by hand - but due to the fact that such thing can be done easily
with just curl command and ansible shell module, there is no benefit in
doing so. Especially when rancher 1.6 is already obsoleted within the ONAP.
The useful value of this module is to give the user a simple means to set
something in the rancher and hide all the boilerplate from him via a mode.
- Original logic was rewritten to utilize the "mode" mechanism.
- New module structure is also easier to test outside of ansible.
Issue-ID: OOM-1681
Change-Id: I0e7932199df9ec1acd80af545060199867ad17fa
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
Petr Ospalý [Tue, 26 Mar 2019 21:13:00 +0000 (22:13 +0100)]
Add support for rancher 1.6 API
- New ansible module to handle rancher API
- Setting up of the cattle db and log related options
to achieve lower space usage.
As of this moment it does what was intended:
- it setups new values for db and log related options
- it can be used for any other setting options
Change-Id: I25048469df0cb035cc6eac39740210cdfa175ada
Issue-ID: OOM-1681
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
Samuli Silvius [Wed, 17 Apr 2019 08:18:55 +0000 (08:18 +0000)]
Merge "Molecule tests for chrony role"
Michal Zegan [Tue, 9 Apr 2019 13:21:52 +0000 (15:21 +0200)]
Improve nfs role
This commit improves the nfs role by
using cluster_ip variable instead of ansible_host for getting
nfs client/server address, and
using /etc/exports.d instead of /etc/exports for
exporting nfs filesystem.
Also, this commit fixes other
issues in molecule found along the way.
Change-Id: Ibd4ea5d4fd937116e2dc9e1b6f85c3e019f62e17
Issue-ID: OOM-1770
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
Samuli Silvius [Thu, 4 Apr 2019 05:22:08 +0000 (08:22 +0300)]
Molecule tests for rancher role
Issue-ID: OOM-1775
Change-Id: I6ea11db932cd77e03909e4c72acc4b92a544eb4b
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Bartek Grzybowski [Tue, 2 Apr 2019 13:39:25 +0000 (15:39 +0200)]
Molecule tests for chrony role
Change-Id: I2cfee4ef44b1aa0ddff0b5d93712390988846c90
Issue-ID: OOM-1710
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Samuli Silvius [Tue, 16 Apr 2019 12:41:26 +0000 (15:41 +0300)]
Molecule test run wrappers against CI
Add ci-molecule.sh script to work as an interface
towards CI pipe for running Molecule tests.
Issue-ID: OOM-1749
Change-Id: Ib6e74d9b03b569a172a606f4db41b707602bf279
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Bartek Grzybowski [Thu, 11 Apr 2019 14:24:36 +0000 (16:24 +0200)]
Fix for running Molecule on Centos host
On Centos7.6 /dev/loop* device nodes are
created dynamically upon alocation (by default
there is no /dev/loop<N> device nodes) - this
has effect of failing to allocate those in
Docker container, even when run in privileged
mode.
Change-Id: If2c852de3a74ea7fe1df9f5c863f184b9bc13acb
Issue-ID: OOM-1774
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Samuli Silvius [Fri, 29 Mar 2019 11:20:28 +0000 (13:20 +0200)]
Molecule container for running Molecule
Add own Dockerfile and build script for creating
customized molecule runner image from Molecule image
provided by https://quay.io/repository/ansible/molecule.
Customization enables running of molecule container with
current host's user to avoid root owned files bloating
to developer's machine.
Add wrapper script molecule.sh to utilize custom image
and suitable for testing offline-installer roles.
Issue-ID: OOM-1768
Change-Id: I14ed75decb8fa637c044675543de56f1c0796271
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Samuli Silvius [Tue, 26 Mar 2019 08:24:39 +0000 (10:24 +0200)]
Molecule tests for certificates role
Issue-ID: OOM-1762
Change-Id: Ic13d7ec775a52ad95fc0388e8b84ea8ab7367666
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Samuli Silvius [Mon, 25 Mar 2019 16:46:24 +0000 (18:46 +0200)]
Molecule tests for docker role
Issue-ID: OOM-1759
Change-Id: I9e1ee7f248147b3f7229625c7a20fa84e8e67aac
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Michal Ptacek [Tue, 16 Apr 2019 10:52:59 +0000 (10:52 +0000)]
Merge "Molecule tests for resource-data role"
Michal Ptacek [Tue, 16 Apr 2019 10:49:57 +0000 (10:49 +0000)]
Merge "Molecule tests for firewall role"
Michal Ptacek [Tue, 16 Apr 2019 10:46:49 +0000 (10:46 +0000)]
Merge "Molecule role tests for setup role"
Michal Ptacek [Tue, 16 Apr 2019 10:45:35 +0000 (10:45 +0000)]
Merge "Molecule tests for package-repository role"
Tomáš Levora [Tue, 16 Apr 2019 06:42:09 +0000 (06:42 +0000)]
Merge "Add monitoring script for deployment progress"
Samuli Silvius [Wed, 20 Mar 2019 14:14:55 +0000 (16:14 +0200)]
Molecule role tests for setup role
Issue-ID: OOM-1742
Change-Id: I3087952f3d4e5de20af83e714c0d5444999a5ee2
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Samuli Silvius [Sun, 24 Mar 2019 11:36:08 +0000 (13:36 +0200)]
Molecule tests for firewall role
Issue-ID: OOM-1757
Change-Id: I48639bd0fb67383a58f736aa1c12c38e3ddc9ab0
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Samuli Silvius [Fri, 22 Mar 2019 13:37:39 +0000 (15:37 +0200)]
Molecule tests for package-repository role
Issue-ID: OOM-1755
Change-Id: Iac20072200f24a3102c9ed2edf5c5aa8054dd9c2
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Samuli Silvius [Fri, 22 Mar 2019 07:33:05 +0000 (09:33 +0200)]
Molecule tests for resource-data role
Initial molecule tests. Tests now ssh transfer but
test files fully supports also testing nfs transfer.
Creating nfs transfer as separate scenario later when
find out better ways to share common code.
Issue-ID: OOM-1754
Change-Id: Ia728ecfed4378c01f7e305d5a4446b0172fe42d9
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Milan Verespej [Wed, 20 Mar 2019 12:51:40 +0000 (13:51 +0100)]
Add monitoring script for deployment progress
Issue-ID: OOM-1724
Change-Id: Ie634a441641abd3afd4093661c5d4f57245946ee
Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
Samuli Silvius [Mon, 15 Apr 2019 12:38:57 +0000 (12:38 +0000)]
Merge "Dockerfile and build script for Ubuntu"
Samuli Silvius [Tue, 9 Apr 2019 18:33:20 +0000 (18:33 +0000)]
Merge "Update Testing Guide"
Samuli Silvius [Tue, 9 Apr 2019 14:09:28 +0000 (14:09 +0000)]
Merge "Improve dockerfile for Centos7"
Michal Ptacek [Tue, 9 Apr 2019 14:05:02 +0000 (14:05 +0000)]
Merge "Fix patching registry in NPM"
Michal Ptacek [Tue, 9 Apr 2019 14:02:02 +0000 (14:02 +0000)]
Merge "Fixing minor inaccuracies in BuildGuide"
Bartek Grzybowski [Tue, 9 Apr 2019 11:22:43 +0000 (13:22 +0200)]
Update Testing Guide
Covers aspects related to multi scenario testing.
Clarifies build scripts and pre-build images
usage scenarios.
Change-Id: Ib30a80a8c695387b51c9014d046cabff33229244
Issue-ID: OOM-1710
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Bartek Grzybowski [Tue, 9 Apr 2019 08:26:20 +0000 (10:26 +0200)]
Update image name for Molecule
Sanitizing image name for Molecule testing with
new updated naming pattern.
Change-Id: I1565242f0ddd88b0df758ebb3519f2e059f22c02
Issue-ID: OOM-1774
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Bartek Grzybowski [Tue, 9 Apr 2019 08:21:16 +0000 (10:21 +0200)]
Improve dockerfile for Centos7
All packages are upgraded and '/run' volume is
being created.
Change-Id: I9a7056cf4615932b322c1c5b073ab60787ac54e0
Issue-ID: OOM-1774
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Michal Ptacek [Fri, 5 Apr 2019 06:39:31 +0000 (06:39 +0000)]
Fixing minor inaccuracies in BuildGuide
Repos are configured differently on RHEL/Centos platforms
Issue-ID: OOM-1761
Change-Id: Ic91b7c91f0c0fb47170709d6628f210b65a56425
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
Tomáš Levora [Tue, 9 Apr 2019 07:27:06 +0000 (09:27 +0200)]
Fix patching registry in NPM
Fix URL in patching of registry in NPM package tsscmp-1.0.5.tgz
Issue-ID: OOM-1787
Change-Id: I937b851edf0b09a1f43b309310ce21bf66a09b8b
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Tomáš Levora [Fri, 5 Apr 2019 09:25:01 +0000 (11:25 +0200)]
Changing version control for rancher
Changing the way of version control for rancher in accordance with
patchset #83634
Issue-ID: OOM-1767
Change-Id: I67f08dcf47f469c35da9a62ff435e187fae07724
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Michal Ptacek [Fri, 5 Apr 2019 13:03:08 +0000 (13:03 +0000)]
Merge "Adding versions for infra related docker images"
Tomáš Levora [Fri, 5 Apr 2019 11:48:35 +0000 (11:48 +0000)]
Merge "Simplify Centos Dockerfile for Molecule"
Tomáš Levora [Thu, 28 Mar 2019 16:45:55 +0000 (17:45 +0100)]
Adding versions for infra related docker images
1. latest tag replaced by version number for vnc server
2. added specific version for own_nginx image
3. version control improved in ansible roles accordingly
Solves OOM-1766
Issue-ID: OOM-1767
Change-Id: I147c56b46a419188099d8ed3e78fed68810893e2
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Michal Ptacek [Fri, 5 Apr 2019 11:34:33 +0000 (11:34 +0000)]
Merge "Our bare repos need to have casablanca branch"
Michal Ptacek [Wed, 3 Apr 2019 13:55:29 +0000 (13:55 +0000)]
Our bare repos need to have casablanca branch
This is required to align with OOM charts, otherwise
some components like DMAAP might be not initialized
properly. Furthmore removing duplicated files, most
of our data_lists are same for Casablanca MR and
Casablanca base releases.
Change-Id: I376410c7915d8f2682287c31392e2f3796adc990
Issue-ID: OOM-1771
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
Bartek Grzybowski [Fri, 5 Apr 2019 08:10:12 +0000 (10:10 +0200)]
Simplify Centos Dockerfile for Molecule
Base the Centos image for molecule on official
CentOS systemd docker container.
Align the tagging policy with Centos images
on docker hub.
Change-Id: Ia2743ab78faed858dc5a7f3611cffb779b23d463
Issue-ID: OOM-1774
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Michal Ptacek [Fri, 5 Apr 2019 10:26:22 +0000 (10:26 +0000)]
Merge changes I2e1aef32,Ib93e9d2a
* changes:
Molecule test for nfs role
Fix nfs role issues based on molecule testing
Petr Ospalý [Fri, 5 Apr 2019 07:59:30 +0000 (09:59 +0200)]
Fix wrapper shell script in chroot
Change-Id: I4f88d47c633096a82ef113dca2d58e584c43d1ae
Issue-ID: OOM-1744
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
Michal Ptacek [Fri, 5 Apr 2019 07:48:51 +0000 (07:48 +0000)]
Merge "Building and Dockerfile for centos7"
Bartek Grzybowski [Wed, 3 Apr 2019 14:58:13 +0000 (16:58 +0200)]
Dockerfile and build script for Ubuntu
Dockerfile that allows building a Systemd
compliant Ubuntu image (for Ubuntu releases
that support it).
A build script for building the image.
Change-Id: I3456e40e7ac96e611e957b2912405f9030dc0f04
Issue-ID: OOM-1774
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Michal Ptacek [Thu, 4 Apr 2019 11:58:13 +0000 (11:58 +0000)]
Merge "Rewrite the run_chroot.sh script"
Samuli Silvius [Thu, 4 Apr 2019 10:55:12 +0000 (10:55 +0000)]
Merge "Document molecule testing"
Samuli Silvius [Tue, 19 Mar 2019 11:40:50 +0000 (13:40 +0200)]
Document molecule testing
Documentation for Molecule testing used in offline installer.
Issue-ID: OOM-1703
Change-Id: I00fb74dbfcd39ce22107c981df14cb42da73808a
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Michal Ptacek [Wed, 3 Apr 2019 14:12:14 +0000 (14:12 +0000)]
Merge "Improving docker restart handler"
Bartek Grzybowski [Wed, 13 Mar 2019 08:33:53 +0000 (09:33 +0100)]
Verify offline app repo is working
A patch for failing fast if configured offline
application repository is not working properly.
Just adding repo to repolist doesn't guarantee
it's really operational.
Change-Id: I65372b9b1ea5f5dcb797548b14e3ae1295668592
Issue-ID: OOM-1689
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Michal Ptacek [Wed, 3 Apr 2019 10:27:40 +0000 (10:27 +0000)]
Merge "Support time synchronization on hosts"
Samuli Silvius [Wed, 3 Apr 2019 10:15:33 +0000 (10:15 +0000)]
Merge "Improve kubectl role testability."
Samuli Silvius [Wed, 3 Apr 2019 10:15:25 +0000 (10:15 +0000)]
Merge "Improve rancher role testability"
Samuli Silvius [Fri, 22 Mar 2019 08:00:43 +0000 (10:00 +0200)]
Building and Dockerfile for centos7
Add initial Dockerfile for centos7 for molecule testing.
Issue-ID: OOM-1750
Change-Id: Ie4da3d80c713d1da56465c598774b370b4c01b36
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Michal Zegan [Tue, 2 Apr 2019 13:33:30 +0000 (15:33 +0200)]
Add helm override instructions to install guide
This commit adds instruction about using the new
helm chart overrides feature.
Change-Id: I6a5d973ee91562ae618d357fd3fdecc1cf4f03bf
Issue-ID: OOM-1752
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
Bartek Grzybowski [Tue, 26 Mar 2019 15:10:10 +0000 (16:10 +0100)]
Support time synchronization on hosts
This change introduces functionality to synchronize
infra/kube nodes' clock with external NTP authority.
Configuring external time source is optional, however
default behaviour will be to setup NTP time source on
infra-node and sync kube-nodes clock with it.
It's also possible to setup custom time zone.
Change-Id: I725ce9a306da1977628b6c03d5ff10fca77fb3b0
Issue-ID: OOM-1710
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Samuli Silvius [Mon, 1 Apr 2019 17:48:13 +0000 (17:48 +0000)]
Merge "Wrong filename does not fail transfer"
Samuli Silvius [Sat, 23 Mar 2019 12:09:41 +0000 (14:09 +0200)]
Molecule test for nfs role
Issue-ID: OOM-1756
Change-Id: I2e1aef3296689c284a4b530e6a2022302c7b86f7
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Samuli Silvius [Sat, 23 Mar 2019 11:54:34 +0000 (13:54 +0200)]
Fix nfs role issues based on molecule testing
Based on Molecule testing fix following issues on
nfs role.
- enable nfs services (previously only started)
- create handler for exportfs to deal idempotency
- add all kubernetes nodes to exports as it was dependent on ansible inventory order wheather correct hosts was on the list
- add inventory_hostname as default host incase ansible_host variable not defined.
Issue-ID: OOM-1756
Change-Id: Ib93e9d2a9cf49003d04dd5f890294eda1eb966ff
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Samuli Silvius [Mon, 1 Apr 2019 15:54:13 +0000 (15:54 +0000)]
Merge "nginx update for long server names"
Michal Zegan [Mon, 25 Mar 2019 12:13:00 +0000 (13:13 +0100)]
Allow passing any values to override.yaml
This change allows passing any values that will then
be stored to override.yaml.
These values are passed from the "overrides" key, that
may be set either as an extra variable or in inventory/group_vars.
The root certificate is merged with the overrides dictionary before
saving the file.
Change-Id: I772c342b3c9eafe1849d1678b810319afaaf75bf
Issue-ID: OOM-1752
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
Samuli Silvius [Tue, 19 Mar 2019 06:45:54 +0000 (08:45 +0200)]
Improve application role testability
Remove different phases for application role as
those are supposed to run after each other anyway
from playbook and pre/post steps can be disabled
by other means.
Enable Helm override file generation customization by
delegating it to separate role.
Separate Helm file transfer to own module.
NOTE: install.yml with all Helm commands (shell/command)
is not idempotent and should be fixed with separate
commit.
Issue-ID: OOM-1655
Change-Id: Ib29773c4d64a0529c71c3f93c2af7265ae94059f
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Michal Ptacek [Mon, 1 Apr 2019 11:15:38 +0000 (11:15 +0000)]
Merge "Fix idempotence for firewall role"
Michal Ptacek [Mon, 1 Apr 2019 10:26:20 +0000 (10:26 +0000)]
Merge "Update Maven artifact dependency list again"
Milan Verespej [Fri, 29 Mar 2019 11:50:40 +0000 (12:50 +0100)]
Fix helm install command not showing error
Issue-ID: OOM-1737
Change-Id: I240415793ea2a078ab6c6d9c0727852dc2d9ada3
Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
kaihlavi [Thu, 28 Mar 2019 16:14:08 +0000 (18:14 +0200)]
Update Maven artifact dependency list again
Updated additional Maven artifact dependencies for offline Nexus
Issue-ID: OOM-1706
Signed-off-by: kaihlavi <l.kaihlavirt@partner.samsung.com>
Change-Id: I3c744be33447fc5816bc547c0ae3cce6428dc57c
eronkeo [Thu, 28 Mar 2019 12:03:26 +0000 (12:03 +0000)]
nginx update for long server names
This issue addresses the following
error when starting nginx container:
nginx: [emerg] could not build the \
server_names_hash, you should increase \
server_names_hash_bucket_size: 64
Change-Id: I369075edd16801aca6b09c6727370060225c428c
Issue-ID: OOM-1765
Signed-off-by: eronkeo <ronan.keogh@est.tech>
Michal Ptacek [Wed, 27 Mar 2019 15:05:44 +0000 (15:05 +0000)]
Improving docker restart handler
There is a bug in docker which leads to not properly
shutdown service preventing subsequent startup.
https://github.com/moby/moby/issues/30348
This commit is preventing this problem to appear.
Change-Id: I29505610bd9954af01d73264e5414fdb2b9ac99d
Issue-ID: OOM-1735
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
Samuli Silvius [Tue, 26 Mar 2019 15:30:48 +0000 (17:30 +0200)]
Wrong filename does not fail transfer
User typo on resource package filename or dir does not cause install to fail
but just skips that resource package.
Change resource paths handling to skip resource only if
variable is not defined or empty, but if a value is given
resource must exist or transfer fails otherwise.
Issue-ID: OOM-1736
Change-Id: I765c5dc8eb5e58875f032e056f9a8360aee702c0
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Petr Ospalý [Mon, 25 Mar 2019 12:25:45 +0000 (13:25 +0100)]
Add python-jsonpointer as a new dependency
Our custom ansible module requires python-jsonpointer module
to deal with jsons.
Change-Id: Idd7bfcf8fcf75e4397fba51d8219b73c57df5f0e
Issue-ID: OOM-1758
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
Michal Ptacek [Tue, 26 Mar 2019 14:29:55 +0000 (14:29 +0000)]
Merge "Sanitize input arguments validation"
Michal Zegan [Fri, 22 Mar 2019 13:16:04 +0000 (14:16 +0100)]
Rewrite the run_chroot.sh script
This change heavily changes run_chroot.sh script.
Major change is that most of the real script logic is now run in a namespace,
so that all mounts are done in namespace.
Also, all the cleanup code and some checks are removed, also the
shell wrapper is removed.
This change is for simplifying the run_chroot.sh. It will function the same as before
from the user's point of view, except that now the script does not have to explicitly
unmount filesystems that it mounted before, so
no cleanup code isneeded. Also,
all processes run from inside a chroot should be killed immediately
when the chroot command finishes.
Change-Id: I45a3dc7c6583cb9693746cc04f42b7af325724dd
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
Issue-ID: OOM-1744
Michal Ptacek [Tue, 26 Mar 2019 09:07:18 +0000 (09:07 +0000)]
Merge "Fixing some yaml-lint warnings"
Michal Ptacek [Thu, 21 Mar 2019 12:32:20 +0000 (12:32 +0000)]
Fixing some yaml-lint warnings
Scope of this commit is to fix warnings reported by
offline-installer-master-yaml-lint jenkins job
Change-Id: Id858a37ce35d53ad1ffd5e5797607faae484ed15
Issue-ID: OOM-1753
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>