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

Bug 1074345

Summary: initial watchdog value at start of task is 60*60*24 times too long
Product: [Retired] Beaker Reporter: Dan Callaghan <dcallagh>
Component: schedulerAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact: xjia <xjia>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: developCC: aigao, asaha, dcallagh, llim, rmancy, xjia, xtian
Target Milestone: 0.16Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-17 03:01:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dan Callaghan 2014-03-09 23:03:30 UTC
When a task is started its initial watchdog value is being set in days, not seconds (e.g. 3000 days instead of 3000 seconds). This also affects recipes immeditely after the reboot, because Beaker starts the first task in the recipe in that case.

Steps to reproduce:
1. Submit a job
2. Wait until the recipe is scheduled and the system is rebooted
3. Refresh job page

Actual results: time remaining for the first task is 2999 days

Expected results: time remaining should be 50 minutes (20 minutes for /distribution/install + 30 minutes leeway)

Comment 1 Dan Callaghan 2014-03-09 23:06:23 UTC
(In reply to Dan Callaghan from comment #0)
> Expected results: time remaining should be 50 minutes (20 minutes for
> /distribution/install + 30 minutes leeway)

It's not related to this bug, but I actually think 50 minutes is way too long in this particular case. The kill time after first reboot should be more like 15 minutes. As soon as Anaconda reaches %pre the watchdog is extended by 2 hours for the actual installation, so this time is purely for the boot into Anaconda. There is also no reason why it should depend on the expected run time for /distribution/install. So in addition to fixing the actual bug I am proposing to hardcode the watchdog extension after first reboot to 15 minutes.

Comment 3 Dan Callaghan 2014-03-10 01:00:21 UTC
On Gerrit: http://gerrit.beaker-project.org/2901

(In reply to Dan Callaghan from comment #1)
> It's not related to this bug, but I actually think 50 minutes is way too
> long in this particular case. The kill time after first reboot should be
> more like 15 minutes.

http://gerrit.beaker-project.org/2902

Comment 6 Dan Callaghan 2014-03-17 03:01:46 UTC
Beaker 0.16.0 has been released.