summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add the contributor guideVinayak Papnoi2019-07-291-0/+202
| | | | | | | | | | | | | This guide provides extensive steps to get the developer started with the development for the project. There needs to be a contributor guide for every project. Things like git and gerrit setup which are essential for the development systems have been included in this guide along with some good practices where applicable. Change-Id: Ie1ad6e08680f2c30f9361a20c2ba68493abfb054 Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* [EC]Fix a script issue to change permission of the directoryubansal2019-07-291-2/+7
| | | | | | | | Added a line to change permission of the directory so that client side healing happens for the directory also Change-Id: If4a24f2dbd6c9c85d4cb2944d1ad4795dbc39adb Signed-off-by: ubansal <ubansal@redhat.com>
* Enable client-side heal as client-side healing is disabled by default in ↵Anees Patel2019-07-291-0/+10
| | | | | | | RHGS 3.5 Change-Id: I500912b5217b675f9fdff4fe1cb518b465de245c Signed-off-by: Anees Patel <anepatel@redhat.com>
* [glusterfind] Addition of 'Test' in the class name of glusterfind create testVinayak Papnoi2019-07-291-32/+24
| | | | | | | | | | | | | | The class name was missing 'Test' at the beginning. Changing the name of the class to 'TestGlusterFindCreateCLI' from 'GlusterFindCreateCLI'. Removing the setUpClass and tearDownClass and replacing them with setUp and tearDown. Changing the variable names to be intelligible. Change-Id: Ibb5d9c6ef75ef11960aad35d65c343fa08fc9de1 Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* Ansiblize NFS Client Setupkshithijiyer2019-07-231-0/+9
| | | | | | Change-Id: Id2ebcacfb375a6fe92ae299ac0058eca827d1022 Signed-off-by: Ambarish Soman <asoman@redhat.com> Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* Adding get_brick_processes_count() to brickmux_ops.kshithijiyer2019-07-231-0/+18
| | | | | | | | | | | Adding get_brick_processes_count() which can be used to get the number of brick processes running on a given node would be needed for brickmux testcases to check if brickmux is honored or not. Change-Id: I6ec608b8f9d715d0f21e95fc3c0293eed287b16c Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* [geo-rep] Removing 'create_shared_storage' function as separate libraries existVinayak Papnoi2019-07-231-23/+0
| | | | | | | | | | | The function 'create_shared_storage' is redundant as the same function is available as part of the shared-storage library. This part will be removed from the geo-rep library with this fix. To create/enable shared storage, make use of the shared_storage_ops.py library. Change-Id: Ibefca73140e1218f0aa9331f061ef4fc8d9360e3 Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* Adding testcase to remove /var/log/glusterfs and mounting volume.kshithijiyer2019-07-231-0/+125
| | | | | | | | | | | | | Test Case: 1. Create all types of volumes. 2. Start all volumes. 3. Delete /var/log/glusterfs folder on the client. 4. Mount all the volumes one by one. 5. Run IO on all the mount points. 6. Check if logs are generated in /var/log/glusterfs/. Change-Id: I7a3275aad940116c3506b22b13a670e455d9ef00 Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* Added more checking mechanism for crashesnchilaka2019-07-171-6/+16
| | | | | | | | | Added more checking mechanism for crashes, as sometimes coredumps may not get collected by systems due to settings and hence can miss out on any crashes hit Change-Id: Id45a844bd0d7877d335c06287d4db873776e89db Signed-off-by: nchilaka <nchilaka@redhat.com>
* Adding License section to README.md file.kshithijiyer2019-07-161-0/+3
| | | | | Change-Id: Ic4f90298472adfa83b8cdce9f523c6ba4d0fe75e Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* Adding code to not stop glusterd on mnode.kshithijiyer2019-07-081-6/+28
| | | | | | | | | | | | | This test case was failing in a test run as the mnode was not removed from the list self.servers because of which there were runs where glusterd was stoppped instead and command was executed on mnod.As well as adding code to check and start glusterd on the node in instances where the test case fails. Change-Id: Id203102d3f0ec82af0ac215f0ecaf7ae22b630f5 Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* Updating developer-guideVinayak Papnoi2019-07-031-2/+2
| | | | | | | Changing the class method to reflect 'cls' instead of 'self' Change-Id: Idaa78714ddd3a3638036c1506b1e38f410fdc259 Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* Modifying test_enabling_gluster_debug_mode to do more operations.kshithijiyer2019-07-021-3/+7
| | | | | | | | | | | | While running test_enabling_gluster_debug_mode through jenkins it was observed that running volume operation once wasn't generating enough of logs by the time the logs were checked which lead to failure of the test case in the jenkins run. So modifying the logic which generates logs to run operation in a loop to generated a good amount of logs. Change-Id: Id7a12c86a04dc86d4856dbe30d945e70e64ea4f7 Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* Converting text files to markdown files.kshithijiyer2019-06-304-47/+54
| | | | | | | | | It's better to use markdown files instead of text files for readme files. Hence converting readme files to readme.md files. Change-Id: I41c1b2f065895d885f4b1fabdc9b9e4051810e80 Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* [glusterfind] Test case to verify the 'glusterfind pre' functionalityVinayak Papnoi2019-06-301-0/+204
| | | | | | | | | | | | | | | | | | | | | | | Verifying the 'glusterfind pre' command functionality with valid and invalid values for the required and optional parameters. * Create a session on the volume * Perform some I/O from the mount point * Perform glusterfind pre with the following combinations: - Valid values for required parameters - Invalid values for required parameters - Valid values for optional parameters - Invalid values for optional parameters * Perform glusterfind post Where Required parameters: volname, sessname and outfile Optional parameters: full, debug, gftype, tagforfullfind, namespace, noencode, disablepartial, regenoutfile, outprefix, fieldsep Change-Id: Id795d632ebb8f43f49a9d15d83aced87670007b6 Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* [glusterfind] Test case to verify the 'glusterfind post' functionalityVinayak Papnoi2019-06-301-0/+199
| | | | | | | | | | | | | | | | | | | | | Verifying the 'glusterfind post' command functionality with valid and invalid values for the required and optional parameters. * Create a session on the volume * Perform some I/O from the mount point * Perform glusterfind pre - Perform glusterfind post with the following combinations: - Valid values for required parameters - Invalid values for required parameters - Valid values for optional parameters - Invalid values for optional parameters Where Required parameters: volname and sessname Optional parameters: debug Change-Id: Ia4c59b5ea3626d83bd6cedfda44e04ddbfa1567d Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* [glusterfind] Test case to verify the 'glusterfind query' functionalityVinayak Papnoi2019-06-301-0/+164
| | | | | | | | | | | | | | | | | | | | | | | Verifying the 'glusterfind query' command functionality with valid and invalid values for the required and optional parameters. *** glusterfind query command does not require a session to be created *** * Perform some I/O from the mount point * Perform glusterfind query with the following combinations: - Valid values for required parameters - Invalid values for required parameters - Valid values for optional parameters - Invalid values for optional parameters Where Required parameters: volname and outfile Optional parameters: full, debug, gftype, tagforfullfind, since, namespace, noencode, disablepartial, end, regenoutfile, outprefix, fieldsep Change-Id: I5b9dbc987cec0f4ff9e460f875da72de7c9fe1c5 Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* [glusterfind] Test case to verify the glusterfind delete functionalityVinayak Papnoi2019-06-301-0/+145
| | | | | | | | | | | | | | | | | | | | | | Verifying the glusterfind delete command functionality with valid and invalid values for the required and optional parameters. * Create a volume * Create a session on the volume * Perform glusterfind list to check if session is created * Delete the glusterfind session with the following combinations: - Valid values for required parameters - Invalid values for required parameters - Valid values for optional parameters - Invalid values for optional parameters * Perform glusterfind list to check if session is deleted Where: Required parameters: volname and sessname Optional parameters: debug Change-Id: I8240ccfd728cd7aa138103ffe1c24a705aa1b51c Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* Adding missing LICENSE file to the project.kshithijiyer2019-06-211-0/+674
| | | | | | | | | | | | | For all opensouce projects it's a must to have a LICENSE file in the root directory of the project. The LICENSE file describes the terms and conditions under which the project is open sourced. glusto-tests follows GNU GPL LICENSE which is missing this file in it's root directory. Hence adding GNU GPL LICENSE file to the project. Change-Id: I7e3675d1b7540c42cc0549aa501f15585887ed12 Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* [glusterfind] Test case to verify the glusterfind create functionalityVinayak Papnoi2019-06-172-0/+138
| | | | | | | | | | | | | | | | | | Verifying the glusterfind create command functionality with valid and invalid values for the required and optional parameters. * Create a volume * Create a session on the volume with the following combinations: - Valid values for required parameters - Invalid values for required parameters - Valid values for optional parameters - Invalid values for optional parameters Where: Required parameters: volname and sessname Optional parameters: debug, force, reset-session-time Change-Id: Ic46863f63679e3c26a95b1fa96138cb7d0c27a3d Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* Adding code to cleanup bricks in test_add_brick.pykshithijiyer2019-06-131-9/+18
| | | | | | | | | | | While executing the test suit it was observerd that the test case test_add_remove_brick was failing due to remains from the test case test_add_brick_functionality. Hence adding the code to clean all the briks post test in test_add_brick.py. Change-Id: Iace9e51582ab4fa1f0f184283e6205aa6140b4a2 Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* Optimized test case: tests/functional/glusterd/test_add_brickhadarsharon2019-06-091-65/+54
| | | | | | | | | | | Worked on the following: 1. Removed redundant throwaway variables (ret, _, _) 2. More consistent exceptions 3. Added comments within code 4. Clarified Error messages in case of Assertion Errors Change-Id: I8ca0acce848bd9a8a5d217b5a4e247590177154d Signed-off-by: hadarsharon <hsharon@redhat.com>
* Library: GlusterfindVinayak Papnoi2019-06-071-0/+536
| | | | | | | | | | | | | | Adding library for the glusterfind operations such as: * glusterfind create * glusterfind delete * glusterfind pre * glusterfind post * glusterfind query * glusterfind list Change-Id: I94372f8c4a14cc94d68451dec1763401d9d66d90 Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* [Snapshot] Fixing Jira ticket RHGSQE-233Vinayak Papnoi2019-06-061-56/+66
| | | | | | | | | Removing 'ExecutionError' raised inside the test case function. Adding the description for the test case function. Fixing the typo errors and various cosmetic changes. Change-Id: Ica505417f482c7a622be5da70c1053913cf3052c Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* [Snapshot] Fixing Jira ticket RHGSQE-234Vinayak Papnoi2019-06-051-60/+71
| | | | | | | | | Removing 'ExecutionError' raised inside the test case function. Adding the description for the test case function. Fixing the typo errors and various cosmetic changes. Change-Id: I496dc1df067870d43e5c3c97fc27da4294862eba Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* glusto-tests/glusterd: enable glusterd in debug modekshithijiyer2019-05-291-0/+169
| | | | | | | | | | | | | | | | | In this test case we will enable glusterd in debug mode and check the glusterd log for the debug messages. Steps followed: 1. Stop glusterd. 2. Change log level to DEBUG in /usr/local/lib/systemd/system/glusterd.service. 3. Remove glusterd log. 4. Start glusterd. 5. Issue some gluster commands. 6. Check for debug messages in glusterd log. Change-Id: Id1173be6da2ef1c2233459fb23f4b27308c923f2 Signed-off-by: Sanju Rakonde <srakonde@redhat.com> Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* This TC is to ammend the previous TC to prevent it from failing - picking up ↵sayalee2019-05-281-7/+29
| | | | | | | random servers which are not part of volume Change-Id: I8dcb8fcd8fd0bfaefcaf24a3f2aa222b44ff7f24 Signed-off-by: sayalee <root@localhost.localdomain>
* Adding find_and_replace_in_file & check_if_pattern_in_file to library.kshithijiyer2019-05-281-0/+46
| | | | | | | | | | | The function do the following in a nutshell: 1. find_and_replace_in_file: Find and replace a given pattern in a specific file. 2. check_if_pattern_in_file: Check if a give pattern is in seen in file or not. Change-Id: Ib035f54490592f2be32a30f0e8a10e7847812990 Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* Library: check arequal bricks checksum for replicated volumekshithijiyer2019-05-241-0/+60
| | | | | | | | | calculates arequal checksum for first brick in the subvol and compares it with all other remaining bricks in the subvol. Change-Id: Ifc34b29d7971673a8a19b3ba603f63e985be4150 Signed-off-by: srivickynesh <sselvan@redhat.com> Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* Adding the assert statement removed during changes.kshithijiyer2019-05-231-0/+2
| | | | | | | | | It seems like an assert statement got missed duing the recent changes. Adding back the assert and submitting a patch Signed-off-by: kshithijiyer <kshithij.ki@gmail.com> Change-Id: Ic8ab0d6e54da510faf479cd09cf122ccf8cedfbb
* nfs-ganesha: Test to verify mounting volume on another client while IO is ↵Jilju Joy2019-05-231-0/+151
| | | | | | | progressing on one client Change-Id: I42dceccaa0f257e25a4e5f2bc8d21f84e94216e0 Signed-off-by: Jilju Joy <jijoy@redhat.com>
* Adding is_ganesha_installed & is_ganesha_running to nfs_ganesha_ops.pykshithijiyer2019-05-231-0/+33
| | | | | | Change-Id: Ib557ce211f1616ef261bf414a2c0b3864a5be24e Signed-off-by: Ambarish Soman <asoman@redhat.com> Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* nfs-ganesha: Changes in test cases based on latest libraryJilju Joy2019-05-231-211/+428
| | | | | Change-Id: I78f987383725ef43caa62ad084dd64ec6be2363b Signed-off-by: Jilju Joy <jijoy@redhat.com>
* Changing systemctl to service to fix jira issue RHGSQE-197kshithijiyer2019-05-231-2/+4
| | | | | | | | Bug https://bugzilla.redhat.com/show_bug.cgi?id=1690254 has to be fixed before merging this patch. Change-Id: I90e669269fafa9d0a064a64883c3e4b88080d25f Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* Removing non-ASCII character from the fileJilju Joy2019-05-101-1/+1
| | | | | Change-Id: Ib8a832901430da30f5f49686ba78b8fb2b76b8e7 Signed-off-by: Jilju Joy <jijoy@redhat.com>
* Enhancement in ganesha cluster setupJilju Joy2019-05-091-26/+55
| | | | | | | | * Code change to do peer probe if not already done * Changes to avoid prerequeste of password less ssh between nodes Change-Id: I8260a80ad8c75a6b3d569cc7ee652e569ec9153a Signed-off-by: Jilju Joy <jijoy@redhat.com>
* Changing error messages to be checked as per new messages.kshithijiyer2019-05-081-2/+18
| | | | | | | | | | | | | | | | | | | | Changing error message displayed when peer detach is issued with bricks are present on the node which is being detached. Adding a logic to handle both the new as well as the old error message. Old msg: peer detach: failed: Brick(s) with the peer <my_server> exist in cluster New msg: peer detach: failed: Peer <my_server> hosts one or more bricks. If the peer is in not recoverable state then use either replace-brick or remove-brick command with force to remove all bricks from the peer and attempt the peer detach again. Change-Id: I3d8fdac2c33638ecc2a8b5782c68caebbf17cf41 Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* Changing error message to be check in test_volume_getkshithijiyer2019-05-061-0/+2
| | | | | | | | | | | | | | The error message which is displayed when we do a gluster v get for options which don't exist has been changed. Adding a if based logic which can check for the old as well as the new error message. Old msg: volume get option: failed: Did you mean auth.allow or ...reject? New msg: volume get option: failed: Did you mean ctime.noatime? Signed-off-by: kshithijiyer <kshithij.ki@gmail.com> Change-Id: I9496d391a7da9dba64d3426a024c2b1b68455f20
* Adding test to validate output of profile infokshithijiyer2019-05-031-0/+223
| | | | | | | | | | | | | | | Test Case: 1) Create a volume and start it. 2) Mount volume on client and start IO. 3) Start profile info on the volume. 4) Run profile info with different parameters and see if all bricks are present or not. 5) Stop profile on the volume. 6) Create another volume. 7) Start profile without starting the volume. Change-Id: I6e8ec9285d48c1c828cd1d20bff6ea8f3de064f7 Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* Adding test for profile operations with one node downkshithijiyer2019-04-291-0/+220
| | | | | | | | | | | | | | Test Case: 1) Create a volume and start it. 2) Mount volume on client and start IO. 3) Start profile info on the volume. 4) Stop glusterd on one node. 5) Run profile info with different parameters and see if all bricks are present or not. 6) Stop profile on the volume. Change-Id: Ie573414816362ebbe30d2c419fd0e348522ceaec Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* Adding sample gdeploy config file in examples and editing Readme.mdkshithijiyer2019-04-242-2/+36
| | | | | | | | | It would be better if we provide a sample configuration file for gdeploy in glusto tests and also adding a few points in the Readme.md file on how to run gdeploy. Change-Id: I481a1c871aa8b2749d7118adcc0898af6ac2c197 Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* Test case to detach node used for mountingkshithijiyer2019-04-171-0/+219
| | | | | | | | | | | | | | | | | | | Test case: 1.Create a 1X3 volume with only 3 nodes from the cluster. 2.Mount volume on client node using the ip of the fourth node. 3.Write IOs to the volume. 4.Detach node N4 from cluster. 5.Create a new directory on the mount point. 6.Create a few files using the same command used in step 3. 7.Add three more bricks to make the volume 2x3 using add-brick command. 8.Do a gluster volume rebalance on the volume. 9.Create more files from the client on the mount point. 10.Check for files on bricks from both replica sets. 11.Create a new directory from the client on the mount point. 12.Check for directory in both replica sets. Change-Id: I228b79955dca565a40994919b2903e59cad7d8f5 Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* Test to profile start when quorum not metBala Konda Reddy M2019-04-161-0/+147
| | | | | | | | | | | | | 1. Create a volume 2. Set the quorum type to server and ratio to 90 3. Stop glusterd randomly on one of the node 4. Start profile on the volume 5. Start glusterd on the node where it is stopped 6. Start profile on the volume 7. Stop profile on the volume where it is started Change-Id: Ifeb9fddf6f1a14c9df73ed2f0453636d2853e944 Signed-off-by: Bala Konda Reddy M <bmekala@redhat.com>
* Avoid using gdeploy for nfs-ganesha setup, teardown, acl and root-squash libsJilju Joy2019-04-152-320/+589
| | | | | | | | | | * Removed dependency on gdeploy for setup and teardown of ganesha cluster * Correction of pylint errors * Added new method to set acl * Added new method to set root-squash * Added new method for refresh-config * Removed setUp and tearDown methods from NfsGaneshaClusterSetupClass Change-Id: I1266fe7c09e1fed148ca222712e15932a5ad928c
* Copy-pasta typo: bonnie -> fioYaniv Kaul2019-04-131-1/+1
| | | | | | | | Fix small copy-pasta error. Change-Id: I69166d429f87fa9e94b58d165275414ec49bf3f5 updates: bz#1193929 Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
* Modificatons to base class to include slave infoRoch-elle2019-04-122-0/+124
| | | | | | | Added new config file for georep Change-Id: I544ee35f8cd6a2f2ed744f72caa28fa4fd63e5b3 Signed-off-by: Roch-elle <rallan@redhat.com>
* Adding test to run gluster commands when glusterd is down on one nodekshithijiyer2019-04-121-0/+102
| | | | | Change-Id: Ibf41c11a4e98baeaad658ee10ba8a807318504be Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* Validating whether peers are connected or not before volume creationBala Konda Reddy M2019-04-121-1/+17
| | | | | | | | | | In jenkins this case is failing with peers are not connected while volume creation. Now having a check before creating the volume to make sure that peers are in cluster and in connected state after peer probe. Change-Id: I8aa9d2c4d1669475dd8867d42752a31604ff572f Signed-off-by: Bala Konda Reddy M <bmekala@redhat.com>
* Adding code for cleanup of all bricks on each serverkshithijiyer2019-04-091-2/+18
| | | | | Change-Id: I405843e0093ddb7138ee0a8afbfd4cd2f91e6284 Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* Checking if peers are connected after peer probekshithijiyer2019-04-091-0/+24
| | | | | Change-Id: I252ab0c0f6248b9a5c1d7977146c15876e144b38 Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>