summaryrefslogtreecommitdiffstats
path: root/Libraries/GlusterCommands/ATFGlusterPeer.py
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/GlusterCommands/ATFGlusterPeer.py')
-rwxr-xr-xLibraries/GlusterCommands/ATFGlusterPeer.py38
1 files changed, 0 insertions, 38 deletions
diff --git a/Libraries/GlusterCommands/ATFGlusterPeer.py b/Libraries/GlusterCommands/ATFGlusterPeer.py
deleted file mode 100755
index 9e40f50..0000000
--- a/Libraries/GlusterCommands/ATFGlusterPeer.py
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/env python
-import ATFUtils
-import ATFTestEnv
-
-def probe():
- """
- Description:
- probe peer specified by <HOSTNAME>
-
- Parameters:
- None
-
- Returns:
- Success: 0
- Failure: 1
- """
-
- command = "gluster peer probe "
- servers = ATFUtils.TestEnvObj.get_servershostlist()
-
- length = len(servers)
- if (length == 1):
- ATFUtils.Logger.warning("Self Probing of Server Not Required")
- return 0
- else:
- fromhost = servers.pop(0)
- for host in servers:
- command = command + host + " "
-
- status, stdin, stdout, stderr = ATFUtils.execute_command(command,
- host=fromhost,
- user='root')
-
- if (status == 1):
- return 1
- else:
- return ATFUtils.parse_output(stdout, stderr)
-