summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/volume_libs.py
diff options
context:
space:
mode:
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/volume_libs.py')
-rw-r--r--glustolibs-gluster/glustolibs/gluster/volume_libs.py7
1 files changed, 7 insertions, 0 deletions
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)