Bug 1760881

Summary: [RFE] cloud.redhat.com can not handle cloned(source image was already registered to insights) systems registration.
Product: Red Hat Hybrid Cloud Console (console.redhat.com) Reporter: Amar Huchchanavar <ahuchcha>
Component: InventoryAssignee: Greg McCullough <gmccullo>
Status: CLOSED WONTFIX QA Contact: fstavela
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dajohnso, lphiri, robwilli
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-23 19:23:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Amar Huchchanavar 2019-10-11 15:18:25 UTC
Description of problem:
Insights does not create a different profile for the cloned(template was created after the insights registration) system.



Version-Release number of selected component (if applicable):
{
  "Username": "rhn-support-ahuchcha",
  "CurrentApp": "Inventory",
  "ApplicationPath": "/insights/inventory/2f732a9c-770e-449d-a45b-c336c3c6a0c0/",
  "apps": [
    {
      "name": "Chrome",
      "path": "apps/chrome/app.info.json",
      "version": "f3d0275e021cfa46982fd9a4376bda7a5ee9e079.7"
    },
    {
      "name": "Dashboard",
      "path": "apps/dashboard/app.info.json",
      "version": "885518d7bd10597f42fcc0cc2f3998605a5b85b9.3"
    },
    {
      "name": "Inventory",
      "path": "apps/inventory/app.info.json",
      "version": "0ff2438f86b7b7a31988da23fc6a1e0ae6fff725.4"
    },
    {
      "name": "Remediations",
      "path": "apps/remediations/app.info.json",
      "version": "84681c6bec6d888ba2dbca74871be340e06ac285.4"
    },
    {
      "name": "Vulnerability",
      "path": "apps/vulnerability/app.info.json",
      "version": "33a80f8e71c056dd2545e01ea8c5cc2d9fb6d16d.10"
    },
    {
      "name": "Compliance",
      "path": "apps/compliance/app.info.json",
      "version": "852e13ae269d2bb036ec6e00562f3639a25c1a5a.14"
    },
    {
      "name": "Cost Management",
      "path": "apps/cost-management/app.info.json",
      "version": "b7eed273154c4653584a4707f9100ae8a8869a34.5"
    },
    {
      "name": "Insights",
      "path": "apps/insights/app.info.json",
      "version": "7daaa05d9d6d34765937ffa7f7d0816fd0eb2584.59"
    },
    {
      "name": "System Comparison",
      "path": "apps/drift/app.info.json",
      "version": "9ae04b00473c5a9bc839381e1d9db8ece915d6f2.3"
    },
    {
      "name": "Migration Analytics",
      "path": "apps/migration-analytics/app.info.json"
    },
    {
      "name": "Automation Hub",
      "path": "apps/automation-hub/app.info.json"
    },
    {
      "name": "Automation Analytics",
      "path": "apps/automation-analytics/app.info.json"
    }
  ]
}

How reproducible:
Always

Steps to Reproduce:
1. Deploy the system and register to the Insights. [libvirt can be used]
2. Create a clone image.
3. Change IP/Hostname and try to --force register.
https://access.redhat.com/solutions/2462091 
4. Tried to regenerate : /var/lib/dbus/machine-id ,/etc/machine-id, /etc/insights-client/machine-id


Actual results:
It creates one profile with mixed data from both the systems.
Eg:System properties

Host name
    noclone.rhel6.com
Display name
    clone.rhel6.com

Ansible hostname
    noclone.rhel6.com

https://cloud.redhat.com/insights/inventory/2f732a9c-770e-449d-a45b-c336c3c6a0c0/


Expected results:
# redhat-access-insights --force-reregister  should do the needful.

Comment 1 Dave Johnson 2019-10-11 16:18:13 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.

If it's something like a tracker bug where it doesn't matter, please set the severity to Low.

Comment 15 Rob Williams 2021-09-23 19:23:18 UTC
Thank you for opening this RFE for Red Hat Insights. We have evaluated this request and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this feel free to contact your Red Hat Account Team. Thank you.