summaryrefslogtreecommitdiffstats
path: root/openshift-storage-libs/openshiftstoragelibs/baseclass.py
Commit message (Collapse)AuthorAgeFilesLines
* [TestFix] Add config to read i/o imagesvamahaja2020-12-081-10/+15
| | | | | | Add support to pass I/O image from config file Change-Id: I2c943ba0efaeab3a44eef63030965f36f8086c1b
* [Test] Add TC to verify dev path on file & block pvc with vol rebootSushil Gupta2020-09-101-1/+3
| | | | | Change-Id: Ie072f0365a3d4cf71142e07f6387c8653a616945 Signed-off-by: Sushil Gupta <susgupta@redhat.com>
* [Test] Add TC to validate dev path mapping for file&block vol createSri Vignesh2020-08-261-0/+67
| | | | | Change-Id: I61364640386ee6706276ff253f5f5bf58cf5ba24 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* [Test] Add TC fill arbiter brick, shutdown data brick node and run ioArun Kumar2020-07-061-7/+10
| | | | | Change-Id: I36d44123db24154fe0aefc905ad2f5a5e5061558 Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [LibFix] Add 'collect_logs' param in 'oc_delete' libvamahaja2020-07-021-0/+3
| | | | | Change-Id: I9d99f367b82c6570e1390c6b137e0b9bf401a19c Signed-off-by: vamahaja <vamahaja@redhat.com>
* [LibFix] Add parameter 'overwrite' in 'oc_label' librarySri Vignesh2020-06-011-1/+2
| | | | | Change-Id: I7f765605ae032f9054937ca9ed5a5db06bc73464 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* [Lib] Add Scaleup Base Class and libsNitin Goyal2020-04-221-0/+211
| | | | | Change-Id: I8ab1ec2dd28169722c07a5bbfabeffc5240ce8f9 Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
* [LibFix] Fix PVC create/status library timeoutsvamahaja2020-03-251-3/+4
| | | | | Change-Id: I8e027ff71429cd73eea892c6e27d53f638badc42 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [Lib] Add _create_storage_class helper methodNitin Goyal2020-03-231-14/+42
| | | | | | | | Add helper method for passing provisioner argument. Which will allow to pass provisioner argument from other BaseClasses. Change-Id: I475717ac5d4575d96aff82148cf2c98e035df1d5 Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
* [Lib] Add arg label for labeling the DCNitin Goyal2020-02-251-4/+9
| | | | Change-Id: I28af35fdcc27e30957e02d83e19f0a7d4211f18b
* [Lib] Add paramter for custom prefix in lib create_dcs_with_pvcNitin Goyal2020-02-201-4/+9
| | | | Change-Id: Ifb9c582c18d9e7a8bfd01d3b6a45e105c9ad8db4
* [Test] Add tc to validate cassandra pod when BHV brick process is downArun Kumar2020-02-201-2/+11
| | | | Change-Id: If0024c4b99eee0d0971077556b033ace5104c982
* [Lib] Add functionality to skip cleanup in BaseClassNitin Goyal2020-02-141-23/+39
| | | | | | Add cleanup arg in libs to skip the cleanup part. Change-Id: I115b33604414c0ecef2cdd57a880684cc7166766
* Add TC and config data for metricsArun Kumar2019-12-261-4/+17
| | | | | | | | Test case to validate metrics add config data for metrics add config data of registry namespace to validate metrics Change-Id: I4886482ee33847f506ad898d4a313df866d0348c
* Delete duplicate test "test_to_create_distribute_replicated_vol"kasturiNarra2019-12-121-2/+4
| | | | | | | | | 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
* Add test for creation of PVC when one node downadityaramteke2019-11-271-1/+1
| | | | | | | 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
* 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 restart initiator node when gluster node is downNitin Goyal2019-11-221-0/+64
| | | | | | | 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-1/+7
| | | | | | | Add new TC where it will verify PID's of gluster volumes are same when volume options value is different. Change-Id: Ie0cae1ad3fdfd35e4c0e7f01e3a048b62b185369
* Add test case to automate heketi add node into valid clustervamahaja2019-11-141-0/+6
| | | | | Change-Id: I4a2ac7b819929c2de6c8ea5520257800d2e134cc Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add TC creating bunch of PVCs during network failureArun Kumar2019-11-081-6/+30
| | | | | | | | 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-311-8/+22
| | | | | | | | | | | | | | | 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>
* Add possibility to check Heketi DB inconsistencies after each tcValerii Ponomarov2019-10-251-0/+33
| | | | | | | | | 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
* Add test cases to perform heketi cluster operations with nodesvamahaja2019-10-171-0/+51
| | | | | Change-Id: I22410ad8c81ca71ac9c2cbaddd66f086abcdf3c5 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add support for new resource typekasturiNarra2019-10-101-4/+11
| | | | | | | | | As of now user can only pass dc name as argument to validate iscsi and multipath session, with this support user can also pass pod name by specifying rtype=pod Change-Id: Iecc86edc2a2239fc05535f0e4f7e9ae93d5e76f5
* Add multiple PVCs states waiterValerii Ponomarov2019-09-231-3/+2
| | | | | | | | Add new function called 'wait_for_pvcs_be_bound', which allows us to wait for 'Bound' state of multiple PVCs using single timeout. Also, reuse this new function in the baseclass.py Change-Id: Ia3809d322925b90fdef984db59b3e9e83a82abc7
* Add waiter for multiple resources absenceValerii Ponomarov2019-09-191-3/+3
| | | | | | | | | | Add new function called 'wait_for_resources_absence', which allows us to wait for absense of multiple resources using single timeout. Also, reuse this new function in the baseclass.py for PVC/PV removal waitings. Change-Id: I6e3daae012199e50d3aeb68b697cfae801b0b49b
* Add testcase for passing clusterid when creating storage classAshmitha2019-09-181-1/+3
| | | | Change-Id: I4a6fd02f5713b4e86a9d70cdaffd3ca9369932f4
* Add TC create and delete PVC's when block services are downNitin Goyal2019-09-161-1/+6
| | | | | | | 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 test cases for the heketi zones featureValerii Ponomarov2019-09-131-1/+9
| | | | | | | | | | Add 10 test cases for testing Heketi zones feature. To make all the Heketi zones test cases run in the single suite using the same cluster set 'common.allow_heketi_zones_update' config option to "True" value. By default it is set to "False" and only small set of test cases can run having such value. Change-Id: I69a1f7c96c9f52a06134e715e113ccd9b06764e6
* Fix test cases which are failing to delete volume after test completionvamahaja2019-09-131-0/+42
| | | | | | | | | | | In test case when we use large disk size, heketi takes time to create volume and due to timeout it gives error. Add fix in such test cases to check if volume created after getting an exception, get details of such volumes or raise exception in case it fails to create volume. Change-Id: I1c23a8c6558c23edf8947771e4f41a4bd3ffd66a Signed-off-by: vamahaja <vamahaja@redhat.com>
* Fix self.node issue in GlusterBlockBaseClass classvamahaja2019-09-131-7/+8
| | | | | | | | | Gluster block test cases failed with error "self.node" variable not found as self.node variable is not created in "GlusterStabilityTestSetup" class. Fixed change in baseclass.py by using variable "self.ocp_client[0]". Change-Id: I2affabbb626b7e266a9bb243d3ec249229ec9670 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add test case to try creation of storage class with duplicate nameAshmitha2019-09-121-0/+2
| | | | Change-Id: If30737958bc667264fc01fe81d411f406b501918
* Move func get_block_hosting_volume_by_pvc_name to baseclasskasturiNarra2019-09-091-0/+23
| | | | | | | | 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 Error msg in GlusterBlockBaseClassNitin Goyal2019-09-061-9/+21
| | | | | | | Added Error msg in GlusterBlockBaseClass for better visibility in case of failures or debugging purpose. Change-Id: Ia92cd6f6129cb5aa55f6f8e807ef056e54691956
* Add functionality to create more than 1 DC in parallelValerii Ponomarov2019-09-041-10/+39
| | | | | | | | 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
* Fix pep8 errors in the files of the 'openshift-storage-libs' dirValerii Ponomarov2019-09-031-7/+7
| | | | Change-Id: Iaa7deca275958d4de68601dc16d1920f3dab85f2
* Remove extra '-' from create_secretNitin Goyal2019-08-201-1/+1
| | | | Change-Id: I2ebc1c2e7e7aefb5e0d70342a7ec243a12b0663b
* Reuse more common functions in the GlusterStabilityTestSetupvamahaja2019-08-131-1/+4
| | | | | Change-Id: Ia4e0fb737b16ea7bdc8ffd5ae44cdd418471552a Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add TC run IOs when gluster-blockd service is downnigoyal2019-07-091-0/+15
| | | | | | | 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/+52
| | | | | | | move gluster-block stability TC to new module named 'gluster_stability/test_gluster_block_stability.py'. Change-Id: Iac1f432e438a2815bdc2115ab19e0170e46930c1
* Fix support of OCP3.6 and 3.7Valerii Ponomarov2019-04-111-2/+6
| | | | | | | 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-111-4/+4
| | | | | | | | | | | | | | | | | | 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
* Unskip TCs with recreation of Gluster PODsValerii Ponomarov2019-03-191-0/+7
| | | | | | | | BZ-1632873 was fixed, hence, unskip test cases which were skipped due to this BZ. Also, make it run only on containerized Gluster clusters. Change-Id: Iee49a303c4f191652d1c94c18e830e6d2fb4e381
* Reorder lib files removing redundant dir layerValerii Ponomarov2019-03-181-0/+318
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