Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 518622

Summary: Force stdout close for fencing agents in python
Product: Red Hat Enterprise Linux 5 Reporter: Marek Grac <mgrac>
Component: cmanAssignee: Marek Grac <mgrac>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: medium Docs Contact:
Priority: low    
Version: 5.4CC: cluster-maint, edamato, jkortus
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: cman-2.0.115-3.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-30 08:41:29 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:
Attachments:
Description Flags
Proposed patch
none
Proposed patch
none
Proposed patch #02 none

Description Marek Grac 2009-08-21 10:51:33 UTC
This feature is advise from Jim Meyering. On the beginning
of script, we should register end callback, which close stdout and
show error, if this wasn't successful.

Comment 1 Marek Grac 2009-08-21 11:10:57 UTC
Created attachment 358227 [details]
Proposed patch

Proposed patch (1)

Comment 2 Marek Grac 2009-08-21 11:13:27 UTC
Comment on attachment 358227 [details]
Proposed patch

Patch for different bug :(

Comment 3 Marek Grac 2009-08-27 10:57:55 UTC
Created attachment 358845 [details]
Proposed patch

Comment 4 Marek Grac 2009-08-27 13:56:49 UTC
Created attachment 358876 [details]
Proposed patch #02

add atexit also for Cisco and RSA

Comment 9 Jaroslav Kortus 2010-03-15 18:14:48 UTC
Verified, only fence_rsb does not contain this callback. Is this ok?

Comment 11 errata-xmlrpc 2010-03-30 08:41:29 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 therefore 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-2010-0266.html