summaryrefslogtreecommitdiffstats
path: root/openshift-storage-libs
Commit message (Collapse)AuthorAgeFilesLines
* [Lib] Add library for peer probesusgupta2021-02-051-1/+90
| | | | | | | This lib will run peer probe cmd in run_async Change-Id: I9c541a8e80da8367dc2dbd8aa42da1e312080826 Signed-off-by: Sushil Gupta <susgupta@redhat.com>
* [LibFix] Correct heketi version for new featuresNitin Goyal2020-12-111-2/+2
| | | | | Change-Id: I07a9aba662e6911cd10f68e9e2c52d4d26c311f3 Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
* [Test] Add TC's to validate elasticsearch pod respinArun Kumar2020-12-111-2/+7
| | | | | Change-Id: I2c969b67bb30666a0616919ced39653d9166ef38 Signed-off-by: Arun Kumar <arukumar@redhat.com>
* [Lib] Add lib 'heketi_brick_evict'Nitin Goyal2020-12-091-0/+37
| | | | | Change-Id: I3fe4d9befc233e0c9c52839df7c722d9e291a22c Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
* [Lib] Add lib heketi_blockvolume_expandNitin Goyal2020-12-081-0/+49
| | | | | | | The lib will expand heketi block volume Change-Id: I0264bdc2407cf019dbb3524cbbbf29b5e9dbb9e3 Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
* [Lib] Add lib is_job_completeNitin Goyal2020-12-081-0/+20
| | | | | | | Lib will check the job completion status Change-Id: Ifbcdc9f18e4d3af5b290982eb4a084459877f91b Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
* [Lib] Add lib oc_create_offline_block_volume_expand_jobNitin Goyal2020-12-081-0/+85
| | | | | | | The lib will create a k8s JOB for expanding block PVC. Change-Id: I18b4f45b30c7541e90bfcb13bf819b1542560ba8 Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
* [TestFix] Add config to read i/o imagesvamahaja2020-12-082-34/+20
| | | | | | Add support to pass I/O image from config file Change-Id: I2c943ba0efaeab3a44eef63030965f36f8086c1b
* [LibFix] Add parameter to lib 'oc_delete' to check resource presenceSushil Gupta2020-12-031-2/+5
| | | | | Change-Id: I3382f9c52013a58f038f28b1c3d64a82ece813f6 Signed-off-by: Sushil Gupta <susgupta@redhat.com>
* [Test] Add TC to perform post deployment validations of prometheusArun Kumar2020-09-281-10/+25
| | | | | Change-Id: I026f2aa944aaa6b338c45c54ac4504ecb854f00c Signed-off-by: Arun Kumar <arukumar@redhat.com>
* [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-262-0/+90
| | | | | Change-Id: I61364640386ee6706276ff253f5f5bf58cf5ba24 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* [Lib] Add lib to attach and detach disk for dev path TC'sSri Vignesh2020-08-262-0/+247
| | | | | Change-Id: Ifbc1c584203f2867916c2dc60b82520fc3fdcdde Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* [LibFix] Add support for heal check of one particular volumeArun Kumar2020-07-291-5/+20
| | | | | Change-Id: Ib99aec711c2ae520a373bb2673ac58dd51c3c070 Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [Test] Add TC fill arbiter brick, shutdown data brick node and run ioArun Kumar2020-07-063-25/+57
| | | | | Change-Id: I36d44123db24154fe0aefc905ad2f5a5e5061558 Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [Lib] Add library to get the free inodes of bricksArun Kumar2020-07-061-0/+35
| | | | | Change-Id: I4ef9114a30dfd6fe18c4ba15b0cbbd32b8fc44f3 Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [LibFix] Add 'collect_logs' param in 'oc_delete' libvamahaja2020-07-022-5/+15
| | | | | Change-Id: I9d99f367b82c6570e1390c6b137e0b9bf401a19c Signed-off-by: vamahaja <vamahaja@redhat.com>
* [LibFix] Fix 'heketi_ops' libraries return statement docstringsArun Kumar2020-06-041-13/+13
| | | | | Change-Id: I123fbf1b6ff8794454d61a57493e0bdfbcd217fe Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [LibFix] Add parameter 'overwrite' in 'oc_label' librarySri Vignesh2020-06-012-3/+8
| | | | | Change-Id: I7f765605ae032f9054937ca9ed5a5db06bc73464 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* [Lib] Add library to valiadte heketi device uuid and vgArun Kumar2020-05-271-0/+34
| | | | | Change-Id: If583d912d6c24862f8b26424abf62f8e0942dc45 Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [LibFix] Add command output validation in lib 'validate_multipath_pod'Sri Vignesh2020-05-271-2/+8
| | | | | | | | | Library 'validate_multipath_pod' execute command to get host name by providing pod name, in case it returns blank next steps will fail due to blank hostname. Change-Id: Iac329204bd9ea17b019fb40edca43db72e8c3bb8 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* [LibFix] Fix library 'get_openshift_storage_version'vamahaja2020-05-081-10/+20
| | | | | | | | | Fix consists of - Add regular expression to get Openshift Storage Version based on environment variable 'ocsVersion' set in Dockerfile Change-Id: Iefed53a7af5b2867b68a4a8b72861047edcf1e4d Signed-off-by: vamahaja <vamahaja@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 'node_reboot_by_command' libraryvamahaja2020-04-131-41/+27
| | | | | | | | | | | | Fix consists of - 1. Currently waiter in 'node_reboot_by_command' function uses 'g.rpyc_get_connection' method to check for conection, which causing issue. Use 'wait_for_ssh_connection' method in same library which uses 'g.run' method. 2. Add parameter 'wait_for_connection' Change-Id: I81aecb126b1e4914a2dfb6dc8901da0a3a4329d0 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [LibFix] Add parameter raise_on_error to the heketi librariesArun Kumar2020-04-071-95/+212
| | | | | Change-Id: I7f317d6e6c8f86dc0c5e8bbe0a42a4586751d2e1 Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [LibFix] Fix 'g.rpyc_get_connection' library issuevamahaja2020-03-261-36/+48
| | | | | | | | | | 'g.rpyc_get_connection' library fails to set connection. Instead of using 'g.rpyc_get_connection' libray for modifying file remotely, create file locally and upload to remote location using 'g.upload' library. Change-Id: I85564ee5b7c28a9d866be033d18bd018f648cd5b Signed-off-by: vamahaja <vamahaja@redhat.com>
* [LibFix] Fix PVC create/status library timeoutsvamahaja2020-03-252-5/+6
| | | | | 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>
* [Config] Change setup.py fileNitin Goyal2020-03-181-2/+5
| | | | | | | Add Python versions and dependencies in the setup.py file. Change-Id: I2d012852542c496a56bdd34a5a5659b4b2c0020a Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
* [Lib] Add lib to get the memory of running processNitin Goyal2020-03-181-0/+33
| | | | | | | | Add lib 'get_process_memory_on_gluster_pod_or_node' to get the memory of running proces inside gluster pod or node. Change-Id: Ide2b09569407e8cf09c72af638d741d5926431c4 Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
* [Lib] Add arg label for labeling the DCNitin Goyal2020-02-252-6/+18
| | | | 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-202-4/+24
| | | | 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
* [lib] Add lib to match PV, Heketi and get gluster vols by name prefixSushilG962020-01-243-0/+83
| | | | | | | | | | | | This contains libraries - 1. match_pv_and_heketi_volumes - library for matching heketi volumes and PVCs. 2. heketi_volume_list_by_name_prefix - library to getvolume id and cluster id. 3. match_heketi_and_gluster_volumes_by_prefix - library for matching heketi and gluster volumes. Change-Id: I02af31405a9836000d758a2ffac932be13e52a03
* Fix 'yaml.load' which gives warningsvamahaja2020-01-162-3/+4
| | | | | | | | | | | | As per documenton [1], 'yaml.load(raw_data)' is deprecated and suggested to use parameter 'Loader=yaml.FullLoader'. Fix such instances of yaml.load in functions - oc_get_yaml, get_events and enable_pvc_resize [1] 'https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation' Change-Id: I1fc5544f6f7f12b55e420486b4460f26db214139 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add check for 'json' param in function 'get_block_hosting_volume_list'vamahaja2020-01-141-6/+7
| | | | | | | | | | 'get_block_hosting_volume_list' will get failed in case user pass 'json=True' value as this function works on raw output of 'heketi_volume_list'. Add code to pop 'json' param in case user pass 'json=True' value. Change-Id: Iad053762fd1fa0c25bc4d01c038d20450e29676c Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add TC and config data for metricsArun Kumar2019-12-262-15/+41
| | | | | | | | Test case to validate metrics add config data for metrics add config data of registry namespace to validate metrics Change-Id: I4886482ee33847f506ad898d4a313df866d0348c
* 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
* 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
* [py2to3] Fix various py3 incompatibilitiesValerii Ponomarov2019-12-112-16/+19
| | | | Change-Id: I6c517278c3f8bf6f374ab60bc27768e503161278
* Add new TCs remove or delete heketi nodeNitin Goyal2019-12-053-5/+52
| | | | | | | 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 heketi vol creation of size greater than device sizeNitin Goyal2019-12-021-0/+35
| | | | | | | Add new TC heketi volume creation of size greater than the device size and verify backup-volfile-servers, replicacount, brickscount etc. Change-Id: I87cbf0e1d8326ad077f02cf465105aca3f8bdde7
* 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-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
* Add TC deleting bunch of PVC's during network failureArun Kumar2019-11-261-5/+11
| | | | | | | | 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 restart initiator node when gluster node is downNitin Goyal2019-11-223-5/+140
| | | | | | | 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
* Modify and move 'topology_volumes_with_bricks' func to 'heketi_ops.py'Sri Vignesh2019-11-211-0/+32
| | | | | | | | 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>