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

3rd party GPG pubkey is not installed when using an URL

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.4.z
    • osbuild-composer
    • None
    • No
    • Moderate
    • rhel-sst-image-builder
    • ssg_front_door
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • All
    • None

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

      Installing an EPEL package like "htop" won't work by defining a custom 3rd party repository when checkgpg = true and a gpgkey pointing to an URL.

      What is the impact of this issue to you?

      Limited, as including the pub key inline still works.

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

      osbuild-composer-101-1.el9

      How reproducible is this bug?:

      Always

      Steps to reproduce

      Add an EPEL source repo (`composer-cli sources add epel.toml`)

      id = "epel"
      name = "epel"
      type = "yum-baseurl"
      url = "https://dl.fedoraproject.org/pub/epel/9/Everything/x86_64/"
      check_gpg = true
      check_ssl = true
      gpgkeys=["https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-9"] 

      Use a blueprint containing an EPEL package:

      [[packages]]
      name = "htop"
      version = "*"

      And compose it.

      Expected results

      Works

      Actual results

      Stage: org.osbuild.rpm
      Output:
      Failed to open file "/sys/fs/selinux/checkreqprot": Read-only file system
      imported gpg key
      imported gpg key
      error: /tmp/gpgkey.epf97adn: import read failed(0).
      Traceback (most recent call last):
        File "/run/osbuild/bin/org.osbuild.rpm", line 382, in <module>
          r = main(args["tree"], args["inputs"], args["options"])
        File "/run/osbuild/bin/org.osbuild.rpm", line 281, in main
          subprocess.run([
        File "/usr/lib64/python3.9/subprocess.py", line 528, in run
          raise CalledProcessError(retcode, process.args,
      subprocess.CalledProcessError: Command '['rpmkeys', '--root', '/run/osbuild/tree', '--import', '/tmp/gpgkey.epf97adn']' returned non-zero exit status 1. 

              osbuilders Osbuilders Bot Account
              rhn-support-cbesson Christophe Besson
              Osbuilders Bot Account Osbuilders Bot Account
              Release Test Team Release Test Team
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: