Uploaded image for project: 'Red Hat Insights Engineering'
  1. Red Hat Insights Engineering
  2. RHINENG-11776

Single host listed multiple times in Inventory

XMLWordPrintable

    • 8
    • Inventory Sprint 85, Inventory Sprint 86, Inventory Sprint 87, Inventory Sprint 88

      ** Note that this is a public ticket, please refrain from adding any sensitive data. **

      Description of Problem

      After registering a CentOS Linux 7 system to production Insights the system is listed multiple times in the Host Based Inventory. Each of the inventory items has a different UUID. The system then cannot be converted using the conversion task in Insights.

      How reproducible

      Seems like always. I tried it with a CentOS Linux 7 system deployed using two different provisioners (1minutetip and testing-farm). The issue manifested in both cases.

      Steps to Reproduce

      1. Get a CentOS Linux 7 system
      2. Run the following commands to get the system registered to production Insights
        sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
        sed -i 's|#baseurl=http://mirror.centos.org|baseurl=https://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
        curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release https://www.redhat.com/security/data/fd431d51.txt
        curl -o /etc/yum.repos.d/client-tools-for-rhel-7-server.repo https://ftp.redhat.com/redhat/client-tools/client-tools-for-rhel-7-server.repo
        yum install -y subscription-manager subscription-manager-rhsm-certificates insights-client rhc rhc-worker-script
        rhc connect -a <key> -o <org>
        
      3. You'll see no errors or warnings on the CLI

      Actual Behavior

      The registered system is listed twice or thrice in the Inventory, with different UUIDs. The OS of the first one is "CentOS Linux 7.9" but is not connected to RHC, the OS of the others is "Not available" but they are connected to RHC. With that, I cannot run the conversion task on the system. See attached screenshots.

      Expected Behavior

      The system is just once in the Inventory and I can run the conversion task on it.

      Business Impact / Additional info

      Customers facing this issue won't able to convert their systems to RHEL and support engineers will be burdened with cases.

        1. image (5).png
          119 kB
          Michal Bocek
        2. insights-client-from-the-system-3-times-in-inventory.log
          10 kB
          Michal Bocek
        3. Screenshot from 2024-07-31 13-25-55.png
          87 kB
          Michal Bocek
        4. Screenshot from 2024-07-31 13-28-23.png
          287 kB
          Michal Bocek
        5. Screenshot from 2024-07-31 13-28-40.png
          290 kB
          Michal Bocek
        6. Screenshot from 2024-07-31 13-29-26.png
          160 kB
          Michal Bocek
        7. Screenshot from 2024-07-31 13-44-28.png
          164 kB
          Michal Bocek
        8. two_host_inputs_pii_hidden.png
          606 kB
          Muhammad Arif

              theaarif Muhammad Arif
              mbocek@redhat.com Michal Bocek
              Max Clinton Max Clinton
              Votes:
              0 Vote for this issue
              Watchers:
              20 Start watching this issue

                Created:
                Updated:
                Resolved: