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

rhc status command fails to detect insights status on a new disconnected system

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • rhel-10.1
    • rhel-10.0, rhel-10.1
    • rhc
    • rhc-0.3.3-1.el10
    • Yes
    • Low
    • subs-client-tools
    • 5
    • False
    • False
    • Hide

      None

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

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

      Checking status of rhc on a new system where no insights-client operation has happened fails to get the insights status and shows errror message in output -  "

      Cannot detect Red Hat Insights status

      "

      This primarily happens dues to missing ".unregistered" file in /etc/insights-client

      What is the impact of this issue to you?

      Normal

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

      rhc-0.3.2-1.el10.x86_64

      How reproducible is this bug?:

      Steps to reproduce

      1. reserve a RHEL 10 beaker system or delete /etc/insights-client/.unregistered
      2. run rhc status

      [root@kvm-05-guest14 ~]# rhc status
      Connection status for kvm-05-guest14.lab.eng.rdu2.dc.redhat.com:

      ● Not connected to Red Hat Subscription Management
      𐄂 Cannot detect Red Hat Insights status: exit status 1
      ● The yggdrasil service is inactive

      Expected results

      it should correctly display that insights-client is not connected

      [root@dell-r640-041 ~]# rhc status
      Connection status for dell-r640-041.bkr.lab.eng.rdu2.dc.redhat.com:

      ● Not connected to Red Hat Subscription Management
      ● Not connected to Red Hat Insights
      ● The yggdrasil service is inactive

      Manage your connected systems: https://red.ht/connector

      Actual results-

      x Cannot detect Red Hat Insights status: exit status 1

              jhnidek@redhat.com Jiri Hnidek
              rhn-arpandey Archana Pandey
              CSI Client Tools Bugs Bot CSI Client Tools Bugs Bot
              Archana Pandey Archana Pandey
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: