Project

Profile

Help

Issue #942

closed

Repo metadata should update on successful sync

Added by Ben.Stanley almost 9 years ago. Updated about 5 years ago.

Status:
CLOSED - NOTABUG
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
2.5
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

I have observed the following sequence on my pulp 2.5.1 installation:

1) pulp-admin rpm repo sync run --repoid=epel-7-x86_64
Sync completes successfully
2) yum upgrade
Yum find dependency problems with createrepo_c package, needs >= 0.4, only 0.3.1 available.
4) check the published files, createrepo_c 0.7 is published by html.
Perhaps the client cache is out of date?
5) yum clean all
6) yum update
Same problem with createrepo_c package

I have observed this problem before, and I think that I fixed it on that occasion by deleting the repo and re-creating it from scratch. As I didn't purge orphans, the sync only downloaded the repo metadata.

I have not been able to verify the fix to this problem as at 1 May 2015 due to another issue with synching epel (Btree::insert key too large to index).

Reproduction:
Sorry, I don't know how to reproduce this problem from scratch.

Best solution:
Correct metadata is always published.

Possible workaround:
Is there a way to purge any existing published metadata, to ensure that metadata is re-generated?

Actions #1

Updated by mhrivnak almost 9 years ago

Please attach the corresponding XML file from the published repo. You can find it by looking in the "repodata" directory in the base of your published repo, and then look for a file whose name ends in "primary.xml.gz".

After the sync, a publish task should also get queued. It would be helpful to double-check that the publish task didn't report any errors. You could alternatively start a new publish with "pulp-admin rpm repo publish run", and see if that has any errors.

Actions #2

Updated by Ben.Stanley almost 9 years ago

This issue is likely to be a symptom of issue #943, the long running epel long errata title problem saga.
To try to work around #943, I deleted my epel-7-x86_64 repo, and tried to re-create it from scratch.
When I sync epel-7-x86_64, the sync fails in the errata part (error described in issue #943).
Consequently, the repo is not published, and I have no repomd.xml file to send you.

I suspect that what I reported here may be simply that the repomd.xml file was not updated due to the errata error, and that I was seeing an older version.

Perhaps we should consider here: Can we make the publishing behaviour any more robust and useful in the face of adverse conditions?
Is it appropriate or possible to publish the new repomd.xml if the errata is erroneous?

I don't use the errata, so total sync failure caused by bad errata causes me significant frustration.

Actions #3

Updated by mhrivnak almost 9 years ago

For now, you can do the following to skip errata during sync:

$ pulp-admin rpm repo update --repo-id=myrepo --skip=errata
Actions #4

Updated by mhrivnak almost 9 years ago

  • Status changed from NEW to CLOSED - NOTABUG

It sounds like the reported bug is not actually the problem, so we are closing. Repo metadata does get updated during publish, following a successful sync.

Actions #5

Updated by jortel@redhat.com almost 9 years ago

  • Triaged changed from No to Yes
Actions #6

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF