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

Unable to Use RHSM Source with Composer, Specifically kernel-rt

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

    • None
    • Moderate
    • rhel-sst-image-builder
    • ssg_front_door
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None
    • 57,005

      Description of problem:
      When attempting to create an image that uses an RHSM repo, like the rhel-9-for-x86_64-rt-rpms repo for kernel-re, Composer will always fail to start the compose with the error 'DNF error occurred: MarkingErrors: Error occurred when marking packages for installation: Problems in request: missing packages: kernel-rt'

      Version-Release number of selected component (if applicable):
      [jswanson@josh-edge-device ~]$ cat /etc/redhat-release
      Red Hat Enterprise Linux release 9.2 (Plow)

      [jswanson@josh-edge-device ~]$ sudo dnf list installed | grep composer
      cockpit-composer.noarch 45-1.el9_2 @rhel-9-for-x86_64-appstream-rpms
      osbuild-composer.x86_64 76-2.el9_2.2 @rhel-9-for-x86_64-appstream-rpms
      osbuild-composer-core.x86_64 76-2.el9_2.2 @rhel-9-for-x86_64-appstream-rpms
      osbuild-composer-dnf-json.x86_64 76-2.el9_2.2 @rhel-9-for-x86_64-appstream-rpms
      osbuild-composer-worker.x86_64 76-2.el9_2.2 @rhel-9-for-x86_64-appstream-rpms

      Other info:
      [jswanson@josh-edge-device ~]$ sudo composer-cli sources info rhel-9-for-x86_64-rt-rpms
      check_gpg = true
      check_repogpg = false
      check_ssl = true
      id = "rhel-9-for-x86_64-rt-rpms"
      name = "rhel-9-for-x86_64-rt-rpms"
      rhsm = true
      system = false
      type = "yum-baseurl"
      url = "https://cdn.redhat.com/content/dist/rhel9/$releasever/x86_64/rt/os"

      [jswanson@josh-edge-device ~]$ sudo composer-cli blueprints show rhde-rt-image
      name = "rhde-rt-image"
      description = "rhde-rt-image"
      version = "0.0.3"
      modules = []
      groups = []
      distro = ""

      [[packages]]
      name = "vim-enhanced"
      version = "*"

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

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

      [[packages]]
      name = "NetworkManager-wifi"
      version = "*"

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

      [customizations]
      [customizations.kernel]
      name = "kernel-rt"
      append = ""

      [[customizations.user]]
      name = "ansible"
      password = "$6$50sgZNIfkHlaPnTu$zq//ohXZf2W5PO870JrGVBBRuT0UMBeb.xaDvrm8qM/U/3apiNnAAjd0J.kvM0wzzNG5HCBXjIKi9oL1OlkZC0"
      groups = ["wheel"]

      What's interesting is that composer will depsolve and appear to be ready to go:
      [jswanson@josh-edge-device ~]$ sudo composer-cli blueprints depsolve rhde-rt-image
      blueprint: rhde-rt-image v0.0.3
      json-glib-1.6.6-1.el9.x86_64
      libseccomp-2.5.2-2.el9.x86_64
      <removedsomelines>
      tuned-profiles-realtime-2.20.0-1.el9.noarch
      kernel-rt-core-5.14.0-284.11.1.rt14.296.el9_2.x86_64
      kernel-rt-modules-core-5.14.0-284.11.1.rt14.296.el9_2.x86_64
      kernel-rt-5.14.0-284.11.1.rt14.296.el9_2.x86_64

      How reproducible:
      Every time

      Steps to Reproduce:
      1. Install using documented procedure
      2. Add source
      3. Create blueprint with customizations above
      4. Attempt to compose image

      Actual results:
      Composer will always fail to start the compose with the error 'DNF error occurred: MarkingErrors: Error occurred when marking packages for installation: Problems in request: missing packages: kernel-rt'

      Expected results:
      Composer successfully composes an image

      Additional info:

              osbuilders Osbuilders Bot Account
              jswanson_redhat Joshua Swanson
              Osbuilders Bot Account Osbuilders Bot Account
              RH Bugzilla Integration RH Bugzilla Integration
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: