Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=5fa... Commit: 5fae628d12c1c38b1d29a05bf58a2e0c4e19aec7 Parent: f4fc5eb9e0b848a11c5e06a32ea97d51e1beca5d Author: Marek 'marx' Grac mgrac@redhat.com AuthorDate: Fri Jun 18 16:53:50 2010 +0200 Committer: Marek 'marx' Grac mgrac@redhat.com CommitterDate: Fri Jun 18 16:53:50 2010 +0200
fence_wti: support non-default TCP ports
WTI do not use standard process to login so it needs special patch (based on the code in library)
Resolves: rhbz#572996 --- fence/agents/wti/fence_wti.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/fence/agents/wti/fence_wti.py b/fence/agents/wti/fence_wti.py index 292dcaa..51c2b59 100755 --- a/fence/agents/wti/fence_wti.py +++ b/fence/agents/wti/fence_wti.py @@ -108,7 +108,9 @@ is running because the connection will block any necessary fencing actions." if 0 == options.has_key("-x"): try: try: - conn = fspawn('%s %s' % (TELNET_PATH, options["-a"])) + conn = fspawn(TELNET_PATH) + conn.send("set binary\n") + conn.send("open %s -%s\n"%(options["-a"], options["-u"])) except pexpect.ExceptionPexpect, ex: sys.stderr.write(str(ex) + "\n") sys.stderr.write("Due to limitations, binary dependencies on fence agents "