Red Hat Bugzilla – Bug 1259254
fence_apc does not work with APC firmware 6.x
Last modified: 2016-05-12 10:30:27 EDT
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.
@Hans: If I understand it correctly, commands are same only checking of firmware has to allow 6.x. Am I right?
@Marek You're right. Commands are the same for firmware 5 and 6 but firmware 6 can't be detected by fence_apc.
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