summaryrefslogtreecommitdiffstats
path: root/tests/functional/dht
Commit message (Collapse)AuthorAgeFilesLines
* TC: test_negative_exercise_add_brickPrasad Desala2018-11-211-3/+3
| | | | | | | Fixed the validation code in test_add_brick_without_volname Change-Id: I5449b6472cc2b6644b833be47233d344a9dd8d1b Signed-off-by: Prasad Desala <tdesala@redhat.com>
* Fix spelling mistake across the codebaseNigel Babu2018-08-072-4/+4
| | | | Change-Id: I46fc2feffe6443af6913785d67bf310838532421
* added an automated dht test case: create directoryKartik_Burmee2018-07-171-0/+294
| | | | | Change-Id: I7534850d317993ee0b4c81ec06c1bdaeaf0d7535 Signed-off-by: Kartik_Burmee <kburmee@redhat.com>
* Shorten all the logs around verify_io_procsYaniv Kaul2018-07-172-6/+4
| | | | | | | | 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>
* glusto/dht: test case for directory healingSusant Palai2018-07-011-0/+139
| | | | | | | | | | | The test case tests directory healing. If a mkdir happens successfully when a subvol is down, the directory should heal and should have zeroed layout once the subvol is up. Change-Id: Ia2f5747a1008112a5dcebda8a953ee3d2de9f75f Signed-off-by: Susant Palai <spalai@redhat.com>
* TC: Induce holes in layout by removebrick force then lookupPrasad Desala2018-06-301-0/+136
| | | | | | | | | | Objective: When induced holes in the layout by remove brick force, lookup sent on the directory from client should fix the directory layout without any holes or overlaps. Change-Id: If4af10929e8e7d4da93cea80c515e37acf53d34e Signed-off-by: Prasad Desala <tdesala@redhat.com>
* glusto/dht: test lookup of directoriesSusant Palai2018-06-291-0/+280
| | | | | | | | | | | | | | | | | | | | | test: case -1: - bring down a subvol - create a directory so that it does not hash to down subvol - make sure stat is successful on the dir case -2: - create directory - bring down hashed subvol - make sure stat is successful on the dir case -3: - create dir - bringdown unhashed subvol - make sure stat is successful on the dir Change-Id: I9cbd2e7f04c885eaa09414d6b49632cf77dd72ec Signed-off-by: Susant Palai <spalai@redhat.com>
* Adding test case for change owner, group, permission for directoryMohit Agrawal2018-06-292-0/+414
| | | | | | | | | | | | | | | | | 1) Create Dir with some file inside dir 2) Verify dir exists on all bricks as well as mount point 3) Compare dir stat with mount-point and brick location path 4) Change the ownership of directory 5) Compare dir stats with mount-point and brick path 6) Try to change pemission with different user for directory 7) Compare dir stat with mount-point and brick path 8) Try to change permission with different user for directory 9) change permission of directory 10) Compare dir stat with mount-point and brick path 11) Try to change permission with different user for same directory Change-Id: I284842be8c7562d4618d4e69e202c4d80945f1c5 Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
* TC: Induce holes in layout by remove brick force then fix-layoutPrasad Desala2018-06-291-0/+154
| | | | | | | | | Objective: When induced holes in the layout by remove brick force, fix-layout start should fix the layout without any holes or overlaps. Change-Id: Ie4c47fff11957784044e717c644743263812a0e4 Signed-off-by: Prasad Desala <tdesala@redhat.com>
* glusto/dht: test case to check mkdir hashed to a down subvolumeSusant Palai2018-06-291-0/+155
| | | | | | | | The test case verifies that a mkdir of directory hashed to a down subvolume should fail. Change-Id: I8465f4869c9283d4339c50cdbd56b0256fa11bb9 Signed-off-by: Susant Palai <spalai@redhat.com>
* Adding DHT test case: stop glusterd while rebalance in progressPrasad Desala2018-06-271-0/+218
| | | | | | | Rebalance should proceed even if glusterd is down on a node. Change-Id: I499e8a4e6b42bd7a8153c1d82c8b329a1933e748 Signed-off-by: Prasad Desala <tdesala@redhat.com>
* Adding testcase: Exercise rebalance commandPrasad Desala2018-06-271-0/+376
| | | | | | | | | | | | | This testcase exercises below rebalance commands, 1) Rebalance with fix-layout 2) Rebalance start --> status --> stop 3) Rebalance with force option Changes: - Remove pytest.mark from test cases Change-Id: I467de068dabac90018f6241472b2d91d9d9e85a8 Signed-off-by: Prasad Desala <tdesala@redhat.com>
* Adding Testcase: Rebalance_while_remove_brick_in_progressPrasad Desala2018-06-271-0/+186
| | | | | | | | While remove-brick operation is in-progress on a volume, glusterd should not allow rebalance on the same volume. Change-Id: Ic94754bc12c86a32f2f5fd064129bf6bc038ed6a Signed-off-by: Prasad Desala <tdesala@redhat.com>
* glusto/dht: Verify create file operationSusant Palai2018-06-261-0/+166
| | | | | | | | | | test case: - Verify that the file is created on the hashed subvol alone - Verify that the trusted.glusterfs.pathinfo reflects the file location - Verify that the file creation fails if the hashed subvol is down Change-Id: I951c20f03772a0c5739244ec354f9bbfd6d0ea65 Signed-off-by: Susant Palai <spalai@redhat.com>
* Start rebalance when glusterd is down on one of the nodePrasad Desala2018-06-231-0/+184
| | | | | | | | Rebalance should fail on a pure distribute volume when glusterd is down on one of the nodes. Change-Id: I5a871a7783b434ef61f0f1cf4b262db9f5148af6 Signed-off-by: Prasad Desala <tdesala@redhat.com>
* Adding Testcase: add_brick_while_remove_brick_in_progressPrasad Desala2018-06-211-0/+183
| | | | | | | | While remove-brick operation is in-progress on a volume, glusterd should not allow add-brick operation on the same volume. Change-Id: Iddcbbdb1a5a444ea88995f176c0a18df932dea41 Signed-off-by: Prasad Desala <tdesala@redhat.com>
* Adding Testcase: Remove_brick_while_rebalance_in_progressPrasad Desala2018-06-211-0/+212
| | | | | | | | If a rebalance is in-progress on a volume, glusterd should fail a remove-brick operation on the same volume. Change-Id: I2f15023870f342c98186b1860b960cb3c04c0572 Signed-off-by: Prasad Desala <tdesala@redhat.com>
* Restart glusterd after rebalance is overPrasad Desala2018-06-191-0/+177
| | | | | | | | | Test case objective: Restarting glusterd should not restart a completed rebalance operation. Change-Id: I52b808d91d461048044ac742185ddf4696bf94a3 Signed-off-by: Prasad Desala <tdesala@redhat.com>
* Rebalance: Directory and file creation from multiple clientsPrasad Desala2018-06-171-0/+249
| | | | | | | | This testcase verifies rebalance behaviour while IO is in-progress from multiple clients Change-Id: Id87472a8194d31e5de181827cfcf30ccacc346c0 Signed-off-by: Prasad Desala <tdesala@redhat.com>
* Adding testcase: Rebalance with hidden filesPrasad Desala2018-06-051-0/+204
| | | | | | | | | | | | | | | If the dataset has hidden files and when added bricks and triggered rebalance, rebalance should be able to pick the hidden files for migration and should migrate those without any issues and the checksum should match post rebalance. Changes: - Minor fixes - Imrpoved imports - Removed logs of rebalance status Change-Id: I31c5859e112ad3a6efef7e008995090afda677cc Signed-off-by: Prasad Desala <tdesala@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
* 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
* Fix pylint failures on masterNigel Babu2018-04-171-4/+2
| | | | Change-Id: I43a5b87c4acfd3df9483ca869d926714325ae1b9
* Optimized imports and updated commentsMiroslav Asenov2018-04-161-22/+43
| | | | Change-Id: Ib9f4ca5cda02ac1fe66a5c7cdc599255f2fadb4d
* Added test case - dht rename directoryMiroslav Asenov2018-04-161-0/+273
| | | | Change-Id: I243a8ecf57483c20e5060351a9f24e7687ccdcf4
* Fix up coding style issues in testsNigel Babu2018-03-272-6/+6
| | | | Change-Id: I14609030983d4485dbce5a4ffed1e0353e3d1bc7
* Adding testcase: Negative test - Exercise Add-brick commandPrasad Desala2018-02-141-0/+188
This testcase covers below scenarios, 1) Add-brick without volname 2) Adding a duplicate brick 3) Adding a brick which is already part of another volume 4) Adding a nested brick i.e brick inside another brick 5) Add a brick to a non existent volume 6) Add a brick from the peer which is not in cluster Change-Id: I2d68715facabaa172db94afc7e1b64f95fb069a7 Signed-off-by: Prasad Desala <tdesala@redhat.com>