summaryrefslogtreecommitdiffstats
path: root/tests/functional/gluster_stability
Commit message (Collapse)AuthorAgeFilesLines
* Add TC deleting bunch of PVC's during network failureArun Kumar2019-11-261-0/+80
| | | | | | | | Create network failure while deleting PVC's Network side failure is introduced by opening and closing the ports related to gluster-blockd. Change-Id: Id3a749aa1a051bbce99b85046fa0a79831e85dd5
* Add TC restart initiator node when gluster node is downNitin Goyal2019-11-221-0/+107
| | | | | | | Add new TC where we verify iscsi rediscovery is happening properly on restart of initiator nodes when one gluster node is down. Change-Id: I515bb27d43843f7c19c4a12b6531a212e9c3285a
* Add new TC verify PID's of gluster volumeNitin Goyal2019-11-211-0/+72
| | | | | | | Add new TC where it will verify PID's of gluster volumes are same when volume options value is different. Change-Id: Ie0cae1ad3fdfd35e4c0e7f01e3a048b62b185369
* Add TC's related to network side failures while I/O's are runningArun Kumar2019-11-211-0/+50
| | | | | | | Verify I/O's are running when we close the ports 3260 and 24010 on the active or passive paths Change-Id: Ib1d69fca8f4894fd50bcc30f23ec0304f2fb5230
* Add TC creating bunch of PVCs during network failureArun Kumar2019-11-081-0/+36
| | | | | | | | Create network side failure by opening and closing the ports related to gluster-blockd during creation of the PVC's, Verify PVC's are bound and validate multipath. Change-Id: Ibc53a13e2abb8674661da83d5881a13bbb2ad7fb
* Fix 'test_volume_create_delete_when_block_services_are_down' tcValerii Ponomarov2019-10-281-54/+46
| | | | | | | | | | It happens that regex fail to find expected message in oc events related to the stopped service. The reason is in the not static part of the error message, it may vary. So, fix mentioned tc by removing part of the regex, which can vary. Also, update several other parts of the tc making it use less codelines. Change-Id: I905f63b2b9aefbe72df610d223da4569ccb14d5e
* Add possibility to check Heketi DB inconsistencies after each tcValerii Ponomarov2019-10-251-0/+1
| | | | | | | | | Define 'check_heketi_db_inconsistencies' config option setting there 'False' or 'True' values. Default value is 'True'. If heketi client doesn't support the 'heketi db check' feature, then 'heketi db check' just won't be performed. Change-Id: I7faff35b15e40d864c0377ae7fee154e217d8eae
* Fix 'test_tcmu_runner_failure_while_creating_and_deleting_pvc' tcValerii Ponomarov2019-10-181-20/+2
| | | | | | | | | | | | 'test_tcmu_runner_failure_while_creating_and_deleting_pvc ' tc may fail occasionally when one of the following situations happen: - PVs get deleted very fast, so tc may fail to get their statuses. - PVs may not be updated in time due to the 'slowness' of a cluster. So, to avoid problems related to the above mentioned situations, just check all the deleted and created PVCs, not filtering them. Change-Id: Ib24c5fd7c3310daa0e5523f2c6c1fd90bd958e60
* Add library to get heketi block volumes by name prefixvamahaja2019-10-172-72/+16
| | | | | | | | | | | | | | This change required due to - 1. Get block volume by prefix is common step which is used in two places for now and will be used in other places too. 2. Hence add library "heketi_blockvolume_list_by_name_prefix" in heketi_ops.py. 3. And use added library and update code from class "GlusterStabilityTestSetup" and "TestGlusterBlockStability". Change-Id: I9e60d58d5c84380104081335745270b3d21ff071 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add TC create and delete PVC's when gluster-blockd is downNitin Goyal2019-09-251-7/+12
| | | | | | | Add TC verify PVC's create and delete fails while gluster-blockd service is down on one node. Change-Id: I73332f667526891e0fadf050f53bb33394519566
* Delete block volume when one node is downadityaramteke2019-09-251-0/+43
| | | | | | | | Create block volume with hacount 4 when one of the four nodes is down. Also, create a block volume with hacount 3 and verify volume creation is succesful. Change-Id: I4bf8b178ac92a71fa5e6b7e9e8220da04c6e872d
* Add TC to validate creation of 100 app pods with block volumesrgeorge2019-09-251-0/+95
| | | | | | | | | Validate the creation of 100 app pods with block volumes attached to it. Verify iscsi login, multipath and check for volume mismatch across OCP, heketi and gluster Change-Id: If400b8d3fe3d0ba0f22169633f0bb537f3f237e5 Signed-off-by: rgeorge <rgeorge@redhat.com>
* Add TC Fail tcmu-runner service while creating and deleting pvcArun Kumar2019-09-251-0/+89
| | | | | | | | | | Create 8 Block PVC and wait for them to get bound. Delete created PVC's and create 8 more PVC's simultaneously. Kill the tcmu-runner service while PVC creation and deletion is in the progress. Restart all the services related to block volumes and verify all pending operations are completed sucessfully. Change-Id: I0cb4cd29b92233a65be93f4b96f1a9a0cb8bed9f
* Add testcase to validate path failureskasturiNarra2019-09-171-0/+80
| | | | | | | | | | | | | Simulate situation where we have block pvc attached to a pod and some I/O is created on the pod. After sending "delete" command to it, iqn's present on the nodes where app pods are running are expected to be logged out and migrated to a new node where new pods are running. Also data in the app pod is expected to be the same. Change-Id: Ia3a9e77902a29b942b151ea4874125423520f46f
* Add TC create and delete PVC's when block services are downNitin Goyal2019-09-161-1/+181
| | | | | | | Add new TC verify PVC's create and delete fails while gluster-blockd and tcmu-runner services are down on one node. Change-Id: I5acbcfd6c9a227c0cce21c62f5e162caf970aa22
* Add tc to validate all gluster IP utilized by blockvolumeskasturiNarra2019-09-111-0/+67
| | | | | | | Testcase to check if all gluster nodes are utilized for block volume creation Change-Id: Id3762d3aff85a628ed972b19fbe15bfa223376c6
* Move func get_block_hosting_volume_by_pvc_name to baseclasskasturiNarra2019-09-091-24/+0
| | | | | | | | Move get_block_hosting_volume_by_pvc_name from test_restart_gluster_services to baseclass to be able to reuse it in other test modules. Change-Id: I65847792601b422293d4baed2ccade664ad7e54b
* Add TC abrupt reboot of initiator nodeNitin Goyal2019-09-061-0/+99
| | | | | | | Add new TC where we verify rediscovery of iscsi paths which happen after abrupt reboot of initiator node. Change-Id: I841e875881c47f8215d48821cd76c0399d43badc
* Add functionality to create more than 1 DC in parallelValerii Ponomarov2019-09-041-27/+8
| | | | | | | | We have test cases which create more than 1 app DC at once. So, add functionality to be able to create bunch of DCs in parallel and reuse it in one of test cases. Change-Id: Id606d02c31a919bbc6d49d59714dd5628c6a835d
* Add TC app pod deletion when initiator and target on same nodeNitin Goyal2019-08-281-0/+109
| | | | | | | This TC verify iscsi login and logout is happening properly on deletion of app pod when initiator and target on same node. Change-Id: Ia812cbbddef4fcab2f3762c930a38c0c8af62417
* Fix test cases skipped due to closed bugsvamahaja2019-08-191-1/+28
| | | | | | | | 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-141-0/+14
| | | | | Change-Id: I5bb2760ff284cdc83424388bfdfc79d5fd112f21 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add OCS version check for test casesvamahaja2019-08-141-0/+25
| | | | Change-Id: I4196cb1395a3720e03f62473d11e5f46d797c355
* Add TC restart app pod when target node is downNitin Goyal2019-08-131-0/+80
| | | | | | | | | | | 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-131-89/+28
| | | | | Change-Id: Ia4e0fb737b16ea7bdc8ffd5ae44cdd418471552a Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add TC run IOs when tcmu-runner service is downNitin Goyal2019-07-191-0/+91
| | | | | | | | 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
* Add TC run IOs when gluster-blockd service is downnigoyal2019-07-091-0/+60
| | | | | | | 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-051-0/+114
| | | | | | | 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-042-0/+50
| | | | | | | 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-021-4/+4
| | | | | | | | 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
* Reorder lib files removing redundant dir layerValerii Ponomarov2019-03-181-5/+5
| | | | | | | | | | | | Move all the files of 'cns-libs/cnslibs/common' dir to the 'openshift-storage-libs/openshiftstoragelibs', because 'common' is the only dir there, which doesn't really makes sense. And "cns" is old project name, so, replace it with "openshift-storage-libs". Also, fix all the imports of these libs. Change-Id: Ife00a73554e73b21b214b15016b0c8dbbf423446
* Reorder test files removing redundant dirsValerii Ponomarov2019-03-062-0/+340
Move all the files of 'tests/functional/common/' dir to the 'tests/functional/', because 'common' is the only dir there, which doesn't really makes sense. Do the same about 'tests/functional/common/heketi/heketi_tests' and 'tests/functional/common/heketi/'. Change-Id: I1fa55e2e7bf09e9b9115629b06e1fd160e291a36