Bug 1460240

Summary: Failed task has state 'planning' and result 'pending' instead of 'error'
Product: Red Hat Satellite Reporter: Stanislav Tkachenko <stkachen>
Component: Tasks PluginAssignee: Adam Ruzicka <aruzicka>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.3.0CC: aruzicka, bbuckingham, bkearney, dlezzoum, inecas, jcallaha
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-tasks-0.9.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:49:54 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:
Attachments:
Description Flags
Screenshot of Tasks page none

Description Stanislav Tkachenko 2017-06-09 12:57:16 UTC
Created attachment 1286409 [details]
Screenshot of Tasks page

Description of problem:
I've tried to create organization with existing name via API, corresponding task obviously failed, however under Monitor/Tasks it is listed with state 'planning' and result 'pending' (check attached screenshot). On 6.2 it was 'stopped' and 'error'.

Version-Release number of selected component (if applicable):
Satellite 6.3 Snap 1.0:
* katello-3.4.0-3.el7sat.noarch
* foreman-1.15.0-1.el7sat.noarch
* satellite-6.3.0-15.0.beta.el7sat.noarch

How reproducible:
Always

Steps to Reproduce:
1. Create organization
2. Try to create another organization with the same name
3. Check task's status at Monitor/Tasks

Actual results:
State 'planning' and result 'pending'

Expected results:
State 'stopped' and result 'error'

Additional info:

Comment 3 Adam Ruzicka 2017-06-12 10:46:04 UTC
Although the upstream bug describes a bit different situation, it was caused by the same thing.

Moving to POST since the bug is fixed in upstream (and released in foreman-tasks-0.9.2)

Comment 4 Djebran Lezzoum 2017-07-10 15:33:37 UTC
Verified and validated by automation

Comment 6 Satellite Program 2018-02-21 16:49:54 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