cluster: RHEL511 - fence_cisco_ucs: fence agent does not respect "delay" attribute

Marek GrĂ¡c marx at fedoraproject.org
Wed Sep 25 08:59:44 UTC 2013


Gitweb:        http://git.fedorahosted.org/git/?p=cluster.git;a=commitdiff;h=bb3cf23ad9214086ec497f2368649501d8546c9e
Commit:        bb3cf23ad9214086ec497f2368649501d8546c9e
Parent:        0efa69dbc533017d02dea73646841c97fca91525
Author:        Marek 'marx' Grac <mgrac at redhat.com>
AuthorDate:    Wed Sep 25 10:58:11 2013 +0200
Committer:     Marek 'marx' Grac <mgrac at redhat.com>
CommitterDate: Wed Sep 25 10:58:11 2013 +0200

fence_cisco_ucs: fence agent does not respect "delay" attribute

Resolves: rhbz#994228

Based on commit 2424d8c71413d6ba4ace2c002ee80c1f4517b4c8 in fence-agents.git
---
 fence/agents/cisco_ucs/fence_cisco_ucs.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/fence/agents/cisco_ucs/fence_cisco_ucs.py b/fence/agents/cisco_ucs/fence_cisco_ucs.py
index beecd3a..499a79a 100755
--- a/fence/agents/cisco_ucs/fence_cisco_ucs.py
+++ b/fence/agents/cisco_ucs/fence_cisco_ucs.py
@@ -116,6 +116,11 @@ used with Cisco UCS to fence machines."
 	docs["vendorurl"] = "http://www.cisco.com"
 	show_docs(options, docs)
 
+	## Do the delay of the fence device before logging in
+	## Delay is important for two-node clusters fencing but we do not need to delay 'status' operations
+	if options["-o"] in ["off", "reboot"]:
+		time.sleep(int(options["-f"]))
+
 	### Login
 	res = send_command(options, "<aaaLogin inName=\"" + options["-l"] + "\" inPassword=\"" + options["-p"] + "\" />")
 	result = re_cookie.search(res)


More information about the cluster-commits mailing list