Description of problem: https://pulp-dev-guide.readthedocs.org/en/latest/conventions/exceptions.html#error-details There is a discrepancy in the state of the task's status and information that is hold in the error details. State of the task is 'finished' though the 'error' contains "PLP0007"" error code that tells us about some pulp error( from docs: The following segments have been established * PLP0000-PLP0999 - General Server Errors (and legacy PulpException errors)) Note: the repo is deleted normally. $ curl -H "Accept: application/json" -X GET -k -u admin:admin 'https://example.com/pulp/api/v2/tasks/b4eec9bf-5a5a-412d-8832-36bfd568a83c/'|python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1040 100 1040 0 0 1062 0 --:--:-- --:--:-- --:--:-- 1062 { "_href": "/pulp/api/v2/tasks/b4eec9bf-5a5a-412d-8832-36bfd568a83c/", "_id": { "$oid": "53ec9fbeb4f7604753993f51" }, "_ns": "task_status", "error": { "code": "PLP0007", "data": { "repo_id": "test_repo" }, "description": "Error occurred while cascading delete of repository test_repo to distributor bindings associated with it.", "sub_errors": [ { "code": "PLP0009", "data": { "resources": { "distributor_id": "yum_distributor", "repo_id": "test_repo" } }, "description": "Missing resource(s): repo_id=test_repo, distributor_id=yum_distributor", "sub_errors": [] } ] }, "exception": null, "finish_time": "2014-08-14T11:38:38Z", "id": "53ec9fbec91e3112048830c7", "progress_report": {}, "queue": "reserved_resource_worker-0.compute.amazonaws.com.dq", "result": null, "spawned_tasks": [], "start_time": "2014-08-14T11:38:38Z", "state": "finished", "tags": [ "pulp:repository:test_repo", "pulp:action:delete" ], "task_id": "b4eec9bf-5a5a-412d-8832-36bfd568a83c", "task_type": "pulp.server.tasks.repository.delete", "traceback": null } Version-Release number of selected component (if applicable): 2.4.1-0.1.alpha How reproducible: Steps to Reproduce: 1. create consumer,repo 2.bind consumer to the repo 3.delete repo 4. poll task details Actual results: Expected results: Additional info:
We believe this may already be fixed in 2.4-dev. Please make sure. If it is, please move this bug to ON_QA for QE ACK.
tested OK for me against 2.4-dev branch. Moving to ON_QA.
should be MODIFIED actually. Fixing state.
build: 2.5.0-0.6.beta
Verified.