summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinayak Papnoi <vpapnoi@redhat.com>2019-06-27 16:28:54 +0530
committerBala Konda Reddy M <bmekala@redhat.com>2019-07-23 07:24:26 +0000
commit7dea784f135c10d4d6ecb1b5549e59e66e582b91 (patch)
tree8e49be668ba4d67569793d55ca041ab456baa4ca
parent1ca1c623f156ab741dd8757c570d3b060d5a8dec (diff)
[geo-rep] Removing 'create_shared_storage' function as separate libraries exist
The function 'create_shared_storage' is redundant as the same function is available as part of the shared-storage library. This part will be removed from the geo-rep library with this fix. To create/enable shared storage, make use of the shared_storage_ops.py library. Change-Id: Ibefca73140e1218f0aa9331f061ef4fc8d9360e3 Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
-rwxr-xr-xglustolibs-gluster/glustolibs/gluster/geo_rep_ops.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/geo_rep_ops.py b/glustolibs-gluster/glustolibs/gluster/geo_rep_ops.py
index 8acec0d0e..e68901d63 100755
--- a/glustolibs-gluster/glustolibs/gluster/geo_rep_ops.py
+++ b/glustolibs-gluster/glustolibs/gluster/geo_rep_ops.py
@@ -21,29 +21,6 @@
from glusto.core import Glusto as g
-def create_shared_storage(mnode):
- """Create shared volume which is necessary for the setup of
- a geo-rep session
-
- Args:
- mnode(str): Node on which command is to be executed
-
- Returns:
- tuple: Tuple containing three elements (ret, out, err).
- The first element 'ret' is of type 'int' and is the return value
- of command execution.
-
- The second element 'out' is of type 'str' and is the stdout value
- of the command execution.
-
- The third element 'err' is of type 'str' and is the stderr value
- of the command execution.
-
- """
- cmd = "gluster volume set all cluster.enable-shared-storage enable"
- return g.run(mnode, cmd)
-
-
def georep_createpem(mnode):
""" Creates a common pem pub file on all the nodes in the master and
is used to implement the passwordless SSH connection