summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Snapshot: Testcase to validate snapshot mountsrivickynesh2018-05-311-0/+207
| | | | | Change-Id: I3af948e10673737d06e352e3bb8a1bec58ea3c55 Signed-off-by: srivickynesh <sselvan@redhat.com>
* The purpose of this test case is to ensure USS validationvivek das2018-05-311-0/+225
| | | | | | | | | | Where .snaps folder is only readable and listing all the snapshots and it's content. Also ensures that deactivated snapshot doesn't get listed. Change-Id: I25ad451986c861038450c0369e6cbc130b8945bb Signed-off-by: vivek das <vdas@redhat.com> Signed-off-by: srivickynesh <sselvan@redhat.com>
* Adding Test case test_glustershd_on_newly_probed_serverVijay Avuthu2018-05-311-0/+219
| | | | | | | | | | | | | | | | | | | | | | | | | | | Description: est script to verify glustershd process on newly probed sAdding Test case test_glustershd_on_newly_probed_server Description: Test script to verify glustershd process on newly probed server * check glustershd process - only 1 glustershd process should be running * Add new node to cluster * check glustershd process - only 1 glustershd process should be running on all servers inclusing newly probed server * stop the volume * add another node to cluster * check glustershd process - glustershd process shouldn't be running on servers including newly probed server * start the volume * check glustershd process - only 1 glustershd process should be running on all servers inclusing newly probed server Change-Id: I6142000ee8322b7ab27dbcd27e05088d1c8be806 Signed-off-by: Vijay Avuthu <vavuthu@redhat.com> Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* snapshot:: library for snapshot schedulersrivickynesh2018-05-311-0/+215
| | | | | Change-Id: Id2afba5b96177b2acde057357d58f0b257104c98 Signed-off-by: srivickynesh <sselvan@redhat.com>
* Rebalance: starting and stopping the volume while rebalance is in progressPrasad Desala2018-05-231-0/+224
| | | | | | | | This testcase verifies, volume stop should not be allowed while rebalance is in-progress and it should throw appropriate error. Change-Id: I24ffc263f26eb99fff774cb851ac98ac6fed2bee Signed-off-by: Prasad Desala <tdesala@redhat.com>
* Add test rebalance positive test - add brick commandMiroslav Asenov2018-05-231-0/+185
| | | | | | | Changes: - Updated test case add brics to volume with IO operations. Change-Id: I61e83c0d58d65783da4e54bc2a8a32a35b515c07
* Add test case DHT Distribution based on key valueMiroslav Asenov2018-05-231-0/+219
| | | | | | | | | | | | Changes: - Add more log end points - Include dht glusto's functions - Fix count log parameters - Convert docstring to google style docstring on helper function - Renamed test class Change-Id: Ib919e86c8c79e8bdad4007bc9d77d76b031ecb3d
* Quota: Negative test cases for Quotavenkata edara2018-05-231-0/+145
| | | | | | | | | This testcase will enable/disable quota by giving negative inputs and also try to enable timeouts by giving huge value , all testcases have to return false. Change-Id: I3996a38a728c20199ef969d03ff9e11dc774ee6c Signed-off-by: venkata edara <redara@redhat.com>
* Added function to create ssl machineAkarsha2018-05-211-0/+225
| | | | | Change-Id: Ie9234be69a601d0489b159183fb02cff8758df89 Signed-off-by: Akarsha <akrai@redhat.com>
* Quota : Test case for quota listVinayak Papnoi2018-05-171-0/+153
| | | | | | | | | This test case covers the quota list functionality with and without the path. Both outputs for quota list with and without path should match. Change-Id: I251cae896558e09bee3d4a689f8287df2b0bb585 Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* Quota : function to check quota-deem-statfsVinayak Papnoi2018-05-161-2/+41
| | | | | | | | | | Adding a function to check if quota-deem-statfs is enabled or not. quota-deem-statfs should be enabled by default when quota is enabled. Resolved merge conflit. Addressed comments Change-Id: Ifbae5b123f42da3fff28299630373f4060520769 Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* Check for failure in rebalance aggregate status in lib functionsPrasad Desala2018-05-161-21/+19
| | | | | | | | * wait_for_fix_layout_to_complete * wait_for_rebalance_to_complete Change-Id: I6e243725040f9d7bd7b46e00292771e76ee6fadf Signed-off-by: Prasad Desala <tdesala@redhat.com>
* TestCase Testing VolumeType change from replicated to Arbiter volume along ↵root2018-05-111-0/+394
| | | | | | | | with volume operations add-brick, remove-brick, replace-brick post volume type change Change-Id: I44a1ff6fab3228736ae9c83fe67b16c2e8c40adc Signed-off-by: Karan Sandha <ksandha@redhat.com> Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Adding test_glustershd_on_all_volume_types test caseVijay Avuthu2018-05-111-2/+223
| | | | | | | | | | | | | | | | | | | Description: Test Script to verify the glustershd server vol file has only entries for replicate volumes * Create multiple volumes and start all volumes * Check the glustershd processes - Only 1 glustershd should be listed * Check the glustershd server vol file - should contain entries only for replicated involved volumes * Add bricks to the replicate volume - it should convert to distributed-replicate * Check the glustershd server vol file - newly added bricks should present * Check the glustershd processes - Only 1 glustershd should be listed Change-Id: Ie110a0312e959e23553417975aa2189ed01be6a4 Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>
* Fix form_bricks_list to work with arbiterNigel Babu2018-05-111-2/+12
| | | | Change-Id: I04d3b8ef5ff08cc50fddf07461874210a08248a6
* Adding test case : test_client_side_quorum_with_fixed_for_cross3Vijay Avuthu2018-05-111-0/+651
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Description: Test Script to verify the Client Side Quorum with fixed for cross 3 volume * Disable self heal daemom * set cluster.quorum-type to fixed. * start I/O( write and read )from the mount point - must succeed * Bring down brick1 * start I/0 ( write and read ) - must succeed * Bring down brick2 * start I/0 ( write and read ) - must succeed * set the cluster.quorum-count to 1 * start I/0 ( write and read ) - must succeed * set the cluster.quorum-count to 2 * start I/0 ( write and read ) - read must pass, write will fail * bring back the brick1 online * start I/0 ( write and read ) - must succeed * Bring back brick2 online * start I/0 ( write and read ) - must succeed * set cluster.quorum-type to auto * start I/0 ( write and read ) - must succeed * Bring down brick1 and brick2 * start I/0 ( write and read ) - read must pass, write will fail * set the cluster.quorum-count to 1 * start I/0 ( write and read ) - read must pass, write will fail * set the cluster.quorum-count to 3 * start I/0 ( write and read ) - read must pass, write will fail * set the quorum-type to none * start I/0 ( write and read ) - must succeed Change-Id: Ic159aee3ca80f6a584a46e2ac7986f4007346968 Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>
* Removing files when one of the brick if in offline stateKaran Sandha2018-05-111-0/+225
| | | | | | Change-Id: I2e4cf5c4280351d7cfaa25ffb53cd081227d7e9e Signed-off-by: Karan Sandha <ksandha@redhat.com> Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Snapshot: validate Snapshot activation and deactivationvivek das2018-05-091-0/+170
| | | | | | | | | | the purpose of this test case is to validate Snapshot activation and deactivation. Pre-Activate, After Activate and After Deactivate Change-Id: I7b502922171247954801feefe0409b1751a1d07f Signed-off-by: vivek das <vdas@redhat.com> Signed-off-by: srivickynesh <sselvan@redhat.com>
* Fix replace brick failure and peer probe failureNigel Babu2018-05-092-15/+12
| | | | | | | | The replace brick setUp function had a syntax error and a wrong assert. The peer probe tearDown method did not work in a situation where the test failed leading to cascading failures in other tests. Change-Id: Ia7e0d85bb88c0c9bc6d489b4d03dc7610fd4f129
* Function that drops caches on a list of hosts,to run certain FOPs on a cold ↵Ambarish Soman2018-05-091-0/+23
| | | | | | | cache Change-Id: Ia6a2d73da1c3ea2a123da55c6bcd063b1e7404a4 Signed-off-by: Ambarish Soman <asoman@redhat.com>
* Fix assertIsNotNone call in glusterd testsNigel Babu2018-05-081-2/+1
| | | | Change-Id: I774f64e2f355e2ca2f41c7a5c472aeae5adcd3dc
* Test MetaData Self-Heal (heal command)Vitalii Koriakov2018-05-081-115/+461
| | | | | Change-Id: I32fefdab769e5a361e4dcb5f1328b2c8da2e4f1a Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* selfheal daemon casesKaran Sandha2018-05-081-5/+116
| | | | | | Change-Id: I24e2baddc4f5cdb2c9ae0ab6b9020b2eb9b42a05 Signed-off-by: Karan Sandha <ksandha@redhat.com> Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Replace brick with valid brick path and non-existing brick pathBala Konda Reddy M2018-05-081-0/+114
| | | | | Change-Id: Ic6cb4e96d8f14558c0f9d4eb5e24cbb507578f4c Signed-off-by: Bala Konda Reddy M <bmekala@redhat.com>
* Glusterd Testcase: Setting lower gluster opversionBala Konda Reddy Mekala2018-05-071-0/+89
| | | | | | | | In this testcase, Setting the lowest Gluster opversion and invalid opversion are validated Change-Id: Ie45859228e35b7cb171493dd22e30e2f26b70631 Signed-off-by: Bala Konda Reddy Mekala <bmekala@redhat.com>
* test : snapshot creation during rebalanceSunny Kumar2018-05-071-0/+251
| | | | | | | | | The purpose of this test is to validate snapshot create during rebalance. Change-Id: I8c58e0dd6571e648c1410342db988b95b82aaa1b Signed-off-by: Sunny Kumar <sunkumar@redhat.com> Signed-off-by: srivickynesh <sselvan@redhat.com>
* Validate activate on create set command for snapshot.vivek das2018-05-071-0/+174
| | | | | | | Signed-off-by: vivek das <vdas@redhat.com> Change-Id: I418d3e1900acb8e79e4063a191164866544acd5d Signed-off-by: srivickynesh <sselvan@redhat.com>
* test : snapshot max-hard-limit and max-soft-limitSunny Kumar2018-05-071-0/+280
| | | | | | | | | The purpose of this test is to validate snapshot hard and soft max-limt options. Change-Id: I63e661549977251104c120d7b25422ff57fdadeb Signed-off-by: Sunny Kumar <sunkumar@redhat.com> Signed-off-by: srivickynesh <sselvan@redhat.com>
* Glusterd split brain scenario with volume options reset and quorumBala Konda Reddy Mekala2018-05-071-0/+151
| | | | | Change-Id: I2802171403490c9de715aa281fefb562e08249fe Signed-off-by: Bala Konda Reddy Mekala <bmekala@redhat.com>
* Testcase involves killing brick in cyclic order and listing the directories ↵Karan Sandha2018-05-041-0/+206
| | | | | | | | after healing from mount point Change-Id: Ifcd1bac10982a0a2f348e4475ad167921625affa Signed-off-by: Karan Sandha <ksandha@redhat.com> Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Adding Test Case : test_existing_glustershd_should_take_care_of_self_healingVijay Avuthu2018-05-041-7/+232
| | | | | | | | | | | | | | | | | | | | | Description: Test Script which verifies that the existing glustershd should take care of self healing * Create and start the Replicate volume * Check the glustershd processes - Note the pids * Bring down the One brick ( lets say brick1) without affecting the cluster * Create 5000 files on volume * bring the brick1 up which was killed in previous steps * check the heal info - proactive self healing should start * Bring down brick1 again * wait for 60 sec and brought up the brick1 * Check the glustershd processes - pids should be different * Monitor the heal till its complete Change-Id: Ib044ec60214171f136cc4c2f9225b8fe62e6214d Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>
* Test write I/O on mount point is resumed when client side quorum is restored ↵Vitalii Koriakov2018-05-041-0/+561
| | | | | | | ( x3) Change-Id: Ic0aaccdbf6938702ec1dbb44e888e45eb9f21e28 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Adding test case : test_client_side_quorum_with_fixed_for_cross2Vijay Avuthu2018-05-041-1/+497
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Description: Test Script to verify the Client Side Quorum with fixed for cross 2 volume * Disable self heal daemom * set cluster.quorum-type to fixed. * start I/O( write and read )from the mount point - must succeed * Bring down brick1 * start I/0 ( write and read ) - must succeed * set the cluster.quorum-count to 1 * start I/0 ( write and read ) - must succeed * set the cluster.quorum-count to 2 * start I/0 ( write and read ) - read must pass, write will fail * bring back the brick1 online * start I/0 ( write and read ) - must succeed * Bring down brick2 * start I/0 ( write and read ) - read must pass, write will fail * set the cluster.quorum-count to 1 * start I/0 ( write and read ) - must succeed * cluster.quorum-count back to 2 and cluster.quorum-type to auto * start I/0 ( write and read ) - must succeed * Bring back brick2 online * Bring down brick1 * start I/0 ( write and read ) - read must pass, write will fail * set the quorum-type to none * start I/0 ( write and read ) - must succeed Change-Id: I415aba5db211607476fd7345c8ca6f4d49373402 Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>
* Fix a mistake in gluster_init libNigel Babu2018-05-031-24/+24
| | | | | | Also fix pylint errors while I'm fixing things in there Change-Id: I62904384a7b7a441b426003b18743f3d3a7f2dde
* Create cluster with shortnames and create volume using IP and FQDNGaurav Yadav2018-05-031-0/+184
| | | | | | | | | | | | - Peer probe using short name - Create volume using IP - Start/stop/getvolumeinfo - Create volume using FQDN - Start/stop/getvolumeinfo Change-Id: I2d55944035c44e8ee360beb4ce41550338586d15 Signed-off-by: Gaurav Yadav <gyadav@redhat.com> Signed-off-by: Rajesh Madaka <rmadaka@redhat.com>
* Test Directory - custom extended attribute validation getfattr, setfattrMiroslav Asenov2018-05-031-0/+362
| | | | | | | | | | | | | | | | | | | | Test Optimisations : - Optimized imports - Reduced count local variables - Added more logging points with information about mount point and directories - Add more logging points - Included more log end points and implemented glusto's framework dht functions Changes : - Copyright years - removed nfs mount point, since does not support extra attributes - improved layout validations - fixed typos in logs. - Updated comments Change-Id: If51d033d726edf2344af9aeba1246d4d6591f5c0
* Adding test case test_client_side_quorum_with_auto_option_overwrite_fixedVijay Avuthu2018-05-021-2/+152
| | | | | | | | | | | | | | | | | | Description: Test Script to verify the Client Side Quorum with auto option * check the default value of cluster.quorum-type * try to set any junk value to cluster.quorum-type other than {none,auto,fixed} * check the default value of cluster.quorum-count * set cluster.quorum-type to fixed and cluster.quorum-count to 1 * start I/O from the mount point * kill 2 of the brick process from the each replica set. * set cluster.quorum-type to auto Change-Id: I102373d1a53635563909e4fb80a01d98c24d3355 Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>
* Test self-heal of 50k files (heal command)Vitalii Koriakov2018-05-021-0/+189
| | | | | Change-Id: I221b49315db8bc02873fc133ff12837954f0c232 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Creation of clone from snapshot of one volumesrivickynesh2018-04-301-0/+248
| | | | | Change-Id: Ice1e7139613c0d2f15c95e86e6c1e7b595d390a5 Signed-off-by: srivickynesh <sselvan@redhat.com>
* Test Self-Heal of Symbolic Links (heal command)Vitalii Koriakov2018-04-301-0/+245
| | | | | Change-Id: Ie4a4b323e2b7e57e3896550b6f9b7db28fba03b7 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Remove logical error in CVT testNigel Babu2018-04-261-8/+0
| | | | | | | | This step is not needed at all. It appears to be a copy-paste error or some sort of mistake. Missed it through review and a few rounds of debugging Change-Id: I232f68c846ebf18a106554c1b0214748f2cdc391
* Fix cyclic import in brickmux_ops.pyNigel Babu2018-04-252-19/+13
| | | | Change-Id: I487822efd6c57b8c51b65b4eaf149eb67e96731b
* Opening firewall ports for rhel7Rajesh Madaka2018-04-251-0/+45
| | | | | Change-Id: I06194cd8968e0beb1dbd0815deaa999fc409272c Signed-off-by: Rajesh Madaka <rmadaka@redhat.com>
* Added reboot_nodes methodVitalii Koriakov2018-04-251-21/+39
| | | | | Change-Id: I72e9023125f654f3a04e96243a94218461c934da Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Test self heal of files with different file types with deafult configurationVitalii Koriakov2018-04-231-0/+193
| | | | | Change-Id: I84b789f9c0204ca0f0efb40a9a01215902c0ee1d Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Adding snapshot delete testcasesrivickynesh2018-04-231-0/+196
| | | | | Change-Id: Ide757078782ad5337d501f3c3ca39036910d995b Signed-off-by: srivickynesh <sselvan@redhat.com>
* Test data self-heal of files when "self-heal-algorithm" option value is ↵Vitalii Koriakov2018-04-201-0/+148
| | | | | | | "full" (default) Change-Id: If916d20b0d7c9ded6fb1fc929d9ff1e7719d9594 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Test data self-heal of files when "self-heal-algorithm" option value is ↵Vitalii Koriakov2018-04-201-0/+150
| | | | | | | "diff" (default) Change-Id: I34a196e8fc764d87e877a082be2b0575bb1b3b40 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Test data self-heal of files when "self-heal-algorithm" option value is ↵Vitalii Koriakov2018-04-201-0/+204
| | | | | | | "diff" (heal command) Change-Id: Id310e0c17a872d8586ad8c7de79f1f68b93edb0a Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Test case for Verifying checksum of mountpointRajesh Madaka2018-04-201-0/+179
| | | | | | | | | before and after changing network ping timeout Desc: Change-Id: I8f3636cd899e536d2401a8cd93b98bf66ceea0f7 Signed-off-by: Rajesh Madaka <rmadaka@redhat.com>