RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1259254 - fence_apc does not work with APC firmware 6.x
Summary: fence_apc does not work with APC firmware 6.x
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: fence-agents
Version: 6.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Marek Grac
QA Contact: cluster-qe@redhat.com
Steven J. Levine
URL:
Whiteboard:
Depends On:
Blocks: 1259319
TreeView+ depends on / blocked
 
Reported: 2015-09-02 09:49 UTC by Hans Middelhoek
Modified: 2016-05-12 14:30 UTC (History)
3 users (show)

Fixed In Version: fence-agents-4.0.15-11.el6
Doc Type: Release Note
Doc Text:
Fence agent for APC now supports firmware 6.x The fence agent for APC now support firmware 6.x.
Clone Of:
: 1259319 (view as bug list)
Environment:
Last Closed: 2016-05-10 21:34:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0838 0 normal SHIPPED_LIVE fence-agents bug fix and enhancement update 2016-05-10 22:42:07 UTC

Description Hans Middelhoek 2015-09-02 09:49:07 UTC
Description of problem:
We updated the firmware of our APC's (AP8653) to version 6.3.3 but now fencing doesn't work anymore.

Version-Release number of selected component (if applicable):
# fence_apc -V
4.0.10 (built Fri Jun 26 18:24:07 CEST 2015)

How reproducible:
# fence_apc -a xxx.xxx.xxx.xxx -l fenceuser -p pass -x -n 1 --ssh-options="-2 -c blowfish" --power-wait=10 -o status -c "apc>" -vvv
.....
DEBUG:root:Sent:

DEBUG:root:Received:


Schneider Electric                      Network Management Card AOS      v6.3.2
(c) Copyright 2015 All Rights Reserved  RPDU 2g                          v6.3.3
.....
apc>
DEBUG:root:Sent: 1

DEBUG:root:Received: 1
E101: Command Not Found

apc>
DEBUG:root:Sent: 2

DEBUG:root:Received: 2
E101: Command Not Found

apc>
DEBUG:root:Sent:

DEBUG:root:Sent:
ERROR:root:Connection timed out


Actual results:
Command doesn't work because old commands are send. The check for firmware version 5.x doesn't match for this newer 6.x firmware and therefore falls back to pre 5.x commands.

Expected results:
Port status should be reported by above command. The olStatus command should be send by fence_apc.

Additional info:
A simple change in fence_apc solves the problem.
Replace this line:
if (firmware_version != None) and (firmware_version.group(1) == "5"):
by this:
if (firmware_version != None) and (firmware_version.group(1) >= "5"):

This will check for firmware version 5.x and newer and solves our problem.

Comment 2 Marek Grac 2015-09-02 12:10:52 UTC
@Hans:

If I understand it correctly, commands are same only checking of firmware has to allow 6.x. Am I right?

Comment 3 Hans Middelhoek 2015-09-02 16:54:44 UTC
@Marek
You're right. Commands are the same for firmware 5 and 6 but firmware 6 can't be detected by fence_apc.

Comment 8 errata-xmlrpc 2016-05-10 21:34:08 UTC
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-2016-0838.html


Note You need to log in before you can comment on or make changes to this bug.