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.
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.
Moved to https://pulp.plan.io/issues/449