summaryrefslogtreecommitdiffstats
path: root/deployment
Commit message (Collapse)AuthorAgeFilesLines
* Fix pep8 errors in the files of the 'deployment' dirValerii Ponomarov2019-09-033-34/+35
| | | | Change-Id: I4b469969a041eaf4ccb6d95a59d6d2332c6c845c
* Fix playbook for generation of config fileValerii Ponomarov2019-07-191-1/+1
| | | | | | | | 'playbooks/generate-tests-config.yaml' playbook fails when cluster has 'glusterfs-registry' nodes. So, fix it by using proper filtering in shell commands. Change-Id: I884f57e646a513b1ceddc5345099fcd8379fce72
* [Deployment] Create ~/.ssh/config file if absentValerii Ponomarov2019-06-191-0/+1
| | | | | | | Ansible will use this file and fail if it is absent. So, create empty SSH config file if it is absent. Change-Id: I86f424c30229e72eaf2e6a50a194988d5d6ac528
* Add 'generate-tests-config.yaml' playbookValerii Ponomarov2019-05-241-0/+140
| | | | | | | | | | | | | | With this playbook it is now possible to generate config file for automated test cases. Example of it's usage: $ tox -e ocp3.11 -- ansible-playbook -i ocp-master-node-hostname-or-ip, \ playbooks/generate-tests-config.yaml \ -e output_filepath=foo-tests-config.yaml \ -e additional_devices=/dev/sdf Change-Id: I53df756deb7c1a01ea47db2a9328b567b5a1ebaf
* [Deployment] Fix compatibility check for image tag and RPM repo versionsValerii Ponomarov2019-05-242-2/+2
| | | | Change-Id: I19d737f8cfef569897ec6ece1389c1849538e0df
* [Deployment] Set proper Heketi dc and svc names in config file for testsValerii Ponomarov2019-05-202-14/+32
| | | | | | | Before, it was hardcoded. So, fix it by reading those values dynamically. Change-Id: Ibab2de8b4f349db4ad6f4bb1afeddc79af444c53
* [Deployment] Fix OCP3.6 and 3.7 installationValerii Ponomarov2019-04-0412-36/+209
| | | | | | | | | | | | | | | | | | | By doing following changes: - Fix the deployment logic using separate set of vars for installation of OCP3.6 and 3.7, which were broken by the too new config options, which started being supported only since OCP3.9. - Add waiters for oc services after nodes reboot. - Do not update docker for OCP3.6 and 3.7 versions. Because, docker version should be fixed for it. - Add all cluster nodes to the 'OSEv3' Ansible host group, because it is required in some places. - Do not specify 'openshift_use_crio' option for all OCP versions except OCP3.11 for 2 reasons: -- It is supported only for this OCP version -- Other versions try to run some CRI-O plays just having this option defined. In other words - avoid bugs. Change-Id: I7ab3db30a828f0e965c907282a54b2ae9aead00a
* [Deployment] Add playbook for gathering logs from cluster nodesValerii Ponomarov2019-03-183-0/+890
| | | | | | | | | | | | | | | | | | For case when it is needed to provide info for bugreport or debug in general. It can be run anytime, separately from the deployment logic. Example command for running this new playbook: $ tox -e ocp3.11 -- ansible-playbook -i 127.0.0.1, \ playbooks/gather_logs.yaml \ -e config_filepath=/path/to/the/cns-automation-config.yaml \ -e output_artifacts_dir=../cluster_logs_ocp310_ocs311/ NOTE: 'tox -e ocp3.11' can be omitted only in case you enable 'yedit' (yaml edit) module by other means. Change-Id: Icb6bf442c07d8d949c930747e8131231a2ff112c
* [Deployment] Add CRI-O supportValerii Ponomarov2019-03-1812-25/+379
| | | | | | | | | | To enable or disable CRI-O just define following option: openshift_use_crio = true/false In the "ocp-on-vmware.ini" config file. Change-Id: Ibd3843d8aa13bfacb0d927142786dc5599e65315
* [Deployment] Increase timeout for waiting rebooted nodes to come upValerii Ponomarov2019-03-141-1/+1
| | | | | | | | When VMWare hypervisor is under heavy load, node boot up may be slower than 3 minutes. So, increase timeout from 3 to the 6 minutes. Change-Id: I27f0166d6c4221f7a647d55df704f429bf9d6dcc
* [Deployment] Fix vmware resource pool and folder module utilsValerii Ponomarov2019-03-043-19/+32
| | | | | | | | | | | | | | Following modules: - deployment/playbooks/library/vmware_folder.py - deployment/playbooks/library/vmware_resource_pool.py Were broken by '2035d7e6' commit with pep8 fixes. It was broken due to the change of the import module logic which led to the absence of required modules imports. So, fix it by using 'expected' import approach - importing functions directly, not modules. Change-Id: Ib1f9db410a8aa0171fea0e7017e29148167baf65
* [Deployment] Fix CRS deployment for non-root usersValerii Ponomarov2019-02-221-1/+4
| | | | | | | User's home dir in CRS logic was hardcoded as "root". So, fix it by calculating home dir of the current user. Change-Id: Ib586fa605390126eb3a2efaf8c93856e52676aaf
* [Deployment] Add 1min sleep after yum update operationValerii Ponomarov2019-02-181-0/+3
| | | | | | To let system services start up in time. Change-Id: I4b4781119656c9fdc75017a28c80c20bdd0eae21
* Fix pep8 errors in the deployment py filesValerii Ponomarov2019-02-156-357/+361
| | | | Change-Id: I5f25b1dfce5d3298295939f59c3ff435ae7c6d8a
* [Deployment] Remove 'ignore_errors' flag from required stepsValerii Ponomarov2019-02-141-1/+0
| | | | | | | | For the moment, if subscription manager fails, we continue deployment, but it is mistake. We just spend redundant time before we try to install anything. Change-Id: Ib95c00a3c605b98f3cd6b7998d4b482533a5d491
* [Deployment] Fix int-str concatenation in add-node.py fileValerii Ponomarov2019-02-131-2/+2
| | | | Change-Id: I51056965a55f73b0cb4b7dac8f1d4234f2f66528
* Install correct heketi-client version on master nodesValerii Ponomarov2019-02-123-18/+67
| | | | | | | | | | Before, we were installing latest heketi-client version on master nodes. But, in case we install old OCS/CNS we may end up with false impression that we have new features, when it is not so. So, read heketi-client package version from Heketi POD and install exactly the same version on the master nodes. Change-Id: Ic4e9edd7f6ef614d28c061712473aaf9b9f652e2
* Add two missing deployment filesValerii Ponomarov2019-02-072-0/+204
| | | | | | These two files were missed due to improper .gitignore file data. Change-Id: I49f396c1c1d37fcbd4257bf35aaee75f41b099bc
* Add end-to-end OCP 'deployment' functionalityValerii Ponomarov2019-02-0774-0/+5659
Add end-to-end deployment tool of OpenShift and OpenShift Container Storage on top of VMWare. Added code is modified version of the 'reference-architecture/vmware-ansible' dir from the following repo: https://github.com/vponomaryov/openshift-ansible-contrib Read 'deployment/README.rst' file for more details about the deployment tool. Change-Id: Ic96f252ff786cc1ecf24d27f0ec47e324131e41b