From 695c9b55d0e31b8153e70340261751432bece920 Mon Sep 17 00:00:00 2001 From: Shwetha Panduranga Date: Mon, 7 Nov 2016 15:13:05 +0530 Subject: set nfs.disable to off on the volume to start nfs server on that volume. Change-Id: Ic63a69ec0d0cafcb71059b41625fe054167910d0 Signed-off-by: Shwetha Panduranga --- glustolibs-gluster/glustolibs/gluster/volume_libs.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'glustolibs-gluster') diff --git a/glustolibs-gluster/glustolibs/gluster/volume_libs.py b/glustolibs-gluster/glustolibs/gluster/volume_libs.py index 24aac821d..c3a67f608 100644 --- a/glustolibs-gluster/glustolibs/gluster/volume_libs.py +++ b/glustolibs-gluster/glustolibs/gluster/volume_libs.py @@ -216,6 +216,13 @@ def setup_volume(mnode, all_servers_info, volume_config, force=False): g.log.error("Unable to create volume %s" % volname) return False + # Set volume option nfs.disable to 'off' to start gluster-nfs server + cmd = "gluster volume set %s nfs.disable off" % volname + ret, out, err = g.run(mnode, cmd) + if ret != 0: + g.log.error("Unable to set the volume option nfs.disable to off.") + return False + # Start Volume time.sleep(2) ret = volume_start(mnode, volname) -- cgit