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

insights-client registration fails during bootc installations - missing /var/lib/insights directory

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • bootc
    • None
    • None
    • None
    • rhel-image-mode
    • None
    • False
    • False
    • Hide

      None

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

      Description

      During RHEL bootc installations with Insights registration enabled (rhsm --connect-to-insights), the registration to Red Hat Insights fails with a connection error. However, manual registration after installation completes successfully on the first attempt.

      Root Cause

      The /var/lib/insights directory does not exist during the bootc installation process, causing insights-client to fail when called by anaconda's subscription module during installation.

      Current Workaround

      Anaconda has implemented a workaround by explicitly creating the /var/lib/insights directory before attempting registration during installation:

      Who Should Fix This?

      This needs investigation to determine the proper fix location:

      • bootc: Should the bootc installation environment provide the necessary directory structure for standard system services?
      • insights-client: Should insights-client handle missing directories gracefully and create them as needed?

      The issue is bootc-specific (doesn't occur with traditional package mode installations), but manual registration after installation succeeds, suggesting the directory structure is correct post-install.

      Impact

      • Severity: 100% reproducible on bootc installations with Insights registration
      • User Experience: Registration fails during installation, requiring manual intervention post-install
      • Scope: Affects both stage and production CDN environments
      • Current State: Anaconda has a workaround, but a proper long-term solution is needed

      Expected Behavior

      Standard system services like insights-client should be able to function correctly during bootc installations without requiring workarounds from the installer.

      Steps to Reproduce

      1. Prepare kickstart file using bootc command together with rhsm --connect-to-insights
      2. Start installation of RHEL-10.2 using the kickstart file
      3. Observe Insights registration failure during installation
      4. After installation completes, run insights-client --register manually → succeeds on first attempt

      References

      Additional Context

      This issue was discovered during RHEL-10 testing and affects both ostree and bootc installations. The anaconda team has implemented a temporary workaround, but we're opening this issue to raise awareness with the bootc team and determine the proper long-term solution location (bootc vs insights-client).

              walters@redhat.com Colin Walters
              bciconel@redhat.com Bruno Ciconelle
              Colin Walters Colin Walters
              Xiaofeng Wang Xiaofeng Wang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: