Project

Profile

Help

Issue #3508

Artifact files aren't getting deleted along with artifacts

Added by daviddavis over 1 year ago. Updated 6 months ago.

Status:
MODIFIED
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Severity:
2. Medium
Version:
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

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 artifacts MODIFIED Actions

Associated revisions

Revision 99cb168a View on GitHub
Added by daviddavis over 1 year ago

Clean up file on Artifact deletion

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

Revision 99cb168a View on GitHub
Added by daviddavis over 1 year ago

Clean up file on Artifact deletion

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

Revision 99cb168a View on GitHub
Added by daviddavis over 1 year ago

Clean up file on Artifact deletion

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

History

#1 Updated by daviddavis over 1 year ago

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

#2 Updated by daviddavis over 1 year ago

  • Smash Test set to 908

#3 Updated by daviddavis over 1 year ago

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

#4 Updated by daviddavis over 1 year ago

  • Status changed from POST to MODIFIED

#5 Updated by dkliban@redhat.com over 1 year ago

  • Sprint/Milestone set to 3.0

#6 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3, Pulp 3 MVP)

Please register to edit this issue

Also available in: Atom PDF