Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 514730

Summary: cron_day_of_week values in job files are ignored
Product: Red Hat Enterprise MRG Reporter: Jon Thomas <jthomas>
Component: condorAssignee: Matthew Farrellee <matt>
Status: CLOSED ERRATA QA Contact: ppecka <ppecka>
Severity: medium Docs Contact:
Priority: urgent    
Version: 1.0CC: iboverma, lbrindle, matt, mkudlej, ppecka, tao
Target Milestone: 1.2   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Grid bug fix C: cron_day_of_week values in job files were being ignored. C: jobs are being scheduled either the day it is submitted or the following day (depending on when it was submitted). F: The parameters for cron were updated R: cron_day_of_week values can now successfully be set for job files The cron_day_of_week values in job files were being ignored, resulting in jobs being scheduled either the day it is submitted or the following day (depending on when it was submitted). The parameters for cron were updated and the values can now successfully be set for job files.
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-03 09:17:22 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: 527551    
Attachments:
Description Flags
patch none

Description Jon Thomas 2009-07-30 14:31:09 UTC
Created attachment 355685 [details]
patch

cron_day_of_week values in job files are ignored. Behavior is as if "*" was specified.


Example test job file:

Universe = vanilla
Executable = /bin/date
Notification = Never
Log = test.log
Output = test.out
Error = test.err

request_cpus = 1
request_memory = 1024
request_disk = 1

cron_prep_time = 120
cron_window = 600
on_exit_remove = true
cron_hour = 14
cron_minute = 28
cron_day_of_week = 4
Queue

Once submitted you don't have to wait for it to run.  Do:

condor_q -l <jobid> | grep DeferralTime
date --date='1970-01-01 UTC 1247693280 seconds'

The output will show the job to be scheduled either the day it is submitted or the following day depending on when it was submitted.

Comment 2 Jon Thomas 2009-07-31 18:07:10 UTC
These are the configs I tested for the patch on July 29, 2009

cron_hour = the values for 7, 12, 14
cron_minute = the values 10, 28, 37
cron_day_of_week = the values 0,1,2,3,4,5,6,7,* plus not specifying the param
cron_day_of_month = the values 1,10,25,28,30,31,* plus not specifying the param


I also changed the system clock to February, 24 and tested a subset of previous test. This test was mostly to ensure that the month range is constant 31 for *.

Comment 3 Matthew Farrellee 2009-07-31 18:08:08 UTC
Patch pushed upstream, will be present after 7.3.2-0.4

Comment 7 Irina Boverman 2009-10-28 18:09:38 UTC
Release note added. If any revisions are required, please set the 
"requires_release_notes" flag to "?" and edit the "Release Notes" field accordingly.
All revisions will be proofread by the Engineering Content Services team.

New Contents:
Specifying cron_day_of_week values in job files is now working correctly (514730)

Comment 8 Lana Brindley 2009-11-09 02:59:48 UTC
Release note updated. If any revisions are required, please set the 
"requires_release_notes"  flag to "?" and edit the "Release Notes" field accordingly.
All revisions will be proofread by the Engineering Content Services team.

Diffed Contents:
@@ -1 +1,8 @@
-Specifying cron_day_of_week values in job files is now working correctly (514730)+Grid bug fix
+
+C: cron_day_of_week values in job files were being ignored.
+C: jobs are being scheduled either the day it is submitted or the following day (depending on when it was submitted).
+F: The parameters for cron were updated
+R: cron_day_of_week values can now successfully be set for job files
+
+The cron_day_of_week values in job files were being ignored, resulting in jobs being scheduled either the day it is submitted or the following day (depending on when it was submitted). The parameters for cron were updated and the values can now successfully be set for job files.

Comment 9 ppecka 2009-11-09 13:12:02 UTC
The issue has been fixed on RHEL 4.8 / 5.4 i386 / x86_64 on packages:

# rpm -qa | grep -E "(condor)" | sort -u

condor-7.4.1-0.4.el5
condor-qmf-plugins-7.4.1-0.4.el5

-> VERIFIED

Comment 11 errata-xmlrpc 2009-12-03 09:17:22 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-2009-1633.html