Bug 1386278

Summary: [RFE] Job invocations should timeout
Product: Red Hat Satellite Reporter: Daniel Lobato Garcia <dlobatog>
Component: Remote ExecutionAssignee: Adam Ruzicka <aruzicka>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: high Docs Contact:
Priority: high    
Version: 6.1.9CC: bbuckingham, bkearney, dcaplan, dlobatog, ealcaniz, ehelms, fgarciad, inecas, jcallaha, jhutar, psuriset, tbrisker
Target Milestone: UnspecifiedKeywords: FieldEngineering, FutureFeature, PrioBumpGSS, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman_remote_execution-1.3.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 12:36:49 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:
Bug Depends On:    
Bug Blocks: 1479962    
Attachments:
Description Flags
screenshot
none
screenshot-execution none

Description Daniel Lobato Garcia 2016-10-18 14:25:23 UTC
Description of problem:

Certain job invocations could take too long and we want these to time out. 

It would be nice if we could provide a default time out in the job template, and offer an option to override that timeout in the job invocation. 

The timeout timer will start as soon as the job invocation starts, no need to actually measure the execution time on the client.

Comment 3 Ivan Necas 2017-04-18 15:15:38 UTC
What is the expected behaviour when the timeout happens? Killing the job?

Comment 4 Pradeep Kumar Surisetty 2017-04-18 15:26:24 UTC
(In reply to Ivan Necas from comment #3)
> What is the expected behaviour when the timeout happens? Killing the job?

yes
And also give reason why timed out (if possible)

Comment 5 Daniel Lobato Garcia 2017-05-26 14:56:14 UTC
Clearing needinfo as Pradeep replied

Comment 6 Adam Ruzicka 2017-06-14 10:50:55 UTC
Created redmine issue http://projects.theforeman.org/issues/20016 from this bug

Comment 7 Satellite Program 2017-06-14 12:13:46 UTC
Upstream bug assigned to aruzicka

Comment 8 Satellite Program 2017-06-14 12:13:51 UTC
Upstream bug assigned to aruzicka

Comment 10 Satellite Program 2017-07-11 14:12:27 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20016 has been resolved.

Comment 11 Satellite Program 2017-07-26 14:12:40 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20016 has been resolved.

Comment 14 Peter Ondrejka 2017-10-05 13:35:11 UTC
Verified on satellite-6.3.0-19.0.beta.el7sat.noarch, timeout option has been added and is applied correctly on remote hosts, see attached screenshots.

Comment 15 Peter Ondrejka 2017-10-05 13:35:52 UTC
Created attachment 1334828 [details]
screenshot

Comment 16 Peter Ondrejka 2017-10-05 13:36:57 UTC
Created attachment 1334840 [details]
screenshot-execution

Comment 19 errata-xmlrpc 2018-02-21 12:36:49 UTC
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.

https://access.redhat.com/errata/RHSA-2018:0336