Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-67689

createRepo/mergeRepo failures related to zstd in mirrors

    • No
    • Moderate
    • rhel-sst-cs-software-management
    • ssg_core_services
    • 8
    • 10
    • 0
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Enhancement
    • Hide
      Feature, enhancement: Add zstd compression support
      Reason: In newer releases createrepo_c defaults to zstd compression
      Result: Older version of createrepo_c can work with (load, update,...) repodata generated by newer versions.
      Show
      Feature, enhancement: Add zstd compression support Reason: In newer releases createrepo_c defaults to zstd compression Result: Older version of createrepo_c can work with (load, update,...) repodata generated by newer versions.
    • Proposed
    • Unspecified
    • None

      What were you trying to do that didn't work?

      I run a local "fedora-like" koji build environment at $dayjob. I just recently (Nov-8) completed mass branching steps for our internal f41 release and noticed that all createrepo tasks for f41 fail due to "Cannot detect compression type" errors in the updates repo.

      I have tested against two different external mirrors, leaseweb.net, and facebook.net. The failure exists in both.

      What is the impact of this issue to you?

      We are unable to build any packages where upstream repomd is compressed with zstd.

      Please provide the package NVR for which the bug is seen:

      createrepo_c-0.20.1-2.el9

      How reproducible is this bug?:

      Can be reproduced by manually running mergerepo_c with an upstream repo that contains zstd compressed repo xml files.

      Steps to reproduce

      1. mergerepo_c -a x86_64 -o ./repo -r https://mirror.facebook.net/fedora/linux/updates/41/Everything/x86_64/
      2.  
      3.  

      Expected results

      Success

      Actual results

      C_CREATEREPOLIB: Critical: cr_metadata_load_xml: Error encountered while parsing Critical: Cannot load repo: "https://mirror.facebook.net/fedora/linux/updates/41/Everything/x86_64/" : Error encountered while parsing:primary.xml parsing: Cannot open /tmp/koji/tasks/465/50465/createrepo_c_tmp_repo_BAZ7wH/repodata/7fc131418a87157ce23f4d4bd6083ab68cdccd81911864b9f5a2d01657ad75cf-primary.xml.zst: Cannot detect compression type

              amatej@redhat.com Ales Matej
              robert.callicotte Robby Callicotte (Inactive)
              packaging-team-maint packaging-team-maint
              Software Management QE Software Management QE
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: