Bug 517860
| Summary: | fence_apc fails to fence node: Failed: Unable to obtain correct plug status or plug is not available | |||
|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Abhijith Das <adas> | |
| Component: | fence-agents | Assignee: | Marek Grac <mgrac> | |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | rawhide | CC: | fdinitto | |
| Target Milestone: | --- | |||
| Target Release: | --- | |||
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | cluster 3.0.3 stable | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 525105 532916 (view as bug list) | Environment: | ||
| Last Closed: | 2009-10-02 13:13:21 UTC | Type: | --- | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 525105, 532916 | |||
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
|
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):