fence-agents: RHEL6 - fence_drac5: drac5 firmware does not close ssh session correctly
Marek Grác
marx at fedoraproject.org
Mon Aug 15 07:41:48 UTC 2011
Gitweb: http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=commitdiff;h=68001a547dca906c708917e1caf15e53a63547df
Commit: 68001a547dca906c708917e1caf15e53a63547df
Parent: 4b90f43b77f9a44e6239d0d3b6a02cfccf4ee1f5
Author: Marek 'marx' Grac <mgrac at redhat.com>
AuthorDate: Mon Aug 15 09:35:11 2011 +0200
Committer: Marek 'marx' Grac <mgrac at redhat.com>
CommitterDate: Mon Aug 15 09:41:28 2011 +0200
fence_drac5: drac5 firmware does not close ssh session correctly
Attempt to close connection right after sending 'exit' command does
not close session correctly.
Resolves: rhbz#718924
---
fence/agents/drac5/fence_drac5.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/fence/agents/drac5/fence_drac5.py b/fence/agents/drac5/fence_drac5.py
index 5e72e42..f3102cd 100644
--- a/fence/agents/drac5/fence_drac5.py
+++ b/fence/agents/drac5/fence_drac5.py
@@ -12,7 +12,7 @@
## @note: drac_version was removed
#####
-import sys, re, pexpect, exceptions
+import sys, re, pexpect, exceptions, time
sys.path.append("@FENCEAGENTSLIBDIR@")
from fencing import *
@@ -134,6 +134,7 @@ By default, the telnet interface is not enabled."
######
try:
conn.sendline("exit")
+ time.sleep(1)
conn.close()
except exceptions.OSError:
pass
More information about the cluster-commits
mailing list