summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [Lib+tc]Add testcase and library to validate total count of volumesSri Vignesh2019-09-252-0/+55
| | | | | | | | 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>
* Add TC to validate setting node and device tags for arbiter volrgeorge2019-09-251-10/+24
| | | | | Change-Id: Ife24a38ce9787de1d9cca71206a7f98be27da6c4 Signed-off-by: rgeorge <rgeorge@redhat.com>
* Add tc to create max number of BlockHostingVolumeskasturiNarra2019-09-241-1/+103
| | | | | | | | Validate whether creation of maximum supported blockvolumes doesn't have any impact to the functionality of gluster-block. Change-Id: I2a1503f527da2d1d916e87ce154e88bf9b5e1fa8
* Add TC delete a newly added deviceArun Kumar2019-09-241-0/+59
| | | | | | | Add a device, check there are no bricks on the device and verify the device deletion. Change-Id: I0e6adafb730e8d82926ce4e1d7b6b3c4799efc1b
* Fix typos in verify_volume_name_prefix function's descriptionadityaramteke2019-09-231-1/+1
| | | | Change-Id: I46ad6aefd3c699b4ce7807db89c2016791a48e05
* Add multiple PVCs states waiterValerii Ponomarov2019-09-232-49/+64
| | | | | | | | 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
* Fix two heketi zones test cases where we have 4 unique zonesValerii Ponomarov2019-09-201-2/+7
| | | | | | | | | By default, we create replica-3 file volumes. And when we have more than 3 Heketi nodes located in unique zones, we should check that our file volume is located in 3 unique zones, not bigger. So, fix this bug. Change-Id: Id82626425473f5e480ad73b0e17b7a0d675ba8ba
* Add tc test_pvc_resize_greater_valuecrombus2019-09-191-4/+37
| | | | | | | | create app pod attached to pvc resize pvc to size more than available size expand the volume to a available size Change-Id: Iae652fc13f1c5e39e6550529b81b9cd1cd0e4b38
* 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
* Add waiter for multiple resources absenceValerii Ponomarov2019-09-192-38/+65
| | | | | | | | | | 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
* Merge heketi node operation tests in one class and fix libraryvamahaja2019-09-194-238/+128
| | | | | | | | | | | | | | | | 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>
* Add testcase for passing clusterid when creating storage classAshmitha2019-09-183-3/+31
| | | | Change-Id: I4a6fd02f5713b4e86a9d70cdaffd3ca9369932f4
* Add TC stop glusterd on 2 nodes and create heketi volumeArun Kumar2019-09-171-0/+38
| | | | | | | Stop glusterd on 2 of the nodes/pods in the cluster containing alteast 5 gluster nodes and verify creation of volume using heketi. Change-Id: I94570f5bbfa20c19f11f4e14e29d2b1a40612fc5
* Add testcase to validate path failureskasturiNarra2019-09-171-0/+80
| | | | | | | | | | | | | Simulate situation where we have block pvc attached to a pod and some I/O is created on the pod. After sending "delete" command to it, iqn's present on the nodes where app pods are running are expected to be logged out and migrated to a new node where new pods are running. Also data in the app pod is expected to be the same. Change-Id: Ia3a9e77902a29b942b151ea4874125423520f46f
* Add TC create and delete PVC's when block services are downNitin Goyal2019-09-162-2/+187
| | | | | | | 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
* Fix multiple usages of waitersValerii Ponomarov2019-09-163-10/+17
| | | | | | | | | | | | | | | | Fix consists of 2 parts: - Calculate correctly left time for waiting in 'scale_dcs_pod_amount_and_wait' function. Before, it had bug, where we were waiting less time than requested. And it led to the unexpected timeout errors. Example: it could fail waiting only 180sec having 600sec as real timeout. - Reset 'attempts' on the instantiated 'waiter's to avoid redundant waiting reusing the single waiter instance. Example. On deletion of 20 PVCs we save about 1,5 minutes. In whole test suite we create much more PVCs than 20. Change-Id: I5d06a63dd0c2c5bd67fdb09fef87948d65e6bf22
* Add TC missing parameters in SCNitin Goyal2019-09-161-0/+30
| | | | | | | Add new TC missing parameters for file storage class and verify PVC pending state. Change-Id: Ibd8f418934da261058adb4127e60f85465a5ef75
* 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 for the heketi zones featureValerii Ponomarov2019-09-133-1/+211
| | | | | | | | | | 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-135-55/+77
| | | | | | | | | | | 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>
* Fix get gluster pod library for independent clustervamahaja2019-09-131-0/+3
| | | | | | | | | | | | "get_ocp_gluster_pod_details" library gives error "IndexError: list index out of range" in case of independent mode setup as "get_custom_resource" returns "[[]]" which in not none. Added fix to check if any element present in list. Change-Id: Iffd081f835ffaf9cb50c020cd297444ea2678950 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add test case to try creation of storage class with duplicate nameAshmitha2019-09-123-3/+15
| | | | Change-Id: If30737958bc667264fc01fe81d411f406b501918
* Add test cases to perform heketi cluster operationsvamahaja2019-09-112-0/+140
| | | | | Change-Id: I5886680a0d5666c68c677893e0fb327be0e80760 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Change import statement to import all functions instead of all modulevamahaja2019-09-111-62/+67
| | | | | Change-Id: I9cffdb09826e993de6db3d558996c7b46c92a03f Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add tc to validate all gluster IP utilized by blockvolumeskasturiNarra2019-09-111-0/+67
| | | | | | | Testcase to check if all gluster nodes are utilized for block volume creation Change-Id: Id3762d3aff85a628ed972b19fbe15bfa223376c6
* Move func get_block_hosting_volume_by_pvc_name to baseclasskasturiNarra2019-09-092-24/+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 TC abrupt reboot of initiator nodeNitin Goyal2019-09-062-0/+125
| | | | | | | Add new TC where we verify rediscovery of iscsi paths which happen after abrupt reboot of initiator node. Change-Id: I841e875881c47f8215d48821cd76c0399d43badc
* Add tc where we check vol size and brick amount config limits in HeketiValerii Ponomarov2019-09-061-0/+100
| | | | | | | | Add test case where we set and test Heketi config options to limit lower/upper allowed volume size and amount of bricks per volume. Change-Id: Ifb5cf64bba34dbf4e89f2fe9364263385a04cfa7
* Add testcase to validate creation of replica 2 volumeSri Vignesh2019-09-061-0/+30
| | | | | | | | Verify creation of replica 2 volume and validate the bricks created in gluster backend are same. Change-Id: I9fcc090e909d9bf578cf8eca6e12e4f785140e3f Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Add testcase to creation of block volume with nameSri Vignesh2019-09-061-0/+20
| | | | | | | Validate creation of block volume with name Change-Id: I08ee31201d42a95f8a829eb54ce68421903fdbbf Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Add TC verify heketi mount pointNitin Goyal2019-09-061-0/+50
| | | | | | | Add new TC where we verify given heketi mount point in volume info is working. Change-Id: Ia03af9ea6729cdfadf663abe46db7184a8b6fe2c
* 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
* Correct description of libraries in gluster_ops moduleNitin Goyal2019-09-061-2/+2
| | | | | | Changed the description of libraries in gluster_ops where it was wrong. Change-Id: I8ea9ec4ff1f28250d4544d6329b386271cf1e551
* Add testcase to create and delete distributed-replicated bhvSri Vignesh2019-09-061-5/+14
| | | | | | | | validate creation and deletion of distributed-replicated bhv. Change-Id: Ia42ace7e5be53fa7a00f88378575205e7fd5ba97 Signed-off-by: Sri Vignesh <sselvan@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>
* Add testcase to block device creation with different auth valuesSri Vignesh2019-09-051-0/+29
| | | | | | | | validate block volume creation with different auth values Change-Id: I820f65a5aaa5adc6cb58b16b18b6c93b22177d45 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Add functionality to create more than 1 DC in parallelValerii Ponomarov2019-09-043-50/+105
| | | | | | | | 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
* Add CRS support for test cases by using node rebootvamahaja2019-09-032-60/+96
| | | | | Change-Id: Icdbb3a626d96c1f762f5616623ea6bc99d56ef3c Signed-off-by: vamahaja <vamahaja@redhat.com>
* Fix pep8 errors in the files of the 'openshift-storage-libs' dirValerii Ponomarov2019-09-036-43/+43
| | | | Change-Id: Iaa7deca275958d4de68601dc16d1920f3dab85f2
* Fix pep8 errors in the files of the 'deployment' dirValerii Ponomarov2019-09-033-34/+35
| | | | Change-Id: I4b469969a041eaf4ccb6d95a59d6d2332c6c845c
* Fix pep8 errors in the files of the 'tests' dirValerii Ponomarov2019-08-3012-82/+78
| | | | Change-Id: I26c750c68055c6cc50de8015942d0d9725819aaf
* Enable more pep8/flake8 rulesValerii Ponomarov2019-08-301-0/+1
| | | | | | | | | By default, lots of rules are disabled and we track them manually. So, fix it by setting explicit list of rules we skip. Set the only skipped rule as of now to the W503, which is opposite to the enabled W504. Change-Id: Ib4d17177ac0a5cd11d8ff389883dbf83743faf35
* Add TC app pod deletion when initiator and target on same nodeNitin Goyal2019-08-281-0/+109
| | | | | | | This TC verify iscsi login and logout is happening properly on deletion of app pod when initiator and target on same node. Change-Id: Ia812cbbddef4fcab2f3762c930a38c0c8af62417
* Add test for arbiter volume deletion using PVCManisha Saini2019-08-281-0/+69
| | | | | | Change-Id: I8e3aed5e26eff3e76246c03cbd13f0f84b6a29f6 Signed-off-by: Manisha Saini <msaini@redhat.com> Signed-off-by: vamahaja <vamahaja@redhat.com>
* Fix "openshift_storage_version" to get valid version for OCS 3.10 & 3.9vamahaja2019-08-281-4/+14
| | | | | Change-Id: Ia0325c4309837fe3f89eab3c066775f9fb1ab1de Signed-off-by: vamahaja <vamahaja@redhat.com>
* Fix error handling logic in the "vmware" cloud providerNitin Goyal2019-08-271-4/+4
| | | | | | | | Fix error handling logic in the "vmware" cloud provider module by adding "raise" statement in places where it is lost. Change-Id: I92e97da4109bc6ab7368b41d2a6886e9f2be31c1
* Remove extra '-' from create_secretNitin Goyal2019-08-202-2/+2
| | | | Change-Id: I2ebc1c2e7e7aefb5e0d70342a7ec243a12b0663b