fence-agents: master - fencing: Invalid initialization of default value for retry-on option
by Fabio M. Di Nitto
Gitweb: http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=com...
Commit: 11182a89cf217b3cb9cf6b170e405310bbb365a9
Parent: 9aaf714f729fbc7b8429491751c279fc89d38198
Author: Marek 'marx' Grac <mgrac(a)redhat.com>
AuthorDate: Wed Nov 11 14:24:05 2009 +0100
Committer: Fabio M. Di Nitto <fdinitto(a)redhat.com>
CommitterDate: Tue Apr 20 14:38:19 2010 +0200
fencing: Invalid initialization of default value for retry-on option
Problem introduced by:
commit 45ed9fd03c0718252f2ae418ffa7161198aa4688
Author: Marek 'marx' Grac <mgrac(a)redhat.com>
Date: Fri Nov 6 14:13:02 2009 +0100
fencing: New option --retry-on <N>
---
fence/agents/ilo/fence_ilo.py | 3 +--
fence/agents/lib/fencing.py.py | 8 --------
2 files changed, 1 insertions(+), 10 deletions(-)
diff --git a/fence/agents/ilo/fence_ilo.py b/fence/agents/ilo/fence_ilo.py
index f0c7165..10d888c 100755
--- a/fence/agents/ilo/fence_ilo.py
+++ b/fence/agents/ilo/fence_ilo.py
@@ -56,8 +56,7 @@ def main():
device_opt = [ "help", "version", "agent", "quiet", "verbose", "debug",
"action", "ipaddr", "login", "passwd", "passwd_script",
"ssl", "ribcl", "inet4_only", "inet6_only", "ipport",
- "power_timeout", "shell_timeout", "login_timeout", "power_wait",
- "retry_on" ]
+ "power_timeout", "shell_timeout", "login_timeout", "power_wait" ]
atexit.register(atexit_handler)
diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py
index bd280f7..2617492 100644
--- a/fence/agents/lib/fencing.py.py
+++ b/fence/agents/lib/fencing.py.py
@@ -737,11 +737,7 @@ def fence_action(tn, options, set_power_fn, get_power_fn, get_outlet_list = None
print "Success: Already ON"
else:
power_on = False
-<<<<<<< HEAD
for i in range(1,1 + int(options["-F"])):
-=======
- for i in range(1,int(options["-r"])):
->>>>>>> 45ed9fd... fencing: New option --retry-on <N>
set_power_fn(tn, options)
time.sleep(int(options["-G"]))
if wait_power_status(tn, options, get_power_fn):
@@ -772,11 +768,7 @@ def fence_action(tn, options, set_power_fn, get_power_fn, get_outlet_list = None
options["-o"] = "on"
power_on = False
-<<<<<<< HEAD
for i in range(1,1 + int(options["-F"])):
-=======
- for i in range(1,int(options["-r"])):
->>>>>>> 45ed9fd... fencing: New option --retry-on <N>
set_power_fn(tn, options)
time.sleep(int(options["-G"]))
if wait_power_status(tn, options, get_power_fn) == 1:
14 years
fence-agents: master - fencing: New option --retry-on <N>
by Fabio M. Di Nitto
Gitweb: http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=com...
Commit: 9aaf714f729fbc7b8429491751c279fc89d38198
Parent: e5babc47e4d92797c1aa42932f2861e8fffb5702
Author: Marek 'marx' Grac <mgrac(a)redhat.com>
AuthorDate: Fri Nov 6 14:13:02 2009 +0100
Committer: Fabio M. Di Nitto <fdinitto(a)redhat.com>
CommitterDate: Tue Apr 20 14:34:58 2010 +0200
fencing: New option --retry-on <N>
New firmware (v1.70+) for ilo2 is much slower then before. Option --retry-on=X (on stdin retry_on=X)
is introduced and it attempts to send power on command to machine and wait for results X times.
Default for fence agents is 1 so they won't be affected; fence_ilo default value is 3.
Resolves: #bz507514 (timeout options are needed before applying this patch separately)
---
fence/agents/ilo/fence_ilo.py | 3 ++-
fence/agents/lib/fencing.py.py | 8 ++++++++
2 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/fence/agents/ilo/fence_ilo.py b/fence/agents/ilo/fence_ilo.py
index 10d888c..f0c7165 100755
--- a/fence/agents/ilo/fence_ilo.py
+++ b/fence/agents/ilo/fence_ilo.py
@@ -56,7 +56,8 @@ def main():
device_opt = [ "help", "version", "agent", "quiet", "verbose", "debug",
"action", "ipaddr", "login", "passwd", "passwd_script",
"ssl", "ribcl", "inet4_only", "inet6_only", "ipport",
- "power_timeout", "shell_timeout", "login_timeout", "power_wait" ]
+ "power_timeout", "shell_timeout", "login_timeout", "power_wait",
+ "retry_on" ]
atexit.register(atexit_handler)
diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py
index 2617492..bd280f7 100644
--- a/fence/agents/lib/fencing.py.py
+++ b/fence/agents/lib/fencing.py.py
@@ -737,7 +737,11 @@ def fence_action(tn, options, set_power_fn, get_power_fn, get_outlet_list = None
print "Success: Already ON"
else:
power_on = False
+<<<<<<< HEAD
for i in range(1,1 + int(options["-F"])):
+=======
+ for i in range(1,int(options["-r"])):
+>>>>>>> 45ed9fd... fencing: New option --retry-on <N>
set_power_fn(tn, options)
time.sleep(int(options["-G"]))
if wait_power_status(tn, options, get_power_fn):
@@ -768,7 +772,11 @@ def fence_action(tn, options, set_power_fn, get_power_fn, get_outlet_list = None
options["-o"] = "on"
power_on = False
+<<<<<<< HEAD
for i in range(1,1 + int(options["-F"])):
+=======
+ for i in range(1,int(options["-r"])):
+>>>>>>> 45ed9fd... fencing: New option --retry-on <N>
set_power_fn(tn, options)
time.sleep(int(options["-G"]))
if wait_power_status(tn, options, get_power_fn) == 1:
14 years
fence-agents: master - fence_sandbox2: add short and long description for man page generation
by Fabio M. Di Nitto
Gitweb: http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=com...
Commit: e5babc47e4d92797c1aa42932f2861e8fffb5702
Parent: ec7dc01bf40d87b18d60c7fa9114a14352968898
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
AuthorDate: Tue Oct 20 05:39:52 2009 +0200
Committer: Fabio M. Di Nitto <fdinitto(a)redhat.com>
CommitterDate: Tue Apr 20 14:32:01 2010 +0200
fence_sandbox2: add short and long description for man page generation
Signed-off-by: Fabio M. Di Nitto <fdinitto(a)redhat.com>
---
fence/agents/sanbox2/fence_sanbox2.py | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/fence/agents/sanbox2/fence_sanbox2.py b/fence/agents/sanbox2/fence_sanbox2.py
index 38adaa2..086fe32 100644
--- a/fence/agents/sanbox2/fence_sanbox2.py
+++ b/fence/agents/sanbox2/fence_sanbox2.py
@@ -123,7 +123,14 @@ def main():
if 0 == options.has_key("-c"):
options["-c"] = [ " #> " ]
- show_docs(options)
+ docs = { }
+ docs["shortdesc"] = "Fence agent for QLogic SANBox2 FC switches"
+ docs["longdesc"] = "fence_sanbox2 is an I/O Fencing agent which can be used with \
+QLogic SANBox2 FC switches. It logs into a SANBox2 switch via telnet and disables a specified \
+port. Disabling the port which a machine is connected to effectively fences that machine. \
+Lengthy telnet connections to the switch should be avoided while a GFS cluster is running \
+because the connection will block any necessary fencing actions."
+ show_docs(options, docs)
##
## Operate the fencing device
14 years
fence-agents: master - fencing: long description added
by Fabio M. Di Nitto
Gitweb: http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=com...
Commit: ec7dc01bf40d87b18d60c7fa9114a14352968898
Parent: 0717f8a7dda31a1219ec41702d80c6bb3eb4c80f
Author: Marek 'marx' Grac <mgrac(a)redhat.com>
AuthorDate: Tue Oct 20 00:54:48 2009 +0200
Committer: Fabio M. Di Nitto <fdinitto(a)redhat.com>
CommitterDate: Tue Apr 20 14:31:12 2010 +0200
fencing: long description added
---
fence/agents/alom/fence_alom.py | 3 ++-
fence/agents/apc/fence_apc.py | 6 +++++-
fence/agents/apc_snmp/fence_apc_snmp.py | 5 ++++-
fence/agents/bladecenter/fence_bladecenter.py | 5 ++++-
fence/agents/cisco_mds/fence_cisco_mds.py | 3 ++-
fence/agents/drac5/fence_drac5.py | 6 +++++-
fence/agents/eps/fence_eps.py | 9 ++++++++-
fence/agents/ibmblade/fence_ibmblade.py | 5 ++++-
fence/agents/ifmib/fence_ifmib.py | 8 +++++++-
fence/agents/ilo/fence_ilo.py | 6 +++++-
fence/agents/intelmodular/fence_intelmodular.py | 9 ++++++++-
fence/agents/ipmilan/ipmilan.c | 3 +++
fence/agents/ldom/fence_ldom.py | 13 ++++++++++++-
fence/agents/rsa/fence_rsa.py | 7 ++++++-
fence/agents/virsh/fence_virsh.py | 8 +++++++-
fence/agents/vmware/fence_vmware.py | 22 +++++++++++++++++++++-
fence/agents/wti/fence_wti.py | 6 +++++-
17 files changed, 108 insertions(+), 16 deletions(-)
diff --git a/fence/agents/alom/fence_alom.py b/fence/agents/alom/fence_alom.py
index 4c48f7c..5dfe9e0 100644
--- a/fence/agents/alom/fence_alom.py
+++ b/fence/agents/alom/fence_alom.py
@@ -62,7 +62,8 @@ def main():
docs = { }
docs["shortdesc"] = "Fence agent for Sun ALOM"
- docs["longdesc"] = ""
+ docs["longdesc"] = "fence_alom is an I/O Fencing \
+agent which can be used with ALOM connected machines."
show_docs(options, docs)
# Operate the fencing device
diff --git a/fence/agents/apc/fence_apc.py b/fence/agents/apc/fence_apc.py
index 0ad6399..b70b220 100755
--- a/fence/agents/apc/fence_apc.py
+++ b/fence/agents/apc/fence_apc.py
@@ -202,7 +202,11 @@ def main():
docs = { }
docs["shortdesc"] = "Fence agent for APC over telnet/ssh"
- docs["longdesc"] = ""
+ docs["longdesc"] = "fence_apc is an I/O Fencing agent \
+which can be used with the APC network power switch. It logs into device \
+via telnet/ssh and reboots a specified outlet. Lengthy telnet/ssh connections \
+should be avoided while a GFS cluster is running because the connection \
+will block any necessary fencing actions."
show_docs(options, docs)
## Support for -n [switch]:[plug] notation that was used before
diff --git a/fence/agents/apc_snmp/fence_apc_snmp.py b/fence/agents/apc_snmp/fence_apc_snmp.py
index 5054fae..ea3a89f 100644
--- a/fence/agents/apc_snmp/fence_apc_snmp.py
+++ b/fence/agents/apc_snmp/fence_apc_snmp.py
@@ -191,7 +191,10 @@ def main():
docs = { }
docs["shortdesc"] = "Fence agent for APC over SNMP"
- docs["longdesc"] = ""
+ docs["longdesc"] = "fence_apc_snmp is an I/O Fencing agent \
+which can be used with the APC network power switch. It logs \
+into a device via SNMP and reboots a specified outlet. It supports \
+SNMP v1 and v3 with all combinations of authenticity/privacy settings."
show_docs(options, docs)
# Operate the fencing device
diff --git a/fence/agents/bladecenter/fence_bladecenter.py b/fence/agents/bladecenter/fence_bladecenter.py
index 6819f0d..708fc84 100644
--- a/fence/agents/bladecenter/fence_bladecenter.py
+++ b/fence/agents/bladecenter/fence_bladecenter.py
@@ -106,7 +106,10 @@ def main():
docs = { }
docs["shortdesc"] = "Fence agent for IBM BladeCenter"
- docs["longdesc"] = ""
+ docs["longdesc"] = "fence_bladecenter is an I/O Fencing agent \
+which can be used with IBM Bladecenters with recent enough firmware that \
+includes telnet support. It logs into a Brocade chasis via telnet or ssh \
+and uses the command line interface to power on and off blades."
show_docs(options, docs)
##
diff --git a/fence/agents/cisco_mds/fence_cisco_mds.py b/fence/agents/cisco_mds/fence_cisco_mds.py
index 68be9eb..c345c2e 100644
--- a/fence/agents/cisco_mds/fence_cisco_mds.py
+++ b/fence/agents/cisco_mds/fence_cisco_mds.py
@@ -109,7 +109,8 @@ def main():
docs = { }
docs["shortdesc"] = "Fence agent for Cisco MDS"
- docs["longdesc"] = ""
+ docs["longdesc"] = "fence_cisco_mds is an I/O Fencing agent \
+which can be used with any Cisco MDS 9000 series with SNMP enabled device."
show_docs(options, docs)
if (not (options["-o"] in ["list","monitor"])):
diff --git a/fence/agents/drac5/fence_drac5.py b/fence/agents/drac5/fence_drac5.py
index 74adc61..900b547 100644
--- a/fence/agents/drac5/fence_drac5.py
+++ b/fence/agents/drac5/fence_drac5.py
@@ -99,7 +99,11 @@ def main():
docs = { }
docs["shortdesc"] = "Fence agent for Dell DRAC CMC/5"
- docs["longdesc"] = ""
+ docs["longdesc"] = "fence_drac5 is an I/O Fencing agent \
+which can be used with the Dell Remote Access Card v5 or CMC (DRAC). \
+This device provides remote access to controlling power to a server. \
+It logs into the DRAC through the telnet/ssh interface of the card. \
+By default, the telnet interface is not enabled."
show_docs(options, docs)
##
diff --git a/fence/agents/eps/fence_eps.py b/fence/agents/eps/fence_eps.py
index c9ead36..ffcb69b 100644
--- a/fence/agents/eps/fence_eps.py
+++ b/fence/agents/eps/fence_eps.py
@@ -109,7 +109,14 @@ def main():
docs = { }
docs["shortdesc"] = "Fence agent for ePowerSwitch"
- docs["longdesc"] = ""
+ docs["longdesc"] = "fence_eps is an I/O Fencing agent \
+which can be used with the ePowerSwitch 8M+ power switch to fence \
+connected machines. Fence agent works ONLY on 8M+ device, because \
+this is only one, which has support for hidden page feature. \
+\n.TP\n\
+Agent basically works by connecting to hidden page and pass \
+appropriate arguments to GET request. This means, that hidden \
+page feature must be enabled and properly configured."
show_docs(options, docs)
#Run fence action. Conn is None, beacause we always need open new http connection
diff --git a/fence/agents/ibmblade/fence_ibmblade.py b/fence/agents/ibmblade/fence_ibmblade.py
index c1c75ec..3ad6acc 100644
--- a/fence/agents/ibmblade/fence_ibmblade.py
+++ b/fence/agents/ibmblade/fence_ibmblade.py
@@ -73,7 +73,10 @@ def main():
docs = { }
docs["shortdesc"] = "Fence agent for IBM BladeCenter over SNMP"
- docs["longdesc"] = ""
+ docs["longdesc"] = "fence_ibmblade is an I/O Fencing agent \
+which can be used with IBM BladeCenter chassis. It issues SNMP Set \
+request to BladeCenter chassis, rebooting, powering up or down \
+the specified Blade Server."
show_docs(options, docs)
# Operate the fencing device
diff --git a/fence/agents/ifmib/fence_ifmib.py b/fence/agents/ifmib/fence_ifmib.py
index 44ff927..9f388d0 100644
--- a/fence/agents/ifmib/fence_ifmib.py
+++ b/fence/agents/ifmib/fence_ifmib.py
@@ -130,7 +130,13 @@ def main():
docs = { }
docs["shortdesc"] = "Fence agent for IF MIB"
- docs["longdesc"] = ""
+ docs["longdesc"] = "fence_ifmib is an I/O Fencing agent \
+which can be used with any SNMP IF-MIB capable device. \
+\n.P\n\
+It was written with managed ethernet switches in mind, in order to \
+fence iSCSI SAN connections. However, there are many devices that \
+support the IF-MIB interface. The agent uses IF-MIB::ifAdminStatus \
+to control the state of an interface."
show_docs(options, docs)
# Operate the fencing device
diff --git a/fence/agents/ilo/fence_ilo.py b/fence/agents/ilo/fence_ilo.py
index 9ead743..10d888c 100755
--- a/fence/agents/ilo/fence_ilo.py
+++ b/fence/agents/ilo/fence_ilo.py
@@ -71,7 +71,11 @@ def main():
docs = { }
docs["shortdesc"] = "Fence agent for HP iLO"
- docs["longdesc"] = ""
+ docs["longdesc"] = "fence_ilo is an I/O Fencing agent \
+used for HP servers with the Integrated Light Out (iLO) PCI card.\
+The agent opens an SSL connection to the iLO card. Once the SSL \
+connection is established, the agent is able to communicate with \
+the iLO card through an XML stream."
show_docs(options, docs)
##
diff --git a/fence/agents/intelmodular/fence_intelmodular.py b/fence/agents/intelmodular/fence_intelmodular.py
index c3f9252..1a313ae 100644
--- a/fence/agents/intelmodular/fence_intelmodular.py
+++ b/fence/agents/intelmodular/fence_intelmodular.py
@@ -79,7 +79,14 @@ def main():
docs = { }
docs["shortdesc"] = "Fence agent for Intel Modular"
- docs["longdesc"] = ""
+ docs["longdesc"] = "fence_intelmodular is an I/O Fencing agent \
+which can be used with Intel Modular device (tested on Intel MFSYS25, should \
+work with MFSYS35 as well). \
+\n.P\n\
+Note: Since firmware update version 2.7, SNMP v2 write support is \
+removed, and replaced by SNMP v3 support. So agent now has default \
+SNMP version 3. If you are using older firmware, please supply -d \
+for command line and snmp_version option for your cluster.conf."
show_docs(options, docs)
# Operate the fencing device
diff --git a/fence/agents/ipmilan/ipmilan.c b/fence/agents/ipmilan/ipmilan.c
index 00b083e..51f2f40 100644
--- a/fence/agents/ipmilan/ipmilan.c
+++ b/fence/agents/ipmilan/ipmilan.c
@@ -830,6 +830,9 @@ static void print_xml_metadata(char *pname) {
printf("%s\n","<?xml version=\"1.0\" ?>");
printf("%s%s%s\n","<resource-agent name=\"",pname,"\" shortdesc=\"Fence agent for IPMI over LAN\">");
printf("<longdesc>\n");
+ printf("fence_ipmilan is an I/O Fencing agent which can be used with "
+ "machines controlled by IPMI. This agent calls support software "
+ "using ipmitool (http://ipmitool.sf.net/).");
printf("</longdesc>\n");
printf("%s\n","<parameters>");
diff --git a/fence/agents/ldom/fence_ldom.py b/fence/agents/ldom/fence_ldom.py
index ac2bfea..d520fca 100644
--- a/fence/agents/ldom/fence_ldom.py
+++ b/fence/agents/ldom/fence_ldom.py
@@ -101,7 +101,18 @@ def main():
docs = { }
docs["shortdesc"] = "Fence agent for Sun LDOM"
- docs["longdesc"] = ""
+ docs["longdesc"] = "fence_ldom is an I/O Fencing agent \
+which can be used with LDoms virtual machines. This agent works \
+so, that run ldm command on host machine. So ldm must be directly \
+runnable.\
+\n.P\n\
+Very useful parameter is -c (or cmd_prompt in stdin mode). This \
+must be set to something, what is displayed after successful login \
+to host machine. Default string is space on end of string (default \
+for root in bash). But (for example) csh use ], so in that case you \
+must use parameter -c with argument ]. Very similar situation is, \
+if you use bash and login to host machine with other user than \
+root. Than prompt is $, so again, you must use parameter -c."
show_docs(options, docs)
##
diff --git a/fence/agents/rsa/fence_rsa.py b/fence/agents/rsa/fence_rsa.py
index 70748d6..459dfbb 100644
--- a/fence/agents/rsa/fence_rsa.py
+++ b/fence/agents/rsa/fence_rsa.py
@@ -59,7 +59,12 @@ def main():
docs = { }
docs["shortdesc"] = "Fence agent for IBM RSA"
- docs["longdesc"] = ""
+ docs["longdesc"] = "fence_rsa is an I/O Fencing agent \
+which can be used with the IBM RSA II management interface. It \
+logs into an RSA II device via telnet and reboots the associated \
+machine. Lengthy telnet connections to the RSA II device should \
+be avoided while a GFS cluster is running because the connection \
+will block any necessary fencing actions."
show_docs(options, docs)
##
diff --git a/fence/agents/virsh/fence_virsh.py b/fence/agents/virsh/fence_virsh.py
index b0b101b..13099da 100644
--- a/fence/agents/virsh/fence_virsh.py
+++ b/fence/agents/virsh/fence_virsh.py
@@ -80,7 +80,13 @@ def main():
docs = { }
docs["shortdesc"] = "Fence agent for virsh"
- docs["longdesc"] = ""
+ docs["longdesc"] = "fence_virsh is an I/O Fencing agent \
+which can be used with the virtual machines managed by libvirt. \
+It logs via ssh to a dom0 and there run virsh command, which does \
+all work. \
+\n.P\n\
+By default, virsh needs root account to do properly work. So you \
+must allow ssh login in your sshd_config."
show_docs(options, docs)
## Operate the fencing device
diff --git a/fence/agents/vmware/fence_vmware.py b/fence/agents/vmware/fence_vmware.py
index 57ed38e..ad51687 100644
--- a/fence/agents/vmware/fence_vmware.py
+++ b/fence/agents/vmware/fence_vmware.py
@@ -301,7 +301,27 @@ def main():
docs = { }
docs["shortdesc"] = "Fence agent for VMWare"
- docs["longdesc"] = ""
+ docs["longdesc"] = "fence_vmware is an I/O Fencing agent \
+which can be used with the VMware ESX, VMware ESXi or VMware Server \
+to fence virtual machines.\
+\n.P\n\
+Before you can use this agent, it must be installed VI Perl Toolkit or \
+vmrun command on every node you want to make fencing.\
+\n.P\n\
+VI Perl Toolkit is preferred for VMware ESX/ESXi and Virtual Center. Vmrun \
+command is only solution for VMware Server 1/2 (this command will works against \
+ESX/ESXi 3.5 up2 and VC up2 too, but not cluster aware!) and is available as part \
+of VMware VIX API SDK package. VI Perl and VIX API SDK are both available from \
+VMware web pages (not int RHEL repository!). \
+\n.P\n\
+You can specify type of VMware you are connecting to with \\fB-d\\fP switch \
+(or \\fIvmware_type\\fR for stdin). Possible values are esx, server2 and server1.\
+Default value is esx, which will use VI Perl. With server1 and server2, vmrun \
+command is used.\
+\n.P\n\
+After you have successfully installed VI Perl Toolkit or VIX API, you should \
+be able to run fence_vmware_helper (part of this agent) or vmrun command. \
+This agent supports only vmrun from version 2.0.0 (VIX API 1.6.0)."
show_docs(options, docs)
# Check vmware type and set path
diff --git a/fence/agents/wti/fence_wti.py b/fence/agents/wti/fence_wti.py
index 96b0193..120fa81 100644
--- a/fence/agents/wti/fence_wti.py
+++ b/fence/agents/wti/fence_wti.py
@@ -91,7 +91,11 @@ def main():
docs = { }
docs["shortdesc"] = "Fence agent for WTI"
- docs["longdesc"] = ""
+ docs["longdesc"] = "fence_wti is an I/O Fencing agent \
+which can be used with the WTI Network Power Switch (NPS). It logs \
+into an NPS via telnet or ssh and boots a specified plug. \
+Lengthy telnet connections to the NPS should be avoided while a GFS cluster \
+is running because the connection will block any necessary fencing actions."
show_docs(options, docs)
##
14 years
fence-agents: master - fencing: short description of fence agent added
by Fabio M. Di Nitto
Gitweb: http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=com...
Commit: 0717f8a7dda31a1219ec41702d80c6bb3eb4c80f
Parent: d3996959c0e397f7710e74f3c96592845ead4ca5
Author: Marek 'marx' Grac <mgrac(a)redhat.com>
AuthorDate: Mon Oct 19 23:19:06 2009 +0200
Committer: Fabio M. Di Nitto <fdinitto(a)redhat.com>
CommitterDate: Tue Apr 20 14:29:01 2010 +0200
fencing: short description of fence agent added
---
fence/agents/alom/fence_alom.py | 5 ++++-
fence/agents/apc/fence_apc.py | 5 ++++-
fence/agents/apc_snmp/fence_apc_snmp.py | 5 ++++-
fence/agents/bladecenter/fence_bladecenter.py | 5 ++++-
fence/agents/cisco_mds/fence_cisco_mds.py | 5 ++++-
fence/agents/drac5/fence_drac5.py | 5 ++++-
fence/agents/eps/fence_eps.py | 5 ++++-
fence/agents/ibmblade/fence_ibmblade.py | 5 ++++-
fence/agents/ifmib/fence_ifmib.py | 5 ++++-
fence/agents/ilo/fence_ilo.py | 5 ++++-
fence/agents/ilo_mp/fence_ilo_mp.py | 5 ++++-
fence/agents/intelmodular/fence_intelmodular.py | 5 ++++-
fence/agents/ipmilan/ipmilan.c | 2 +-
fence/agents/ldom/fence_ldom.py | 5 ++++-
fence/agents/lpar/fence_lpar.py | 5 ++++-
fence/agents/rsa/fence_rsa.py | 5 ++++-
fence/agents/virsh/fence_virsh.py | 5 ++++-
fence/agents/vmware/fence_vmware.py | 5 ++++-
fence/agents/wti/fence_wti.py | 5 ++++-
19 files changed, 73 insertions(+), 19 deletions(-)
diff --git a/fence/agents/alom/fence_alom.py b/fence/agents/alom/fence_alom.py
index 9009cdf..4c48f7c 100644
--- a/fence/agents/alom/fence_alom.py
+++ b/fence/agents/alom/fence_alom.py
@@ -60,7 +60,10 @@ def main():
options["telnet_over_ssh"] = 1
- show_docs(options)
+ docs = { }
+ docs["shortdesc"] = "Fence agent for Sun ALOM"
+ docs["longdesc"] = ""
+ show_docs(options, docs)
# Operate the fencing device
conn = fence_login(options)
diff --git a/fence/agents/apc/fence_apc.py b/fence/agents/apc/fence_apc.py
index 57858cf..0ad6399 100755
--- a/fence/agents/apc/fence_apc.py
+++ b/fence/agents/apc/fence_apc.py
@@ -200,7 +200,10 @@ def main():
if 0 == options.has_key("-c"):
options["-c"] = "\n>"
- show_docs(options)
+ docs = { }
+ docs["shortdesc"] = "Fence agent for APC over telnet/ssh"
+ docs["longdesc"] = ""
+ show_docs(options, docs)
## Support for -n [switch]:[plug] notation that was used before
if (options.has_key("-n") == 1) and (-1 != options["-n"].find(":")):
diff --git a/fence/agents/apc_snmp/fence_apc_snmp.py b/fence/agents/apc_snmp/fence_apc_snmp.py
index 0c36b66..5054fae 100644
--- a/fence/agents/apc_snmp/fence_apc_snmp.py
+++ b/fence/agents/apc_snmp/fence_apc_snmp.py
@@ -189,7 +189,10 @@ def main():
if (not (options.has_key("-s"))):
options["-s"]="1"
- show_docs(options)
+ docs = { }
+ docs["shortdesc"] = "Fence agent for APC over SNMP"
+ docs["longdesc"] = ""
+ show_docs(options, docs)
# Operate the fencing device
result = fence_action(FencingSnmp(options), options, set_power_status, get_power_status, get_outlets_status)
diff --git a/fence/agents/bladecenter/fence_bladecenter.py b/fence/agents/bladecenter/fence_bladecenter.py
index 86346f6..6819f0d 100644
--- a/fence/agents/bladecenter/fence_bladecenter.py
+++ b/fence/agents/bladecenter/fence_bladecenter.py
@@ -104,7 +104,10 @@ def main():
options = check_input(device_opt, process_input(device_opt))
- show_docs(options)
+ docs = { }
+ docs["shortdesc"] = "Fence agent for IBM BladeCenter"
+ docs["longdesc"] = ""
+ show_docs(options, docs)
##
## Operate the fencing device
diff --git a/fence/agents/cisco_mds/fence_cisco_mds.py b/fence/agents/cisco_mds/fence_cisco_mds.py
index bd8d858..68be9eb 100644
--- a/fence/agents/cisco_mds/fence_cisco_mds.py
+++ b/fence/agents/cisco_mds/fence_cisco_mds.py
@@ -107,7 +107,10 @@ def main():
options = check_input(device_opt, options)
- show_docs(options)
+ docs = { }
+ docs["shortdesc"] = "Fence agent for Cisco MDS"
+ docs["longdesc"] = ""
+ show_docs(options, docs)
if (not (options["-o"] in ["list","monitor"])):
port_oid=cisco_port2oid(options["-n"])
diff --git a/fence/agents/drac5/fence_drac5.py b/fence/agents/drac5/fence_drac5.py
index ce2a801..74adc61 100644
--- a/fence/agents/drac5/fence_drac5.py
+++ b/fence/agents/drac5/fence_drac5.py
@@ -97,7 +97,10 @@ def main():
if 0 == options.has_key("-c"):
options["-c"] = "\$"
- show_docs(options)
+ docs = { }
+ docs["shortdesc"] = "Fence agent for Dell DRAC CMC/5"
+ docs["longdesc"] = ""
+ show_docs(options, docs)
##
## Operate the fencing device
diff --git a/fence/agents/eps/fence_eps.py b/fence/agents/eps/fence_eps.py
index d9118a7..c9ead36 100644
--- a/fence/agents/eps/fence_eps.py
+++ b/fence/agents/eps/fence_eps.py
@@ -107,7 +107,10 @@ def main():
if (not options.has_key("-c")):
options["-c"]="hidden.htm"
- show_docs(options)
+ docs = { }
+ docs["shortdesc"] = "Fence agent for ePowerSwitch"
+ docs["longdesc"] = ""
+ show_docs(options, docs)
#Run fence action. Conn is None, beacause we always need open new http connection
result = fence_action(None, options, set_power_status, get_power_status,get_power_status)
diff --git a/fence/agents/ibmblade/fence_ibmblade.py b/fence/agents/ibmblade/fence_ibmblade.py
index 4548a29..c1c75ec 100644
--- a/fence/agents/ibmblade/fence_ibmblade.py
+++ b/fence/agents/ibmblade/fence_ibmblade.py
@@ -71,7 +71,10 @@ def main():
options=check_input(device_opt,process_input(device_opt))
- show_docs(options)
+ docs = { }
+ docs["shortdesc"] = "Fence agent for IBM BladeCenter over SNMP"
+ docs["longdesc"] = ""
+ show_docs(options, docs)
# Operate the fencing device
result = fence_action(FencingSnmp(options), options, set_power_status, get_power_status, get_outlets_status)
diff --git a/fence/agents/ifmib/fence_ifmib.py b/fence/agents/ifmib/fence_ifmib.py
index 159554e..44ff927 100644
--- a/fence/agents/ifmib/fence_ifmib.py
+++ b/fence/agents/ifmib/fence_ifmib.py
@@ -128,7 +128,10 @@ def main():
options = check_input(device_opt, options)
- show_docs(options)
+ docs = { }
+ docs["shortdesc"] = "Fence agent for IF MIB"
+ docs["longdesc"] = ""
+ show_docs(options, docs)
# Operate the fencing device
result = fence_action(FencingSnmp(options), options, set_power_status, get_power_status, get_outlets_status)
diff --git a/fence/agents/ilo/fence_ilo.py b/fence/agents/ilo/fence_ilo.py
index 026e516..9ead743 100755
--- a/fence/agents/ilo/fence_ilo.py
+++ b/fence/agents/ilo/fence_ilo.py
@@ -69,7 +69,10 @@ def main():
LOGIN_TIMEOUT = 10
- show_docs(options)
+ docs = { }
+ docs["shortdesc"] = "Fence agent for HP iLO"
+ docs["longdesc"] = ""
+ show_docs(options, docs)
##
## Login and get version number
diff --git a/fence/agents/ilo_mp/fence_ilo_mp.py b/fence/agents/ilo_mp/fence_ilo_mp.py
index c3b2219..e679192 100644
--- a/fence/agents/ilo_mp/fence_ilo_mp.py
+++ b/fence/agents/ilo_mp/fence_ilo_mp.py
@@ -57,7 +57,10 @@ def main():
options = check_input(device_opt, process_input(device_opt))
- show_docs(options)
+ docs = { }
+ docs["shortdesc"] = "Fence agent for HP iLO MP"
+ docs["longdesc"] = ""
+ show_docs(options, docs)
conn = fence_login(options)
conn.send("SMCLP\r\n")
diff --git a/fence/agents/intelmodular/fence_intelmodular.py b/fence/agents/intelmodular/fence_intelmodular.py
index c943c1e..c3f9252 100644
--- a/fence/agents/intelmodular/fence_intelmodular.py
+++ b/fence/agents/intelmodular/fence_intelmodular.py
@@ -77,7 +77,10 @@ def main():
options=check_input(device_opt,process_input(device_opt))
- show_docs(options)
+ docs = { }
+ docs["shortdesc"] = "Fence agent for Intel Modular"
+ docs["longdesc"] = ""
+ show_docs(options, docs)
# Operate the fencing device
result = fence_action(FencingSnmp(options), options, set_power_status, get_power_status, get_outlets_status)
diff --git a/fence/agents/ipmilan/ipmilan.c b/fence/agents/ipmilan/ipmilan.c
index 84fd4f7..00b083e 100644
--- a/fence/agents/ipmilan/ipmilan.c
+++ b/fence/agents/ipmilan/ipmilan.c
@@ -828,7 +828,7 @@ static void print_xml_metadata(char *pname) {
int i;
printf("%s\n","<?xml version=\"1.0\" ?>");
- printf("%s%s%s\n","<resource-agent name=\"",pname,"\" shortdesc=\"\">");
+ printf("%s%s%s\n","<resource-agent name=\"",pname,"\" shortdesc=\"Fence agent for IPMI over LAN\">");
printf("<longdesc>\n");
printf("</longdesc>\n");
printf("%s\n","<parameters>");
diff --git a/fence/agents/ldom/fence_ldom.py b/fence/agents/ldom/fence_ldom.py
index 94d1429..ac2bfea 100644
--- a/fence/agents/ldom/fence_ldom.py
+++ b/fence/agents/ldom/fence_ldom.py
@@ -99,7 +99,10 @@ def main():
if (not options.has_key("-c")):
options["-c"] = "\ $"
- show_docs(options)
+ docs = { }
+ docs["shortdesc"] = "Fence agent for Sun LDOM"
+ docs["longdesc"] = ""
+ show_docs(options, docs)
##
## Operate the fencing device
diff --git a/fence/agents/lpar/fence_lpar.py b/fence/agents/lpar/fence_lpar.py
index 3c4cc8c..61d12a9 100644
--- a/fence/agents/lpar/fence_lpar.py
+++ b/fence/agents/lpar/fence_lpar.py
@@ -149,7 +149,10 @@ def main():
if 0 == options.has_key("-c"):
options["-c"] = [ ":~>", "]\$", "\$ " ]
- show_docs(options)
+ docs = { }
+ docs["shortdesc"] = "Fence agent for IBM LPAR"
+ docs["longdesc"] = ""
+ show_docs(options, docs)
if 0 == options.has_key("-s"):
fail_usage("Failed: You have to enter name of managed system")
diff --git a/fence/agents/rsa/fence_rsa.py b/fence/agents/rsa/fence_rsa.py
index 97993ac..70748d6 100644
--- a/fence/agents/rsa/fence_rsa.py
+++ b/fence/agents/rsa/fence_rsa.py
@@ -57,7 +57,10 @@ def main():
# This device will not allow us to login even with LANG=C
options["ssh_options"] = "-F /dev/null"
- show_docs(options)
+ docs = { }
+ docs["shortdesc"] = "Fence agent for IBM RSA"
+ docs["longdesc"] = ""
+ show_docs(options, docs)
##
## Operate the fencing device
diff --git a/fence/agents/virsh/fence_virsh.py b/fence/agents/virsh/fence_virsh.py
index 85e2e8f..b0b101b 100644
--- a/fence/agents/virsh/fence_virsh.py
+++ b/fence/agents/virsh/fence_virsh.py
@@ -78,7 +78,10 @@ def main():
options["ssh_options"]="-t '/bin/bash -c \"PS1=\[EXPECT\]#\ /bin/bash --noprofile --norc\"'"
- show_docs(options)
+ docs = { }
+ docs["shortdesc"] = "Fence agent for virsh"
+ docs["longdesc"] = ""
+ show_docs(options, docs)
## Operate the fencing device
conn = fence_login(options)
diff --git a/fence/agents/vmware/fence_vmware.py b/fence/agents/vmware/fence_vmware.py
index b91a265..57ed38e 100644
--- a/fence/agents/vmware/fence_vmware.py
+++ b/fence/agents/vmware/fence_vmware.py
@@ -299,7 +299,10 @@ def main():
# Default is secure connection
options["-x"] = 1
- show_docs(options)
+ docs = { }
+ docs["shortdesc"] = "Fence agent for VMWare"
+ docs["longdesc"] = ""
+ show_docs(options, docs)
# Check vmware type and set path
vmware_check_vmware_type(options)
diff --git a/fence/agents/wti/fence_wti.py b/fence/agents/wti/fence_wti.py
index e8f63ec..96b0193 100644
--- a/fence/agents/wti/fence_wti.py
+++ b/fence/agents/wti/fence_wti.py
@@ -89,7 +89,10 @@ def main():
if 0 == options.has_key("-c"):
options["-c"] = [ "RSM>", "MPC>", "IPS>", "TPS>", "NBB>", "NPS>" ]
- show_docs(options)
+ docs = { }
+ docs["shortdesc"] = "Fence agent for WTI"
+ docs["longdesc"] = ""
+ show_docs(options, docs)
##
## Operate the fencing device
14 years
fence-agents: master - fencing: fix fence_a, fence_l, ...
by Fabio M. Di Nitto
Gitweb: http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=com...
Commit: d3996959c0e397f7710e74f3c96592845ead4ca5
Parent: f29c1ae4a2c57d945e1edd0a8bfe6d2bfc81be39
Author: Marek 'marx' Grac <mgrac(a)redhat.com>
AuthorDate: Mon Oct 19 22:43:14 2009 +0200
Committer: Fabio M. Di Nitto <fdinitto(a)redhat.com>
CommitterDate: Tue Apr 20 14:27:56 2010 +0200
fencing: fix fence_a, fence_l, ...
Removing last 3 characters is okay for testing (fence_lpar.py) but not
for production (fence_lpar -> fence_l)
---
fence/agents/lib/fencing.py.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py
index c5485d8..2617492 100644
--- a/fence/agents/lib/fencing.py.py
+++ b/fence/agents/lib/fencing.py.py
@@ -419,7 +419,7 @@ def metadata(avail_opt, options, docs):
sorted_list.sort(lambda x, y: cmp(x[1]["order"], y[1]["order"]))
print "<?xml version=\"1.0\" ?>"
- print "<resource-agent name=\"" + os.path.basename(sys.argv[0])[:-3] + "\" shortdesc=\"" + docs["shortdesc"] + "\" >"
+ print "<resource-agent name=\"" + os.path.basename(sys.argv[0]) + "\" shortdesc=\"" + docs["shortdesc"] + "\" >"
print "<longdesc>" + docs["longdesc"] + "</longdesc>"
print "<parameters>"
for option, value in sorted_list:
14 years
fence-agents: master - fencing: Typo meta-data -> metadata
by Fabio M. Di Nitto
Gitweb: http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=com...
Commit: f29c1ae4a2c57d945e1edd0a8bfe6d2bfc81be39
Parent: 9f88caf4c5c57bc7833c6448a1935418a12a05f3
Author: Marek 'marx' Grac <mgrac(a)redhat.com>
AuthorDate: Mon Oct 19 16:58:57 2009 +0200
Committer: Fabio M. Di Nitto <fdinitto(a)redhat.com>
CommitterDate: Tue Apr 20 14:27:43 2010 +0200
fencing: Typo meta-data -> metadata
---
fence/agents/lib/fencing.py.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py
index 1a34210..c5485d8 100644
--- a/fence/agents/lib/fencing.py.py
+++ b/fence/agents/lib/fencing.py.py
@@ -463,7 +463,7 @@ def metadata(avail_opt, options, docs):
print "\t<action name=\"status\" />"
print "\t<action name=\"list\" />"
print "\t<action name=\"monitor\" />"
- print "\t<action name=\"meta-data\" />"
+ print "\t<action name=\"metadata\" />"
print "</actions>"
print "</resource-agent>"
14 years
fence-agents: master - fence_ipmilan: metadata should be in expected format
by Fabio M. Di Nitto
Gitweb: http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=com...
Commit: 9f88caf4c5c57bc7833c6448a1935418a12a05f3
Parent: 9ba0439157955b9d20c13e60a5b4dac42f6e5185
Author: Marek 'marx' Grac <mgrac(a)redhat.com>
AuthorDate: Mon Oct 19 16:57:19 2009 +0200
Committer: Fabio M. Di Nitto <fdinitto(a)redhat.com>
CommitterDate: Tue Apr 20 14:27:37 2010 +0200
fence_ipmilan: metadata should be in expected format
Metadata format fixed, added information getopt/default/... We will have to
add short/long description but we don't have it anywhere yet.
---
fence/agents/ipmilan/ipmilan.c | 49 ++++++++++++++++++++++++++++++---------
1 files changed, 37 insertions(+), 12 deletions(-)
diff --git a/fence/agents/ipmilan/ipmilan.c b/fence/agents/ipmilan/ipmilan.c
index eec2377..84fd4f7 100644
--- a/fence/agents/ipmilan/ipmilan.c
+++ b/fence/agents/ipmilan/ipmilan.c
@@ -150,21 +150,26 @@ static struct Etoken power_status[] = {
/* Structure describing one xml metadata value*/
struct xml_parameter_s {
const char *name;
+ const char *getopt;
+ const int required;
+ const char *content_type;
+ const char *default_value;
const char *description;
};
/* Array of xml metadatas*/
struct xml_parameter_s xml_parameters[]={
- {"auth","IPMI Lan Auth type (md5, password, or none)"},
- {"ipaddr","IPMI Lan IP to talk to"},
- {"passwd","Password (if required) to control power on IPMI device"},
- {"passwd_script","Script to retrieve password (if required)"},
- {"lanplus","Use Lanplus"},
- {"login","Username/Login (if required) to control power on IPMI device"},
- {"action","Operation to perform. Valid operations: on, off, reboot, status, list, monitor or metadata"},
- {"timeout","Timeout (sec) for IPMI operation"},
- {"cipher","Ciphersuite to use (same as ipmitool -C parameter)"},
- {"verbose","Verbose mode"}};
+ {"auth","-A",0,"string",NULL,"IPMI Lan Auth type (md5, password, or none)"},
+ {"ipaddr","-a",1,"string",NULL,"IPMI Lan IP to talk to"},
+ {"passwd","-p",0,"string",NULL,"Password (if required) to control power on IPMI device"},
+ {"passwd_script","-S",0,"string",NULL,"Script to retrieve password (if required)"},
+ {"lanplus","-P",0,"boolean",NULL,"Use Lanplus"},
+ {"login","-l",0,"string",NULL,"Username/Login (if required) to control power on IPMI device"},
+ {"action","-o",0,"string","reboot","Operation to perform. Valid operations: on, off, reboot, status, list, monitor or metadata"},
+ {"timeout","-t",0,"string",NULL,"Timeout (sec) for IPMI operation"},
+ {"cipher","-C",0,"string",NULL,"Ciphersuite to use (same as ipmitool -C parameter)"},
+ {"method","-M",0,"string",DEFAULT_METHOD,"Method to fence (onoff or cycle)"},
+ {"verbose","-v",0,"boolean",NULL,"Verbose mode"}};
/*
Search for ipmitool
@@ -823,18 +828,38 @@ static void print_xml_metadata(char *pname) {
int i;
printf("%s\n","<?xml version=\"1.0\" ?>");
- printf("%s%s%s\n","<resource-agent name=\"",pname,"\" >");
+ printf("%s%s%s\n","<resource-agent name=\"",pname,"\" shortdesc=\"\">");
+ printf("<longdesc>\n");
+ printf("</longdesc>\n");
printf("%s\n","<parameters>");
for (i=0;i<(sizeof(xml_parameters)/sizeof(struct xml_parameter_s));i++) {
printf("\t<parameter name=\"%s\" unique=\"1\">\n",xml_parameters[i].name);
- printf("\t\t<shortdesc lang=\"C\">");
+ printf("\t\t<getopt mixed=\"%s\" />\n",xml_parameters[i].getopt);
+ if (xml_parameters[i].default_value == NULL) {
+ printf("\t\t<content type=\"%s\" />\n",xml_parameters[i].content_type);
+ } else {
+ printf("\t\t<content type=\"%s\" default=\"%s\"/>\n", \
+ xml_parameters[i].content_type, \
+ xml_parameters[i].default_value );
+ }
+
+ printf("\t\t<shortdesc lang=\"en\">");
printf("%s",xml_parameters[i].description);
printf("</shortdesc>\n");
printf("\t</parameter>\n");
}
printf("%s\n","</parameters>");
+ printf("%s\n","<actions>");
+ printf("\t<action name=\"%s\" />\n", "on");
+ printf("\t<action name=\"%s\" />\n", "off");
+ printf("\t<action name=\"%s\" />\n", "reboot");
+ printf("\t<action name=\"%s\" />\n", "status");
+ printf("\t<action name=\"%s\" />\n", "list");
+ printf("\t<action name=\"%s\" />\n", "monitor");
+ printf("\t<action name=\"%s\" />\n", "metadata");
+ printf("%s\n","</actions>");
printf("%s\n","</resource-agent>");
}
14 years
fence-agents: master - fence_ipmilan: allow metadata invocation without other parameters
by Fabio M. Di Nitto
Gitweb: http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=com...
Commit: 9ba0439157955b9d20c13e60a5b4dac42f6e5185
Parent: d96f348062e3058dafcc9b7f1ce8c31741ca2e23
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
AuthorDate: Wed Oct 7 06:54:02 2009 +0200
Committer: Fabio M. Di Nitto <fdinitto(a)redhat.com>
CommitterDate: Tue Apr 20 14:27:28 2010 +0200
fence_ipmilan: allow metadata invocation without other parameters
---
fence/agents/ipmilan/ipmilan.c | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/fence/agents/ipmilan/ipmilan.c b/fence/agents/ipmilan/ipmilan.c
index 48f15d3..eec2377 100644
--- a/fence/agents/ipmilan/ipmilan.c
+++ b/fence/agents/ipmilan/ipmilan.c
@@ -965,6 +965,14 @@ main(int argc, char **argv)
}
}
+ if (!strcasecmp(op, "metadata")) {
+ print_xml_metadata(pname);
+ translated_ret = ERR_OK;
+ ret=0;
+ print_final_status=0;
+ goto metaout;
+ }
+
/*
Validate the operating parameters
*/
@@ -1073,11 +1081,6 @@ main(int argc, char **argv)
ret=0;
translated_ret = ERR_OK;
print_final_status=0;
- } else if (!strcasecmp(op, "metadata")) {
- print_xml_metadata(pname);
- ret=0;
- translated_ret = ERR_OK;
- print_final_status=0;
}
@@ -1085,6 +1088,7 @@ out:
ipmi_destroy(i);
free(i);
+metaout:
if (print_final_status) {
if (ret == 0)
printf("Done\n");
14 years
fence-agents: master - fence_ilo: do not import unrequired modules
by Fabio M. Di Nitto
Gitweb: http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=com...
Commit: d96f348062e3058dafcc9b7f1ce8c31741ca2e23
Parent: 319803209f2425ca02538d22e1750b2169e10d00
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
AuthorDate: Tue Oct 20 05:23:39 2009 +0200
Committer: Fabio M. Di Nitto <fdinitto(a)redhat.com>
CommitterDate: Tue Apr 20 14:27:19 2010 +0200
fence_ilo: do not import unrequired modules
Signed-off-by: Fabio M. Di Nitto <fdinitto(a)redhat.com>
---
fence/agents/ilo/fence_ilo.py | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/fence/agents/ilo/fence_ilo.py b/fence/agents/ilo/fence_ilo.py
index 1e33d5d..026e516 100755
--- a/fence/agents/ilo/fence_ilo.py
+++ b/fence/agents/ilo/fence_ilo.py
@@ -14,7 +14,6 @@
import sys, re, pexpect, socket
sys.path.append("@FENCEAGENTSLIBDIR@")
from fencing import *
-from OpenSSL import SSL
#BEGIN_VERSION_GENERATION
RELEASE_VERSION="New ILO Agent - test release on steroids"
14 years