summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix 'test_heketi_node_operations' tc checking correct config optionvamahaja2019-12-161-2/+2
| | | | | | | | | | 'test_heketi_node_operations' tc tried to use incorrect 'additional_gluster_servers.additional_devices' config option. Change it to 'additional_gluster_servers.devices', as it is expected by the configuration. Change-Id: I2351814bf35a78724f84d954abd7ce780e945328 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add assert to check gluster volume list in test casevamahaja2019-12-161-0/+2
| | | | | | | | | | | - In test case 'test_heketi_volume_create_with_cluster_node_down' function glusto-tests 'get_volume_list' function returns 'None' in case of failure. - Add assert statement to check whether 'get_volume_list' function returns expected gluster volume list. Change-Id: I2b11bb33b1346d88db0501d000f32515db86279d Signed-off-by: vamahaja <vamahaja@redhat.com>
* Fix cleanup code to delete volume instead of blockvolumekasturiNarra2019-12-161-1/+1
| | | | | | | Code creates file volume and tries to delete blockvolume instead of file Change-Id: I4c73f388dc10a153f254c479bc8bf127df644916
* Fix code to create bhv in func _create_distributed_replica_volkasturiNarra2019-12-121-2/+2
| | | | | | | Change code of func _create_distributed_replica_vol to handle block hosting volume creation as well. Change-Id: If4b1f48dc8cbe257254a2729599f58f302b403d8
* Delete duplicate test "test_to_create_distribute_replicated_vol"kasturiNarra2019-12-121-7/+5
| | | | | | | | | which completely duplicates "test_to_create_and_delete_dist_rep_vol" in 'test_create_distributed_replica_heketi_volume.py' test module & fix cleanup code for create_heketi_volume_with_name_and_wait in openshift-storage-libs/openshiftstoragelibs/baseclass.py module. Change-Id: I9b3dea28e6330e52caab09311e20b65dd48491b9
* Fix test to run when iscsi-intiator-utils package is the expectedkasturiNarra2019-12-121-2/+13
| | | | | | | Fix test to run when iscsi-intiator-utils package is not less than 6.2.0.874-13.el7 Change-Id: Ic3af5302a415c2d2420ad9b92f2d82246420beea
* Handle empty list of 'additional_gluster_servers' correctlyvamahaja2019-12-121-1/+1
| | | | | | | | | | In the 'test_heketi_node_operations::TestHeketiNodeOperations' class, if we define 'additional_gluster_servers' option, but do not provide there any value, then we fail. But, "skip" is expected in such situation. So, catch "IndexError" exception and make tests be skipped after it. Change-Id: Idfb1cdfc6941d284a4dc8e670c2eb5510eafe744 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add skip for test case due to bug fixvamahaja2019-12-121-0/+8
| | | | | | | | | Test case 'TestPvResizeClass::test_pv_resize_no_free_space' fails due to bug 'BZ-1732831' which is fixed in OCS version 3.11.5. So skip this test case for OCS version below OCS 3.11.5. Change-Id: I7e26293c3defb332da64fd32dda4ed9011db7176 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add skip for 'iscsi-initiator-utils' version in test casevamahaja2019-12-121-0/+13
| | | | | | | | Add skip for package 'iscsi-initiator-utils' in test case 'test_initiator_side_failures_create_100_app_pods_with_block_pv' due to issue 'BZ-1624670' Change-Id: I4730b298e367fdacbaac1f314b760df6d7642e14
* Fix usage of cls ins attributes in 'test_gluster_block_stability.py'Valerii Ponomarov2019-12-111-4/+4
| | | | | | | | | Make test cases use local var 'prefix' not depending on the 'self.prefix'. We get 'AttributeError' error when 'self.prefix' is not set. And it can be set only when one of test cases gets run. Change-Id: I767e037e70e019ecb3a719d898dfe2b020dddff0
* [py2to3] Fix various py3 incompatibilitiesValerii Ponomarov2019-12-113-8/+8
| | | | Change-Id: I6c517278c3f8bf6f374ab60bc27768e503161278
* Add TC creating and deleting bunch of PVCs during network failureArun2019-12-111-0/+50
| | | | | | | | Create network side failure during creation and deletion of the PVC's Network side failure is introduced by opening and closing the ports related to gluster-blockd Change-Id: I0e7d97f0bf4a786f9ebb4cb5ccba5e5fd5812fc6
* Add TCs volume operations while node removal is runningNitin Goyal2019-12-091-0/+139
| | | | | | | Add new TCs where TCs verify that volume operations works while node removal is running. Change-Id: Id5092761253eb8f221c5fb39cfb95765f3087eea
* Add new TCs remove or delete heketi nodeNitin Goyal2019-12-051-0/+279
| | | | | | | Add new TC remove or delete node from heketi, and verify gluster peer status, bricks on the new node and heal info. Change-Id: If4b6006a4a58fd581ac9851b377a82f69ce0f30f
* Add TC create two heketi volumes with same nameNitin Goyal2019-12-031-0/+33
| | | | | | | | Add TC where it creates two volumes with the same name via heketi and verifies that first one gets successfully created and the second one gets failed. Change-Id: I36e9bb1ed93b807458fcbdf8d417ada1cbc7b943
* Add TC heketi vol creation of size greater than device sizeNitin Goyal2019-12-021-0/+154
| | | | | | | Add new TC heketi volume creation of size greater than the device size and verify backup-volfile-servers, replicacount, brickscount etc. Change-Id: I87cbf0e1d8326ad077f02cf465105aca3f8bdde7
* Add tc with deletion of block-vol while IO is in progresskasturiNarra2019-11-291-0/+138
| | | | | | | | | Simulate situation where we have attached block-PVC to a pod, and some I/O is going on there. After sending "delete" command to it I/O must not be interrupted and should be finished successfully. The state of PV is expected to be changed to the "released" state. Change-Id: If8fb27b35253f01ab67772e72e5fb9f2f335d51b
* Add cleanup after PVC creationadityaramteke2019-11-291-0/+2
| | | | | | | Cleanup function was missing after creation of PVC in test_creation_of_pvc_when_one_node_is_down TC. Change-Id: I9077f9f58248a8a08a236f7a50f1917c96181fd9
* Add test for creation of PVC when one node downadityaramteke2019-11-271-2/+55
| | | | | | | The purpose of this test case is to confirm that provisioning succeeds if at least 3 nodes are UP in a CNS cluster with nodes >3. Change-Id: I7fc1f851114d921f65e819db23502776526e6827
* 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 where targetcli fails during block PVC creationValerii Ponomarov2019-11-221-0/+127
| | | | | | | Add tc where we simulate targetcli failure in parallel to the block PVC creations. Change-Id: I6f94079593d8ff978c321b64729b4c0b67810c23
* 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
* Modify and move 'topology_volumes_with_bricks' func to 'heketi_ops.py'Sri Vignesh2019-11-211-39/+22
| | | | | | | | Move 'topology_volumes_with_bricks' func to the "heketi_ops" module to be able to use it in other test cases. Change-Id: I7cca884a4f3fb34ec15bb947d3c39d9226e294d0 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Add test for inconsistencies in targetcli when BHV is downAditya Ramteke2019-11-191-1/+86
| | | | | | | Confirm no inconsistencies occur in targetcli when block devices are created with one block hosting volume down. Change-Id: I2a755ef2a88c6e6ca5326be3787ac07c0fb7db26
* Add test case to automate heketi add node to a invalid clustervamahaja2019-11-191-0/+17
| | | | | Change-Id: I482ac6ebed181546a18595c6a6b21d2115782b3a Signed-off-by: vamahaja <vamahaja@redhat.com>
* Fix test case "test_heketi_node_add_with_valid_cluster"vamahaja2019-11-191-39/+93
| | | | | | | | | | Fix consists of - - Remove steps for add device validation. - Add steps for gluser peer status validation. - Add steps for endpoints validation. Change-Id: I773a883b1ea8bb2bc93660db3459fd864fcd1317 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add test case to automate heketi add node into valid clustervamahaja2019-11-141-0/+110
| | | | | Change-Id: I4a2ac7b819929c2de6c8ea5520257800d2e134cc Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add vol expansion cases setting heketi zones checking flagValerii Ponomarov2019-11-141-22/+50
| | | | | | | | | | | | | | Following combinations are added: - 1 zone, replica3 volume, no zone checking flag - 1 zone, arbiter volume, no zone checking flag - 2 zones, replica3 volume, no zone checking flag - 2 zones, arbiter volume, no zone checking flag - 3 zones, replica3 volume, no zone checking flag - 3 zones, arbiter volume, no zone checking flag - 3 zones, replica3 volume, strict zone checking flag - 3 zones, arbiter volume, strict zone checking flag Change-Id: I130dcc7c6306b1cdfdee6a860fced19f48474006
* Add testcase to create volume with snapshot enabledSri Vignesh2019-11-141-0/+39
| | | | | | | | Validate creation of volume with snapshot enabled and create and delete snapshot created. Change-Id: I7173ed6fb6659963e29cc0f1b1ede0ce7c6fe2a4 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Add testcase to validate node count with heketi db checkSri Vignesh2019-11-131-0/+15
| | | | | | | | Validate total nodes count in heketi db check is same as heketi node list. Change-Id: I6004537c251f8e512afabe88e0fb284624421b8d Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Add testcase to validate block volumes with db checkSri Vignesh2019-11-111-13/+17
| | | | | | | Validate block volumes using heketi db check in heketi blockvolume list are same. Change-Id: Ibbaf038c05ef347d195140c2ba2c18f2d58c3b5e Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* 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
* Make 'provisioner' be autocalculated for storage classesValerii Ponomarov2019-10-312-3/+5
| | | | | | | | | | | | | | | In OCS 3.11.4 was changed the approach for 'provisioners' in storage classes due to the BugZilla bugs [1] and [2]. So, change the approach for getting 'provisioner' value in this project making it be autocalculated based on the data taken from the block provisioner pod, which is located in the working namespace. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1732787 [2] https://bugzilla.redhat.com/show_bug.cgi?id=1738394 Change-Id: Ic1037038e39abba2b2a1ad6dc3ddbfe42473cb88 Signed-off-by: vamahaja <vamahaja@redhat.com>
* 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-254-0/+4
| | | | | | | | | 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 'additional_gluster_servers' parameter tests in config fileNitin Goyal2019-10-171-0/+18
| | | | | | | Add new parameter 'additional_gluster_servers' in config file for node add and node remove TC's. Change-Id: I1472b09e0603179f81cbe145fad4343c8c2b6de5
* Add test cases to perform heketi cluster operations with nodesvamahaja2019-10-171-0/+68
| | | | | Change-Id: I22410ad8c81ca71ac9c2cbaddd66f086abcdf3c5 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Fix raise exception for test case test_sc_glusterfile_missing_parametervamahaja2019-10-031-1/+2
| | | | Change-Id: I81f827f04d8795cb1821d796418cf61578dde037
* 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
* [Lib+tc]Add testcase and library to validate total count of volumesSri Vignesh2019-09-251-0/+22
| | | | | | | | Add library to check db results Validate count of volumes of heketi and db are same Change-Id: I6e75f2d8d5f19a94c1dced5a07f9c948b4de9ef4 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Add TC to validate setting node and device tags for arbiter volrgeorge2019-09-251-10/+24
| | | | | Change-Id: Ife24a38ce9787de1d9cca71206a7f98be27da6c4 Signed-off-by: rgeorge <rgeorge@redhat.com>
* Add tc to create max number of BlockHostingVolumeskasturiNarra2019-09-241-1/+103
| | | | | | | | Validate whether creation of maximum supported blockvolumes doesn't have any impact to the functionality of gluster-block. Change-Id: I2a1503f527da2d1d916e87ce154e88bf9b5e1fa8
* Add TC delete a newly added deviceArun Kumar2019-09-241-0/+59
| | | | | | | Add a device, check there are no bricks on the device and verify the device deletion. Change-Id: I0e6adafb730e8d82926ce4e1d7b6b3c4799efc1b