Bug 172179 - Patch: Allow custom outlet names to be used with APC 7900 network power switch fence device
Summary: Patch: Allow custom outlet names to be used with APC 7900 network power switc...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Cluster Suite
Classification: Retired
Component: fence
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jim Parsons
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-11-01 04:29 UTC by Jiho Hahm
Modified: 2009-04-16 20:10 UTC (History)
1 user (show)

Fixed In Version: RHBA-2007-0138
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-05-10 21:23:44 UTC
Embargoed:


Attachments (Terms of Use)
patch to fence_apc script to allow custom outlet names (744 bytes, patch)
2005-11-01 04:29 UTC, Jiho Hahm
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0138 0 normal SHIPPED_LIVE fence bug fix update 2007-05-10 21:23:14 UTC

Description Jiho Hahm 2005-11-01 04:29:23 UTC
Description of problem:

The current fence_apc script requires outlets to be named in the default "Outlet
<digit>" fashion.  This patch allows customizing the name, for example naming
the outlet after hostname of the machine plugged in.


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

    fence-1.32.6-0

Additional info:

Here's the version banner from the actual device, shown immediately after login:

User Name : apc
Password  : ********


American Power Conversion               Network Management Card AOS      v2.6.4
(c) Copyright 2004 All Rights Reserved  Rack PDU APP                     v2.6.5



And here's the output of 3- System, 7- About System:

        About System

        Model Number      : AP7900
        Serial Number     : ZA0535002003
        NMC Serial Number : ZA0533021109
        Manufacture Date  : 08/23/2005
        Hardware Revision : B2
        MAC Address       : 00 C0 B7 78 74 61
        Flash Type        : TOS TC58FVM5B2

        Press <ENTER> to continue...

        -----------------------------------------------------------------------
        Module Information

        Description : Rack PDU APP
        -----------------------------------------------------------------------
        Name        : rpdu              Type        : StatApp
        Version     : 265               Sector      : 12
        Date        : 11/16/2004        Time        : 16:19:58
        CRC16       : CFC1

        Press <ENTER> to continue...

        Description : Network Management Card AOS
        -----------------------------------------------------------------------
        Name        : aos               Type        : APC OS
        Version     : 264               Sector      : 51
        Date        : 11/12/2004        Time        : 19:40:33
        CRC16       : C476

Comment 1 Jiho Hahm 2005-11-01 04:29:24 UTC
Created attachment 120596 [details]
patch to fence_apc script to allow custom outlet names

Comment 2 Jim Parsons 2005-11-07 22:07:20 UTC
A couple of concerns here:
1) what if more than one outlet were named the same name?
2) The apc scripts are so fragile - every apc update to firmware really wreaks
havoc with them. 

So, these are not stoppers in terms of this feature by any means...but maybe
there is a better alternative to patching the scripts:
An 'alias' attribute could be added to the fence_apc (or any fence agent
instance that uses port numbers) which could be set through the UI...kind of
like an optional annotation field. if you wish to remember that port 4 is power
supply B on the itanium node, then the user could enter 'IA pwr supply B' in the
annotation field, and this would be stored in cluster.conf as 'alias="IA pwr
supply B" port="4" in this fence instance block. The script or the apc device
would never have to know. This would exist at the highest user level only. Would
this satisfy the desired requirement that this ticket describes?

Comment 3 Jiho Hahm 2005-11-07 22:27:48 UTC
The patch I submitted modifies the script to only look for the plug number in
the UI, regardless of the name string.  It works with duplicate names, so
concern #1 is not an issue.  Concern #2 is a general issue that won't be
addressed by either my patch or your proposed alias mechanism.  So in
conclusion, I'd say the alias mechanism is not needed, at least for the APC device.

Comment 4 Jim Parsons 2005-11-22 15:40:32 UTC
Will review patch.

Comment 7 Kiersten (Kerri) Anderson 2006-09-22 17:02:24 UTC
Devel ACK for 4.5.

Comment 8 Jim Parsons 2007-01-31 19:05:42 UTC
The apc agent has been refactored to address this issue and is checked in.

Comment 11 Red Hat Bugzilla 2007-05-10 21:23:44 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-2007-0138.html



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