summaryrefslogtreecommitdiffstats
path: root/tests/functional
Commit message (Collapse)AuthorAgeFilesLines
* Add TC deleting bunch of PVC's during network failureArun Kumar2019-11-261-0/+80
| | | | | | | | 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
* Add tc where targetcli fails during block PVC creationValerii Ponomarov2019-11-221-0/+127
| | | | | | | Add tc where we simulate targetcli failure in parallel to the block PVC creations. Change-Id: I6f94079593d8ff978c321b64729b4c0b67810c23
* Add TC restart initiator node when gluster node is downNitin Goyal2019-11-221-0/+107
| | | | | | | 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-0/+72
| | | | | | | Add new TC where it will verify PID's of gluster volumes are same when volume options value is different. Change-Id: Ie0cae1ad3fdfd35e4c0e7f01e3a048b62b185369
* Add TC's related to network side failures while I/O's are runningArun Kumar2019-11-211-0/+50
| | | | | | | Verify I/O's are running when we close the ports 3260 and 24010 on the active or passive paths Change-Id: Ib1d69fca8f4894fd50bcc30f23ec0304f2fb5230
* Modify and move 'topology_volumes_with_bricks' func to 'heketi_ops.py'Sri Vignesh2019-11-211-39/+22
| | | | | | | | 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>
* Add test for inconsistencies in targetcli when BHV is downAditya Ramteke2019-11-191-1/+86
| | | | | | | Confirm no inconsistencies occur in targetcli when block devices are created with one block hosting volume down. Change-Id: I2a755ef2a88c6e6ca5326be3787ac07c0fb7db26
* Add test case to automate heketi add node to a invalid clustervamahaja2019-11-191-0/+17
| | | | | Change-Id: I482ac6ebed181546a18595c6a6b21d2115782b3a Signed-off-by: vamahaja <vamahaja@redhat.com>
* Fix test case "test_heketi_node_add_with_valid_cluster"vamahaja2019-11-191-39/+93
| | | | | | | | | | 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 test case to automate heketi add node into valid clustervamahaja2019-11-141-0/+110
| | | | | Change-Id: I4a2ac7b819929c2de6c8ea5520257800d2e134cc Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add vol expansion cases setting heketi zones checking flagValerii Ponomarov2019-11-141-22/+50
| | | | | | | | | | | | | | Following combinations are added: - 1 zone, replica3 volume, no zone checking flag - 1 zone, arbiter volume, no zone checking flag - 2 zones, replica3 volume, no zone checking flag - 2 zones, arbiter volume, no zone checking flag - 3 zones, replica3 volume, no zone checking flag - 3 zones, arbiter volume, no zone checking flag - 3 zones, replica3 volume, strict zone checking flag - 3 zones, arbiter volume, strict zone checking flag Change-Id: I130dcc7c6306b1cdfdee6a860fced19f48474006
* Add testcase to create volume with snapshot enabledSri Vignesh2019-11-141-0/+39
| | | | | | | | Validate creation of volume with snapshot enabled and create and delete snapshot created. Change-Id: I7173ed6fb6659963e29cc0f1b1ede0ce7c6fe2a4 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Add testcase to validate node count with heketi db checkSri Vignesh2019-11-131-0/+15
| | | | | | | | Validate total nodes count in heketi db check is same as heketi node list. Change-Id: I6004537c251f8e512afabe88e0fb284624421b8d Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Add testcase to validate block volumes with db checkSri Vignesh2019-11-111-13/+17
| | | | | | | Validate block volumes using heketi db check in heketi blockvolume list are same. Change-Id: Ibbaf038c05ef347d195140c2ba2c18f2d58c3b5e Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Add TC creating bunch of PVCs during network failureArun Kumar2019-11-081-0/+36
| | | | | | | | 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-1/+1
| | | | | | | | | | | | | | | 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>
* Fix 'test_volume_create_delete_when_block_services_are_down' tcValerii Ponomarov2019-10-281-54/+46
| | | | | | | | | | It happens that regex fail to find expected message in oc events related to the stopped service. The reason is in the not static part of the error message, it may vary. So, fix mentioned tc by removing part of the regex, which can vary. Also, update several other parts of the tc making it use less codelines. Change-Id: I905f63b2b9aefbe72df610d223da4569ccb14d5e
* Add possibility to check Heketi DB inconsistencies after each tcValerii Ponomarov2019-10-253-0/+3
| | | | | | | | | 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
* Fix 'test_tcmu_runner_failure_while_creating_and_deleting_pvc' tcValerii Ponomarov2019-10-181-20/+2
| | | | | | | | | | | | 'test_tcmu_runner_failure_while_creating_and_deleting_pvc ' tc may fail occasionally when one of the following situations happen: - PVs get deleted very fast, so tc may fail to get their statuses. - PVs may not be updated in time due to the 'slowness' of a cluster. So, to avoid problems related to the above mentioned situations, just check all the deleted and created PVCs, not filtering them. Change-Id: Ib24c5fd7c3310daa0e5523f2c6c1fd90bd958e60
* Add library to get heketi block volumes by name prefixvamahaja2019-10-172-72/+16
| | | | | | | | | | | | | | 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/+68
| | | | | Change-Id: I22410ad8c81ca71ac9c2cbaddd66f086abcdf3c5 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Fix raise exception for test case test_sc_glusterfile_missing_parametervamahaja2019-10-031-1/+2
| | | | Change-Id: I81f827f04d8795cb1821d796418cf61578dde037
* Add TC create and delete PVC's when gluster-blockd is downNitin Goyal2019-09-251-7/+12
| | | | | | | Add TC verify PVC's create and delete fails while gluster-blockd service is down on one node. Change-Id: I73332f667526891e0fadf050f53bb33394519566
* Delete block volume when one node is downadityaramteke2019-09-251-0/+43
| | | | | | | | Create block volume with hacount 4 when one of the four nodes is down. Also, create a block volume with hacount 3 and verify volume creation is succesful. Change-Id: I4bf8b178ac92a71fa5e6b7e9e8220da04c6e872d
* Add TC to validate creation of 100 app pods with block volumesrgeorge2019-09-251-0/+95
| | | | | | | | | Validate the creation of 100 app pods with block volumes attached to it. Verify iscsi login, multipath and check for volume mismatch across OCP, heketi and gluster Change-Id: If400b8d3fe3d0ba0f22169633f0bb537f3f237e5 Signed-off-by: rgeorge <rgeorge@redhat.com>
* Add TC Fail tcmu-runner service while creating and deleting pvcArun Kumar2019-09-251-0/+89
| | | | | | | | | | Create 8 Block PVC and wait for them to get bound. Delete created PVC's and create 8 more PVC's simultaneously. Kill the tcmu-runner service while PVC creation and deletion is in the progress. Restart all the services related to block volumes and verify all pending operations are completed sucessfully. Change-Id: I0cb4cd29b92233a65be93f4b96f1a9a0cb8bed9f
* [Lib+tc]Add testcase and library to validate total count of volumesSri Vignesh2019-09-251-0/+22
| | | | | | | | 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 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
* Merge heketi node operation tests in one class and fix libraryvamahaja2019-09-193-221/+108
| | | | | | | | | | | | | | | | 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-181-0/+26
| | | | 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-161-1/+181
| | | | | | | 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 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
* Add test cases for the heketi zones featureValerii Ponomarov2019-09-131-0/+201
| | | | | | | | | | 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-134-55/+35
| | | | | | | | | | | 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>
* Add test case to try creation of storage class with duplicate nameAshmitha2019-09-121-1/+10
| | | | Change-Id: If30737958bc667264fc01fe81d411f406b501918
* Add test cases to perform heketi cluster operationsvamahaja2019-09-111-0/+96
| | | | | 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-091-24/+0
| | | | | | | | 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-061-0/+99
| | | | | | | 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