Gitweb: http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=2424d8c71... Commit: 2424d8c71413d6ba4ace2c002ee80c1f4517b4c8 Parent: 7d5ffffa76a33a76cf39b8cd266bd5b38d9ddca5 Author: Marek 'marx' Grac mgrac@redhat.com AuthorDate: Wed Feb 6 16:24:48 2013 +0100 Committer: Marek 'marx' Grac mgrac@redhat.com CommitterDate: Wed Feb 6 16:24:48 2013 +0100
fence_cisco_ucs: fence agent does not respect "delay" attribute
Resolves: rhbz#896603 --- 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 e66130e..9783250 100644 --- a/fence/agents/cisco_ucs/fence_cisco_ucs.py +++ b/fence/agents/cisco_ucs/fence_cisco_ucs.py @@ -122,6 +122,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["--action"] in ["off", "reboot"]: + time.sleep(int(options["--delay"])) + ### Login res = send_command(options, "<aaaLogin inName="" + options["--username"] + "" inPassword="" + options["--password"] + "" />", int(options["--login-timeout"])) result = RE_COOKIE.search(res)