Bug 1661950

Summary: Not all satellite clients are visible on satellite's insights inventory page
Product: Red Hat Hybrid Cloud Console (console.redhat.com) Reporter: Amar Huchchanavar <ahuchcha>
Component: ClientAssignee: Rex White <rexwhite>
Status: CLOSED CURRENTRELEASE QA Contact: Jeff Needle <jneedle>
Severity: high Docs Contact: Kevin Blake <kblake>
Priority: high    
Version: unspecifiedCC: dajohnso, dlezzoum, jneedle, jnewton, khoes, klape, lphiri, rexwhite, roarora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-02 11:39:12 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 2018-12-24 19:16:13 UTC
Description of problem:
Unable to see some of the clients under Insights -> Inventory page on satellite.

Version-Release number of selected component (if applicable):
insights-client + satellite 6

How reproducible:
Always

Steps to Reproduce:
1.Register system to Satellite for software updates.
2.Register system to insights
3.Unregister system from Satellite.
4.Upload insights data using #insights-client 
5.Check Inventory page on Satellite.

Actual results:
It does not show the re-registered system under Satellite's Inventory page.

Expected results:
It should show the system.

Additional info:
This issue occurs when there is a mismatch in remote_branch and system's identity
[remote_leaf from insights  !=  #subscription-manager identity ]

Comment 6 Djebran Lezzoum 2019-05-03 10:35:18 UTC
Verified with satellite 6.5 and 6.4

Steps:
   1.Register system to Satellite using subscription-manager.
   2.Register system to insights
    - System visible in Satellite - Insights > Inventory
   3.Unregister system from Satellite.
    - System not visible in Satellite - Insights > Inventory 
   4- Register again system to Satellite.
    - System not visible in Satellite - Insights > Inventory 
   5. in system run command: insights-client
    - System visible in Satellite - Insights > Inventory

retried steps 3-5 and the behavior is constant between retries

Comment 7 Djebran Lezzoum 2019-09-02 08:34:36 UTC
This bug seems not relevant anymore, created an automation test

Steps:

1. Subscribe a host to satellite
2. Register the host with insights-client --register
3. Ensure the host is visible in satellite Insights Inventory
4. Unregister the host from satellite with subscription-manager unregister
5. Ensure the host is not visible in satellite Insights Inventory
6. Subscribe the host to satellite again
7. Run command: insights-client

expected results:
The host is visible in satellite Insights Inventory page


test passing on satellite 6.4 and satellite 6.5