summaryrefslogtreecommitdiffstats
path: root/openshift-storage-libs/openshiftstoragelibs/heketi_ops.py
Commit message (Collapse)AuthorAgeFilesLines
* [LibFix] Correct heketi version for new featuresNitin Goyal2020-12-111-2/+2
| | | | | Change-Id: I07a9aba662e6911cd10f68e9e2c52d4d26c311f3 Signed-off-by: Nitin Goyal <nigoyal@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>
* [LibFix] Fix 'heketi_ops' libraries return statement docstringsArun Kumar2020-06-041-13/+13
| | | | | Change-Id: I123fbf1b6ff8794454d61a57493e0bdfbcd217fe Signed-off-by: Arun Kumar <aanand01762@gmail.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 parameter raise_on_error to the heketi librariesArun Kumar2020-04-071-95/+212
| | | | | Change-Id: I7f317d6e6c8f86dc0c5e8bbe0a42a4586751d2e1 Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [lib] Add lib to match PV, Heketi and get gluster vols by name prefixSushilG962020-01-241-0/+32
| | | | | | | | | | | | 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
* 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 new TCs remove or delete heketi nodeNitin Goyal2019-12-051-0/+38
| | | | | | | 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
* 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>
* Fix test case "test_heketi_node_add_with_valid_cluster"vamahaja2019-11-191-0/+39
| | | | | | | | | | 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 library to get heketi block volumes by name prefixvamahaja2019-10-171-0/+32
| | | | | | | | | | | | | | 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 test cases to perform heketi cluster operations with nodesvamahaja2019-10-171-0/+49
| | | | | Change-Id: I22410ad8c81ca71ac9c2cbaddd66f086abcdf3c5 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add new library heketi_node_removeNitin Goyal2019-10-101-0/+34
| | | | Change-Id: I96759bbcd74cad7755c99255b4b96261133d5adc
* [Lib+tc]Add testcase and library to validate total count of volumesSri Vignesh2019-09-251-0/+33
| | | | | | | | 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>
* Fix typos in verify_volume_name_prefix function's descriptionadityaramteke2019-09-231-1/+1
| | | | Change-Id: I46ad6aefd3c699b4ce7807db89c2016791a48e05
* Fix heketi_blockvolume_create lib descriptionNitin Goyal2019-09-191-1/+1
| | | | | | Change the 'cluster' to 'clusters' in kwargs description. Change-Id: Iac9170d0549adc6bb5b76f5772de47d1db083951
* Remove json description from heketi_device_add libNitin Goyal2019-09-191-1/+0
| | | | | | | Remove json description from heketi_device_add library as it is not supported. Change-Id: If3121294dc9456587af36d65726842f399730a9b
* [Revert] "Fix heketi_device_add library"Nitin Goyal2019-09-191-2/+0
| | | | | | This reverts commit 046244942f7ad3f5f24b675dfa299ad955f1412f. Change-Id: I1f49d613af3dd236bf4113db757cbf9ce752e973
* Merge heketi node operation tests in one class and fix libraryvamahaja2019-09-191-17/+20
| | | | | | | | | | | | | | | | Fix consists of - - Use "**kwargs" approach in the "heketi_node_list" function as it is done in lots of other functions. - Parse the CLI output in the "heketi_node_list" function using regex instead of the splitting and stripping strings. - Combine test cases related to the same feature into one module - test_heketi_node_operations.py - Remove redundant checks which already exist in common libraries. - Remove unnecessary logging. Change-Id: I815ddfbbacb765140229e7630ec87a6bbaa6255b Signed-off-by: vamahaja <vamahaja@redhat.com>
* Fix heketi_device_add libraryNitin Goyal2019-09-161-0/+2
| | | | | | As part of the fix loaded the output into json which was missed. Change-Id: Ia3d07f768362232ec2b34641be1a6ae4c4eec399
* Add test cases to perform heketi cluster operationsvamahaja2019-09-111-0/+44
| | | | | Change-Id: I5886680a0d5666c68c677893e0fb327be0e80760 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [Library]: Modification in block volume create with nameSri Vignesh2019-09-051-3/+3
| | | | | | | | modification in block volume name parameter passed twice while creating Change-Id: Ieb827a8e7fa40a84eed7f8c5e90760710e6615b2 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Fix pep8 errors in the files of the 'openshift-storage-libs' dirValerii Ponomarov2019-09-031-13/+15
| | | | Change-Id: Iaa7deca275958d4de68601dc16d1920f3dab85f2
* Fix test cases skipped due to closed bugsvamahaja2019-08-191-0/+97
| | | | | | | | 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 test case where BHV and BV are created and deletedkasturiNarra2019-07-191-0/+30
| | | | | Change-Id: I7ead23c46a472fee70d684c45f32f5e4efb0674f Signed-off-by: kasturiNarra <knarra@redhat.com>
* Make Heketi commands run on a Heketi POD when main command failsValerii Ponomarov2019-07-111-295/+126
| | | | | | | | It happens that heketi client located out of the Heketi POD may fail not reaching the server side. So, add back-up approach where we run Heketi commands on a Heketi POD when main commands fail. Change-Id: Ie6ae5be82082f34426f9288b02575e3abd4940f5
* Add TC expansion of block hosting volume using heketiNitin Goyal2019-05-231-0/+34
| | | | | | | This TC verify the expanshion of BHV and after expanding volume verify that space is usable. Change-Id: I2621aedc1cbddcad374fe52013aba2d48acfd1e0
* Add py3 support to our tox config and fix several incompatibilitiesValerii Ponomarov2019-04-111-1/+6
| | | | | | | | | | | | | | | | | | 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
* Add timeouts for heketi commandsValerii Ponomarov2019-03-191-0/+32
| | | | | | | | | | | | | | | It happens, that Heketi commands hang. So, to avoid cancelling of whole test runs, add timeouts for Heketi commands. By default, timeout is 120 sec (2 min). If it is needed to change default value, then define following config option: common: heketi_command_timeout: 180 Change-Id: I79f33daa05bde9a37245e94e66042944c6cd9242
* Reorder lib files removing redundant dir layerValerii Ponomarov2019-03-181-0/+1516
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