Project

Profile

Help

Issue #5426

closed

orphan cleanup does not properly find orphaned content

Added by dkliban@redhat.com over 4 years ago. Updated over 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:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Orphan clean up needs to find all content that is not in any repository version. The current query[0] considers content NOT orphaned if it has ever been in any repository version. The query needs to take into consideration the 'version_added' and 'version_removed' fields[1].

[0] https://github.com/pulp/pulpcore/blob/master/pulpcore/app/tasks/orphan.py#L10-L11
[1] https://github.com/pulp/pulpcore/blob/master/pulpcore/app/models/repository.py#L175-L179

Also available in: Atom PDF