Cluster Project branch, master, updated. gfs-kernel_0_1_22-105-g9aa8f60
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Cluster Project".
The branch, master has been updated
via 9aa8f60e85331a41af9b54615696fff75a77f643 (commit)
from 4a91131c548a5127431255f47ad96889cb1f4d07 (commit)Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 9aa8f60e85331a41af9b54615696fff75a77f643
Author: Marek 'marx' Grac <[email protected]> Date: Fri Mar 28 18:20:06 2008 +0100
fence/agents: Add obsolete options
Added obsolete/dual options like hostname/ippaddr, action/option. These options are either translated to new or they are not used anymore/yet in new agents (eg. version of firmware).
-----------------------------------------------------------------------
Summary of changes:
fence/agents/apc/apc.py | 2 +- fence/agents/bladecenter/bladecenter.py | 2 +- fence/agents/drac/drac5.py | 3 +- fence/agents/ilo/ilo.py | 2 +- fence/agents/lib/fencing.py | 40 +++++++++++++++++++++++++++--- fence/agents/wti/wti.py | 2 +- 6 files changed, 42 insertions(+), 9 deletions(-)
fence/agents/apc/apc.py +1 -1
@@ -68,7 +68,7 @@ def set_power_status(conn, options): def main(): device_opt = [ "help", "version", "agent", "quiet", "verbose", "debug", "action", "ipaddr", "login", "passwd", "passwd_script", - "secure", "port" ] + "secure", "port", "test" ] options = check_input(device_opt, process_input(device_opt))
fence/agents/bladecenter/bladecenter.py +1 -1
@@ -58,7 +58,7 @@ def set_power_status(conn, options): def main(): device_opt = [ "help", "version", "agent", "quiet", "verbose", "debug", "action", "ipaddr", "login", "passwd", "passwd_script", - "cmd_prompt", "secure", "plug_no" ] + "cmd_prompt", "secure", "port" ] options = check_input(device_opt, process_input(device_opt))
fence/agents/drac/drac5.py +2 -1
@@ -46,7 +46,8 @@ def set_power_status(conn, options): def main(): device_opt = [ "help", "version", "agent", "quiet", "verbose", "debug", "action", "ipaddr", "login", "passwd", "passwd_script", - "cmd_prompt", "secure" ] + "cmd_prompt", "secure", + "drac_version", "module_name" ] options = check_input(device_opt, process_input(device_opt))
fence/agents/ilo/ilo.py +1 -1
@@ -45,7 +45,7 @@ def set_power_status(conn, options): def main(): device_opt = [ "help", "version", "agent", "quiet", "verbose", "debug", "action", "ipaddr", "login", "passwd", "passwd_script", - "secure" ] + "secure", "ribcl" ] options = check_input(device_opt, process_input(device_opt))
fence/agents/lib/fencing.py +36 -4
@@ -49,7 +49,7 @@ all_opt = { "order" : 1 }, "action" : { "getopt" : "o:", - "help" : "-o <action> Action: reboot (default), off or on", + "help" : "-o <action> Action: status, reboot (default), off or on", "order" : 1 }, "ipaddr" : { "getopt" : "a:",
@@ -71,7 +71,7 @@ all_opt = { "getopt" : "S:", "help" : "-S <script> Script to run to retrieve password", "order" : 1 }, - "modulename" : { + "module_name" : { "getopt" : "m:", "help" : "-m <module> DRAC/MC module name", "order" : 1 },
@@ -79,6 +79,10 @@ all_opt = { "getopt" : "d:", "help" : "-D <version> Force DRAC version to use", "order" : 1 }, + "ribcl" : { + "getopt" : "r:", + "help" : "-r <version> Force ribcl version to use", + "order" : 1 }, "cmd_prompt" : { "getopt" : "c:", "help" : "-c <prompt> Force command prompt",
@@ -89,8 +93,13 @@ all_opt = { "order" : 1 }, "port" : { "getopt" : "n:", - "help" : "-n Physical plug number on device", - "order" : 1 } + "help" : "-n <id> Physical plug number on device", + "order" : 1 }, + "test" : { + "getopt" : "T", + "help" : "", + "order" : 1, + "obsolete" : "use -o status instead" } } class fspawn(pexpect.spawn):
@@ -162,6 +171,16 @@ def process_input(avail_opt): opt, args = getopt.gnu_getopt(sys.argv[1:], getopt_string) except getopt.GetoptError, error: fail_usage("Parse error: " + error.msg) + + ## Compatibility Layer + ##### + z = dict(opt) + if z.has_key("-T") == 1: + z["-o"] = "status" + + opt = z + ## + ##### else: opt = { } name = ""
@@ -172,6 +191,19 @@ def process_input(avail_opt): (name, value) = (line + "=").split("=", 1) value = value[:-1] + ## Compatibility Layer + ###### + if name == "blade": + name = "port" + elif name == "option": + name = "action" + elif name == "fm": + name = "port" + elif name == "hostname": + name = "ipaddr" + + ## + ###### if avail_opt.count(name) == 0: fail_usage("Parse error: Unknown option '"+line+"'")
fence/agents/wti/wti.py +1 -1
@@ -62,7 +62,7 @@ def set_power_status(conn, options): def main(): device_opt = [ "help", "version", "agent", "quiet", "verbose", "debug", "action", "ipaddr", "login", "passwd", "passwd_script", - "cmd_prompt", "secure", "port", "no_login" ] + "cmd_prompt", "secure", "port", "no_login", "test" ] options = check_input(device_opt, process_input(device_opt))
hooks/post-receive
--
Cluster Project