Skip to content

An issue found in Pulp Replication #6333

Closed

Description

@mchithu

Version
Pulp installed using PyPI modules.
pulpcore==3.69.0
pulp-python==3.12.5
pulp-rpm==3.27.2

Describe the bug
We randomly noticed an issue in a Pulp Replication task. After sync of the repository, we found the differnce that the master has N version of repomd.xml and N-1 version of repomd.xml in the replica server. Except repomd.xml file (in N-1 version), all other files (in N version) in the repository metadata are same as master.

To Reproduce
I don't it know exactly. May be able to reproduce when replicate many large size repositories(like appstream, optional, epel,..) and also running synchornize job in the master pulp server simultaneously.

Expected behavior
Repositories in replica and master should be in sync. The repomd.xml file should be always in N version.

Additional context
N/A

Activity

  1. mchithu commented on Mar 6, 2025

    @mchithu
    Author

    Content of repodata directory
    The repodata directory contain the N version of the repositories except the repomd.xml (N-10 version).
    199f67697007d4d4c191b38ad7b490a7f83e9d69244687e2c184b40f79ed7d9d-comps.xml 05-Mar-2025 14:04 41.1 kB
    270ba36bb730b41e6862a533672eb82acb457a323255e062d57b11c9bde4d567-other.xml.gz 05-Mar-2025 14:04 7.2 MB
    3407405bb2832d76a8e0827f23ff0962ad3b990688c1936e0efb14a9c0428785-updateinfo.xml.gz 05-Mar-2025 14:04 857.7 kB
    682ef7efad0d553270faff338a43be22404179547797e01650f0b32142cbc6d8-filelists.xml.gz 05-Mar-2025 14:04 5.4 MB
    f5026ce320425e0e1831ea64f1da2e4583c4995fef7b33f8b329a04f24ccd481-primary.xml.gz 05-Mar-2025 14:04 43.7 MB
    f9d958a8a917bfe0a71318e45ee53ace7e3aba57ec6678d905dd2fa0c45b552e-0c9ef344-a0ee-484f-972f-44d993ea9ac8 05-Mar-2025 14:04 2.2 kB
    repomd.xml 05-Mar-2025 14:04 2.7 kB

    Content of repomd.xml
    The following repomd.xml contains the N-1 version of the repodata files.
    <repomd xmlns="http://linux.duke.edu/metadata/repo" xmlns:rpm="http://linux.duke.edu/metadata/rpm"> <revision>1740412773</revision> <data type="primary"> <checksum type="sha256">73437a570c753c4359c52d9311439357030022e9323a415ca7e5918a8a7f3f27</checksum> <open-checksum type="sha256">22a9b43b613fbd2deeb3b32fd1c376167783557e5dc0d34079bae09089784182</open-checksum> <location href="repodata/73437a570c753c4359c52d9311439357030022e9323a415ca7e5918a8a7f3f27-primary.xml.gz"/> <timestamp>1740412768</timestamp> <size>42608163</size> <open-size>324585199</open-size> </data> <data type="filelists"> <checksum type="sha256">2b5839872ccbe348bd8cedb22d60bafed3c98c9b63090f7f055932390849d1fd</checksum> <open-checksum type="sha256">ab171441de634f951b517c14957fa1a2f405def472c9d879a4cc46293fe68dcf</open-checksum> <location href="repodata/2b5839872ccbe348bd8cedb22d60bafed3c98c9b63090f7f055932390849d1fd-filelists.xml.gz"/> <timestamp>1740412768</timestamp> <size>5316507</size> <open-size>69752460</open-size> </data> <data type="other"> <checksum type="sha256">f46d4122b910cb13463eba69358490147b8fb90c010c120ee3ee11fb50be5a74</checksum> <open-checksum type="sha256">31d42fcc4bd0ea67a5daa94d037168c18abbba2ad9e877c4c9e2b84f750cd0fe</open-checksum> <location href="repodata/f46d4122b910cb13463eba69358490147b8fb90c010c120ee3ee11fb50be5a74-other.xml.gz"/> <timestamp>1740412768</timestamp> <size>7195394</size> <open-size>51129101</open-size> </data> <data type="updateinfo"> <checksum type="sha256">825b8683e38a0f8bdde6873c3d73a83fec9149b57a07a3c2934597bb70c70c9c</checksum> <open-checksum type="sha256">e4efc6fd4f53a098ed6e9351533879916555ed64d29a6068b135b77936caf7f2</open-checksum> <location href="repodata/825b8683e38a0f8bdde6873c3d73a83fec9149b57a07a3c2934597bb70c70c9c-updateinfo.xml.gz"/> <timestamp>1740412768</timestamp> <size>856381</size> <open-size>6216024</open-size> </data> <data type="group"> <checksum type="sha256">199f67697007d4d4c191b38ad7b490a7f83e9d69244687e2c184b40f79ed7d9d</checksum> <location href="repodata/199f67697007d4d4c191b38ad7b490a7f83e9d69244687e2c184b40f79ed7d9d-comps.xml"/> <timestamp>1740412768</timestamp> <size>41144</size> </data> <data type="productid"> <checksum type="sha256">f9d958a8a917bfe0a71318e45ee53ace7e3aba57ec6678d905dd2fa0c45b552e</checksum> <location href="repodata/f9d958a8a917bfe0a71318e45ee53ace7e3aba57ec6678d905dd2fa0c45b552e-0c9ef344-a0ee-484f-972f-44d993ea9ac8"/> <timestamp>1740412677</timestamp> <size>2171</size> </data> </repomd>

  2. dkliban commented on Mar 12, 2025

    @dkliban
    Member

    Yesterday on Matrix we learned that when this problem occurred again, it resolved on it's own after about 1 hour and 20 minutes. This tells me that the problem is that this is a caching issue.

    The code that creates a publication should look for all distributions that serve that repository (not a specific publication) and invalidate the cache for them after the publication is created.

  3. added a commit that references this issue on Mar 12, 2025
    64ae8f5
  4. added a commit that references this issue on Mar 13, 2025
    3c5b029
  5. added 3 commits that reference this issue on Mar 13, 2025
    06d08dd
    688b202
    41c8816
  6. added 8 commits that reference this issue on Mar 13, 2025
    71104b2
    0fad552
    5e9904c
    d3457de
    b22b86d
    1143877
    4720bb3
    5e1d02a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions