summaryrefslogtreecommitdiffstats
path: root/tests/functional/afr
Commit message (Collapse)AuthorAgeFilesLines
* Fixing the return value for is_io_procs_fail_with_rofsVijay Avuthu2018-08-071-12/+22
| | | | | Change-Id: Ibb159d8a1b28ae267ca89800ace1ece9a3382b35 Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>
* Fixing the default quorum type issueVijay Avuthu2018-08-021-3/+3
| | | | | | | | In 3.4, default quorum type is chnaged to auto. pre 3.4 releases, it was None Change-Id: I4e58ff8cc4727db81bb6b9baadd101687ddb74b0 Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>
* afr: split-brain resolution on a file not in split-brainroot2018-07-241-0/+234
| | | | | | | | | This test case performs split brain resolution on a file not in split-brain. This action should fail. Signed-off-by: Kartik_Burmee <kburmee@redhat.com> Change-Id: I01b9a41530498e96f6092283372798e61a9ac2b2
* Shorten all the logs around verify_io_procsYaniv Kaul2018-07-1715-356/+356
| | | | | | | | No functional change, just make the tests a bit more readable. It could be moved to a decorator later on, wrapping tests. Change-Id: I484bb8b46907ee8f33dfcf4c960737a21819cd6a Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
* afr: Test gfid-split-brain resolution of filesRavishankar N2018-07-011-0/+273
| | | | | | | | | | This test creates gfid split-brain of files and uses the source-brick option in the CLI to resolve them. Polarion test: RHG3-4402 Change-Id: I4fb3f16bfcdf77afe92c3a6f98f259147fef30c2 Signed-off-by: Ravishankar N <ravishankar@redhat.com>
* afr: Test metadata split-brain resolution using heal CLIkarthik-us2018-07-011-0/+282
| | | | | Change-Id: I634d11cb582521b03f0bb481172e2f4f68d1c2ce Signed-off-by: karthik-us <ksubrahm@redhat.com>
* afr: test readlink fopRavishankar N2018-07-011-0/+125
| | | | | | | Polarion test case #RHG3-4094 Signed-off-by: Ravishankar N <ravishankar@redhat.com> Change-Id: I1f7100ddb6697cfc8749f8cd2c29e14e9bfdb5ce
* afr: test chown, chmod and chgrpRavishankar N2018-07-011-0/+151
| | | | | | Polarion test case #RHG3-4094 Change-Id: Id7492b1e0a7a000ece788c7a0cc4ed9dd8743700 Signed-off-by: Ravishankar N <ravishankar@redhat.com>
* afr: Heal the directories and assign gfids when doing named lookupkarthik-us2018-07-011-0/+157
| | | | | | | | | If there are directories present on only one brick without having gfid (created from backend), heal them and assign gfids when named lookup comes on those directories. Change-Id: I32c27f0b04c8eb36b25899ca9fbe7aef141f13b9 Signed-off-by: karthik-us <ksubrahm@redhat.com>
* afr: Test data split-brain resolution using heal CLIkarthik-us2018-06-281-0/+270
| | | | | Change-Id: I525f50a42e29270d9ac445d62e12c7e7e25a7ae3 Signed-off-by: karthik-us <ksubrahm@redhat.com>
* afr: Test gfid assignment on dist-rep volumekarthik-us2018-06-251-0/+135
| | | | | | | | | This test case checks whether directory with null gfid is getting the gfids assigned on all the subvols of a dist-rep volume when lookup comes on that directory from the mount point. Change-Id: Ie68cd0e8b293e9380532e2ccda3d53659854de9b Signed-off-by: karthik-us <ksubrahm@redhat.com>
* afr: heal gfids for files created from backendRavishankar N2018-06-251-0/+178
| | | | | Change-Id: Iaaa78c071bd7ee3ad3ed222957e71aec61f80045 Signed-off-by: Ravishankar N <ravishankar@redhat.com>
* Test multiple clients "dd" on same-file (default)Vitalii Koriakov2018-06-201-0/+263
| | | | | Change-Id: Icd5c423ad1b2fee770680cc66d9919c930c4780f Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* afr: Test self heal when quota object limit is setkarthik-us2018-06-191-0/+196
| | | | | | | | Self heal should heal the files even if the quota object limit is exceeded on a directory. Change-Id: Icc63b1794f82aef708832d0b207ded5f13391b85 Signed-off-by: karthik-us <ksubrahm@redhat.com>
* afr: Test self heal when quota limit exceedskarthik-us2018-06-171-0/+197
| | | | | | | | Self heal should heal the files even if the quota limit on a directory is reached. Change-Id: I336b78eb55cd5c7ec6b3236f95ce9f0cb8423667 Signed-off-by: karthik-us <ksubrahm@redhat.com>
* afr: test entry selfheal with quota limit objectRavishankar N2018-06-151-0/+224
| | | | | | | Deletion of file on source bricks must reflect on sink brick after bringing it up(conservative merge must NOT happen) when quota is enabled. Change-Id: I8c3f55ddd1eee9a211674c8759b94aa801f6f174
* All the fields in heal info must be mentioned consistently when few of the ↵Vitalii Koriakov2018-06-141-0/+192
| | | | | | | bricks are down Change-Id: I1169250706494b1b833d3b7e8a1ee148426e224b Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Setting "data-self-heal", "metadata-self-heal", "entry-self-heal" volume ↵Vitalii Koriakov2018-06-121-0/+272
| | | | | | | options should not be applicable to glfsheal Change-Id: I019b0299dd7f907446e85f6de0186fb61a3ce1f1 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Added an afr test case: test gfid heal on 1x3 volroot2018-06-121-0/+188
| | | | | | | | Description: Test case which checks for gfid self heal of a file on 1x3 replicated volume Change-Id: I3bad7c16435bd99fa3f5b812c65970bebdbd18ac Signed-off-by: Kartik_Burmee <kburmee@redhat.com>
* afr: test to resolve split-brain using CLI (source-brick)root2018-06-121-0/+191
| | | | | | | | | | | | | | Description: This test case runs split-brain resolution CLIs on a file in gfid split-brain on 1x2 volume. 1. kill 1 brick 2. create a file at mount point 3. bring back the killed brick 4. kill the other brick 5. create same file at mount point 6. bring back the killed brick 7. try heal from CLI and check if it gets completed Change-Id: Iddd386741c3c672cda90db46facd7b04feaa2181
* Heal command should say that triggering heal is unsuccessful as some bricks ↵Vitalii Koriakov2018-06-111-0/+220
| | | | | | | may be down Change-Id: I0515680e2cbe582917f0034461b305a33b75ca94 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Automatic heal should be triggered and all files must be availbleVitalii Koriakov2018-06-081-0/+269
| | | | | Change-Id: I734f85671f17e9a7e9d863aa3a0ef8f632182d48 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Test conservative merge of files (heal command and 1x2 replicate volume)Vitalii Koriakov2018-06-071-0/+325
| | | | | Change-Id: I90c51f0e945cfe85e60bc97e1ed3b617a0a7eba5 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Manual heal command should trigger heal of the fileVitalii Koriakov2018-06-061-0/+213
| | | | | Change-Id: Ie685a2e60c19bc096c54034a6b2f7d4380441f3d Signed-off-by: Vitalii Koriakov <vkoriako@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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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 brick process should not be started on read only storage_node disksVitalii Koriakov2018-04-191-3/+171
| | | | | Change-Id: Id0d9e468aaf0061e9ff0f5cc534c06017e97b793 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Test volume set option data-self-healVitalii Koriakov2018-04-191-0/+434
| | | | | Change-Id: I1e0e291954533e602a50d3f6c25365bb0b68b926 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Fix pylint failures on masterNigel Babu2018-04-171-53/+50
| | | | Change-Id: I43a5b87c4acfd3df9483ca869d926714325ae1b9
* Test client side quorum with auto option for a x2 volume and client quorum ↵Vitalii Koriakov2018-03-281-0/+285
| | | | | | | as auto first brick must be up to have a rw filesystem in a x2 volume Change-Id: I98b0808070e6d254b1deeb1a3a744d19adccbf03 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Fix up coding style issues in testsNigel Babu2018-03-275-273/+229
| | | | Change-Id: I14609030983d4485dbce5a4ffed1e0353e3d1bc7
* Test Entry-Self-Heal (heal command)Vitalii Koriakov2018-03-051-0/+251
| | | | | Change-Id: Iaecdf6ad44677891340713a5c945a4bdc30ce527 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Impact of replace brick for glustershd on replicate and non-replicate volumesVitalii Koriakov2018-03-051-0/+159
| | | | | Change-Id: I99da69377658f3c5f47722dbc3edb216995e9fa4 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Test client side quorum option as auto should be local to volume and not ↵Vitalii Koriakov2018-02-161-3/+369
| | | | | | | global to whole cluster Change-Id: I9cd8ae1f490bc870540657b4f309197f8cee737e Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Test Self Heal Info while accessing fileVitalii Koriakov2018-02-131-0/+230
| | | | | Change-Id: Ibef22a1719fe44aac20024d82fd7f2425945149c Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Test Data-Self-Heal daemons off (heal command)Vitalii Koriakov2018-02-071-0/+416
| | | | | Change-Id: If92b6f756f362cb4ae90008c6425b6c6652e3758 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Adding test case test_client_side_quorum_with_fixed_validate_max_bricksVijay Avuthu2018-02-021-0/+50
| | | | | | | | | | | | | | | Description: Test Script with Client Side Quorum with fixed should validate maximum number of bricks to accept * set cluster quorum to fixed * set cluster.quorum-count to higher number which is greater than number of replicas in a sub-voulme * Above step should fail Change-Id: I83952a07d36f5f890f3649a691afad2d0ccf037f Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>