Bug 1068692
Summary: | fence_apc: Parse error: Ignoring unknown option 'nodename=dash-03 | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Justin Payne <jpayne> |
Component: | fence-agents | Assignee: | Marek Grac <mgrac> |
Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 7.0 | CC: | abeekhof, cluster-maint, fdinitto, jpayne, mjuricek |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | fence-agents-4.0.11-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-03-05 09:06:51 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Justin Payne
2014-02-21 16:57:26 UTC
I'm seeing this a lot during recovery testing: Feb 13 15:26:29 buzz-01 fence_apc: Parse error: Ignoring unknown option 'nodename=buzz-02 Feb 20 16:46:42 west-01 fence_apc_snmp: Parse error: Ignoring unknown option 'nodename=west-04 Can you please show us how you configure the fence agent? nodename does not appear to be a valid option in rhel7. Looks like a rhel6 leftover in some configuration files you might be using. From fence agents perspective, this is a correct respond. We are ignoring it but let other knows it. @Fabio: nodename is used also in fence_scsi (RHEL7 too) Here is an example of how we configure the fence agent: pcs stonith create west-apc fence_apc_snmp params ipaddr="west-apc" pcmk_host_map="west-01:2;west-02:3;west-03:4;west-04:5;west-05:6;west-06:7;west-07:9;west-08:10;west-09:11;west-10:12;west-11:13;west-12:14;west-13:15;west-14:17;west-15:18;west-16:19" action="reboot" debug="1" pcmk_host_check="static-list" pcmk_host_list="west-01,west-02,west-03,west-04,west-05,west-06,west-07,west-08,west-09,west-10,west-11,west-12,west-13,west-14,west-15,west-16" Can be easilly fixed but perhaps the origin should be fixed. Unit test: fence_apc on STDIN: nodename=x / ENTER / CTRL+D pre: WARNING:root:Parse error: Ignoring unknown option 'nodename=x' ERROR:root:Failed: You have to set login name ERROR:root:Please use '-h' for usage after: ERROR:root:Failed: You have to set login name ERROR:root:Please use '-h' for usage The API (https://fedorahosted.org/cluster/wiki/FenceAgentAPI) says: "Note that fenced always passes the name of the node to be fenced via the nodename argument." So Pacemaker is just following orders and this should definitely be handled in the agent(s) ok, nodename is ignored now Fixed in upstream Unit test: [marx@hroch apc]$ fence_apc nodename=abc Failed: You have to set login name Please use '-h' for usage [marx@hroch apc]$ fence_apc xylophone=true WARNING:root:Parse error: Ignoring unknown option 'xylophone=true' ERROR:root:Failed: You have to set login name Failed: You have to set login name ERROR:root:Please use '-h' for usage Please use '-h' for usage previously: there was no difference between xylophone and nodename Patch is part of fence agents 4.0.11 release Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0393.html |