Bug 446995

Summary: Agent "fence_apc" reports: Parse error: Unknown option 'switch=3'
Product: [Retired] Red Hat Cluster Suite Reporter: Dean Jansa <djansa>
Component: fenceAssignee: Marek Grac <mgrac>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: high Docs Contact:
Priority: high    
Version: 4CC: cluster-maint, edamato, mgrac
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2008-0801 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-25 19:17:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dean Jansa 2008-05-16 21:10:47 UTC
Description of problem:

fence_node is failing to fence a node via fence_apc with the following error:

[root@link-13 fence]# fence_node link-16
agent "fence_apc" reports: Parse error: Unknown option 'switch=3'
Please use '-h' for usage


Snippit from  cluster.conf\

<clusternode name="link-16" votes="1">
  <fence>
    <method name="APCEE">
      <device name="apc1" switch="3" port="4"/>
    </method>
  </fence>
</clusternode>
.
.
.
<fencedevices>
  <fencedevice name="apc1" agent="fence_apc" ipaddr="link-apc" login="apc"
passwd="apc"/>
</fencedevices>


Version-Release number of selected component (if applicable):
fence-1.32.57-1

Comment 1 Marek Grac 2008-05-20 09:23:26 UTC
Patch is in the RHEL47 branch

Comment 3 Nate Straz 2008-05-27 18:04:39 UTC
[root@morph-01 rhn]# rpm -q fence
fence-1.32.58-1

[root@morph-01 rhn]# /sbin/fence_apc
switch=1
port=2
agent=fence_apc
ipaddr=morph-apc
login=apc
passwd=apc
^D
Failed: You have to enter physical switch number
Please use '-h' for usage


Comment 4 Marek Grac 2008-06-02 15:44:57 UTC
Fixed typo in translation from stdin to getopt argument

Comment 6 Fedora Update System 2008-06-11 07:55:58 UTC
rgmanager-2.03.04-1.fc9,gfs2-utils-2.03.04-1.fc9,cman-2.03.04-1.fc9 has been submitted as an update for Fedora 9

Comment 7 Fedora Update System 2008-06-13 02:25:22 UTC
rgmanager-2.03.04-1.fc9, gfs2-utils-2.03.04-1.fc9, cman-2.03.04-1.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 errata-xmlrpc 2008-07-25 19:17:08 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2008-0801.html