Had exactly the same issue - Pulp 2.8.6 did not fix it. Finally have a 
workaround.

My understanding is that while 2.8.6 fixes the bug, if there have been no 
upstream changes in the repo since you updated Pulp to 2.8.6, the repo will 
remain in a broken state. I think this is because metadata does not get 
regenerated if there are no upstream changes.

So I forced a content change by deleting a file from the Katello repo. 
Katello will not let you remove packages from Red Hat repos so I used 
pulp-admin, something like:


*pulp-admin -u admin -p <password> rpm repo remove rpm 
--match="filename=<something.rpm>" 
--repo-id=NIWA-Prod-Server-RHEL7_Server-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_RPMs_x86_64_7Server*

Removing any one .rpm file from the repo does the job.
Then I ran sync with:


*pulp-admin -u admin -p <password> rpm repo sync run 
--repo-id=NIWA-Prod-Server-RHEL7_Server-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_RPMs_x86_64_7Server*

And the sync completed successfully. I was now able to sync the same repo 
from Katello or using hammer and it completes successfully.

Abir

On Wednesday, August 31, 2016 at 7:01:55 AM UTC+10, Dylan Baars wrote:
>
> Hi Chris,
>
> here's the output, is this what I should be expecting?
>
> [root@wellkatello ~]# mongo pulp_database --eval 
> 'db.migration_trackers.find().forEach(printjson)'
> MongoDB shell version: 2.6.11
> connecting to: pulp_database
> {
>         "_id" : ObjectId("56662ddf244b0e226d6293fb"),
>         "version" : 23,
>         "name" : "pulp.server.db.migrations",
>         "_ns" : "migration_trackers"
> }
> {
>         "_id" : ObjectId("56662ddf244b0e226d6293fc"),
>         "version" : 32,
>         "name" : "pulp_rpm.plugins.migrations",
>         "_ns" : "migration_trackers"
> }
> {
>         "_id" : ObjectId("56662de0244b0e226d6293fd"),
>         "version" : 5,
>         "name" : "pulp_puppet.plugins.migrations",
>         "_ns" : "migration_trackers"
> }
> {
>         "_id" : ObjectId("5776d9b49444a66530307d22"),
>         "name" : "pulp_docker.plugins.migrations",
>         "version" : 2,
>         "_ns" : "migration_trackers"
> }
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to