Project

Profile

Help

Issue #4474

closed

One shot uploader doesn't populate 'created_resource' on task

Added by daviddavis about 5 years ago. Updated over 4 years ago.

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

Description

Upload an rpm with the one shot uploader and you'll notice that the task's created_resource field is not populated:

$ http --form POST http://localhost:8000/pulp/api/v3/rpm/upload/ file@./camel-0.1-1.noarch.rpm
$ http :8000/pulp/api/v3/tasks/1/
HTTP/1.1 200 OK
Allow: GET, DELETE, HEAD, OPTIONS
Content-Length: 422
Content-Type: application/json
Date: Tue, 26 Feb 2019 10:43:42 GMT
Server: WSGIServer/0.2 CPython/3.7.2
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "_created": "2019-02-26T10:43:34.818055Z",
    "_href": "/pulp/api/v3/tasks/1/",
    "created_resources": [],
    "error": null,
    "finished_at": "2019-02-26T10:43:35.144069Z",
    "job_id": "f791e73c-44b1-48a4-860a-932e95d7f8c4",
    "name": "pulp_rpm.app.upload.one_shot_upload",
    "non_fatal_errors": [],
    "parent": null,
    "progress_reports": [],
    "spawned_tasks": [],
    "started_at": "2019-02-26T10:43:35.063511Z",
    "state": "completed",
    "worker": "/pulp/api/v3/workers/3/"
}
Actions #1

Updated by ppicka about 5 years ago

  • Assignee set to ppicka
Actions #2

Updated by ipanova@redhat.com about 5 years ago

  • Status changed from NEW to ASSIGNED
  • Sprint set to Sprint 49
Actions #3

Updated by ttereshc about 5 years ago

  • Triaged changed from No to Yes

Added by ppicka about 5 years ago

Revision 120b8f29 | View on GitHub

Populate created resources

As one shot upload run in task it should return some created resources. As repository is optional the task now returns package or package and repository version as resource created.

closes: #4474 https://pulp.plan.io/issues/4474

Signed-off-by: Pavel Picka

Actions #4

Updated by ppicka about 5 years ago

  • Status changed from ASSIGNED to POST
Actions #5

Updated by rchan about 5 years ago

  • Sprint changed from Sprint 49 to Sprint 50
Actions #6

Updated by ppicka about 5 years ago

  • Status changed from POST to MODIFIED
Actions #7

Updated by bmbouter almost 5 years ago

  • Tags deleted (Pulp 3)
Actions #8

Updated by ttereshc over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF