From dfe392e04ee3a126fad2a9b3b5c526f7f7594cf5 Mon Sep 17 00:00:00 2001 From: ShwethaHP Date: Wed, 23 Aug 2017 17:24:57 +0530 Subject: 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 --- glustolibs-gluster/glustolibs/gluster/brick_ops.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'glustolibs-gluster/glustolibs/gluster/brick_ops.py') diff --git a/glustolibs-gluster/glustolibs/gluster/brick_ops.py b/glustolibs-gluster/glustolibs/gluster/brick_ops.py index 0e99b955e..7ac34c690 100644 --- a/glustolibs-gluster/glustolibs/gluster/brick_ops.py +++ b/glustolibs-gluster/glustolibs/gluster/brick_ops.py @@ -115,11 +115,14 @@ def remove_brick(mnode, volname, bricks_list, option, xml=False, **kwargs): xml_str = '' if xml: xml_str = "--xml" + log_level = 'DEBUG' + else: + log_level = 'INFO' cmd = ("gluster volume remove-brick %s %s %s %s %s" % (volname, replica, ' '.join(bricks_list), option, xml_str)) - return g.run(mnode, cmd) + return g.run(mnode, cmd, log_level=log_level) def replace_brick(mnode, volname, src_brick, dst_brick): -- cgit