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

Red Hat image builder fails to create RHEL 8 image on RHEL 9 system.

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

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Normal Normal
    • None
    • rhel-9.5
    • osbuild-composer
    • No
    • None
    • rhel-sst-image-builder
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Our documentation has mentioned that now it is possible to create older major versions on a newer system.

      However, on the RHEL 9.5 system creating the RHEL 8.5 image is failing.

      Blueprint

      # composer-cli blueprints show image-test
      name = "image-test"
      description = "LONG FORM DESCRIPTION TEXT"
      version = "0.0.1"
      modules = []
      groups = []
      distro = "rhel-8.5"
      [[packages]]
      name = "mc"
      

      There was no error reported when trying to perform depsolve on the mentioned blueprint.

      # composer-cli blueprints depsolve image-test
      blueprint: image-test v0.0.1
          acl-2.2.53-1.el8.x86_64
          bzip2-libs-1.0.6-26.el8.x86_64
          libdb-5.3.28-42.el8_4.x86_64
          libkcapi-hmaccalc-1.2.0-2.el8.x86_64
          libpwquality-1.4.4-3.el8.x86_64
          libutempter-1.1.6-14.el8.x86_64
          mpfr-3.1.6-1.el8.x86_64
          p11-kit-trust-0.23.22-1.el8.x86_64
          4:perl-Encode-2.97-3.el8.x86_64
          1:perl-Pod-Escapes-1.07-395.el8.noarch
          perl-Pod-Perldoc-3.28-396.el8.noarch
          perl-constant-1.33-396.el8.noarch
          popt-1.18-1.el8.x86_64
          ca-certificates-2021.2.50-80.0.el8_4.noarch
          1:gmp-6.1.2-10.el8.x86_64
          lz4-libs-1.8.3-3.el8_4.x86_64
          4:perl-Pod-Usage-1.69-395.el8.noarch
          perl-Text-ParseWords-3.30-395.el8.noarch
          perl-threads-shared-1.58-2.el8.x86_64
          basesystem-11-5.el8.noarch
          grep-3.1-6.el8.x86_64
          libseccomp-2.5.1-1.el8.x86_64
          libtasn1-4.13-3.el8.x86_64
          perl-Unicode-Normalize-1.25-396.el8.x86_64
          sed-4.5-2.el8.x86_64
          cpio-2.12-10.el8.x86_64
          groff-base-1.22.3-18.el8.x86_64
          libacl-2.2.53-1.el8.x86_64
          libgpg-error-1.31-1.el8.x86_64
          perl-HTTP-Tiny-0.074-1.el8.noarch
          perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch
          1:perl-parent-0.237-1.el8.noarch
          slang-2.3.2-3.el8.x86_64
          cracklib-dicts-2.9.6-15.el8.x86_64
          libkcapi-1.2.0-2.el8.x86_64
          libselinux-2.9-5.el8.x86_64
          libsigsegv-2.11-5.el8.x86_64
          1:perl-Getopt-Long-2.50-4.el8.noarch
          perl-MIME-Base64-3.15-396.el8.x86_64
          perl-PathTools-3.74-1.el8.x86_64
          4:perl-Socket-2.027-3.el8.x86_64
          perl-podlators-4.11-1.el8.noarch
          procps-ng-3.3.15-6.el8.x86_64
          gawk-4.2.1-2.el8.x86_64
          1:gdbm-libs-1.18-1.el8.x86_64
          libattr-2.4.48-3.el8.x86_64
          libffi-3.1-22.el8.x86_64
          libsemanage-2.9-6.el8.x86_64
          libunistring-0.9.9-3.el8.x86_64
          libzstd-1.4.4-1.el8.x86_64
          perl-Carp-1.42-396.el8.noarch
          perl-File-Temp-0.230.600-1.el8.noarch
          1:perl-Pod-Simple-3.35-395.el8.noarch
          1:perl-threads-2.21-2.el8.x86_64
          readline-7.0-10.el8.x86_64
          xz-5.2.4-3.el8.x86_64
          xz-libs-5.2.4-3.el8.x86_64
          audit-libs-3.0-0.17.20191104git1c2f876.el8.x86_64
          cracklib-2.9.6-15.el8.x86_64
          info-6.5-6.el8.x86_64
          libidn2-2.2.0-1.el8.x86_64
          libnsl2-1.2.0-2.20180605git4a062cf.el8.x86_64
          p11-kit-0.23.22-1.el8.x86_64
          pcre2-10.32-2.el8.x86_64
          perl-File-Path-2.15-2.el8.noarch
          3:perl-Scalar-List-Utils-1.49-2.el8.x86_64
          setup-2.12.2-6.el8.noarch
          1:findutils-4.6.0-20.el8.x86_64
          libverto-0.3.0-5.el8.x86_64
          perl-Exporter-5.72-396.el8.noarch
          perl-Term-ANSIColor-4.06-396.el8.noarch
          perl-Term-Cap-1.17-395.el8.noarch
          1:perl-Time-Local-1.280-1.el8.noarch
          bash-4.4.20-2.el8.x86_64
          chkconfig-1.19.1-1.el8.x86_64
          coreutils-8.30-12.el8.x86_64
          coreutils-common-8.30-12.el8.x86_64
          crypto-policies-20210617-1.gitc776d3e.el8.noarch
          1:dbus-1.12.8-14.el8.x86_64
          1:dbus-common-1.12.8-14.el8.noarch
          1:dbus-daemon-1.12.8-14.el8.x86_64
          1:dbus-libs-1.12.8-14.el8.x86_64
          1:dbus-tools-1.12.8-14.el8.x86_64
          elfutils-default-yama-scope-0.185-1.el8.noarch
          elfutils-libs-0.185-1.el8.x86_64
          filesystem-3.8-6.el8.x86_64
          glib2-2.56.4-156.el8.x86_64
          gnutls-3.6.16-4.el8.x86_64
          json-c-0.13.1-2.el8.x86_64
          keyutils-libs-1.5.10-9.el8.x86_64
          kmod-25-18.el8.x86_64
          kmod-libs-25-18.el8.x86_64
          krb5-libs-1.18.2-14.el8.x86_64
          libblkid-2.32.1-28.el8.x86_64
          libcap-2.26-5.el8.x86_64
          libcom_err-1.45.6-2.el8.x86_64
          libfdisk-2.32.1-28.el8.x86_64
          libmount-2.32.1-28.el8.x86_64
          libsepol-2.9-3.el8.x86_64
          libsmartcols-2.32.1-28.el8.x86_64
          libtirpc-1.1.4-5.el8.x86_64
          libuuid-2.32.1-28.el8.x86_64
          ncurses-base-6.1-9.20180224.el8.noarch
          nettle-3.4.1-7.el8.x86_64
          pcre-8.42-6.el8.x86_64
          perl-Errno-1.28-420.el8.x86_64
          perl-IO-1.38-420.el8.x86_64
          1:perl-Storable-3.11-3.el8.x86_64
          4:perl-interpreter-5.26.3-420.el8.x86_64
          4:perl-libs-5.26.3-420.el8.x86_64
          4:perl-macros-5.26.3-420.el8.x86_64
          redhat-release-8.5-0.8.el8.x86_64
          2:shadow-utils-4.6-14.el8.x86_64
          cryptsetup-libs-2.3.3-4.el8_5.1.x86_64
          8:device-mapper-1.02.177-11.el8_5.x86_64
          8:device-mapper-libs-1.02.177-11.el8_5.x86_64
          dracut-049-191.git20210920.el8.x86_64
          elfutils-libelf-0.185-1.el8.x86_64
          expat-2.2.5-4.el8_5.3.x86_64
          glibc-2.28-164.el8_5.3.x86_64
          glibc-all-langpacks-2.28-164.el8_5.3.x86_64
          glibc-common-2.28-164.el8_5.3.x86_64
          gzip-1.9-13.el8_5.x86_64
          kernel-4.18.0-348.23.1.el8_5.x86_64
          kernel-core-4.18.0-348.23.1.el8_5.x86_64
          kernel-modules-4.18.0-348.23.1.el8_5.x86_64
          libcap-ng-0.7.11-1.el8.x86_64
          libgcc-8.5.0-4.el8_5.x86_64
          libgcrypt-1.8.5-6.el8.x86_64
          libstdc++-8.5.0-4.el8_5.x86_64
          libxcrypt-4.1.1-6.el8.x86_64
          linux-firmware-20210702-104.gitd79c2677.el8_5.noarch
          ncurses-6.1-9.20180224.el8.x86_64
          ncurses-libs-6.1-9.20180224.el8.x86_64
          1:openssl-libs-1.1.1k-6.el8_5.x86_64
          pam-1.3.1-15.el8.x86_64
          systemd-239-51.el8_5.5.x86_64
          systemd-libs-239-51.el8_5.5.x86_64
          systemd-pam-239-51.el8_5.5.x86_64
          systemd-udev-239-51.el8_5.5.x86_64
          tzdata-2022a-1.el8.noarch
          util-linux-2.32.1-28.el8.x86_64
          zlib-1.2.11-18.el8_5.x86_64
          gpm-libs-1.20.7-17.el8.x86_64
          1:mc-4.8.19-9.el8.x86_64
      

      wever, Trying to build the Image is failing with the below error,

       

      # cat logs/osbuild.log 
      Pipeline: build
      Stage: org.osbuild.rpm
      Output:
      /usr/lib/tmpfiles.d/postgresql.conf:1: Failed to resolve user 'postgres': No such process
      Failed to open file "/sys/fs/selinux/checkreqprot": Read-only file system
      warning: Signature not supported. Hash algorithm SHA1 not available.
      error: /tmp/gpgkey.mvd3kpiy: key 2 import failed.
      Traceback (most recent call last):
        File "/run/osbuild/bin/org.osbuild.rpm", line 251, in <module>
          r = main(args["tree"], args["inputs"], args["options"])
        File "/run/osbuild/bin/org.osbuild.rpm", line 150, 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.mvd3kpiy']' returned non-zero exit status 1. 

      More detailed logs from the /var/log/messages.

      Feb 12 21:20:27 12rhel92 osbuild-compose[2161]: GET /api/v1/compose/queue
      Feb 12 21:20:27 12rhel92 osbuild-compose[2161]: GET /api/v1/compose/finished
      Feb 12 21:20:28 12rhel92 osbuild-compose[2161]: GET /api/v1/compose/failed
      Feb 12 21:20:28 12rhel92 osbuild-worker[2162]: time="2025-02-12T21:20:28+05:30" level=info msg="Running job '68e3dfb5-cb0d-4767-ac5b-7b9e971366e9' (osbuild)\n"
      Feb 12 21:21:24 12rhel92 NetworkManager[762]: <info>  [1739375484.3676] dhcp4 (eth0): state changed new lease, address=192.168.122.75
      Feb 12 21:21:24 12rhel92 systemd[1]: Starting Network Manager Script Dispatcher Service...
      Feb 12 21:21:24 12rhel92 systemd[1]: Started Network Manager Script Dispatcher Service.
      Feb 12 21:21:34 12rhel92 systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
      Feb 12 21:23:15 12rhel92 kernel: loop: module loaded
      Feb 12 21:23:16 12rhel92 osbuild-worker[2162]: time="2025-02-12T21:23:16+05:30" level=info msg="build pipeline results:\n" jobId=68e3dfb5-cb0d-4767-ac5b-7b9e971366e9
      Feb 12 21:23:16 12rhel92 osbuild-worker[2162]: time="2025-02-12T21:23:16+05:30" level=info msg="  org.osbuild.rpm failure:" jobId=68e3dfb5-cb0d-4767-ac5b-7b9e971366e9
      Feb 12 21:23:16 12rhel92 osbuild-worker[2162]: time="2025-02-12T21:23:16+05:30" level=info msg="    /usr/lib/tmpfiles.d/postgresql.conf:1: Failed to resolve user 'postgres': No such process"
       jobId=68e3dfb5-cb0d-4767-ac5b-7b9e971366e9
      Feb 12 21:23:16 12rhel92 osbuild-worker[2162]: time="2025-02-12T21:23:16+05:30" level=info msg="    Failed to open file \"/sys/fs/selinux/checkreqprot\": Read-only file system" jobId=68e3dfb
      5-cb0d-4767-ac5b-7b9e971366e9
      Feb 12 21:23:16 12rhel92 osbuild-worker[2162]: time="2025-02-12T21:23:16+05:30" level=info msg="    warning: Signature not supported. Hash algorithm SHA1 not available." jobId=68e3dfb5-cb0d-
      4767-ac5b-7b9e971366e9
      Feb 12 21:23:16 12rhel92 osbuild-worker[2162]: time="2025-02-12T21:23:16+05:30" level=info msg="    error: /tmp/gpgkey.mvd3kpiy: key 2 import failed." jobId=68e3dfb5-cb0d-4767-ac5b-7b9e97136
      6e9
      Feb 12 21:23:16 12rhel92 osbuild-worker[2162]: time="2025-02-12T21:23:16+05:30" level=info msg="    Traceback (most recent call last):" jobId=68e3dfb5-cb0d-4767-ac5b-7b9e971366e9
      Feb 12 21:23:16 12rhel92 osbuild-worker[2162]: time="2025-02-12T21:23:16+05:30" level=info msg="      File \"/run/osbuild/bin/org.osbuild.rpm\", line 251, in <module>" jobId=68e3dfb5-cb0d-47
      67-ac5b-7b9e971366e9
      Feb 12 21:23:16 12rhel92 osbuild-worker[2162]: time="2025-02-12T21:23:16+05:30" level=info msg="        r = main(args[\"tree\"], args[\"inputs\"], args[\"options\"])" jobId=68e3dfb5-cb0d-476
      7-ac5b-7b9e971366e9
      Feb 12 21:23:16 12rhel92 osbuild-worker[2162]: time="2025-02-12T21:23:16+05:30" level=info msg="      File \"/run/osbuild/bin/org.osbuild.rpm\", line 150, in main" jobId=68e3dfb5-cb0d-4767-a
      c5b-7b9e971366e9
      Feb 12 21:23:16 12rhel92 osbuild-worker[2162]: time="2025-02-12T21:23:16+05:30" level=info msg="        subprocess.run([" jobId=68e3dfb5-cb0d-4767-ac5b-7b9e971366e9
      Feb 12 21:23:16 12rhel92 osbuild-worker[2162]: time="2025-02-12T21:23:16+05:30" level=info msg="      File \"/usr/lib64/python3.9/subprocess.py\", line 528, in run" jobId=68e3dfb5-cb0d-4767-
      ac5b-7b9e971366e9
      Feb 12 21:23:16 12rhel92 osbuild-worker[2162]: time="2025-02-12T21:23:16+05:30" level=info msg="        raise CalledProcessError(retcode, process.args," jobId=68e3dfb5-cb0d-4767-ac5b-7b9e971
      366e9
      Feb 12 21:23:16 12rhel92 osbuild-worker[2162]: time="2025-02-12T21:23:16+05:30" level=info msg="    subprocess.CalledProcessError: Command '['rpmkeys', '--root', '/run/osbuild/tree', '--import', '/tmp/gpgkey.mvd3kpiy']' returned non-zero exit status 1." jobId=68e3dfb5-cb0d-4767-ac5b-7b9e971366e9
      Feb 12 21:23:16 12rhel92 osbuild-worker[2162]: time="2025-02-12T21:23:16+05:30" level=info msg="    " jobId=68e3dfb5-cb0d-4767-ac5b-7b9e971366e9
      Feb 12 21:23:16 12rhel92 osbuild-worker[2162]: time="2025-02-12T21:23:16+05:30" level=error msg="osbuild job failed: osbuild build failed in stage: \"org.osbuild.rpm\"" jobId=68e3dfb5-cb0d-4767-ac5b-7b9e971366e9
      Feb 12 21:23:16 12rhel92 osbuild-worker[2162]: time="2025-02-12T21:23:16+05:30" level=error msg="failure details : [osbuild error: {\"type\": \"org.osbuild.error.stage\", \"details\": {\"stage\": {\"id\": \"3d90d8d9959fb29a07fe36e2a4ea3d05fa2d3bd8d759f5251b783febb41d39ae\", \"type\": \"org.osbuild.rpm\", \"output\": \"/usr/lib/tmpfiles.d/postgresql.conf:1: Failed to resolve user 'postgres': No such process\\nFailed to open file \\\"/sys/fs/selinux/checkreqprot\\\": Read-only file system\\nwarning: Signature not supported. Hash algorithm SHA1 not available.\\nerror: /tmp/gpgkey.mvd3kpiy: key 2 import failed.\\nTraceback (most recent call last):\\n  File \\\"/run/osbuild/bin/org.osbuild.rpm\\\", line 251, in <module>\\n    r = main(args[\\\"tree\\\"], args[\\\"inputs\\\"], args[\\\"options\\\"])\\n  File \\\"/run/osbuild/bin/org.osbuild.rpm\\\", line 150, in main\\n    subprocess.run([\\n  File \\\"/usr/lib64/python3.9/subprocess.py\\\", line 528, in run\\n    raise CalledProcessError(retcode, process.args,\\nsubprocess.CalledProcessError: Command '['rpmkeys', '--root', '/run/osbuild/tree', '--import', '/tmp/gpgkey.mvd3kpiy']' returned non-zero exit status 1.\\n\", \"error\": null}}}]" jobId=68e3dfb5-cb0d-4767-ac5b-7b9e971366e9
      Feb 12 21:23:16 12rhel92 osbuild-worker[2162]: time="2025-02-12T21:23:16+05:30" level=info msg="Job '68e3dfb5-cb0d-4767-ac5b-7b9e971366e9' (osbuild) finished" 

       

              osbuilders Osbuilders Bot Account
              rhn-support-swthakur Swapnil Thakur
              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:
                Resolved: