Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 751072 - Some condor_* commands with valid parameter '-help' return non zero exit code
Some condor_* commands with valid parameter '-help' return non zero exit code
Status: CLOSED ERRATA
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: condor (Show other bugs)
Development
Unspecified Unspecified
low Severity low
: 2.1.1
: ---
Assigned To: Timothy St. Clair
Martin Kudlej
:
Depends On:
Blocks: 765607 773434
  Show dependency treegraph
 
Reported: 2011-11-03 09:06 EDT by Daniel Horák
Modified: 2012-02-06 13:17 EST (History)
4 users (show)

See Also:
Fixed In Version: condor-7.6.5-0.9
Doc Type: Bug Fix
Doc Text:
C: Run condor tools with -help from the command line and check the return code. C: Return code is non-zero when it should be 0 F: Update the tools to return 0 when executing with -help R: Running condor tools with -help from the command line returns 0
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-02-06 13:17:48 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:0100 normal SHIPPED_LIVE Moderate: MRG Grid security, bug fix, and enhancement update 2012-02-06 18:15:47 EST

  None (edit)
Description Daniel Horák 2011-11-03 09:06:13 EDT
Description of problem:
Some commands condor_* return with valid parameter '-help' exit code different of zero. 
Acts about e.g. condor_config_val, condor_continue, condor_history, condor_hold, condor_off, condor_on, condor_release, condor_suspend,...

Version-Release number of selected component (if applicable):
condor-7.6.5-0.5

How reproducible:
100%

Steps to Reproduce:
Run mentioned commands with parameter '-help' and control exit code.
# condor_rm -help
# echo $?

  
Actual results:
Commands return with valid parameter -help non zero return code.

Expected results:
Commands should return zero with valid parameter -help.
Comment 4 Timothy St. Clair 2011-12-14 12:40:40 EST
    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: Run condor tools with -help from the command line and check the return code.
C: Return code is non-zero when it should be 0
F: Update the tools to return 0 when executing with -help
R: Running condor tools with -help from the command line returns 0
Comment 5 Martin Kudlej 2012-01-04 08:51:52 EST
There are still commands which returns $? != 0 for '-h' or '-help' parameter:
$  condor_cod -h; echo $?
...
1

$  condor_findhost -h; echo $?
...
1

$ condor_router_history -h; echo $?
...
1

$ condor_ssh_to_job -h; echo $?
...
2

$ condor_submit_dag -help; echo $?
...
1

$ condor_userlog -help; echo $?
...
1

$ condor_wait -help; echo $?
...
1

Tested with condor-7.6.5-0.11.el5/.el6.
Comment 6 Timothy St. Clair 2012-01-04 09:19:17 EST
Is the afore mentioned list complete?
Comment 7 Martin Kudlej 2012-01-05 04:42:27 EST
I've got list of binaries in condor package(rpm -ql | grep bin) and run them with -h and -help. I've sorted out those one which returned non zero value to 2 categories. First category contains binaries which have not in man pages or among parameters -h or -help so non-zero return code is OK. And binaries from second category you can see in comment #5. So yes, that is complete list of binaries in condor package which return non-zero value if it is called with -h or -help and they have in man page or among parameters -h or -help.
Comment 10 Martin Kudlej 2012-01-20 04:37:08 EST
There is new bug 773434 for rest commands. -->VERIFIED
Comment 11 errata-xmlrpc 2012-02-06 13:17:48 EST
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.

http://rhn.redhat.com/errata/RHSA-2012-0100.html

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