summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add test for arbiter volume deletion using PVCManisha Saini2019-08-281-0/+69
| | | | | | Change-Id: I8e3aed5e26eff3e76246c03cbd13f0f84b6a29f6 Signed-off-by: Manisha Saini <msaini@redhat.com> Signed-off-by: vamahaja <vamahaja@redhat.com>
* Fix "openshift_storage_version" to get valid version for OCS 3.10 & 3.9vamahaja2019-08-281-4/+14
| | | | | Change-Id: Ia0325c4309837fe3f89eab3c066775f9fb1ab1de Signed-off-by: vamahaja <vamahaja@redhat.com>
* Fix error handling logic in the "vmware" cloud providerNitin Goyal2019-08-271-4/+4
| | | | | | | | Fix error handling logic in the "vmware" cloud provider module by adding "raise" statement in places where it is lost. Change-Id: I92e97da4109bc6ab7368b41d2a6886e9f2be31c1
* Remove extra '-' from create_secretNitin Goyal2019-08-202-2/+2
| | | | Change-Id: I2ebc1c2e7e7aefb5e0d70342a7ec243a12b0663b
* Fix test cases skipped due to closed bugsvamahaja2019-08-194-7/+136
| | | | | | | | Add fix to test cases which are skipped due to bugs - BZ-1644685, BZ-1652913, BZ-1634745, BZ-1635736, BZ-1636477, BZ-1641668 Change-Id: I03a7f7dddaba5d3e41770969352b2263c84cb920 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add OCS 3.9 version check for test cases which uses multipath validationvamahaja2019-08-142-0/+50
| | | | | Change-Id: I5bb2760ff284cdc83424388bfdfc79d5fd112f21 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add OCS version check for test casesvamahaja2019-08-143-0/+210
| | | | Change-Id: I4196cb1395a3720e03f62473d11e5f46d797c355
* Add TC restart app pod when target node is downNitin Goyal2019-08-137-0/+467
| | | | | | | | | | | New TC insures that app pod is restarted properly when one of the target node is down. This patch includes libs of vmware api These libraries can perform VM operations like power on and off via vmware client api's. Change-Id: I11ad4dc3318cb0583de5882d8067ed7e30ea9962
* Reuse more common functions in the GlusterStabilityTestSetupvamahaja2019-08-132-90/+32
| | | | | Change-Id: Ia4e0fb737b16ea7bdc8ffd5ae44cdd418471552a Signed-off-by: vamahaja <vamahaja@redhat.com>
* Move "node reboot" logic from test case to librarySri Vignesh2019-08-122-69/+70
| | | | | | | | | Separate node reboot functionality from single test case to re-use it at other places. Update test case accordingly. Change-Id: Ib9a7f15d29237e4f21aafc408c074e799e706740 Signed-off-by: Sri Vignesh <sselvan@redhat.com> Signed-off-by: vamahaja <vamahaja@redhat.com>
* Workaround BZ-1727360 in the "get_gluster_pod_names_by_pvc_name" funcvamahaja2019-08-075-67/+77
| | | | | | | | | | "get_gluster_pod_names_by_pvc_name" function depends on the ocp3.11 specific shell command, which fails on old OCP versions. So, fix it by getting info in compatible way. Also, update usages of this function with new return data structure. Change-Id: Ibb8559590a1288c032630b3292f631d28bc87263 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add TestCase to validate BHV optionskasturiNarra2019-07-231-0/+59
| | | | | | | | This test case validates bhv options like features.shard,shard.size,shd max threads, and performance related ones Change-Id: I991f13e1b744486281e98813f169630a666eeb59
* Fix test case for create and verify pvc with volname prefixcrombus2019-07-221-0/+8
| | | | | | Add steps to verify endpoints Change-Id: Ibf09e8f0e2cefb0d45755225c051f2a11fe43860
* Add TC create volume and validate in heketi topology infoArun Kumar2019-07-191-0/+74
| | | | | | | | Create 3 volumes using heketi-cli command, verify their presence in heketi topology info, delete 2 volumes and validate their deletions and presence of 3rd volume in heketi topology info Change-Id: I78298d2aec21ff8031ff01efd53f11ba31e269c9
* Add test case where BHV and BV are created and deletedkasturiNarra2019-07-192-0/+80
| | | | | Change-Id: I7ead23c46a472fee70d684c45f32f5e4efb0674f Signed-off-by: kasturiNarra <knarra@redhat.com>
* 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
* Add TC run IOs when tcmu-runner service is downNitin Goyal2019-07-192-5/+101
| | | | | | | | This test case verifies that when tcmu-runner is down we are able to run IOs on block volumes, and stoping tcmu-runner would effect gluster-blockd and gluster-block-target services. Change-Id: I0b4a23f7c2dce909f07a22893f83a6c1d0285091
* Fix logic for recreation of SSH connectionsValerii Ponomarov2019-07-161-9/+51
| | | | | | | | | | Before, in case we had some constant networking issue trying to connect to a host, we were falling into the endless loop of connection recreation. The error we got after it is the 'recursion limit exceeded'. It is unexpected. So, change this logic making it avoid recursion and do just one connection recreation attempt which is useful to fix broken connections. Change-Id: Id808edbad7e6d69ad58a75bfbae176fddb173d18
* Make Heketi commands run on a Heketi POD when main command failsValerii Ponomarov2019-07-1110-382/+173
| | | | | | | | It happens that heketi client located out of the Heketi POD may fail not reaching the server side. So, add back-up approach where we run Heketi commands on a Heketi POD when main commands fail. Change-Id: Ie6ae5be82082f34426f9288b02575e3abd4940f5
* Add TC run IOs when gluster-blockd service is downnigoyal2019-07-092-0/+75
| | | | | | | New TC verifies that it is possible to run IOs on block volumes when gluster-blockd service is down. Change-Id: Ia1de14d2990f833221f6725e9b0e48d77ef85c10
* Separate out gluster-block stability TCNitin Goyal2019-07-053-145/+166
| | | | | | | move gluster-block stability TC to new module named 'gluster_stability/test_gluster_block_stability.py'. Change-Id: Iac1f432e438a2815bdc2115ab19e0170e46930c1
* Reshufle TC modules to the correct componentNitin Goyal2019-07-044-0/+0
| | | | | | | Rename TC modules to appropriate name and move them to correct component. Change-Id: I87c9bb7822c17c955dd9c2d780ef08e4d4e0d7ee
* Add state arg in *_service_status_* libs in openshift-ops moduleNitin Goyal2019-07-023-10/+19
| | | | | | | | Before, these libraries could be used for 'active' state only. Make it accept one additional 'state' argument for possibility to use it for any state, not just one. Change-Id: I6d4fbd7584b308e3ad248213cb0ec3f4996f6437
* Add TC resize PVC with invalid sizeArun Kumar2019-07-012-17/+31
| | | | | | | | This test case checks if invalid size is passed, size of PVC does not change. Verify the size of PVC and I/O can be performed on the volume attached to PVC. Change-Id: Ia833c76a6d9990ebbac78759c54dc7d28f530ec6
* Add TC create SC with invalid clusterid for block and file volumesArun Kumar2019-06-261-0/+2
| | | | | | | Create storage class one for file and one for block volumes with invalid clusterid. Create PVC from those SC's and it should not go in bound state Change-Id: I73848a4e213cc34e374eddbe0eb27d3e35e27d71
* Restructure "initiator_side_failures" class instance methodNitin Goyal2019-06-241-60/+60
| | | | | | | Restructure initiator_side_failures and make another function out of it which can be used for verification of iscsi and multipath at many places Change-Id: I6bc4b9e7679bee413d726be426df5796eaf97fc8
* Fix 'get_active_and_enabled_devices_from_mpath' libraryNitin Goyal2019-06-211-1/+1
| | | | | | | Sometimes grep cmd shows '--' symbol. Which is breaking code. So changed the code to exclude '--' via grep cmd. Change-Id: I3ef903e19196b2d0d70e074a676881725240983b
* [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
* Use 'cmd_run' func instead of 'g.run' func in openshift_ops.pyValerii Ponomarov2019-05-294-154/+54
| | | | | | | | | | | | | It will allow us to recreate SSH connections when it is broken. Also, do following additional things: - Fix 'podcmd' module, where 'user' argument for 'g.run' is missing in it's wrapper. - Use "g.log.error" command to log errors when they appear inside of the 'cmd_run' func. - Delete several unused commands, instead of fixing them. - Update several test cases's logic due to the changes in the libraries. Change-Id: I908e5adcff739b6ab3a4aefaebfe46abdee22655
* Make g.run recreate SSH connection in case of it's breakageValerii Ponomarov2019-05-291-0/+25
| | | | | | | | | | It happens, that saved SSH connection gets corrupted and we get errors trying to run commands on remote machines. So, to avoid such problem, monkey-patch Glusto's special method for getting SSH connections with ourselves-crafted method which recreates SSH connection in case it is broken. Change-Id: Iee69d21f3e23541480653205d86fefef2d842d34
* Skip several test cases due to the open bug BZ-1714292Valerii Ponomarov2019-05-291-0/+4
| | | | Change-Id: I5cada2a8dff40516310de38e23b98de2a64efc11
* Fix 'test_pv_resize_by_exact_free_space' tcValerii Ponomarov2019-05-292-2/+12
| | | | | | | | | | | | It was broken it 2 places: - It is first tc in the 'resize' test suite, which runs right after OCP API restart. And it happens to fail to talk to the OCP API. So, fix it by adding API service waiter in place where we restart it. - In this tc we delete huge volume which consumes almost whole disk space. And happens that this operation takes up to the 6 minutes. But we were waiting only for 5 minutes. So, just increase timeout. Change-Id: Ic6ada67b96ac8a37d13f57c0576e862226517b0d
* Pick up name of the glusterblock provisioner dc dynamicallyValerii Ponomarov2019-05-282-11/+17
| | | | | | | Instead of crafting it manually. It allows us to use both approaches from 'openshift-ansible' lib for naming of this dc - old and new ones. Change-Id: Iac4513a50de51aefd401d2af4c798366ec10b02a
* Make 'validate_multipath_pod' func raise exceptions in case of errorsValerii Ponomarov2019-05-282-45/+57
| | | | | | | | | Now, this function hides info about the real problem which caused error So, make it raise exceptions in place with info about error for ease of debugging. Also, fix it's usage providing mpath always. Change-Id: I8cbc62a12f3999e3d64fb6b504865f30b1602cf1
* 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
* Make 'command.cmd_run' func be resistable to broken SSH connectionsValerii Ponomarov2019-05-241-0/+4
| | | | | | | It happens that we get "No ssh connection" errors from time to time. So, avoid such errors recreating SSH connections if such error appears. Change-Id: Idc71c4ceece6b3040c396b25da1deadcefd29b60
* Add TC expansion of block hosting volume using heketiNitin Goyal2019-05-232-0/+114
| | | | | | | This TC verify the expanshion of BHV and after expanding volume verify that space is usable. Change-Id: I2621aedc1cbddcad374fe52013aba2d48acfd1e0
* [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
* Add TCs creation of block vol greater than default size of BHVNitin Goyal2019-05-032-1/+167
| | | | | | | The purpose of TCs is to validate that block device size cannot be more than the block hosting volume. Change-Id: I35aac44bdc2b3e72f1de9ab167e1468ece932f14
* Skip test case "test_pvc_deletion_while_pod_is_running" for OCP 3.9vamahaja2019-04-221-0/+4
| | | | | | | "test_pvc_deletion_while_pod_is_running" test case is not supported on OCP 3.9. Added skip statement for OCP 3.9 Change-Id: I5af35145c35371e7eed37d78c2fb9ce23dc9ffa6
* Add info about running TCs using py3 to the README.rst fileValerii Ponomarov2019-04-171-1/+11
| | | | Change-Id: I802a7438f531c709f0da3a8635b192e26bc883b4
* Use py2/3 compatible string type checksNitin Goyal2019-04-152-4/+4
| | | | | | | Replace usage of "types.StringTypes" with "six.string_types", because the latter one is compatible with both - py2 and py3. Change-Id: Ie8f9495914fca527da086af0915130470e3fd3e0
* Fix 'get_events' func for 3.9-3.11 OCP versionsNitin Goyal2019-04-151-1/+1
| | | | | | | As part of the fix we are fixing "AttributeError: 'str' object has no attribute 'append'" in 'get_events' func Change-Id: Ica2489e2d48f9ec8065fe0863b6c5d1633e93860
* Fix support of OCP3.6 and 3.7Valerii Ponomarov2019-04-118-8/+62
| | | | | | | Project has lots of inconsistencies with OCP3.6 and 3.7 So, fix it. Change-Id: I8d38773637b779e1c2e1631568f100c1ab1fdd50
* Add py3 support to our tox config and fix several incompatibilitiesValerii Ponomarov2019-04-1112-26/+77
| | | | | | | | | | | | | | | | | | Required steps to run test cases using py3: 1) Install py3 2) Install 'tox' package using "pip3" 3) Run test cases using tox package installed via pip3 Note that full py3 support is not tested yet. It only allows you to run it on py3 not providing any guarantees. Example: $ python3 -m tox -e functional3 -- \ glusto -c /path/to/the/config/file.yaml \ '--pytest=-v -rsx tests -k test_glusterblock_logs' Change-Id: I610faac0b75364c401734b6f892649893ca2320e
* Add test case PVC resize when heketi is downnigoyal2019-04-111-1/+71
| | | | | | | Verify that when heketi is down PVC expansion should not work. Bring heketi up and running, when heketi is up expansion should work. Change-Id: I4303a82581a91db220ff226f53dea7dc49d22d93
* add test gluster ops checkadityaramteke2019-04-101-0/+34
| | | | Change-Id: I1d9c7e14525ad8de35bfa7be8fffc533c010248b
* [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
* Add checks for PVC creation without vol_name prefixArun Kumar2019-03-291-0/+28
| | | | | | | Check if volume name is combination of string 'vol_' and volume id and check volume is present in heketidb and gluster cluster. Change-Id: I755a6447fe653a4ba148798f4c0317aa08a4a4eb