summaryrefslogtreecommitdiffstats
path: root/tests/functional/arbiter
Commit message (Collapse)AuthorAgeFilesLines
* [Test] Add test to create 50k files & check heal with add brickkshithijiyer2020-02-181-0/+265
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Testcase steps: 1.Set the volume option "metadata-self-heal": "off" "entry-self-heal": "off" "data-self-heal": "off" "self-heal-daemon": "off" 2.Bring down all bricks processes from selected set 3.Create IO (50k files) 4.Get arequal before getting bricks online 5.Bring bricks online 6.Set the volume option "self-heal-daemon": "on" 7.Check for daemons 8.Start healing 9.Check if heal is completed 10.Check for split-brain 11.Get arequal after getting bricks online and compare with arequal before getting bricks online 12.Add bricks to volume 13.Do rebalance and wait for it to complete 14.Get arequal after adding bricks and compare with arequal after getting bricks online Change-Id: I1598c4d6cf98ce99249e85fc377b9db84886f284 Co-authored-by: Vitalii Koriakov <vkoriako@redhat.com> Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com> Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* [Test] Moved test_data_self_heal_daemon_off from afr to arbiter folderkshithijiyer2020-02-101-0/+364
| | | | | | | Change-Id: I1eacfd74c730d28e36bb8f7e3a1f574edc3d13c7 Co-authored-by: Vitalii Koriakov <vkoriako@redhat.com> Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com> Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* [Testfix] Reduced number of created files. Deleted not needed loggingkshithijiyer2020-01-271-109/+40
| | | | | | | Change-Id: Id0cdda175865c84bef917211560acee8ea10fe7b Co-authored-by: Vitalii Koriakov <vkoriako@redhat.com> Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com> Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* [Fix] Remove variable script_local_path(Part 3)kshithijiyer2020-01-0716-48/+16
| | | | | | | | Please refer to the commit message of the below patch: https://review.gluster.org/#/c/glusto-tests/+/23902/ Change-Id: Icf32bb20b7eaf2eabb07b59be813997a28872565 Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* [Fix] Remove variable script_local_path(Part 2)kshithijiyer2020-01-072-6/+2
| | | | | | | | Please refer to the commit message of the below patch: https://review.gluster.org/#/c/glusto-tests/+/23902/ Change-Id: I0d2eeb978c6757d6d910ebfe21b07811bf74b80a Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* [py2to3] Add py3 support in 'tests/functional/arbiter'Valerii Ponomarov2019-12-1716-124/+171
| | | | | Change-Id: I5a60646b984557ed024cb4b3a8088ce7dfb7622c Signed-off-by: Valerii Ponomarov <kiparis.kh@gmail.com>
* [py2to3] Add py3 support in 'tests/functional/arbiter/brick_cases'Valerii Ponomarov2019-12-175-33/+43
| | | | | Change-Id: Ieecf4707ee6cb7b3c58380306bf105e282986b1b Signed-off-by: Valerii Ponomarov <kiparis.kh@gmail.com>
* [fix] Turning off only client side heal option at the start of the testMilind Waykole2019-10-231-8/+10
| | | | | | | | | | | | | | Earlier in the testcase we were turning off shd which is not correct and we have to turn off only client side heal options as mentioned below metadata-self-heal entry-self-heal data-self-heal After renaming files we have to turn on these options while doing a look up from client Change-Id: I8c76abb8e79620c412e5991f5d8255b6b2a850e8 Signed-off-by: Milind Waykole <milindwaykole96@gmail.com>
* Fixes: changed triggering heal by getting md5sumkshithijiyer2019-09-041-8/+7
| | | | | | Change-Id: I4d056b94b4ea59beee7eb24e7e5d5f65d7256b4a Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com> Signed-off-by: kshithijiyer <kshithij.ki@gmail.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>
* Per BZ 1401969, modifying the IO pattern to write single large filesAnees Patel2018-12-201-38/+55
| | | | | | | | | | | | When eager-lock is on, and two writes happen in parallel on a FD, Arbiter becoming source of heal is observed, hence modifing the IO pattern, Also this is a race-condition, hence executing the same remove-brick cycle thrice per BZ 1401969, this patch also takes care of multiple clients writing to different files/dirs, no two clients writing to same file Change-Id: If0003afb675bbcf9f6b555b43e9a11e4def5435c Signed-off-by: Anees Patel <anepatel@redhat.com>
* Fixing the test-case to delete brick directories of replaced bricks, As this ↵Anees Patel2018-12-111-0/+206
| | | | | | | was not handled by teardown class Change-Id: I789adbf0909c5edd0a2eb19ed4ccebcb654700fd Signed-off-by: Anees Patel <anepatel@redhat.com>
* Moved test_data_self_heal_algorithm_full_default from afr to arbiter folderVitalii Koriakov2018-12-061-0/+243
| | | | | Change-Id: I04ffdedb1ce25ab05239c77b4dd5893ce18b32f7 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Moved test_self_heal_differing_in_file_type from afr to arbiter folderVitalii Koriakov2018-12-061-0/+289
| | | | | Change-Id: I9f33c84be39bdca85909c2ae337bd4482532d061 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Moved test_self_heal_symbolic_links from afr to arbiter folderVitalii Koriakov2018-11-231-0/+342
| | | | | Change-Id: I6a95e82977f4ac6092716c064597931768023710 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Moved test_metadata_self_heal from afr to arbiter folderVitalii Koriakov2018-11-151-0/+404
| | | | | Change-Id: Icd8586f5df4c34a5f0edd4b5a69f864bd2984ade Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Moved test_self_heal_algorithm_full_daemon_off from afr to arbiter folderVitalii Koriakov2018-11-081-0/+216
| | | | | Change-Id: I0143a4ffa16fa0c3ea240f5debbdc5519a9e5445 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Moved test_data_self_heal_algorithm_diff_default from afr to arbiter folderVitalii Koriakov2018-10-231-0/+244
| | | | | Change-Id: I6462446cce6c06a7559028eee1a6968af093c959 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Moved test_data_self_heal_algorithm_diff_heal_command from afr to arbiter folderVitalii Koriakov2018-10-231-0/+285
| | | | | Change-Id: Id32859df069106d6c9913147ecfa8d378dfa8e9d Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Moved test_entry_self_heal_heal_command from afr to arbiter folderVitalii Koriakov2018-10-221-0/+335
| | | | | Change-Id: Id9face2267b9f702bb2b0b5b3c294b3e4082cdf7 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Fix for test_brickcasesSri Vignesh2018-09-141-2/+2
| | | | | | | | for the current workload rebalance is not sufficient so changing the timeout to balance the workload. Change-Id: Iad5bf9d828ad12a6867847a02c19e0ebe6b7741e Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Fixes for test_replica3_to_arbiterVitalii Koriakov2018-08-301-83/+39
| | | | | Change-Id: Ib0f279fc03bbab23b458220db9ccd55b4b1bdcab Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Creating snapshot on arbiter volume and verifying the contentsVitalii Koriakov2018-08-091-0/+211
| | | | | Change-Id: I21f3d8acce35acb852e36c2747d67bc8ed235e9d Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Fix spelling mistake across the codebaseNigel Babu2018-08-073-4/+4
| | | | Change-Id: I46fc2feffe6443af6913785d67bf310838532421
* Rename of a file cause no data loss in an arbiter volume configurationVitalii Koriakov2018-08-071-0/+284
| | | | | Change-Id: Ie25f33d52730ee5482d656bf5a75f1d983cca78e Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Fixes: Test replacing all arbiter bricksVitalii Koriakov2018-08-031-1/+1
| | | | | Change-Id: Icbc522a6e23c4dc76547936d8595723d3eb2d81a Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Shorten all the logs around verify_io_procsYaniv Kaul2018-07-178-265/+261
| | | | | | | | 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>
* Test handling data split-brain of files (heal command)Vitalii Koriakov2018-07-111-0/+371
| | | | | Change-Id: I9a0cb923c7e3ec0146c2b3b9bf0dcafe6ab892e8 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Fuse mount point should not to go to Read only while deleting filesVitalii Koriakov2018-06-261-0/+253
| | | | | Change-Id: I0360e6590425aea48d7acf2ddb10d9fbfe9fdeef Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Remove faulty subvolume and add with new subvolVitalii Koriakov2018-06-251-0/+221
| | | | | Change-Id: I29eefb9ba5bbe46ba79267b85fb8814a14d10b00 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Resolving meta-data split-brain from client using extended attributesVitalii Koriakov2018-06-191-0/+257
| | | | | Change-Id: I2ba674b8ea97964040f2e7d47a169c1e41808116 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Ttest replacing all arbiter bricks in the volumeVitalii Koriakov2018-06-181-0/+242
| | | | | Change-Id: Iff0e832ebcad14968328c7d7575d120ba8152252 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Test OOM Kill on client when heal is in progress on 1*3 arbiter volumeVitalii Koriakov2018-06-081-0/+201
| | | | | Change-Id: I47d0ac4afac44442bd877243c45581df83c6a2e7 Signed-off-by: Vitalii Koriakov <vkoriako@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>
* 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>
* 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>
* Fix up coding style issues in testsNigel Babu2018-03-271-5/+5
| | | | Change-Id: I14609030983d4485dbce5a4ffed1e0353e3d1bc7
* Changing replica 3 to Arbiter Volume without IOKaran Sandha2018-02-163-0/+178
Change-Id: I35568ef8234bc11a8bcf775315c24d9914fbb99d Signed-off-by: Karan Sandha <ksandha@redhat.com>