Project

Profile

Help

Issue #6496

closed

Created Resources created and removed later are displayed as null in the task

Added by dalley about 4 years ago. Updated almost 4 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
Category:
-
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 76
Quarter:

Description

Create a distribution and delete it. Poll on the task that have created the distribution

$ http POST $BASE_ADDR/pulp/api/v3/distributions/rpm/rpm/     publication=/pulp/api/v3/publications/rpm/rpm/2f46a52c-bb47-4d15-a208-fec84107fa19/ name=centos71 base_path=centos71
HTTP/1.1 202 Accepted
Allow: GET, POST, HEAD, OPTIONS
Connection: close
Content-Length: 67
Content-Type: application/json
Date: Tue, 21 Apr 2020 15:57:04 GMT
Server: gunicorn/20.0.4
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "task": "/pulp/api/v3/tasks/3c6697d1-f54e-4338-b0eb-f6db91cf7df1/"
}

(pulp) [vagrant@pulp2-nightly-pulp3-source-centos7 pulp_rpm]$ http GET $BASE_ADDR/pulp/api/v3/tasks/3c6697d1-f54e-4338-b0eb-f6db91cf7df1/
HTTP/1.1 200 OK
Allow: GET, PATCH, DELETE, HEAD, OPTIONS
Connection: close
Content-Length: 583
Content-Type: application/json
Date: Tue, 21 Apr 2020 15:57:12 GMT
Server: gunicorn/20.0.4
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "child_tasks": [],
    "created_resources": [
        "/pulp/api/v3/distributions/rpm/rpm/a587fe48-c0aa-40ba-8017-153cf2e3ac96/"
    ],
    "error": null,
    "finished_at": "2020-04-21T15:57:05.243262Z",
    "name": "pulpcore.app.tasks.base.general_create",
    "parent_task": null,
    "progress_reports": [],
    "pulp_created": "2020-04-21T15:57:04.651024Z",
    "pulp_href": "/pulp/api/v3/tasks/3c6697d1-f54e-4338-b0eb-f6db91cf7df1/",
    "reserved_resources_record": [
        "/api/v3/distributions/"
    ],
    "started_at": "2020-04-21T15:57:04.799416Z",
    "state": "completed",
    "task_group": null,
    "worker": "/pulp/api/v3/workers/972ff6d6-7b2d-458d-b507-d4e065262760/"
}

(pulp) [vagrant@pulp2-nightly-pulp3-source-centos7 pulp_rpm]$ http DELETE $BASE_ADDR/pulp/api/v3/distributions/rpm/rpm/a587fe48-c0aa-40ba-8017-153cf2e3ac96/
HTTP/1.1 202 Accepted
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Connection: close
Content-Length: 67
Content-Type: application/json
Date: Tue, 21 Apr 2020 15:57:36 GMT
Server: gunicorn/20.0.4
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "task": "/pulp/api/v3/tasks/a2530273-17f9-41a7-839e-158329300951/"
}

(pulp) [vagrant@pulp2-nightly-pulp3-source-centos7 pulp_rpm]$ http GET $BASE_ADDR/pulp/api/v3/tasks/3c6697d1-f54e-4338-b0eb-f6db91cf7df1/
HTTP/1.1 200 OK
Allow: GET, PATCH, DELETE, HEAD, OPTIONS
Connection: close
Content-Length: 513
Content-Type: application/json
Date: Tue, 21 Apr 2020 15:57:39 GMT
Server: gunicorn/20.0.4
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "child_tasks": [],
    "created_resources": [
        null
    ],
    "error": null,
    "finished_at": "2020-04-21T15:57:05.243262Z",
    "name": "pulpcore.app.tasks.base.general_create",
    "parent_task": null,
    "progress_reports": [],
    "pulp_created": "2020-04-21T15:57:04.651024Z",
    "pulp_href": "/pulp/api/v3/tasks/3c6697d1-f54e-4338-b0eb-f6db91cf7df1/",
    "reserved_resources_record": [
        "/api/v3/distributions/"
    ],
    "started_at": "2020-04-21T15:57:04.799416Z",
    "state": "completed",
    "task_group": null,
    "worker": "/pulp/api/v3/workers/972ff6d6-7b2d-458d-b507-d4e065262760/"
}



Also available in: Atom PDF