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 1342584 - fence_apc: Connection timed out
Summary: fence_apc: Connection timed out
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: fence-agents
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Oyvind Albrigtsen
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-03 15:15 UTC by Nate Straz
Modified: 2016-11-04 04:50 UTC (History)
2 users (show)

Fixed In Version: fence-agents-4.0.11-39.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-04 04:50:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch against master (540 bytes, patch)
2016-06-03 15:16 UTC, Nate Straz
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2373 0 normal SHIPPED_LIVE fence-agents bug fix update 2016-11-03 13:51:30 UTC

Description Nate Straz 2016-06-03 15:15:46 UTC
Description of problem:

Sometimes when getting the status of a power outlet using the fence_apc fencing agent, the command will fail with "Connection timed out."

Turning on verbose shows:

^M------- Outlet Control/Configuration ------------------------------------------

     1- north-console            ON
     2- north-01                 ON
     3- north-02                 ON
     4- north-03                 ON
     5- north-04                 ON
     6- north-05                 OFF
     7- north-06                 OFF
     8- Outlet 8                 ON
     9- north-07                 OFF
    10- north-08                 OFF
    11- north-09                 OFF
    12- north-10                 OFF
    13- north-11                 OFF
    14- north-12                 OFF
    15- north-13                 OFF
    16- Outlet 16                ON
    17- north-14                 OFF
    18- north-16                 OFF
    19- north-15                 OFF
    20- nsew                     ON
    21- north-fc                 ON
    22- north-storage1           ON
^M        Press <ENTER>
Sent: 

Received:  to continue...^M                                    ^M    23- north-storage2           ON
    24- Outlet 24                ON
    25- Master Control/Configuration

     <ESC>- Back, <ENTER>- Refresh, <CTRL-L>- Event Log
>
Sent: 

Sent: ^C
Connection timed out


The ^C to get back to the top menu isn't being seen by the APC at the right time.  The top menu doesn't get displayed and the fence agent sits there waiting until the time out expires.

If I wait for the command prompt after the loop, the fence agent doesn't time out there.


                 if exp_result != 0:
                         break
+        conn.log_expect(options, options["--command-prompt"], int(options["--shell-timeout"]))
         conn.send(chr(03))
         conn.log_expect(options, "- Logout", int(options["--shell-timeout"]))


Version-Release number of selected component (if applicable):
fence-agents-apc-4.0.11-27.el7.x86_64

How reproducible:
Easily


Steps to Reproduce:
1. Turn an outlet on and off in a loop
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Nate Straz 2016-06-03 15:16:31 UTC
Created attachment 1164554 [details]
Patch against master

Comment 5 Nate Straz 2016-06-06 20:27:56 UTC
Either patch works for me.

Comment 9 errata-xmlrpc 2016-11-04 04:50:09 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-2373.html


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