Issue #2096
closedAdditional updateinfo.xml after second publish
Description
Consider this reproducer:
pulp-admin rpm repo delete --repo-id zoo
pulp-admin orphan remove --all
pulp-admin rpm repo create --repo-id zoo --feed https://repos.fedorapeople.org/repos/pulp/pulp/fixtures/rpm/
pulp-admin rpm repo sync run --repo-id zoo
# Show 32 RPMs
pulp-admin rpm repo list
# Remove two RPMs, and show only 30 rpms after
pulp-admin rpm repo remove rpm --repo-id zoo --str-eq="sourcerpm=camel-0.1-1.src.rpm"
pulp-admin rpm repo remove rpm --repo-id zoo --str-eq="sourcerpm=cow-2.2-3.src.rpm"
# Show 30 RPMs now
pulp-admin rpm repo list
# verify that only 30 rpms are published
pulp-admin rpm repo publish run --repo-id zoo
# Do an incremental publish, publishing just 2 rpms
pulp-admin rpm repo sync run --repo-id zoo
Observe the two updateinfo files in the resulting output:
1f0179cb1e38298ac8b1f7380ad6cf515d73a7d25e0d36dab7b07b4fbdcd6c53-updateinfo.xml.gz
2036cf41fcde167770a2e794185b6bd7088797059a22cf8caa6accea0c4c9462-primary.xml.gz
45799989f67c83cd7f99facd3c133a1db6d01280718b373da7a388ca1a6c4843-filelists.xml.gz
5a926a84369bb7f67e92891eb2e89f2cb83d32cfb2b8f21cac538a037047792d-updateinfo.xml.gz
71c97177e5d31443497430b8b3030b4bde2a05a0be82a67292497d6b4100a38d-other.xml.gz
cfc8d64f15e00e2d49bc7f1db4a39a0b3e85f1aeaf6a9a7ca17b59d0ff4defbc-comps.xml
repomd.xml
I expected there to only be 1 updateinfo.xml.gz file since only 1 of them is listed int he repomd.xml
<?xml version="1.0" encoding="UTF-8"?>
<repomd xmlns="http://linux.duke.edu/metadata/repo" xmlns:rpm="http://linux.duke.edu/metadata/rpm"><revision>1469035113</revision>
<data type="filelists"><location href="repodata/45799989f67c83cd7f99facd3c133a1db6d01280718b373da7a388ca1a6c4843-filelists.xml.gz" /><timestamp>1469035113</timestamp><size>1986</size><checksum type="sha256">45799989f67c83cd7f99facd3c133a1db6d01280718b373da7a388ca1a6c4843</checksum><open-size>6353</open-size><open-checksum type="sha256">35021e134150dbf68cdb29807c57fe354a54d2525a012a76b57cc0af31a1f4fc</open-checksum></data>
<data type="other"><location href="repodata/71c97177e5d31443497430b8b3030b4bde2a05a0be82a67292497d6b4100a38d-other.xml.gz" /><timestamp>1469035113</timestamp><size>1820</size><checksum type="sha256">71c97177e5d31443497430b8b3030b4bde2a05a0be82a67292497d6b4100a38d</checksum><open-size>5374</open-size><open-checksum type="sha256">ab7c8ddda6305bc25b0f2514079d6f69fb2611aa23fa8c242853ed39c97ec7e8</open-checksum></data>
<data type="primary"><location href="repodata/2036cf41fcde167770a2e794185b6bd7088797059a22cf8caa6accea0c4c9462-primary.xml.gz" /><timestamp>1469035113</timestamp><size>3650</size><checksum type="sha256">2036cf41fcde167770a2e794185b6bd7088797059a22cf8caa6accea0c4c9462</checksum><open-size>31602</open-size><open-checksum type="sha256">79974d7eb3818578219df0a554a41623c89fa7c8e9c9ae38a14fe60edf4f9666</open-checksum></data>
<data type="updateinfo"><location href="repodata/5a926a84369bb7f67e92891eb2e89f2cb83d32cfb2b8f21cac538a037047792d-updateinfo.xml.gz" /><timestamp>1469035113</timestamp><size>421</size><checksum type="sha256">5a926a84369bb7f67e92891eb2e89f2cb83d32cfb2b8f21cac538a037047792d</checksum><open-size>1787</open-size><open-checksum type="sha256">ecd321951e0db408beab67a75c1f3e0ae5c77526a3a0d25be0b416fdfe993171</open-checksum></data>
<data type="group"><location href="repodata/cfc8d64f15e00e2d49bc7f1db4a39a0b3e85f1aeaf6a9a7ca17b59d0ff4defbc-comps.xml" /><timestamp>1469035113</timestamp><size>2357</size><checksum type="sha256">cfc8d64f15e00e2d49bc7f1db4a39a0b3e85f1aeaf6a9a7ca17b59d0ff4defbc</checksum></data>
</repomd>
Related issues
Updated by ipanova@redhat.com over 8 years ago
I think it is normal behaviour to create updateinfo.xml with every operational publish.
Updated by ttereshc over 8 years ago
I am not sure if it was made on purpose or not but Pulp pulishes the repo this way for quite a while. I believe 2.7 works this way.
Updated by amacdona@redhat.com over 8 years ago
- Severity changed from 2. Medium to 1. Low
- Triaged changed from No to Yes
Updated by bmbouter over 8 years ago
- Has duplicate Issue #1045: incremental publish does not remove old updateinfo.xml added
Updated by mhrivnak almost 8 years ago
I suspect it was not intentional to keep these, since pulp does not retain any of the other XML files from previous publishes. I think it is safe to make the behavior consistent and stop keeping old updateinfo files.
Updated by ipanova@redhat.com almost 8 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ipanova@redhat.com
Updated by ipanova@redhat.com almost 8 years ago
- Assignee changed from ipanova@redhat.com to ttereshc
Updated by ttereshc almost 8 years ago
- Status changed from ASSIGNED to POST
Added by ttereshc almost 8 years ago
Added by ttereshc almost 8 years ago
Revision b705b9dd | View on GitHub
Check the search_tag before attempting to fast forward file
Added by ttereshc almost 8 years ago
Revision b705b9dd | View on GitHub
Check the search_tag before attempting to fast forward file
Updated by ttereshc almost 8 years ago
- Status changed from POST to MODIFIED
Applied in changeset 16e9217ced73cbb93c6ecf9f7a7254742c02dc66.
Updated by semyers almost 8 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
Do not keep the original updateinfo file after incremental publish
closes #2096 https://pulp.plan.io/issues/2096