summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/volume_ops.py
diff options
context:
space:
mode:
authorShwethaHP <spandura@redhat.com>2017-08-23 17:24:57 +0530
committerShwethaHP <spandura@redhat.com>2017-08-28 10:15:34 +0530
commitdfe392e04ee3a126fad2a9b3b5c526f7f7594cf5 (patch)
tree9eeb1751c01b4cb45e6624a613625273d52ec5af /glustolibs-gluster/glustolibs/gluster/volume_ops.py
parenta8701fc8c8855429e9fc7da99dbe2b6b952802f2 (diff)
1) bring_bricks_online: Wait for bricks to be online for 30 seconds
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>
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/volume_ops.py')
-rw-r--r--glustolibs-gluster/glustolibs/gluster/volume_ops.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/volume_ops.py b/glustolibs-gluster/glustolibs/gluster/volume_ops.py
index cc400390b..6cf038dbf 100644
--- a/glustolibs-gluster/glustolibs/gluster/volume_ops.py
+++ b/glustolibs-gluster/glustolibs/gluster/volume_ops.py
@@ -384,7 +384,7 @@ def get_volume_status(mnode, volname='all', service='', options=''):
cmd = "gluster vol status %s %s %s --xml" % (volname, service, options)
- ret, out, _ = g.run(mnode, cmd)
+ ret, out, _ = g.run(mnode, cmd, log_level='DEBUG')
if ret != 0:
g.log.error("Failed to execute gluster volume status command")
return None
@@ -635,7 +635,7 @@ def get_volume_info(mnode, volname='all'):
"""
cmd = "gluster volume info %s --xml" % volname
- ret, out, _ = g.run(mnode, cmd)
+ ret, out, _ = g.run(mnode, cmd, log_level='DEBUG')
if ret != 0:
g.log.error("volume info returned error")
return None