Bug 1390933

Summary: invalid state transition planned >> paused on foreman-tasks restart
Product: Red Hat Satellite Reporter: Ivan Necas <inecas>
Component: Tasks PluginAssignee: Ivan Necas <inecas>
Status: CLOSED ERRATA QA Contact: Renzo Nuccitelli <rnuccite>
Severity: high Docs Contact:
Priority: high    
Version: 6.2.0CC: bbuckingham, bkearney, inecas, jcallaha, rnuccite, sreber, zhunting
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-dynflow-0.8.13.3-2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1394385 (view as bug list) Environment:
Last Closed: 2016-12-12 17:15:22 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:
Bug Depends On:    
Bug Blocks: 1394385    

Description Ivan Necas 2016-11-02 09:41:09 UTC
Description of problem:
At some occasions, the task data can get into a state that prevent the system to recover properly from inconsistent state.

How reproducible:
Rarely

Steps to Reproduce:
1. kill -9 dynflow executor while some task is running (has to be shortly after enough triggering some tasks)
2. foreman-tasks restart

Actual results:
the  task still acting as being run by killed executor

Expected results:
the task marked as planned on running by new executor

Comment 2 Ivan Necas 2016-11-02 11:06:23 UTC
Created redmine issue http://projects.theforeman.org/issues/17178 from this bug

Comment 3 Ivan Necas 2016-11-02 11:23:35 UTC
It is another case of https://bugzilla.redhat.com/show_bug.cgi?id=1379820

Comment 5 Bryan Kearney 2016-11-02 12:11:32 UTC
Upstream bug assigned to inecas

Comment 6 Bryan Kearney 2016-11-02 12:11:34 UTC
Upstream bug assigned to inecas

Comment 7 Bryan Kearney 2016-11-07 11:11:21 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17178 has been resolved.

Comment 8 Ivan Necas 2016-12-01 22:37:26 UTC
*** Bug 1379820 has been marked as a duplicate of this bug. ***

Comment 10 Renzo Nuccitelli 2016-12-08 18:38:29 UTC
A deterministic way of reproduce it:

1. Run service foreman-tasks stop
2. Initiate your task
3. Check planned state working as expected
4. Run Run service foreman-tasks start

And now system is working for tasks on planned state on version 6.2.5.

Comment 11 Renzo Nuccitelli 2016-12-08 18:38:54 UTC
No info is needed anymore.

Comment 13 errata-xmlrpc 2016-12-12 17:15:22 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/RHBA-2016:2940