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 1596642

Summary: Task execution stuck as "pending" when a callback from smart proxy to foreman fails
Product: Red Hat Satellite Reporter: Radovan Drazny <rdrazny>
Component: Remote ExecutionAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: aruzicka, inecas, rdrazny
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: 2018-06-29 17:10:59 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 Radovan Drazny 2018-06-29 11:23:44 UTC
Description of problem:
When a callback from the smart proxy to foreman fails during a tast execution, the task will stay in pending state forever. This was encountered together with BZ 1596636.

Version-Release number of selected component (if applicable):
Satellite 6.4 Snap 9

Steps to Reproduce:
See the BZ 1596636 for the reproducer, but any fail during a callback will probably produce a same problem.

Actual results:
Task is stuck as "Pending" forever

Expected results:
Task is successfully completed.

Additional info:
Raw output of the stuck task:


Id: 709cffa0-74e5-4347-8f72-3b1fb3f77828
Label: Actions::RemoteExecution::RunHostJob
Duration: about 17 hours
Raw input:

{"host"=>{"id"=>155, "name"=>"docker1container100.example.com"},
 "job_category"=>"Commands",
 "description"=>"Run date",
 "delegated_action_id"=>2,
 "locale"=>"en",
 "current_user_id"=>4}

Raw output:

{}

External Id: 4c13db96-3e99-4f91-8493-58c2147e2bb5

Comment 3 Ivan Necas 2018-06-29 17:10:59 UTC
Marking as duplicate of 1431956, as that's where we tried to handle rex resiliency.

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

Comment 4 Radovan Drazny 2018-08-27 11:18:55 UTC
There are no side effect of the stuck task I'm aware of.