Bug 1944539
| Summary: | [Regression] Task no longer cancel when restarting the pulp worker | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Hao Chang Yu <hyu> |
| Component: | Pulp | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Vladimír Sedmík <vsedmik> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.8.0 | CC: | bmbouter, dalley, ggainey, jjansky, pmoravec, rchan, ttereshc |
| Target Milestone: | Unspecified | Keywords: | Regression, Triaged |
| 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-10-10 13:41:58 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
Hao Chang Yu
2021-03-30 06:50:18 UTC
I can confirm Hao's finding. Sat6.8.4 (pulp-server-2.21.3.3-1): - stopping pulp_workers service puts the task to "error" state - qpidd's queue contains the message with the task - starting the service again starts the task again Sat6.9.0 (pulp-server-2.21.5-2.el7sat.noarch): - stopping pulp_workers service puts the task to "cancelled" state - THIS is the key difference - qpidd's queue contains the message with the task - starting the service again, nothing happens (I assume the worker fetches the message, checks the task was cancelled so it ignores it) Prior Sat6.8.?? (pulp-server-2.21.3-1): - stopping pulp_workers service puts the task to "cancelled" state as well. So really, some change between 2.21.3-1 and 2.21.3.3-1 makes the difference that stopping pulp workers dont cancel the running task, but put them to error state. The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug. The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug. Hao, Pavel, please, give this patch a try https://patch-diff.githubusercontent.com/raw/pulp/pulp/pull/4023.patch The code changes from BZ#1919405 handle the failure of the `on_failure` handler. It seems logical to put task in the error state in such case. So with the patch provided, you'll still see the error state but the task should no longer be re-run. The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug. All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST. |