Actions
Issue #7980
closedThe state for canceled tasks is set to failed
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 93
Quarter:
Description
This started with the release of pulpcore 3.9. When a task is canceled, its state is 'failed' instead of 'canceled'.
Steps to reproduce¶
remote_href=$(http :/pulp/api/v3/remotes/file/file/ name=$RANDOM url=https://fixtures.pulpproject.org/file-perf/PULP_MANIFEST | jq -r '.pulp_href')
repo_href=$(http :/pulp/api/v3/repositories/file/file/ name=$RANDOM remote=$remote_href | jq -r '.pulp_href')
task_href=$(http POST :${repo_href}sync/ | jq -r '.task')
echo $task_href
http PATCH :${task_href} state=canceled
http :$task_href | jq -r '.state'
This will out put failed
when it should output canceled
. I noticed that the task response from the cancel request correctly shows canceled
.
Related issues
Actions
Fix another scenario where canceled tasks could be marked failed
closes: #7980 https://pulp.plan.io/issues/7980