summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster
Commit message (Collapse)AuthorAgeFilesLines
* Function for reset brick added in the brick_opsubansal2018-06-151-1/+52
| | | | | Change-Id: I01ad84cc2e35873b985d5d86d3cbacd226b42ae1 Signed-off-by: ubansal <ubansal@redhat.com>
* Pausing and resuming a geo-rep sessionrallan2018-06-151-0/+63
| | | | | Change-Id: I4d2767acb4fff7ab972e11d13ef4c547914110d9 Signed-off-by: rallan <rallan@redhat.com>
* Quota : Library to get the quotad pidVinayak Papnoi2018-06-141-0/+67
| | | | | | | | Adding quota_libs.py with the quota_fetch_daemon_pid library. This library gets the PID of quota daemon from all the nodes. Change-Id: Icc5ecba5649a2f7fd48d5cedda6c1dd3ad8b50c0 Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* tests: Test case to verify brick consumable sizeSunil Kumar Acharya2018-06-141-0/+19
| | | | | | | | | | When bricks of various sizes are used to create a disperse volume, volume size should be of the size (number of data bricks * least of brick size) RHG3-11124 Change-Id: Ic791212bf028328996b896ae4896cf860c153264 Signed-off-by: Sunil Kumar Acharya <sheggodu@redhat.com>
* Initial steps for geo-rep setuprallan2018-06-131-0/+110
| | | | | Change-Id: I1b06d935ae056dd0fe583f3c1a9f181ec2a40076 Signed-off-by: rallan <rallan@redhat.com>
* Libraries to enable and disable shared storageAkarsha2018-06-131-0/+116
| | | | | Change-Id: Ie5072e8f29185104bcd54348465cc6e96cce5f00 Signed-off-by: Akarsha <akrai@redhat.com>
* Quota: Fixing quota libs in glustoSanoj Unnikrishnan2018-06-133-194/+110
| | | | | | | | | | - 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>
* Changes to accept '*' as authentication value and minor enhancement in ↵Jilju Joy2018-06-121-16/+22
| | | | | | decription. Change-Id: I895b1eb51e0bc425ba1aff559374ea9383894ccb
* Add services to firewall and remove services from firewallRajesh Madaka2018-06-081-2/+46
| | | | | Change-Id: Ie81b6ecb7e7af0524a42b37f0256a2cfff5d7736 Signed-off-by: Rajesh Madaka <rmadaka@redhat.com>
* Gluster volume auth.reject operationJilju Joy2018-06-071-0/+100
| | | | | | | Adding minor enhancement Change-Id: I47cc2e6a134b0ebbc8573b3d46e7e0bd5e7fd0cc Signed-off-by: Jilju Joy <jijoy@localhost.localdomain>
* Gluster volume auth.allow operationJilju Joy2018-06-071-0/+122
| | | | | | Adding minor enhancement Addressed comments Change-Id: Ic4b693be51c853531a63218be7485374d1f6934e
* Use --mode=script at all times for remove_brickNigel Babu2018-06-061-2/+1
| | | | Change-Id: I6b4c3a0ed2ede26e4db3210ee87e604e01059748
* snapshot:: library for snapshot schedulersrivickynesh2018-05-311-0/+215
| | | | | Change-Id: Id2afba5b96177b2acde057357d58f0b257104c98 Signed-off-by: srivickynesh <sselvan@redhat.com>
* Added function to create ssl machineAkarsha2018-05-211-0/+225
| | | | | Change-Id: Ie9234be69a601d0489b159183fb02cff8758df89 Signed-off-by: Akarsha <akrai@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>
* Fix form_bricks_list to work with arbiterNigel Babu2018-05-111-2/+12
| | | | Change-Id: I04d3b8ef5ff08cc50fddf07461874210a08248a6
* 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
* 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>
* Library to check brick pid matches pid of glusterfsd when brick mux feature ↵Akarsha2018-04-191-0/+46
| | | | | | | is enabled Change-Id: Id8d42c72548d618ac7bd1563ca2035018b7c2c99 Signed-off-by: Akarsha <akrai@redhat.com>
* Library to bring bricks specified in the brick_list online when brick mux is ↵Akarsha2018-04-181-1/+14
| | | | | | | enabled Change-Id: I0ae0d45050501154e9cd69c0d3dc9e915ae21b3a Signed-off-by: Akarsha <akrai@redhat.com>
* Library to bring the bricks specified in the brick_list offline when brick ↵Akarsha2018-04-181-1/+41
| | | | | | | mux is enabled Change-Id: Ibf77bb30f5ead4b208337d0a9f2d5b42a6875ded Signed-off-by: Akarsha <akrai@redhat.com>
* Adding function to enable brick muxAkarsha2018-04-171-0/+16
| | | | | Change-Id: Id1396eb5211f1e189b603fcab916711dbceb30af Signed-off-by: Akarsha <akrai@redhat.com>
* glustolibs/gluster/glusterfile: rpyc connection function callKartik_Burmee2018-04-161-1/+1
| | | | | | | | | | | | | | changed get_connection to rpyc_get_connection. executed a test case after this change and got this error - "error while loading shared libraries: libglusterfs.so.0 cannot open shared object file: No such file or directory". solved this path issue by adding shared library to system library path on my machine. Not sure if it'll be a common issue for everyone using this module. Change-Id: Id52df4b17bc3d30b808bb1eb77c87b03c3ed2f7b Signed-off-by: Kartik_Burmee <kburmee@redhat.com>
* 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>
* Added function to check brickmux is enabled or notAkarsha2018-03-271-0/+40
| | | | | Change-Id: Ie115ecc42a38391b0e8687d7f3acf9904c18b0ee Signed-off-by: Akarsha <akrai@redhat.com>
* Snapshot: Library to list all snapshots under .snaps directorysrivickynesh2018-03-271-0/+21
| | | | | Change-Id: I3c1f3f1c7ca11f5f4b5b80e0f208b7f0085c13df Signed-off-by: srivickynesh <sselvan@redhat.com>
* Fix logging bug in brick_libs.pyNigel Babu2018-03-051-1/+1
| | | | Change-Id: Id0f72542702732cdecb21a2e0fa07a64ca8891c4
* initial dht libsJonathan Holloway2018-02-267-0/+1424
| | | | | | | | | | | | | * glusterfile.py - helper for gluster client and backend files. * glusterdir.py - helper for gluster client and backend dirs. * brickdir.py - helper for collection and hashing of brickdirs (from pathinfo data). * layout.py - base class for simple DHT layout validation. * dht_test_util.py - utility module to walk a directory tree and run tests against files. * constants.py - definitions for constants used in DHT libraries. * exceptions.py - definitions for exceptions raised in DHT libraries. Change-Id: I44770a822e0ec79561b3aa048e555320f622116a Signed-off-by: Jonathan Holloway <jholloway@redhat.com>
* This makes sure BVT passes when runs_on is emptyNigel Babu2018-02-131-1/+1
| | | | | | Needs to be done for cases where we don't use runs_on Change-Id: I0d5b424621706842fb1a8cccb17c653c6dcff72d
* readthedocs.org fix /usr/share cannot open errorJonathan Holloway2018-02-061-2/+5
| | | | | | | Add a try around dir copy to eliminate readthedocs.org cannot open error Change-Id: Ie9160a8b7dc42839fe4c176c89aa67ae26c1266e Signed-off-by: Jonathan Holloway <jholloway@redhat.com>
* quota: lib to check if hard and soft limit are exceed.hari gowtham2018-02-022-0/+102
| | | | | | | | This is a library to check if quota' hard and soft limit are exceeded from the output of the quota list xml command. Change-Id: Ie02ab9fcbf2aa2d248e0cb6385ab3d3f0554dec0 Signed-off-by: hari gowtham <hgowtham>
* Test case for Validate Peer probe with invalid ip and non existingRajesh Madaka2018-02-021-0/+58
| | | | | | | | | | | | | | | | | | | | | host, non existing ip Library for Core file Create or Not, Added is_core_file_created() function to lib_utils.py Test Desc: Test script to verify peer probe non existing host and invalid-ip, peer probe has to be fail for non existing host, Glusterd services up and running after invalid peer probe, and core file should not get created under "/", /tmp, /var/log/core directory Adding glusterd peer probe test cases with modifications according to comments adding lib for core file verification Change-Id: I0ebd6ee2b340d1f1b01878cb0faf69f41fec2e10 Signed-off-by: Rajesh Madaka <rmadaka@redhat.com>
* Inject messages to client gluster logs only if theShwethaHP2018-02-011-5/+7
| | | | | | | mount_type is 'glusterfs' Change-Id: I00f0b5edfea0e09381d1404a0cfd16396a8fbde9 Signed-off-by: ShwethaHP <spandura@redhat.com>
* Use wait_for_volume_process_to_be_onlineShwethaHP2018-01-301-16/+21
| | | | | | | | Replace all the time.sleep() instances with wait_for_volume_process_to_be_online function Change-Id: Id7e34979f811bd85f7475748406803026741a3a8 Signed-off-by: ShwethaHP <spandura@redhat.com>
* Check if volume type is 'distribute' before checking if self-heal-daemons ↵ShwethaHP2018-01-301-0/+14
| | | | | | | are online Change-Id: I25424dd182c347a0570713ada8d2de611840fef3 Signed-off-by: ShwethaHP <spandura@redhat.com>
* Adding a cifs security option while mouting if the client is rhel6ShwethaHP2018-01-301-2/+22
| | | | | Change-Id: Ifc6aa4d106dadf97e1741ec54a3323ea96e33101 Signed-off-by: ShwethaHP <spandura@redhat.com>
* Adding function bring_self_heal_daemon_process_offline to heal_libsVijay Avuthu2018-01-291-0/+44
| | | | | | | | | Description: Bring the self-heal daemon process offline for the nodes Change-Id: I55301fb86a97147920991aa4455e8e5d80b1c5c3 Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>
* Adding function get_remove_brick_status.Prasad Desala2018-01-291-0/+62
| | | | | | | | | This function parses the output of 'gluster vol remove-brick status' command for the given volume. The output of this function is remove-brick status output in dictionary format. Change-Id: I91b0bf9221b2645041abc5bbc016e356d0072b0b Signed-off-by: Prasad Desala <tdesala@redhat.com>
* Fixing None issue when running multiple volumesVijay Avuthu2018-01-281-2/+3
| | | | | Change-Id: I7a8465a60c8e5d8f84a647ae65dbabcab2184516 Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>
* Fixing Plumbum spawn issue with pgrepVijay Avuthu2018-01-281-1/+1
| | | | | Change-Id: If303d22f52d31e99676a6e97fbe0b9cb7d5a1234 Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>
* Library for checking snapshot daemon is running or notRajesh Madaka2018-01-251-0/+33
| | | | | | | Added is_snapd_running function to uss_ops.py file Change-Id: Ib1ff0a16550c94604209588bd5221f9ee6e9db92 Signed-off-by: Rajesh Madaka <rmadaka@redhat.com>
* Adding AFR self heal daemon test casesVijay Avuthu2018-01-232-0/+204
| | | | | | | | | | | Gave meaningful names to functions Returning -1 if there is no process running Replace numbers with words Rewording the msg "More than 1 or 0 self heal daemon" Review Comments incorporated Change-Id: If424a6f78536279c178ee45d62099fd8f63421dd Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>
* rebalance_ops: Adding a function wait_for_fix_layout_to_completesPrasad Desala2018-01-201-0/+40
| | | | | Change-Id: Id33b1de7c01cd7774d3c4cce3c40ddfe2dc0d884 Signed-off-by: Prasad Desala <tdesala@redhat.com>
* Check if servers/nodes which is expected to be passed as listShwethaHP2018-01-165-37/+70
| | | | | | | | 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>
* Override default volume_type configuration in gluster base class ifShwethaHP2018-01-161-1/+25
| | | | | | | | | volume type configuration is defined in the config file. Providing an option in config file to create volume with 'force' option. Change-Id: Ifeac20685f0949f7573257f30f05df6f79ce1dbd Signed-off-by: ShwethaHP <spandura@redhat.com>
* Adding functions for:ShwethaHP2018-01-113-1/+118
| | | | | | | | | 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>
* Modifying gluster_base_class to have static methods for :ShwethaHP2017-12-131-151/+317
| | | | | | | | | | | | | | | | | | | | | | | | 1. setup_volume 2. mount_volume 3. setup_volume_and_mount 4. cleanup_volume 5. unmount_volume 6. unmount_and_cleanup_volume These are added as static methods to give the test developer the flexibility to call the setup/cleanup's or any other function from any where in the testclass which inherits GlusterBaseClass Also, this will remove the need for GlusterVolumeBaseClass and hence removing the hardcoding of creattion of volume, mouting in setUpClass of GlusterVolumeBaseClass. This will also help in writing new baseclasses for example: Block which can have class funcitons specific to block and inherit all the functions from GlusterBaseClass Change-Id: I3f0709af75e5bb242d265d04ada3a747c155211d Signed-off-by: ShwethaHP <spandura@redhat.com>
* Fixing the glusto-tests Build Failures:ShwethaHP2017-11-231-12/+11
| | | | | | | | | | 21:00:43 ./glustolibs-gluster/glustolibs/gluster/lib_utils.py:67:5: E722 do not use bare except' 21:00:43 ./glustolibs-gluster/glustolibs/gluster/lib_utils.py:290:5: E722 do not use bare except' 21:00:43 ./glustolibs-io/shared_files/scripts/file_dir_ops.py:308:13: E722 do not use bare except' 21:00:43 ./glustolibs-io/shared_files/scripts/file_dir_ops.py:316:13: E722 do not use bare except' Change-Id: Ia0babf3d5a10b19c48425e4fcbcb8e79eea5e391 Signed-off-by: ShwethaHP <spandura@redhat.com>