Bug 670891
Summary: | Orphaned packages (no longer in a repo) are left on the server | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | Jay Dobies <jason.dobies> |
Component: | z_other | Assignee: | Pradeep Kilambi <pkilambi> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | unspecified | CC: | jmatthew, pkilambi, skarmark, tsanders |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | Sprint 21 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-08-16 12:08:14 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 647488 |
Description
Jay Dobies
2011-01-19 15:44:20 UTC
Yes. We do need to provide a way of overrriding to keep orphaned packages considering a following RFE: https://bugzilla.redhat.com/show_bug.cgi?id=649765 I addressed this as part of CDN story. The behavior is as follows: * when you delete a repo, if the package associated to that repo are not part of any other repo, we remove those packages. * There is a keep_files option on delete api if you chose to keep the files. default is to nuke * If a package is uploaded without associating to a repo, use content delete to remove these orphaned packages pulp-admin content delete -f foo.rpm -f test.iso or pulp-admin content list --orphaned > orphaned.csv pulp-admin content delete --csv=orphaned.csv Build: 0.141 verified [root@preethi ~]# rpm -q pulp pulp-0.0.144-1.fc14.noarch [root@preethi ~]# pulp-admin content list --orphaned >orphaned.csv [root@preethi ~]# [root@preethi ~]# [root@preethi ~]# pulp-admin content delete -csv=orphaned.csv Usage: pulp-admin <options> content delete <options> pulp-admin: error: no such option: -c [root@preethi ~]# pulp-admin content delete --csv=orphaned.csv Successfully delete content [grinder-0.0.81-1.fc14.noarch.rpm] from pulp server Successfully delete content [gofer-0.20-1.fc14.noarch.rpm] from pulp server Content with filename [grinder-0.0.81-1.noarch.rpm.1] could not be found on server; skipping delete Successfully delete content [pulp-cds-0.0.143-1.fc14.noarch.rpm] from pulp server Successfully delete content [antlr-2.7.7-6.fc12.x86_64.rpm] from pulp server Closing with Community Release 15 pulp-0.0.223-4. Closing with Community Release 15 pulp-0.0.223-4. |