Bug 1919405

Summary: uncaught exception after a celery worker process abruptly terminates, resulting in a hung task
Product: Red Hat Satellite Reporter: James Jeffers <jjeffers>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Lai <ltran>
Severity: high Docs Contact:
Priority: medium    
Version: 6.7.0CC: ahumbe, anerurka, bmbouter, egolov, ggainey, hyu, ipanova, ktordeur, ltran, mmccune, patalber, pmoravec, rchan, satellite6-bugs, saydas, tpapaioa, ttereshc, zhunting
Target Milestone: 6.8.4Keywords: PrioBumpGSS, Triaged
Target Release: UnusedFlags: jjeffers: needinfo-
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: pulp-2.21.3.3-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1889795 Environment:
Last Closed: 2021-02-24 12:47:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 9 pulp-infra@redhat.com 2021-02-12 14:06:00 UTC
The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug.

Comment 10 pulp-infra@redhat.com 2021-02-12 14:06:01 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.

Comment 11 pulp-infra@redhat.com 2021-02-12 17:19:18 UTC
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.

Comment 17 Lai 2021-02-22 16:39:49 UTC
Steps to test:

Steps to Reproduce:
1. Invoke some bigger CV publish/promote (with more repos inside)
2. While there are pulp celery workers processing the sync/publish tasks, kill some of them via "kill -SIGHUP <pid>"
3. Check /var/log/messages
4. Verify in the web UI that the foreman task errors out
5. Verify that the task can be resumed and completes successfully

Expected result:
3. log should not show error message or traceback
4. Foreman task should show task error out
5. Task should complete successfull

Actual Result:
3. Log still shows traceback
4. Action:
Actions::Pulp::Repository::CopyAllUnits

{"pulp_tasks"=>
.......................
  "queue"=>
     "reserved_resource_worker-5@<hostname>",
    "state"=>"error",
    "worker_name"=>
     "reserved_resource_worker-5@<hostname>",
    "result"=>nil,
    "error"=>
     {"code"=>"PLP0049",
      "data"=>{"task_id"=>"c2fffb9a-67c4-4238-8fb2-61bf692c40b9"},
      "description"=>
       "Worker terminated abnormally while processing task c2fffb9a-67c4-4238-8fb2-61bf692c40b9.  Check the logs for details",
      "sub_errors"=>[]},
    "_id"=>{"$oid"=>"6033cbf0dbf4aca8772c8791"},
    "id"=>"6033cbf0dbf4aca8772c8791"},
.........................................
5.  Task completes successfully

Name:Publish content view 'some'; organization 'Default Organization'
Start at:1 hour ago
Result: success
Started at:1 hour ago
Triggered by:admin
Ended at:56 minutes ago
Execution type:Immediate
Start before:-

Though there is still a traceback in the log, this does not affect how the fix to the problem was applied.  The task error out and does not hang anymore and users can resume the task without issues.

Verified on 6.8.4_02 with pulp-rpm-plugins-2.21.3.3-1.el7sat.noarch

Comment 22 errata-xmlrpc 2021-02-24 12:47:13 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 (Satellite 6.8.4 Async Bug Fix Update), 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-2021:0654

Comment 23 pulp-infra@redhat.com 2021-05-17 10:12:14 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.

Comment 24 pulp-infra@redhat.com 2021-05-17 10:12:18 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.