summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/volume_libs.py
diff options
context:
space:
mode:
authorShwetha Panduranga <spandura@redhat.com>2016-12-01 00:50:32 +0530
committerShwetha Panduranga <spandura@redhat.com>2016-12-01 00:51:28 +0530
commit0faf837454e3636876483dc289342e202af318e2 (patch)
tree3943ee04658c15efa1dc29b2fc59ae693d4f79d8 /glustolibs-gluster/glustolibs/gluster/volume_libs.py
parent279c2a99af5cb45b0b889aa8da8450a92969e216 (diff)
Start gluster nfs-server only when the mount type is 'nfs'.
Change-Id: Ie7a25927d9bd55a7115adfae4fd550f96f435950 Signed-off-by: Shwetha Panduranga <spandura@redhat.com>
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/volume_libs.py')
-rw-r--r--glustolibs-gluster/glustolibs/gluster/volume_libs.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/volume_libs.py b/glustolibs-gluster/glustolibs/gluster/volume_libs.py
index c3a67f608..24aac821d 100644
--- a/glustolibs-gluster/glustolibs/gluster/volume_libs.py
+++ b/glustolibs-gluster/glustolibs/gluster/volume_libs.py
@@ -216,13 +216,6 @@ 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)