summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/volume_libs.py
Commit message (Collapse)AuthorAgeFilesLines
* [lib]-Adding support for arbiter volumes in setup_volume()sayaleeraut2019-11-291-1/+36
| | | | | | | | Adding support for arbiter and distributed-arbiter volume types as it was not present earlier in setup_volume(). Change-Id: I836e4865bb2066478d5f08254f37f115b3a1aac5 Signed-off-by: sayaleeraut <saraut@redhat.com>
* Fix spelling mistake across the codebaseNigel Babu2018-08-071-14/+14
| | | | Change-Id: I46fc2feffe6443af6913785d67bf310838532421
* Adding a function which gets all files and directories on a bricksPrasad Desala2018-07-271-0/+53
| | | | | Change-Id: I0a439b8defeb6b8e72694f1d97e1309a7ba988fa Signed-off-by: Prasad Desala <tdesala@redhat.com>
* Quota: Fixing quota libs in glustoSanoj Unnikrishnan2018-06-131-4/+4
| | | | | | | | | | - added quota_libs.py with quota_validate library - Removed redundant function in quota_ops. - changed naming of quota_ops to be consistent and intutive w.r.t cli Change-Id: I4faf448ea308c9e04b548d6174d900fcf56978a5 Signed-off-by: Sanoj Unnikrishnan <sunnikri@redhat.com>
* Fix form_bricks_list to work with arbiterNigel Babu2018-05-111-2/+12
| | | | Change-Id: I04d3b8ef5ff08cc50fddf07461874210a08248a6
* Adding functions to form_bricks_list_to_add_bricks, remove_brick and ↵ShwethaHP2018-04-161-137/+378
| | | | | | | | | replace_brick. Replaced the expand_volume, shrink_volume to also make use of these functions. Change-Id: Ic5afdb90dc939cdc9b76a7b3f8e3d1cf0108b58e Signed-off-by: ShwethaHP <spandura@redhat.com>
* Check if servers/nodes which is expected to be passed as listShwethaHP2018-01-161-4/+11
| | | | | | | | is str. i.e passing a single node to the function. If it is str, then convert it to list Change-Id: I1abacf62fdbe1ec56fe85c86d8e2a323a2c3971b Signed-off-by: ShwethaHP <spandura@redhat.com>
* Adding functions for:ShwethaHP2018-01-111-1/+43
| | | | | | | | | 1. Waiting for all bricks to be online 2. Waiting for all self-heal-daemons to be online 3. Waiting for all volume processes to be online Change-Id: I01a8711838227eb167e69710ecbd3abd0fecb9e6 Signed-off-by: ShwethaHP <spandura@redhat.com>
* Do not validate the return code of the 'rebalance status' command when just ↵stableShwethaHP2017-09-111-8/+3
| | | | | | | | | logging the output Change-Id: I6ff7e363871607c2f9d4272be7198150db59af5d Signed-off-by: ShwethaHP <spandura@redhat.com>
* Fix to match only the given volname in showmountArthy Loganathan2017-06-201-1/+1
| | | | | Change-Id: I41290d79f016e590a936d031665259f61aa1474a Signed-off-by: Arthy Loganathan <aloganat@redhat.com>
* Resolving the Cyclic Imports. It cased during resolving theShwethaHP2017-06-061-1/+1
| | | | | | | merge confilts. Change-Id: Ie48d758c8883b8189ece735708fb5469ece5a0c2 Signed-off-by: ShwethaHP <spandura@redhat.com>
* Adding sanity heal tests when IO in progress.Shwetha Panduranga2017-06-011-1/+288
| | | | | | | | | 1) test heal with replace-brick when io in progress 2) test heal when bricks goes offline and comes back online when io in progress. Change-Id: Id9002c465aec8617217a12fa36846cdc1f61d7a4 Signed-off-by: Shwetha Panduranga <spandura@redhat.com> Signed-off-by: ShwethaHP <spandura@redhat.com>
* Adding a sanity case to test shrinking volume. i.e remove-brickShwetha Panduranga2017-05-311-10/+302
| | | | | | | | | Remove brick Sanity case covers testing of remove-brick of a subvolume, waiting for rebalance to complete, commiting the operation and validate IO is successful on the mount. Change-Id: I5912f62b3df5dfb5bf5339de036967f83b6a5117 Signed-off-by: Shwetha Panduranga <spandura@redhat.com>
* Adding a test for Gluster Basic Component Verification Sanity Suite.Shwetha Panduranga2017-03-031-4/+164
| | | | | | | - expanding the volume i.e test add-brick is successful on the volume. Change-Id: I8110eea97cf46e3ccc24156d6c67cae0cbf5a7c1 Signed-off-by: Shwetha Panduranga <spandura@redhat.com>
* Adding a new test to VVT:Shwetha Panduranga2017-02-271-83/+99
| | | | | | | | | | | | | | | | | | | | | 1) glusterbaseclass: - Making changes in glusterbaseclass to not necessarily have volume_type and mount_type. 2) volume_libs: - setup_volume don't have to export the volume. It just creates starts and setup's any operation on the volume. - Moved the sharing/exporting the volume to BaseClass 3) Renaming samba_ops to samba_libs to have better naming practice. 4) Adding nfs_ganesha_libs for any nfs related helper functions 5) Adding a new vvt case which creates, deteles, creates the volume. Change-Id: I238c349df7165d669d3bc7234d97845dba2f51a6 Signed-off-by: Shwetha Panduranga <spandura@redhat.com>
* Adding helper functions to volume libs:Shwetha Panduranga2017-02-061-10/+100
| | | | | | | | | | | 1) To check if volume is exported as nfs/cifs share 2) A function which logs volume info and volume status. This will be used in most of the tests for validation purposes 3) Check if all process of the volume is running or not. This will be used mostly in all the cases for validation purposes. Change-Id: I0cd797e5bfe269da8630b41193ea458be3a720f9 Signed-off-by: Shwetha Panduranga <spandura@redhat.com>
* Clean up pyflakes and pep8 errorsNigel Babu2016-12-121-17/+11
| | | | | Change-Id: Ibdd092118d3bb912716c46fd278ef3c680a6e742 Signed-off-by: Nigel Babu <nigelb@redhat.com>
* Start gluster nfs-server only when the mount type is 'nfs'.Shwetha Panduranga2016-12-011-7/+0
| | | | | Change-Id: Ie7a25927d9bd55a7115adfae4fd550f96f435950 Signed-off-by: Shwetha Panduranga <spandura@redhat.com>
* set nfs.disable to off on the volume to start nfs server on that volume.Shwetha Panduranga2016-11-071-0/+7
| | | | | Change-Id: Ic63a69ec0d0cafcb71059b41625fe054167910d0 Signed-off-by: Shwetha Panduranga <spandura@redhat.com>
* Adding a bvt testcaseShwetha Panduranga2016-10-261-17/+32
| | | | | Change-Id: Ide7e3bac46fbaf354a2a5c8baef8510b4aefec78 Signed-off-by: Shwetha Panduranga <spandura@redhat.com>
* Adding libs for brick ops, volume helpers, mount helpers, gluster baseShwetha Panduranga2016-10-171-0/+980
class, heal related helpers, samba helpers, and windows ops helpers Change-Id: I0ad8fc7548c88e89d2ba6441166b9a38af76cea0 Signed-off-by: Shwetha Panduranga <spandura@redhat.com>