summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [Test] Add TC create block vol of size greater than free space in BHVrachael-george2020-03-231-0/+62
| | | | | Change-Id: Ie44ec19689c0a28864dbd681a403a4cddcd9ffc3 Signed-off-by: rachael-george <rgeorge@redhat.com>
* [Test] Add TC to delete arbiter PVC which is mounted on app podrachael-george2020-03-231-0/+94
| | | | | Change-Id: I0e3dc795b76edd73a19a10224bb7f28fa3e28f42 Signed-off-by: rachael-george <rgeorge@redhat.com>
* [TestFix] Remove skip marker for bug bz-1714292vamahaja2020-03-231-4/+1
| | | | | Change-Id: I51d6e8ce22e90668582f5b8403f6024c6027b7d7 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [TestFix] Fix tier0 & tier1 mark for tcsvamahaja2020-03-232-2/+2
| | | | | Change-Id: I245d2915d30a42c83a4f4ac12f8f7a23cb4888ee 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>
* [Fix] Update branch for glusto in tox.ini for py3kshithijiyer2020-03-201-1/+1
| | | | | Change-Id: I10642910362e0eca57d913e4ac15496862fef8cf Signed-off-by: kshithijiyer <kshithij.ki@gmail.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>
* [Config] Add variables for system testingNitin Goyal2020-03-181-0/+10
| | | | | | | Add variables in config file which will help us to scale our setup. Change-Id: I99739a090c1b2fd92afc2242b5ec6552205ce92f Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
* [TestFix] Add pytest marker for tier1 test casesvamahaja2020-03-1723-0/+106
| | | | | Change-Id: I1d497a9b61762e68558026ddc49e5269b0354ce1 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [TestFix] Add pytest marker for tier0 test casesvamahaja2020-03-1320-0/+86
| | | | | Change-Id: I29093a09c3f0cc09eaa9c6d94bad882c0bafd91c Signed-off-by: vamahaja <vamahaja@redhat.com>
* [Testfix] Fix function call for `get_pod_name_from_dc`vamahaja2020-02-281-1/+1
| | | | | | | | | | | | | | | Fix consists of - Remove dc name which is passed twice to function 'get_pod_name_from_dc' In test case 'test_heketi_metrics_heketipod_failure' function 'get_pod_name_from_dc' is called by passing dc name twice, because of which 'timeout' is passed as dc name instead of integer value hence raising an exception 'TypeError'. Change-Id: I6827a8f9bbd847f346ea6b519db97181219f9717 Signed-off-by: vamahaja <vamahaja@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-203-6/+49
| | | | 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
* [Test] Add tc to validate arbiter volume create after removing node tagSushilG962020-02-031-0/+63
| | | | | Change-Id: I6552a5de34b329ff5638898bac36a4d5ec5291a3 Signed-off-by: susgupta <susgupta@redhat.com>
* [Test] Add tc to validate heketi volume snapshot create operationSushilG962020-01-301-0/+37
| | | | Change-Id: I757388d8f9c14549a7ec408868e3b86c92362a22
* [Test] Add tc to utilize all available free space of cassandra pod PVCArun2020-01-271-0/+28
| | | | Change-Id: I7645a8aecad7fd0a94b7f769018be0b4ac9070d9
* [Test] Add tc for matrics validation during oc drainArun2020-01-241-9/+40
| | | | Change-Id: Ie6bda59e6bee1bde5d2b04a5c8c311d9c046c7a5
* [Test] Add tc to validate matrics during cassandra pod deletionArun2020-01-241-0/+52
| | | | Change-Id: Ie72a25ce90fd10dd8b86878d235d71814703b1ef
* [Test] Add tc to validate PVC, heketi and gluster vol mapping in scaleSushilG962020-01-241-0/+27
| | | | Change-Id: I556e7f03013bd39780f2107f91aedec87a3c2ee0
* [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
* [TestFix] Optimize repeated dictionary access using loopkshithijiyer2020-01-201-3/+2
| | | | | Change-Id: I332a66659b5abefb5d5052232ec9b61124860575 Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* Refactor heketi device test casesvamahaja2020-01-182-75/+70
| | | | | | | | | | | | | | | | | | | | | List of changes - 1. Remove test file 'test_device_info.py' as it contains only one test case which can be part of test file 'test_heketi_device_operations.py' 2. Change test case name 'test_device_enable_disable' to 'test_heketi_device_enable_disable' 3. Change test case name 'test_device_remove_operation' to 'test_heketi_device_remove' 4. Change test case name 'test_heketi_with_device_removal_insuff_space' to 'test_heketi_device_removal_with_insuff_space' 5. Chnage test case name 'test_heketi_device_delete_operation' to 'test_heketi_device_delete' 6. Move test case 'test_heketi_devices_info_verification' to 'test_heketi_device_operations.py' and rename as 'test_heketi_device_info' Change-Id: I8ddc9beb7bc697214242212e50c9727ce644f2c1 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Fix TC 'test_delete_block_pvcs_with_network_failure'Arun2020-01-171-11/+37
| | | | | | | | | | | TC is failing when there are no BHV's before running the TC TC is failing during the validation of the total free space Add following steps to fix the problem: - Get the default BHV size if there are no BHV's before excuting the TC - Calculate total initial free space of all the BHV's - Compare the initial and final free space of BHV's Change-Id: Ic13c201ad04b02b80ca73d41b3c42451202ed181
* 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>
* [py2to3] Fix dict.values() py3 incompatibilitiesvamahaja2020-01-132-2/+2
| | | | | Change-Id: Ibb96e961b1501ef696858a5eec80422471e877fd Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add TC verify gluster pod respin does not affect the metricsArun2020-01-132-1/+74
| | | | | | | | Delete a gluster pod which is hosted on active path Wait for new gluster pod to come up Verify the state of cassandra pod, iscsi and multipath Change-Id: Iba938e7203e6fb86cd953c48040f6f730df8626c
* 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