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

machine ID is created after running insights-client without insights registration

    • Icon: Bug Bug
    • Resolution: Can't Do
    • Icon: Undefined Undefined
    • None
    • rhel-9.5
    • insights-client
    • None
    • None
    • rhel-sst-csi-client-tools
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      Description of Problem:

      machine ID is created after running insights-client without insights registration

      Please provide the package NVR for which bug is seen:

      [root@ibm-p9z-23-lp3 integration-tests]# insights-client --version

      Client: 3.2.2

      Core: 3.3.26-1

      How reproducible

      Always

      Is this a regression issue:

      ( Yes/No) 

      Steps to Reproduce

      • [Step 1] Register RHEL-9.5.0-20240519.9_ppc64le against Satellite
      • [Step 2] Run insights-client --unregister, and check the machine id:

      [root@ibm-p9z-23-lp3 integration-tests]# insights-client --unregister

      Successfully unregistered from the Red Hat Insights Service

       

      [root@ibm-p9z-23-lp3 integration-tests]# cat /etc/insights-client/machine-id

      cat: /etc/insights-client/machine-id: No such file or directory

      • [Step 3] Run insights-client, and check the machine id:

      [root@ibm-p9z-23-lp3 integration-tests]# insights-client

      This machine has not yet been registered. Use --register to register this machine.

      [root@ibm-p9z-23-lp3 integration-tests]# cat /etc/insights-client/machine-id

      572618f1-987b-4f1c-aea2-94887fcab6a0

       

      [Step 4] Run insights-client --register, and check the machine id:

      [root@ibm-p9z-23-lp3 integration-tests]# insights-client --register

      Successfully registered host ibm-p9z-23-lp3.virt.pnr.lab.eng.rdu2.redhat.com

      Automatic scheduling for Insights has been enabled.

      Starting to collect Insights data for ibm-p9z-23-lp3.virt.pnr.lab.eng.rdu2.redhat.com

      Writing RHSM facts to /etc/rhsm/facts/insights-client.facts ...

      Uploading Insights data.

      Successfully uploaded report from ibm-p9z-23-lp3.virt.pnr.lab.eng.rdu2.redhat.com to account 6089719.

      View the Red Hat Insights console at https://console.redhat.com/insights/

       

      [root@ibm-p9z-23-lp3 integration-tests]# cat /etc/insights-client/machine-id

      572618f1-987b-4f1c-aea2-94887fcab6a0

       

      Actual Behavior

      As step 3, on a unregistered system, running "insights-client" will create a machine id.

      Expected Behavior

      machine id should exist only when system is registered to insights.

      Additional info

              csi-client-tools-bugs CSI Client Tools Bugs Bot
              qianzhan@redhat.com Qianqian Zhang
              CSI Client Tools Bugs Bot CSI Client Tools Bugs Bot
              CSI Client Tools Bugs Bot CSI Client Tools Bugs Bot
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: