Project

Profile

Help

Issue #4627

Pulp does not resync yum metadata files on change

Added by paji@redhat.com 8 months ago. Updated 6 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Severity:
2. Medium
Version:
Platform Release:
2.19.1
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 52

Description

Pulp uses revision numbers in repomd.xml to determine if contents need to be updated on sync. However "modifyrepo" does not generate new revision numbers for non rpm data.

Steps:
1) Setup the following repo

$ mkdir /tmp/my-data
$ cd /tmp/my-data
$ wget https://partha.fedorapeople.org/test-repos/rpm-with-productid/elephant-0.3-0.8.noarch.rpm
$ createrepo .
$ echo "100000" >> productid
$ modifyrepo  --mdtype=productid productid repodata
$ grep revision repodata/repomd.xml
  <revision>1554217257</revision>

2) Sync this repo
3) Now update the repo
$ cd /tmp/my-data
$ echo "100001" >> productid
$ modifyrepo  --mdtype=productid productid repodata
$ grep revision repodata/repomd.xml
  <revision>1554217257</revision>

Notice that the revision number did not change even though a metadata file got updated. Try resyncing this change and notice that the productid change will get ignored.


Related issues

Copied to RPM Support - Test #4824: Pulp does not resync yum metadata files on change NEW Actions

Associated revisions

Revision d9db7737 View on GitHub
Added by ttereshc 7 months ago

Perform sync even on metadata change only

Some metadata changes don't bump revision number, so a sync used
to be no-op in such cases. Now checksum of repomd.xml is also taken
into account.

closes #4627
https://pulp.plan.io/issues/4627

Revision 2cb37ba8 View on GitHub
Added by ttereshc 6 months ago

Perform sync even on metadata change only

Some metadata changes don't bump revision number, so a sync used
to be no-op in such cases. Now checksum of repomd.xml is also taken
into account.

closes #4627
https://pulp.plan.io/issues/4627

(cherry picked from commit d9db7737028ee8dc4df5af65bd3e1de8a67aae10)

History

#2 Updated by ttereshc 8 months ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 51

#3 Updated by bmbouter 7 months ago

  • Tags Pulp 2 added

#4 Updated by daviddavis 7 months ago

  • Sprint changed from Sprint 51 to Sprint 52

#5 Updated by ttereshc 7 months ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ttereshc

#6 Updated by ttereshc 7 months ago

  • Status changed from ASSIGNED to POST

#7 Updated by dkliban@redhat.com 7 months ago

  • Platform Release set to 2.19.1

#8 Updated by ttereshc 7 months ago

  • Status changed from POST to MODIFIED

#9 Updated by dkliban@redhat.com 7 months ago

  • Sprint/Milestone set to 2.19.1

#10 Updated by bherring 6 months ago

  • Copied to Test #4824: Pulp does not resync yum metadata files on change added

#11 Updated by ttereshc 6 months ago

#12 Updated by dkliban@redhat.com 6 months ago

  • Status changed from MODIFIED to ON_QA

#13 Updated by dkliban@redhat.com 6 months ago

  • Status changed from ON_QA to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF