Issue #4627
closedPulp does not resync yum metadata files on change
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
Updated by ttereshc over 5 years ago
- Triaged changed from No to Yes
- Sprint set to Sprint 51
Updated by daviddavis over 5 years ago
- Sprint changed from Sprint 51 to Sprint 52
Updated by ttereshc over 5 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ttereshc
Added by ttereshc over 5 years ago
Updated by ttereshc over 5 years ago
- Status changed from ASSIGNED to POST
Updated by ttereshc over 5 years ago
- Status changed from POST to MODIFIED
Applied in changeset d9db7737028ee8dc4df5af65bd3e1de8a67aae10.
Updated by bherring over 5 years ago
- Copied to Test #4824: Pulp does not resync yum metadata files on change added
Added by ttereshc over 5 years ago
Revision 2cb37ba8 | View on GitHub
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)
Updated by ttereshc over 5 years ago
Applied in changeset 2cb37ba891ffd2b4809970e486388041354ba651.
Updated by dkliban@redhat.com over 5 years ago
- Status changed from MODIFIED to 5
Updated by dkliban@redhat.com over 5 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
Updated by ttereshc over 4 years ago
- Copied to Issue #7030: Pulp does not resync yum metadata files on change added
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