Actions
Issue #1747
closedImport upload task has unexpected/missing information on error
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Master
Platform Release:
2.8.3
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
When I upload a text file to an rpm repo, I get the following task information. It doesn't conform to what we expect (we expect the state to be "error" and either error or exception to be populated). Also, the error it does report isn't that helpful ("unexpected error occurred importing uploaded file").
{
"exception": null,
"task_type": "pulp.server.managers.content.upload.import_uploaded_unit",
"_href": "/pulp/api/v2/tasks/74df89f9-e7f9-4a85-82d9-e06384057023/",
"task_id": "74df89f9-e7f9-4a85-82d9-e06384057023",
"tags": [
"pulp:repository:Default_Organization-Test-foo",
"pulp:action:import_upload"
],
"finish_time": "2016-03-04T19:45:13Z",
"_ns": "task_status",
"start_time": "2016-03-04T19:45:13Z",
"traceback": null,
"spawned_tasks": [],
"progress_report": {},
"queue": "reserved_resource_worker-0@centos7-devel.example.com.dq",
"state": "finished",
"worker_name": "reserved_resource_worker-0@centos7-devel.example.com",
"result": {
"details": {
"errors": [
"unexpected error occurred importing uploaded file"
]
},
"success_flag": false,
"summary": ""
},
"error": null,
"_id": {
"$oid": "56d9e5c9f2da5c2f93d8391d"
},
"id": "56d9e5c9f2da5c2f93d8391d"
}
Related issues
Actions
Add error message to the upload report
re #1747 https://pulp.plan.io/issues/1747