Spoke with marx on IRC and changing the regex in /usr/sbin/fence_apc fixed it. --- fence_apc.broken 2009-08-17 09:28:34.000000000 -0500 +++ fence_apc 2009-08-17 09:28:48.000000000 -0500 @@ -70,7 +70,7 @@ def get_power_status(conn, options): while True: exp_result = conn.log_expect(options, [ options["-c"], "Press <ENTER>" ], SHELL_TIMEOUT) lines = conn.before.split("\n"); - show_re = re.compile('^\s*(\d+)- (.*?)\s+(ON|OFF)\s*$') + show_re = re.compile('^\s*(\d+)- (.*?)\s+(ON|OFF)\s*') for x in lines: res = show_re.search(x) if (res != None):
Device info and how line differs: <abhi`> American Power Conversion Web/SNMP Management Card AOS v2.5.4 <abhi`> (c) Copyright 2000 All Rights Reserved MasterSwitch plus APP v2.0.0 <abhi`> ------------------------------------------------------------------------------- 1- Outlet 1:1 shell-01 ON Graceful Shutdown
Applied patch: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commit;h=e97692e42ffb901388ad2586ca93e91f6c509c8a