Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1973178 - [RFE] Insights - Visual representation of systems registerd / in sync with Insights
Summary: [RFE] Insights - Visual representation of systems registerd / in sync with In...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: RH Cloud - Insights
Version: 6.10.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 6.9.4
Assignee: Shimon Shtein
QA Contact: Jameer Pathan
URL:
Whiteboard:
: 1687852 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-17 11:19 UTC by James Jeffers
Modified: 2024-10-01 18:40 UTC (History)
9 users (show)

Fixed In Version: tfm-rubygem-foreman_rh_cloud-3.0.24.1
Doc Type: Enhancement
Doc Text:
Clone Of: 1962930
Environment:
Last Closed: 2021-07-29 12:58:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 5226751 0 None None None 2021-07-01 07:48:59 UTC
Red Hat Product Errata RHBA-2021:2948 0 None None None 2021-07-29 13:03:39 UTC

Description James Jeffers 2021-06-17 11:19:42 UTC
+++ This bug was initially created as a clone of Bug #1962930 +++

Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 7 Shimon Shtein 2021-07-01 07:49:00 UTC
*** Bug 1687852 has been marked as a duplicate of this bug. ***

Comment 12 Leos Stejskal 2021-07-21 07:58:36 UTC
Hi,
I'm not sure TBH, seems like problem with loading of host parameter values.
This should be fixed with upcoming PR [0] for simplifying the logic of insights status

[0] https://github.com/theforeman/foreman_rh_cloud/pull/596

Comment 14 Shimon Shtein 2021-07-22 08:11:36 UTC
After a discussion we decided to simplify the status to the following:

There would be only two statuses:
1. A host received a report in the last 48 hours (green)
2. A host received a report, but it was more than 48 hours ago (red)

A host would not receive any status unless a report is received for this host.
If the status is red, but the user decides it's OK, he can delete the status entirely and the status would be gone until a report would be received again for the same host.

There is a rake task to delete the status given a search condition against hosts.

This should make the code much simpler and the status could be determined easily.

Comment 15 Jameer Pathan 2021-07-27 07:19:25 UTC
Verified:

Verified with:
- Satellite 6.9.4 snap 2
- tfm-rubygem-foreman_rh_cloud-3.0.24.1-1.el7sat.noarch

Test steps:
- Register a satellite content host with insights.
- Changed 48 hours wait time to 4 minutes for testing.
- Run "/usr/sbin/foreman-rake rh_cloud_insights:clean_statuses SEARCH="dhcp""

Observations:
- When satellite received insights report in last 4 minutes then "Insights: Reporting" status(Green) is shown for that host.
- When satellite received insights report but it was more than 4 minutes ago then "Insights: Not reporting" status(Red) is shown for that host.
- rh_cloud_insights:clean_statuses rake command deletes insights status of hosts based on given search query.

********************************************************************
[root@dhcp-3-15 ~]# /usr/sbin/foreman-rake rh_cloud_insights:clean_statuses SEARCH="dhcp" --trace
** Invoke rh_cloud_insights:clean_statuses (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute rh_cloud_insights:clean_statuses
Deleted 2 insights statuses

Comment 20 errata-xmlrpc 2021-07-29 12:58:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Satellite 6.9.4 Async Bug Fix Update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:2948

Comment 21 errata-xmlrpc 2021-07-29 13:02:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Satellite 6.9.4 Async Bug Fix Update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:2948


Note You need to log in before you can comment on or make changes to this bug.