| Summary: | inconsistent metadata can cause orphaned packages during sync | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Pradeep Kilambi <pkilambi> |
| Component: | user-experience | Assignee: | Pradeep Kilambi <pkilambi> |
| Status: | CLOSED WONTFIX | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | cstpierr, jason.dobies, jmatthew, skarmark |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-11-28 23:27:10 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Pradeep Kilambi
2011-11-14 22:00:42 UTC
commit faa3c7102c687c2aa5dc8d700bc4cd1a1bcc6639 build: 0.254. verified [root@preethi ~]# rpm -q pulp pulp-0.0.254-7.fc15.noarch [root@preethi ~]# pulp-admin repo create --id=753940 --feed=http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/RedHat/6/x86_64/current/ Successfully created repository [ 753940 ] [root@preethi ~]# pulp-admin repo sync --id=753940 -F Sync for repository 753940 started Sync: Finished 18/18 new items downloaded 0/18 existing items processed Item Details: RPMs: 18/18 [root@preethi ~]# pulp-admin content list --orphaned No orphaned content on server This does not appear to have fixed the issue. Unfortunately, I'm not sure listing orphaned content is a valid test. % pulp-admin repo list | grep -A 3 generic-6-x86_64-hp Id generic-6-x86_64-hp Name Generic 6 x86_64 - HP Repo URL https://mirror2.example.com/pulp/repos/generic-6-x86_64-hp/ Feed URL http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/RedHat/6/x86_64/current/ Feed Type remote Content Type yum % pulp-admin repo sync --id=generic-6-x86_64-hp -F Sync for repository generic-6-x86_64-hp started Sync: Finished 0/18 new items downloaded 18/18 existing items processed Item Details: RPMs: 18/18 % pulp-admin repo status --id=generic-6-x86_64-hp +------------------------------------------+ Status for generic-6-x86_64-hp +------------------------------------------+ Repository: generic-6-x86_64-hp Number of Packages: 12 Last Sync: 2011-12-16 10:46:36-05:00 % rpm -q pulp pulp-0.0.254-8.el6.noarch So if it's not orphaning the packages that's swell, but I'm still winding up with fewer packages in Pulp than were in the upstream repo. the packages are definitely not orphaned $ ls -l /var/lib/pulp/repos/SDR/downloads/ProLiantSupportPack/RedHat/6/x86_64/current/*.rpm |wc -l 18 so ginder is definitely working as expected. Pulp though probably has an issue; i'll need to look into whats pulp is doing at the import stage. Will keep you posted. this is just due to poorly constructed metadata from the url you're using. Pulp is doing things just fine, its the mismatch in package information vs the href in primary.xml throwing things off at the pulp level. The fix i put in grinder, prevents orphaning the packages. So we're one step ahead. I'll see there is anything i can do at pulp side to work around. Pulp is just trying to import the metadata downloaded from the repo and its just not matching. Orphans are handled totally differently in 2.x. It's outside of metadata on the filesystem entirely, it's determined based on database knowledge of the unit being associated with one or more repos. We have no plans for another 1.x release so I'm closing this bug out. |