Bug #33598
closedTask is failing but still showing success state
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2008809
Description of problem:
The task has a failed state but shows success without errors.
3: Actions::Candlepin::AsyncHypervisors (success) [ 0.03s / 0.03s ]
---
hypervisors: []
task:
created: '2021-09-28T20:22:51+0000'
updated: '2021-09-28T20:22:51+0000'
id: 8ac983b57bbb12fd017c2e13076c1b29
name: Hypervisor Update
group:
origin: satellite6-example.local
executor:
principal: foreman_admin
state: FAILED <--------
previousState: CREATED
startTime:
endTime:
attempts: 0
maxAttempts: 1
statusPath: "/jobs/8ac983b57bbb12fd017c2e13076c1b29"
key: HypervisorUpdateJob
---
Version-Release number of selected component (if applicable):
6.9
How reproducible:
Not easily
Steps to Reproduce:
1.
2.
3.
Actual results:
the state is failed inside the dynflow tasks but the general task is showing success and green state.
Expected results:
Failed red state.
Additional info: