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

createRepo/mergeRepo failures related to zstd in mirrors

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • createrepo_c-0.20.1-4.el9
    • No
    • Moderate
    • rhel-swm
    • ssg_core_services
    • 8
    • 10
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Enhancement
    • Hide
      .`createrepo_c` supports `zstd`

      This enhancement adds support for the `Zstandard` (`zstd`) compression algorithm for `createrepo_c` commands. As a result, `createrepo_c` can read and generate metadata compressed with `zstd`.
      Show
      .`createrepo_c` supports `zstd` This enhancement adds support for the `Zstandard` (`zstd`) compression algorithm for `createrepo_c` commands. As a result, `createrepo_c` can read and generate metadata compressed with `zstd`.
    • Done
    • Done
    • Done
    • Not Required
    • 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
              Martin Banas Martin Banas
              Mariya Pershina Mariya Pershina
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated: