Project

Profile

Help

Issue #449

closed

Consumer bind/unbind operations do not set task state to failed or use the error field in the TaskStatus when there is a problem

Added by rbarlow about 9 years ago. Updated almost 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Master
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

If there are errors during a consumer bind operation (and I suspect unbind as well), the Pulp server will set the Task state to "finished" instead of "failed". Additionally, it will not include any human readable error message in the Task.

The only way to detect failures is to inspect the progress report, and even that doesn't include a generic enough data structure for the platform CLI to be able to find and render error messages for users.

We need to refactor the error handling code in this area to use the new standard Task error state and message fields.

+ This bug was cloned from Bugzilla Bug #1107844 +

Actions #1

Updated by rbarlow about 9 years ago

Because of this bug, attempting to bind a consumer that lacks the RPM handlers will lead to this error message:

pulp-admin -u admin -p admin rpm consumer bind --repo-id testrepo --consumer-id c1
This command may be exited via ctrl+c without affecting the request.

[-]
Waiting to begin...

[-]
Running...

Task Failed

Please see the Pulp server logs for details.

If we fix this bug, pulp-admin would be able to tell the user the specific error that happened without having to refer them to the logs.

+ This comment was cloned from Bugzilla #1107844 comment 1 +

Actions #2

Updated by bmbouter about 9 years ago

  • Severity changed from Medium to 2. Medium
Actions #3

Updated by bmbouter almost 5 years ago

  • Status changed from NEW to CLOSED - WONTFIX
Actions #4

Updated by bmbouter almost 5 years ago

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

Actions #5

Updated by bmbouter almost 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF