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

rhc should require subscription-manager at install time

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • rhel-9.4
    • rhel-9.4
    • rhc
    • None
    • rhc-0.2.4-5.el9
    • Normal
    • sst_insights
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None

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

       

      I built a RHEL for Edge system using osbuild and included `rhc` as part of the blueprint. When I tried to use `rhc connect` to connect the system, the operation failed because it could not register with RHSM. It could not register with RHSM because `subscription-manager` was not installed.

      Since the `rhc connect` operation will attempt to register with RHSM, it should not assume that `subscription-manager` is installed by default and should require `subscription-manger` as part to the install process.

      Please provide the package NVR for which bug is seen:

      rhc-0.2.4-3.el9_3.x86_64

      How reproducible:

      Always

      Steps to reproduce

      1. Create osbuild blueprint that includes `rhc`
      2. Use osbuild to produce an `edge-commit` artifact
      3. Use osbuild to produce an `edge-installer` artifact
      4. Install the `edge-installer` artifact
      5. Try to run `rhc connect`

      Expected results

      The RHC client will successfully try to register with RHSM and Insights, before connecting to hosted services.

      Actual results

      When trying to run `rhc connect` on a system that has `insights-client` installed but not `subscription-manager`, the following is observed:

       

      $ sudo rhc connect
      This might take a few seconds.
      ! Cannot connect to Red Hat Subscription Management
      ● Skipping connection to Red Hat Insights
      ● Skipping activation of Remote Host Configuration daemon
      Manage your connected systems: https://red.ht/connector
      The following errors were encountered during connect:
      TYPE   STEP  ERROR  
      ERROR  rhsm  cannot connect to Red Hat Subscription Management: unable to parse D-Bus error due to unsupported error name: org.freedesktop.DBus.Error.ServiceUnknown
      

       

            jhnidek@redhat.com Jiri Hnidek
            miabbott@redhat.com Micah Abbott
            CSI Client Tools Bugs Bot CSI Client Tools Bugs Bot
            Craig Donnelly Craig Donnelly
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: