Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2066869

Summary: Satellite task result is showing state pending and result success state
Product: Red Hat Satellite Reporter: Sneha Arya <snarya>
Component: DynflowAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.10.0CC: aruzicka
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-26 12:04:57 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 Sneha Arya 2022-03-22 16:29:58 UTC
Description of problem:

Satellite task result is showing state pending and result success state.


Version-Release number of selected component (if applicable):
6.10


How reproducible:
It's rare to reproduce but it occurred in customer's environment.


Additional info:

Foreman rake is failing with following errors:

~~~
# foreman-rake foreman_tasks:export_tasks TASK_SEARCH="id= XYZ

Exporting all tasks matching filter id=XZY
Gathering 1 tasks.
rake aborted!
NoMethodError: undefined method `id' for nil:NilClass



# hammer task info --id XYZ
ID:         XYZ
Action:
State:      pending
Result:     success
Started at:
Ended at:
Owner:
~~~

Comment 1 Adam Ruzicka 2022-03-22 16:35:37 UTC
Yes, it can happen. As you mentioned it is rare, but it does happen from time to time. In the past most of the cases were caused by the service being killed (or DB becoming unavailable) at a specifically wrong time.

Could we get more details just in case? Screenshots from Dynflow console?

Comment 3 Adam Ruzicka 2022-04-26 12:04:57 UTC
This seems to be a duplicate of #2066870, which seems to have more information that this one. In case I missed a difference between the two bugs, feel free to reopen.

*** This bug has been marked as a duplicate of bug 2066870 ***