summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/brick_libs.py
Commit message (Collapse)AuthorAgeFilesLines
* Modifying get_online_bricks_list() to give brick list with node downkshithijiyer2019-04-041-1/+5
| | | | | | | | | | get_online_bricks_list() used to fail in case of node down secnarios with KeyError exception adding code to catch the exception and provide brick list with bricks from gluster v status. Signed-off-by: kshithijiyer <kshithij.ki@gmail.com> Change-Id: Ia26208a52e4197050421bc34b9b8cdaf74ac4da6
* Fix spelling mistake across the codebaseNigel Babu2018-08-071-1/+1
| | | | Change-Id: I46fc2feffe6443af6913785d67bf310838532421
* Fix cyclic import in brickmux_ops.pyNigel Babu2018-04-251-14/+8
| | | | Change-Id: I487822efd6c57b8c51b65b4eaf149eb67e96731b
* 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>
* Fix logging bug in brick_libs.pyNigel Babu2018-03-051-1/+1
| | | | Change-Id: Id0f72542702732cdecb21a2e0fa07a64ca8891c4
* Adding functions for:ShwethaHP2018-01-111-0/+39
| | | | | | | | | 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>
* 1) bring_bricks_online: Wait for bricks to be online for 30 secondsShwethaHP2017-08-281-6/+12
| | | | | | | | | after bringing them online. 2) log all the xml output/error to DEBUG log level. Change-Id: If6bb758ac728f299292def9d72c0ef166a1569ae Signed-off-by: ShwethaHP <spandura@redhat.com>
* Fixing the BVT Issues:ShwethaHP2017-08-191-2/+3
| | | | | | | | | | | | | | | 1) self-heal failures: With the recent changes made to gluster for the bug: https://bugzilla.redhat.com/show_bug.cgi?id=1480423, the location of the brick process pid's changed to /var/run/gluster. Making the corresponding changes to glusto-tests libraries. Moving away from referring to pid file to grep for the process with the brick name. This fixes the issue. 2) Group options not being set properly: Since we were popping the 'group' option from the 'options' dictionary after the group options being set to set the other volume options, the option gets removed from the g.config['gluster']['smb_volume_options'] as well. Hence perform a deep copy of the dict before modifying the dict. Change-Id: I293bf81913857cb0327f30aa1db5aaa9be5a318e Signed-off-by: ShwethaHP <spandura@redhat.com>
* Typo: Space to be added between the commands execution.ShwethaHP2017-08-171-1/+1
| | | | | Change-Id: I5ea8b6c0b58fd19c31fc96cc567c53000cd3841b Signed-off-by: ShwethaHP <spandura@redhat.com>
* Adding sanity heal tests when IO in progress.Shwetha Panduranga2017-06-011-0/+386
| | | | | | | | | 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 test for Gluster Basic Component Verification Sanity Suite.Shwetha Panduranga2017-03-031-62/+69
| | | | | | | - expanding the volume i.e test add-brick is successful on the volume. Change-Id: I8110eea97cf46e3ccc24156d6c67cae0cbf5a7c1 Signed-off-by: Shwetha Panduranga <spandura@redhat.com>
* Clean up pyflakes and pep8 errorsNigel Babu2016-12-121-2/+2
| | | | | Change-Id: Ibdd092118d3bb912716c46fd278ef3c680a6e742 Signed-off-by: Nigel Babu <nigelb@redhat.com>
* Adding libs for brick ops, volume helpers, mount helpers, gluster baseShwetha Panduranga2016-10-171-0/+414
class, heal related helpers, samba helpers, and windows ops helpers Change-Id: I0ad8fc7548c88e89d2ba6441166b9a38af76cea0 Signed-off-by: Shwetha Panduranga <spandura@redhat.com>