Project

Profile

Help

Issue #1747

closed

Import upload task has unexpected/missing information on error

Added by daviddavis about 8 years ago. Updated almost 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
Category:
-
Sprint/Milestone:
-
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

Related to Pulp - Issue #913: CLI shows a puppet upload is successful even though server side has an exceptionCLOSED - DUPLICATEttereshcActions
Has duplicate Puppet Support - Issue #1189: Puppet module upload failure error reporting is inconsistent with other tasksCLOSED - DUPLICATEActions

Also available in: Atom PDF