Bug 676411 - condor_trigger_config returns 0 even if trigger operations fail
Summary: condor_trigger_config returns 0 even if trigger operations fail
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: condor-qmf
Version: 1.3
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: 2.0
: ---
Assignee: Robert Rati
QA Contact: Tomas Rusnak
URL:
Whiteboard:
Depends On: 692158
Blocks: 693778
TreeView+ depends on / blocked
 
Reported: 2011-02-09 19:08 UTC by Luigi Toscano
Modified: 2011-06-23 15:41 UTC (History)
3 users (show)

Fixed In Version: condor-7.5.6-0.1
Doc Type: Bug Fix
Doc Text:
C: A failure when executing condor_trigger_config C: The condor_trigger_config returns success F: The condor_trigger_config tool will exit with a failure R: A failure when executing condor_trigger_config would result in a failure return code
Clone Of:
Environment:
Last Closed: 2011-06-23 15:41:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:0889 0 normal SHIPPED_LIVE Red Hat Enterprise MRG Grid 2.0 Release 2011-06-23 15:35:53 UTC

Description Luigi Toscano 2011-02-09 19:08:38 UTC
Description of problem:
condor_trigger_config returns 0 also when trigger addition/removal/listing/testing fail. It only returns 1 when the the broker can't be reached.

Version-Release number of selected component (if applicable):
condor-qmf-7.4.5-0.8

Comment 1 Robert Rati 2011-02-24 17:05:24 UTC
Fixed upstream for 7.6.0

Comment 2 Robert Rati 2011-03-15 17:21:14 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: A failure when executing condor_trigger_config
C: The condor_trigger_config returns success
F: The condor_trigger_config tool will exit with a failure
R: A failure when executing condor_trigger_config would result in a failure return code

Comment 4 Tomas Rusnak 2011-05-26 12:37:35 UTC
Retested over all supported platforms x86,x86_64:

condor-qmf-7.6.1-0.6.el5
condor-qmf-7.6.1-0.6.el6.i686
condor-qmf-7.6.1-0.6.el6.x86_64

# condor_trigger_config -a -n test -q test -t test localhost
Connecting to broker 'localhost'...
No condor trigger service found
# echo $?
1
# condor_trigger_config -d 1 localhost
Connecting to broker 'localhost'...
No condor trigger service found
# echo $?
1
# condor_trigger_config -s localhost
Connecting to broker 'localhost'...
Received 'bind' event, ignoring
Received 'bind' event, ignoring
Received 'bind' event, ignoring
Testing triggers...
Listing currently installed triggers...
No triggers currently installed
No condor trigger service found
No condor trigger service found
Error: Interval was not set to 5 seconds
No condor trigger service found
# echo $?
1
# condor_trigger_config -l localhost
Connecting to broker 'localhost'...
Listing currently installed triggers...
No triggers currently installed
# echo $?
0

At last one the -l switch, the return code 0 is ok, there was nothing to list. Every other switches returned right error code.

>>> VERIFIED

Comment 5 errata-xmlrpc 2011-06-23 15:41:45 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/RHEA-2011-0889.html


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