Bug 713511

Summary: Always run POST script, even if PRE script fails
Product: Red Hat Enterprise MRG Reporter: Timothy St. Clair <tstclair>
Component: condorAssignee: Timothy St. Clair <tstclair>
Status: CLOSED ERRATA QA Contact: Luigi Toscano <ltoscano>
Severity: medium Docs Contact:
Priority: high    
Version: 2.0CC: jneedle, ltoscano, matt, mkudlej, tstclair
Target Milestone: 2.0.1   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: condor-7.6.2-0.1 Doc Type: Bug Fix
Doc Text:
C: Failure to run POST script when PRE script fails C: POST script will not run F: Run the POST script even if the PRE script fails with the option to disable in case behavior is desired. R: POST script will run when PRE script fails.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-07 16:42:07 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: 723887    

Description Timothy St. Clair 2011-06-15 15:49:37 UTC
Description of problem:
To be more consistent, we should probably always run a POST script for a node if a POST script exists. Right now we do not run the POST script if the PRE script fails. We do run the POST script if the node job fails.
There should also be a config setting to get the old behavior, in case the new behavior would break some people's DAGs.

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

How reproducible:
100%

Upstream tracking:
https://condor-wiki.cs.wisc.edu/index.cgi/tktview?tn=2057

Comment 2 Timothy St. Clair 2011-06-23 13:17:06 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
C: Failure to run POST script when PRE script fails
C: POST script will not run
F: Run the POST script even if the PRE script fails with the option to disable in case behavior is desired.
R: POST script will run when PRE script fails.

Comment 4 Luigi Toscano 2011-07-28 18:24:40 UTC
The new behavior has been verified on RHEL5.7/6.1, i386/x86_64.

condor-7.6.3-0.3
condor-classads-7.6.3-0.3

Comment 5 errata-xmlrpc 2011-09-07 16:42:07 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/RHSA-2011-1249.html