This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cluster: RHEL4 - fence_lpar: option -x for ssh was required


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=b992279f3080cde3eb714cd202455fa7c7619f92
Commit:        b992279f3080cde3eb714cd202455fa7c7619f92
Parent:        dc3627fc32acc1e79f251a6aaab7b362920323aa
Author:        Marek 'marx' Grac <mgrac@redhat.com>
AuthorDate:    Mon Jul 13 17:09:12 2009 +0200
Committer:     Marek 'marx' Grac <mgrac@redhat.com>
CommitterDate: Mon Jul 13 17:10:45 2009 +0200

fence_lpar: option -x for ssh was required

Option -x is no longer required for LPAR. It is turned on automatically. This
should not change behaviour of fence agent as -x was required before and no
other access to LPAR/HMC is supported.
---
 fence/agents/lib/fencing.py.py  |    2 +-
 fence/agents/lpar/fence_lpar.py |    4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py
index fe9b64f..55b1b65 100644
--- a/fence/agents/lib/fencing.py.py
+++ b/fence/agents/lib/fencing.py.py
@@ -103,7 +103,7 @@ all_opt = {
 	"hmc_version" : {
 		"getopt" : "H:",
 		"longopt" : "hmc-version",
-		"help" : "-H, --hmc-version=<version>   Force HMC version to use: 3, 4 (default)",
+		"help" : "-H <version>   Force HMC version to use: 3, 4 (default)",
 		"order" : 1 },
 	"ribcl" : {
 		"getopt" : "r:",
diff --git a/fence/agents/lpar/fence_lpar.py b/fence/agents/lpar/fence_lpar.py
index 4cf5c7c..680eab5 100755
--- a/fence/agents/lpar/fence_lpar.py
+++ b/fence/agents/lpar/fence_lpar.py
@@ -91,6 +91,7 @@ def main():
 			"secure", "partition", "managed", "hmc_version", "cmd_prompt" ]
 
 	options = check_input(device_opt, process_input(device_opt))
+	options["-x"] = 1
 
 	## 
 	## Fence agent specific defaults
@@ -101,9 +102,6 @@ def main():
 	if 0 == options.has_key("-H"):
 		options["-H"] = "4"
 
-	if 0 == options.has_key("-x"):
-		fail_usage("Failed: You have to use ssh connection (-x) to fence device")
-
 	if 0 == options.has_key("-s"):
 		fail_usage("Failed: You have to enter name of managed system")
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]