Project

Profile

Help

Issue #3508

closed

Artifact files aren't getting deleted along with artifacts

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

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

Description

Supposedly this worked before.

(pulp) [vagrant@pulp3 pulp]$ echo "supercalifragilisticexpialidocious" > foo.tar.gz
(pulp) [vagrant@pulp3 pulp]$ http --form POST http://localhost:8000/api/v3/artifacts/ file@./foo.tar.gz                                                                                                          
HTTP/1.0 201 Created

{
    "_href": "http://localhost:8000/api/v3/artifacts/d521c230-dc8f-421a-b41b-a886d6c60bd7/",
    "file": "/var/lib/pulp/artifact/53/9b0e714e52d8eacc9ba9dcce0670d7be8eb717de38cc7b99684aa27f3a3b8f",
    "md5": "070d5845587d4b2f15658d101b7c2623",
    "sha1": "8da3f1048702f4561d1e2a5f9c97172cee8f824b",
    "sha224": "d233557277e29e23a96a1d5004c138cbf1f49982a442204e483bf2d4",
    "sha256": "539b0e714e52d8eacc9ba9dcce0670d7be8eb717de38cc7b99684aa27f3a3b8f",
    "sha384": "2450083ccd995f5792a2590c33376bcecd28039350f447783f4c3818ed498c30ec3d21263a06fc28c8c3f95e0cdd16c1",
    "sha512": "0ec68ac435b4eccd3121370e1a87cb71f28754e6dbd11a313240315f49c19857bb1a09f4129eb3dd75058549b9e334646ba4198493690ccea05a7ed25a144cdf",
    "size": 35
}

(pulp) [vagrant@pulp3 pulp]$ http DELETE http://localhost:8000/api/v3/artifacts/d521c230-dc8f-421a-b41b-a886d6c60bd7/
HTTP/1.0 204 No Content

(pulp) [vagrant@pulp3 pulp]$ cat /var/lib/pulp/artifact/53/9b0e714e52d8eacc9ba9dcce0670d7be8eb717de38cc7b99684aa27f3a3b8f
supercalifragilisticexpialidocious
(pulp) [vagrant@pulp3 pulp]$ http http://localhost:8000/api/v3/artifacts/d521c230-dc8f-421a-b41b-a886d6c60bd7/
HTTP/1.0 404 Not Found

Related issues

Related to Pulp - Story #3442: As a user, I can clean up both orphaned content units and orphaned artifactsCLOSED - CURRENTRELEASEdaviddavis

Actions
Actions #1

Updated by daviddavis about 6 years ago

  • Related to Story #3442: As a user, I can clean up both orphaned content units and orphaned artifacts added
Actions #3

Updated by daviddavis about 6 years ago

  • Status changed from NEW to POST
  • Assignee set to daviddavis

Added by daviddavis about 6 years ago

Revision 99cb168a | View on GitHub

Clean up file on Artifact deletion

fixes #3508 https://pulp.plan.io/issues/3508

Added by daviddavis about 6 years ago

Revision 99cb168a | View on GitHub

Clean up file on Artifact deletion

fixes #3508 https://pulp.plan.io/issues/3508

Actions #4

Updated by daviddavis about 6 years ago

  • Status changed from POST to MODIFIED
Actions #5

Updated by dkliban@redhat.com about 6 years ago

  • Sprint/Milestone set to 3.0.0
Actions #6

Updated by bmbouter almost 5 years ago

  • Tags deleted (Pulp 3, Pulp 3 MVP)
Actions #7

Updated by bmbouter over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF