Bug 712111
Summary: | condor doesn't control deferral_* numbers | ||
---|---|---|---|
Product: | Red Hat Enterprise MRG | Reporter: | Lubos Trilety <ltrilety> |
Component: | condor | Assignee: | Timothy St. Clair <tstclair> |
Status: | CLOSED ERRATA | QA Contact: | Daniel Horák <dahorak> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 1.0 | CC: | dahorak, matt, mkudlej, tstclair |
Target Milestone: | 2.1 | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | condor-7.6.4-0.5 | Doc Type: | Bug Fix |
Doc Text: |
When a negative or floating point number was entered into a deferral_* parameter during submission, jobs placed on hold as a result. With this update, these parameters are checked to contain a positive integer value before submission and now, only jobs with valid deferral_* parameters are allowed to run.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2012-01-23 17:27:11 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: | 743350 |
Description
Lubos Trilety
2011-06-09 14:28:21 UTC
Updated logic to validate constants are non-negative integers only It does not eval an expression. 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: Input negative or floating point numbers into deferral_* params during submission. C: Jobs will be placed on hold. F: Input check so deferral_* params have to be positive integers only. R: Only jobs with valid deferral_* params are allowed to run. Reproduced on RHEL 5.7 i386: # rpm -q condor condor-7.6.3-0.3.el5 1st scenario: # cat /tmp/bz712111a.job universe = vanilla cmd = /bin/sleep args = 20 deferral_time = 1319118800 deferral_window = 300 deferral_prep_time = -70 queue 1 date +%s 1319118706 # runuser -s /bin/bash -l condor -c "condor_submit /tmp/bz712111a.job" Submitting job(s). 1 job(s) submitted to cluster 1. # date +%s 1319118734 # condor_q -- Submitter: HOSTNAME : <IP:45310> : HOSTNAME ID OWNER SUBMITTED RUN_TIME ST PRI SIZE CMD 1.0 condor 10/20 15:52 0+00:00:00 I 0 0.0 sleep 20 1 jobs; 1 idle, 0 running, 0 held # date +%s 1319118872 # condor_q -- Submitter: HOSTNAME : <IP:45310> : HOSTNAME ID OWNER SUBMITTED RUN_TIME ST PRI SIZE CMD 1.0 condor 10/20 15:52 0+00:00:01 R 0 0.0 sleep 20 1 jobs; 0 idle, 1 running, 0 held 2nd scenario: # cat /tmp/bz712111b.job universe = vanilla cmd = /bin/sleep args = 20 deferral_time = 1319119000.9 deferral_window = 300 queue 1 # runuser -s /bin/bash -l condor -c "condor_submit /tmp/bz712111b.job" Submitting job(s). 1 job(s) submitted to cluster 2. # condor_q -bet -- Submitter: HOSTNAME : <IP:45310> : HOSTNAME --- 002.000: Request is held. Hold reason: Job missed deferred execution time Verified on RHEL 5.7 i386: # rpm -q condor condor-7.6.4-0.8.el5 # cat bz712111.job universe = vanilla cmd = /bin/sleep args = 20 deferral_time = 1319183700 deferral_window = 300 deferral_prep_time = -70 queue 1 # runuser -s /bin/bash -l condor -c "condor_submit /tmp/bz712111.job" Submitting job(s) ERROR: 'deferral_prep_time'='-70' is invalid, must eval to a non-negative integer. # cat bz712111.job universe = vanilla cmd = /bin/sleep args = 20 deferral_time = 1319183700.8 deferral_window = 300 deferral_prep_time = 70 queue 1 # runuser -s /bin/bash -l condor -c "condor_submit /tmp/bz712111.job" Submitting job(s) ERROR: 'deferral_time'='1319183700.8' is invalid, must eval to a non-negative integer. Result for "deferral_time = -1319183700", "deferral_window = -300", "deferral_window = 300.8" and "deferral_prep_time = 70.8" is similar. Verified on RHEL 5.7 x86_64, RHEL 6.1 i386, RHEL 6.1 x86_64 with similar output. >>> VERIFIED Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1,4 +1 @@ -C: Input negative or floating point numbers into deferral_* params during submission. +When a negative or floating point number was entered into a deferral_* parameter during submission, jobs placed on hold as a result. With this update, these parameters are checked to contain a positive integer value before submission and now, only jobs with valid deferral_* parameters are allowed to run.-C: Jobs will be placed on hold. -F: Input check so deferral_* params have to be positive integers only. -R: Only jobs with valid deferral_* params are allowed to run. 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/RHEA-2012-0045.html |