debian/0000775000000000000000000000000012256175564007205 5ustar debian/rules0000775000000000000000000000131512256175535010263 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 BUILDROOT := $(shell pwd) get-orig-source: uscan --noconf --force-download --rename --repack --download-current-version --destdir=. %: dh $@ --with python2,autotools_dev override_dh_auto_configure: #[ -f configure ] || sh autogen.sh # Use this when tarball is fixed if [ -e configure -a ! -x configure ]; then chmod u+x configure; fi ./configure --sbindir=/usr/sbin --libexecdir=/usr/lib override_dh_auto_install: $(MAKE) install DESTDIR=$(BUILDROOT)/debian/tmp # Install fence_cdu. Temporary fix. install -m 755 debian/fence_cdu ${BUILDROOT}/debian/tmp/usr/sbin/fence_cdu dh_install --list-missing debian/watch0000664000000000000000000000013511573221301010213 0ustar version=3 https://fedorahosted.org/releases/f/e/fence-agents/fence-agents-([\d\.]*)\.tar\.xz debian/changelog0000664000000000000000000000275012256175556011064 0ustar fence-agents (3.1.5-2ubuntu4) trusty; urgency=medium * Use autotools-dev to update config.{sub,guess} for new arches. -- Logan Rosen Mon, 23 Dec 2013 22:11:31 -0500 fence-agents (3.1.5-2ubuntu3) quantal; urgency=low * Rebuild for new armel compiler default of ARMv5t. -- Colin Watson Tue, 02 Oct 2012 10:15:50 +0100 fence-agents (3.1.5-2ubuntu2) precise; urgency=low * debian/rules: Install fence-cdu. (LP: #927959) -- Andres Rodriguez Mon, 06 Feb 2012 18:27:37 -0500 fence-agents (3.1.5-2ubuntu1) precise; urgency=low * Resync from debian unstable (LP: #809166) * debian/copyright: Update so that lintian won't complain. * debian/control: Bump standards version. -- Andres Rodriguez Mon, 28 Nov 2011 19:01:41 -0500 fence-agents (3.1.5-2) unstable; urgency=low * Adopted numerous changes from the fence-agents Ubuntu package in order to make co-maintaining this package easier, including these changes: - debian/patches/fix_manpages.patch: Fix some manpage errors. - debian/lintian.overrides: Add lintian overrides. Special thanks goes to Andres Rodriguez from Ubuntu! * Include the files in /usr/share/cluster/relaxng/ in the package -- Martin Loschwitz Thu, 24 Nov 2011 10:14:01 +0000 fence-agents (3.1.5-1) unstable; urgency=low * Initial release (Closes: #538203) -- Martin Loschwitz Mon, 29 Aug 2011 12:43:41 +0000 debian/fence-agents.install0000664000000000000000000000020211663414767013130 0ustar etc/cluster/fence* usr/sbin/fence* usr/share/cluster/fence* usr/share/fence* usr/share/man/man8/fence* usr/share/cluster/relaxng* debian/compat0000664000000000000000000000000211503526530010366 0ustar 7 debian/copyright0000664000000000000000000000415011665020330011117 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: fence-agents Source: http://sources.redhat.com/cluster/wiki/ Files: debian/* Copyright: 2011 Andres Rodriguez License: GPL-2+ Files: * Copyright: 1997-2003 Sistina Software, Inc. 2004-2008 Red Hat, Inc. License: GPL-2+ Files: fence/agents/xenapi/* Copyright: 2011 Matthew Clark License: GPL-2+ Files: fence/agents/apc_snmp/powernet369.mib Copyright: 2005 American Power Conversion, Inc. PowerNet is a Trademark of American Power Conversion Corp. License: GPL-2+ Files: fence/agents/eaton_snmp/fence_eaton_snmp.py Copyright: 2011 eaton.com Arnaud Quette License: GPL-2+ Files: fence/agents/ifmib/fence_ifmib.py Copyright: 2008-2011 Ross Vandegrift License: GPL-2+ Files: fence/agents/intelmodular/fence_intelmodular.pl Copyright: Matthew Kent License: GPL-2+ Files: fence/agents/ipmilan/expect.c fence/agents/ipmilan/expect.h Copyright: 2000 Alan Robertson License: GPL-2+ Files: fence/agents/node_assassin/* Copyright: 2009-2011 Madison Kelly/Alteeve's Niche! Digimer License: GPL-2+ Files: fence/man/fence_ifmib.8 Copyright: 2008-2011 Ross Vandegrift License: GPL-2+ License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/source/0000775000000000000000000000000011663413750010476 5ustar debian/source/format0000664000000000000000000000001411503526530011676 0ustar 3.0 (quilt) debian/fence-agents.lintian-overrides0000664000000000000000000000154111573243741015117 0ustar fence-agents: manpage-has-errors-from-man usr/share/man/man8/fence_drac5.8.gz 47: bad argument name `)' fence-agents: hyphen-used-as-minus-sign usr/share/man/man8/fence_intelmodular.8.gz:9 fence-agents: hyphen-used-as-minus-sign usr/share/man/man8/fence_ipmilan.8.gz:10 fence-agents: hyphen-used-as-minus-sign usr/share/man/man8/fence_ipmilan.8.gz:64 fence-agents: hyphen-used-as-minus-sign usr/share/man/man8/fence_ipmilan.8.gz:167 fence-agents: hyphen-used-as-minus-sign usr/share/man/man8/fence_ldom.8.gz:9 fence-agents: hyphen-used-as-minus-sign usr/share/man/man8/fence_vmware_soap.8.gz:9 fence-agents: manpage-has-bad-whatis-entry usr/share/man/man8/fence_na.8.gz fence-agents: binary-without-manpage usr/sbin/fence_nss_wrapper fence-agents: binary-without-manpage usr/sbin/fence_vmware_helper fence-agents: script-not-executable usr/share/fence/fence_na.lib debian/fence_cdu0000775000000000000000000001063211714060230011025 0ustar #!/usr/bin/python # fence_cdu - fence agent for a Sentry Switch CDU. # # Copyright (C) 2012 Canonical Ltd. # # Authors: Andres Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . ##### ## ## The Following Agent Has Been Tested On: ## ## Model Firmware ## +---------------------------------------------+ ## Sentry Switched CDU 6a ## ## @note: ssh has not being tested ## ##### import sys, re, pexpect, exceptions sys.path.append("/usr/share/fence") from fencing import * def get_power_status(conn, options): exp_result = 0 outlets = {} try: conn.send("STATUS\r\n") conn.log_expect(options, options["-c"], int(options["-Y"])) lines = conn.before.split("\n") # .A12 TowerA_Outlet12 On Idle On # .A12 test-01 On Idle On show_re = re.compile('(\.\w+)\s+(\w+|\w+\W\w+)\s+(On|Off)\s+(On|Idle On|Off|Wake On)') for line in lines: res = show_re.search(line) if res != None: outlets[res.group(2)] = (res.group(1), res.group(3)) except pexpect.EOF: fail(EC_CONNECTION_LOST) except pexpect.TIMEOUT: fail(EC_TIMED_OUT) try: (_, status) = outlets[options["-n"]] return status.lower().strip() except KeyError: fail(EC_STATUS) def set_power_status(conn, options): outlets = {} action = { 'on' : "on", 'off': "off" }[options["-o"]] try: conn.send("LIST OUTLETS\r\n") conn.log_expect(options, options["-c"], int(options["-Y"])) lines = conn.before.split("\n") # .A12 TowerA_Outlet12 # .A12 test-01 show_re = re.compile('(\.\w+)\s+(\w+|\w+\W\w+)\s+') for line in lines: res = show_re.search(line) if res != None: outlets[res.group(2)] = (res.group(1)) conn.send(action + " " + outlets[options["-n"]] + "\r\n") conn.log_expect(options, options["-c"], int(options["-Y"])) except pexpect.EOF: fail(EC_CONNECTION_LOST) except pexpect.TIMEOUT: fail(EC_TIMED_OUT) def main(): device_opt = [ "help", "version", "agent", "quiet", "verbose", "debug", "action", "ipaddr", "login", "passwd", "passwd_script", "secure", "port", "identity_file", "switch", "test", "separator", "inet4_only", "inet6_only", "ipport", "power_timeout", "shell_timeout", "login_timeout", "power_wait" ] atexit.register(atexit_handler) options = check_input(device_opt, process_input(device_opt)) ## ## Fence agent specific defaults ##### options["ssh_options"] = "-1 -c blowfish" if 0 == options.has_key("-c"): options["-c"] = "Switched CDU:" docs = { } docs["shortdesc"] = "Fence agent for a Sentry Switch CDU over telnet/ssh" docs["longdesc"] = "fence_cdu is an I/O Fencing agent \ which can be used with the Sentry Switch CDU. It logs into the device \ via telnet/ssh and power's on/off an outlet." docs["vendorurl"] = "http://www.servertech.com" 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(":")): (switch, plug) = options["-n"].split(":", 1) options["-s"] = switch; options["-n"] = plug; ## ## Operate the fencing device #### conn = fence_login(options) result = fence_action(conn, options, set_power_status, get_power_status, get_power_status) ## ## Logout from system ## ## In some special unspecified cases it is possible that ## connection will be closed before we run close(). This is not ## a problem because everything is checked before. ###### try: conn.sendline("LOGOUT") conn.close() except exceptions.OSError: pass except pexpect.ExceptionPexpect: pass sys.exit(result) if __name__ == "__main__": main() debian/control0000664000000000000000000000250411665017441010601 0ustar Source: fence-agents Section: admin Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian HA Maintainers Uploaders: Martin Loschwitz Build-Depends: autoconf, automake, autotools-dev, debhelper (>= 7.0.50~), libglib2.0-dev, libnspr4-dev, libnss3-dev, libtool, perl-modules, python, python-pexpect, python-pycurl, python-suds, xsltproc XS-Python-Version: current Standards-Version: 3.9.2 Homepage: http://sources.redhat.com/cluster/wiki/ Package: fence-agents Architecture: any Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends} Replaces: cman (<= 3.0.12-2ubuntu4) Conflicts: cman (<= 3.0.12-2ubuntu4) Recommends: libnet-telnet-perl, openssh-client, python-pexpect, python-pycurl, sg3-utils, snmp Description: Fence Agents for Red Hat Cluster Red Hat Fence Agents is a collection of scripts to handle remote power management for several devices. They allow failed or unreachable nodes to be forcibly restarted and removed from the cluster. debian/patches/0000775000000000000000000000000011573247541010630 5ustar debian/patches/series0000664000000000000000000000002311573235324012034 0ustar fix_manpages.patch debian/patches/fix_manpages.patch0000664000000000000000000000640611573247541014320 0ustar Description: Fix some manpage errors This patch fixes some manpages errors to avoid lintian having to complain about them. Forwarded: not-needed Index: fence-agents-3.1.4/fence/agents/scsi/fence_scsi.8 =================================================================== --- fence-agents-3.1.4.orig/fence/agents/scsi/fence_scsi.8 2011-06-06 16:40:39.510814780 -0400 +++ fence-agents-3.1.4/fence/agents/scsi/fence_scsi.8 2011-06-06 16:48:38.191516853 -0400 @@ -23,13 +23,13 @@ failed node from the device(s). The failed node will no longer be able to write to the device(s). A manual reboot is required. -Keys are either be specified manually (see -k option) or generated -automatically (see -n option). Automatic key generation requires that +Keys are either be specified manually (see \-k option) or generated +automatically (see \-n option). Automatic key generation requires that cman be running. Keys will then be generated using the cluster ID and node ID such that each node has a unique key that can be determined by any other node in the cluster. -Devices can either be specified manually (see -d option) or discovered +Devices can either be specified manually (see \-d option) or discovered automatically. Multiple devices can be specified manually by using a comma-separated list. If no devices are specified, the fence_scsi agent will attempt to discover devices by looking for cluster volumes @@ -42,7 +42,7 @@ .TP \fB-o\fP \fIaction\fR Fencing action. This value can be "on", "off", or "status". All -actions require either a key (see -k option) or node name (see -n +actions require either a key (see \-k option) or node name (see \-n option). For "on", the agent will attempt to register with the device(s) and create a reservation if none exists. The "off" action will attempt to remove a node's key from the device(s). The "status" @@ -61,7 +61,7 @@ \fB-n\fP \fInodename\fR Name of the node to be fenced. The node name is used to generate the key value used for the current operation. This option will be ignored -when used with the -k option. +when used with the \-k option. .TP \fB-k\fP \fIkey\fR Key to use for the current operation. This key should be unique to a @@ -88,19 +88,19 @@ This option is used by fence_node(8) and is ignored by fence_scsi. .TP \fInodename = "param"\fR -Same as -n option. +Same as \-n option. .TP \fIaction = "param" \fR -Same as -o option. +Same as \-o option. .TP \fIdevices = "param"\fR -Same as -d option. +Same as \-d option. .TP \fIlogfile = "param"\fR -Same as -f option +Same as \-f option .TP \fIkey = "param"\fR -Same as -k option. +Same as \-k option. .TP \fIaptpl = "1" Enable the APTPL flag. Default is 0 (disable). Index: fence-agents-3.1.4/fence/agents/drac/fence_drac.8 =================================================================== --- fence-agents-3.1.4.orig/fence/agents/drac/fence_drac.8 2011-06-06 16:47:02.811376958 -0400 +++ fence-agents-3.1.4/fence/agents/drac/fence_drac.8 2011-06-06 16:47:28.151414125 -0400 @@ -16,7 +16,7 @@ interface, you will need to use the racadm command in the racser-devel rpm available from Dell. To enable telnet on the DRAC: -[root]# racadm config -g cfgSerial -o cfgSerialTelnetEnable 1 +[root]# racadm config \-g cfgSerial \-o cfgSerialTelnetEnable 1 [root]# racadm racreset