summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add TC for checking pending operations in heketidbSushilG962020-01-071-0/+74
| | | | | | | Create volume and see the pending operations of volume and bricks in heketidb and verify that after creation count is changed. Change-Id: I2d73f82bde422fdffc1fbbdc14564a0c8ffa99aa
* Add TC and config data for metricsArun Kumar2019-12-265-15/+128
| | | | | | | | Test case to validate metrics add config data for metrics add config data of registry namespace to validate metrics Change-Id: I4886482ee33847f506ad898d4a313df866d0348c
* Delete 'deployment' dir as obsolete and not supportedValerii Ponomarov2019-12-2178-7511/+0
| | | | | | | | | | | | 'deployment' directory contains obsolete and unsupported approach for deploying OpenShift and GlusterFS storage. Separate deployment approach has already been used for significant amount of time. So, delete local 'directory' as it makes no sense to keep it. Moreover, it may be confusing for people who may try it out and see unpredictable errors. Change-Id: Ibf353500bab59853f597304cb9c1990102c000ef
* 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 provisioner name for gluster block stroage classkasturiNarra2019-12-131-1/+1
| | | | | | | | | | Provisioner name has been changed in "get_gluster_host_ips_by_pvc_name" of openshift-storage-libs/openshiftstoragelibs/openshift_ops.py module, since from OCS3.11.4 glusterblock storage class provisioner name has been changed from gluster.org/glusterblock to gluster.org/ glusterblock-glusterfs Change-Id: I2549b44e91a0f08384693cd55aea751acda458dd
* 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-122-9/+9
| | | | | | | | | 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-115-24/+27
| | | | 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-054-5/+331
| | | | | | | 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-022-0/+189
| | | | | | | 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
* Fix str/list/tuple distinguishing in library functions to support py3Valerii Ponomarov2019-11-282-8/+12
| | | | | | | | | | We try to distinguish strings from other iterable object types in several our library functions and now it is not compatible with py3. The problem is that in py2 strings don't have "__iter__" method, but it exists in case of py3. So, fix it by using py2/3 compatible check for string types. Change-Id: I3f833b5e79f1563a3ae6a2bb9ae43d8919d82c30
* Add test for creation of PVC when one node downadityaramteke2019-11-272-3/+56
| | | | | | | 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-262-5/+91
| | | | | | | | 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
* Fix library 'power_off_gluster_node_vm'Nitin Goyal2019-11-221-0/+1
| | | | | | | Fix the library via adding cleanup power_on_vm which was missed during library creation. Change-Id: I6b2fe78378cac61cee5d630562c0ba7201bbaa4e
* 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-224-5/+247
| | | | | | | 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-212-1/+79
| | | | | | | 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-212-39/+54
| | | | | | | | 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-192-3/+89
| | | | | | | 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-193-39/+162
| | | | | | | | | | 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 new oc librarieskasturiNarra2019-11-151-0/+138
| | | | Change-Id: I78eb0975c60d1c16b05914bed74b6f942dd0335e
* Add "pytest-custom-exit-code" plugin in tox.inivamahaja2019-11-151-0/+2
| | | | | | | | | | | | | | This plugin is used to suppress failed exit code with option - --suppress-tests-failed-exit-code e.g: tox -e functional -- glusto -c gct_config.yaml \ '--pytest=-v -s tests -k test_check_bmux_enabled \ --junitxml gct_results.xml \ --suppress-tests-failed-exit-code' \ --log gct_logs.log Change-Id: Ic2b6041d554ec737982844fc6ac8b4840b3947e1 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add test case to automate heketi add node into valid clustervamahaja2019-11-142-0/+116
| | | | | 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-082-6/+66
| | | | | | | | 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-314-11/+34
| | | | | | | | | | | | | | | 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-255-0/+37
| | | | | | | | | 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-173-72/+48
| | | | | | | | | | | | | | 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-174-0/+232
| | | | | Change-Id: I22410ad8c81ca71ac9c2cbaddd66f086abcdf3c5 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add library to add/remove iptables rule on hostvamahaja2019-10-171-0/+50
| | | | | Change-Id: I1055b232711c95fdbf89ba9fe8b9d61a561fbcd5 Signed-off-by: vamahaja <vamahaja@redhat.com>