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

dnf has bug when adding multiple repo gpg keys at once.

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • dnf-4.14.0-9.el9
    • None
    • Moderate
    • rhel-swm
    • ssg_core_services
    • 10
    • 12
    • None
    • QE ack, Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Hide

      AC: Adding multiple GPG keys via dnf API should add all the respective keys, not just one. e.g.:

          base.repos.add_new_repo('foo_repo', conf,
              baseurl=['https://foo/bar'],
              gpgkey=['https://foo/bar/key1','https://foo/bar/key2'],
              gpgcheck=True)

      Test: To be written according to AC.

      Show
      AC: Adding multiple GPG keys via dnf API should add all the respective keys, not just one. e.g.:     base.repos.add_new_repo('foo_repo', conf,         baseurl= ['https://foo/bar'] ,         gpgkey= ['https://foo/bar/key1','https://foo/bar/key2'] ,         gpgcheck=True) Test: To be written according to AC.
    • Pass
    • Enabled
    • Automated
    • If docs needed, set a value
    • None
    • 57,005

      Description of problem:
      When trying to add multiple GPG keys while adding a repo using dnf API, only the first GPG key is added.

      EXAMPLE:
      base.repos.add_new_repo('foo_repo', conf,
      baseurl=['https://foo/bar'],
      gpgkey=['https://foo/bar/key1','https://foo/bar/key2'],
      gpgcheck=True)

      Version-Release number of selected component (if applicable):

      How reproducible:
      Every time

      Steps to Reproduce:
      1.Add repo using API and add multiple GPG keys (see example above)
      2.Only one GPG key is successfully added

      Actual results:
      Only one GPG key is added

      Expected results:
      Multiple GPG keys expected

      Additional info:
      Bug is already fixed upstream with this pull:
      https://github.com/rpm-software-management/dnf/pull/1962

              jrohel Jaroslav Rohel
              rhn-support-zconnor Zachariah Connor
              Eva Mrakova Eva Mrakova
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: