Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 629272 Details for
Bug 864028
fence_na does not support action=metadata via stdin
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Proposed patch
0001-fence_na-Add-support-for-XML-metadata-output.patch (text/plain), 3.49 KB, created by
Marek Grac
on 2012-10-18 09:37:35 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Marek Grac
Created:
2012-10-18 09:37:35 UTC
Size:
3.49 KB
patch
obsolete
>From e123b9093869872b1f89e0e707c2b89d7015f69b Mon Sep 17 00:00:00 2001 >From: Marek 'marx' Grac <mgrac@redhat.com> >Date: Thu, 18 Oct 2012 11:35:15 +0200 >Subject: [PATCH] fence_na: Add support for XML metadata output > >Adding a skelet for XML metadata output so fence_na can be used with corosync. > >Resolves: rhbz#864028 >--- > fence/agents/node_assassin/fence_na.lib.in | 57 ++++++++++++++++++++++++++++ > fence/agents/node_assassin/fence_na.pl | 6 +++ > 2 files changed, 63 insertions(+), 0 deletions(-) > >diff --git a/fence/agents/node_assassin/fence_na.lib.in b/fence/agents/node_assassin/fence_na.lib.in >index 67d5367..dec734a 100644 >--- a/fence/agents/node_assassin/fence_na.lib.in >+++ b/fence/agents/node_assassin/fence_na.lib.in >@@ -918,4 +918,61 @@ sub _make_hash_reference > _add_hash_reference($href, $_href); > } > >+sub show_metadata >+{ >+ print <<METADATA; >+<?xml version="1.0" ?> >+<resource-agent name="fence_na.py" shortdesc="Fence agent for Node Assassin over telnet" > >+<longdesc>fence_na is an I/O Fencing agent which can be used with the Node Assassin network power switch. It logs into device via telnet 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.</longdesc> >+<vendor-url>http://www.altavee.ca/w/Node_Assassin_v1.1.4</vendor-url> >+<parameters> >+ <parameter name="action" unique="0" required="1"> >+ <getopt mixed="-o <action>" /> >+ <content type="string" default="reboot" /> >+ <shortdesc lang="en">Fencing Action</shortdesc> >+ </parameter> >+ <parameter name="ipaddr" unique="0" required="1"> >+ <getopt mixed="-a <ip>" /> >+ <content type="string" /> >+ <shortdesc lang="en">IP Address or Hostname</shortdesc> >+ </parameter> >+ <parameter name="login" unique="0" required="1"> >+ <getopt mixed="-l <name>" /> >+ <content type="string" /> >+ <shortdesc lang="en">Login Name</shortdesc> >+ </parameter> >+ <parameter name="passwd" unique="0" required="0"> >+ <getopt mixed="-p <password>" /> >+ <content type="string" /> >+ <shortdesc lang="en">Login password or passphrase</shortdesc> >+ </parameter> >+ <parameter name="port" unique="0" required="1"> >+ <getopt mixed="-n;" /> >+ <content type="string" /> >+ <shortdesc lang="en">Physical plug number</shortdesc> >+ </parameter> >+ <parameter name="version" unique="0" required="0"> >+ <getopt mixed="-V" /> >+ <content type="boolean" /> >+ <shortdesc lang="en">Display version information and exit</shortdesc> >+ </parameter> >+ <parameter name="help" unique="0" required="0"> >+ <getopt mixed="-h" /> >+ <content type="boolean" /> >+ <shortdesc lang="en">Display help and exit</shortdesc> >+ </parameter> >+</parameters> >+<actions> >+ <action name="on" /> >+ <action name="off" /> >+ <action name="reboot" /> >+ <action name="status" /> >+ <action name="list" /> >+ <action name="monitor" /> >+ <action name="metadata" /> >+</actions> >+</resource-agent> >+METADATA >+} >+ > 1; >diff --git a/fence/agents/node_assassin/fence_na.pl b/fence/agents/node_assassin/fence_na.pl >index bc7fb00..bdcaf69 100644 >--- a/fence/agents/node_assassin/fence_na.pl >+++ b/fence/agents/node_assassin/fence_na.pl >@@ -106,6 +106,12 @@ foreach my $i (1..$conf->{'system'}{na_num}) > } > > die "Exiting on errors.\n" if $bad; >+ >+if ($conf->{na}{action} eq "metadata") { >+ show_metadata(); >+ do_exit($conf, $log, 0); >+} >+ > my @ny=("no", "yes"); > record($conf, $log, "Node Assassin: . [$conf->{na}{ipaddr}].\n"); > record($conf, $log, "TCP Port: ...... [$conf->{na}{tcp_port}].\n"); >-- >1.7.7.6 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
mgrac
: review?
Actions:
View
|
Diff
Attachments on
bug 864028
: 629272