Bug 1973178
| Summary: | [RFE] Insights - Visual representation of systems registerd / in sync with Insights | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | James Jeffers <jjeffers> |
| Component: | RH Cloud - Insights | Assignee: | Shimon Shtein <sshtein> |
| Status: | CLOSED ERRATA | QA Contact: | Jameer Pathan <jpathan> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.10.0 | CC: | aruzicka, bbuckingham, ben.argyle, egolov, jpathan, lstejska, mayadav, osousa, sshtein |
| Target Milestone: | 6.9.4 | Keywords: | FutureFeature, Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | tfm-rubygem-foreman_rh_cloud-3.0.24.1 | Doc Type: | Enhancement |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1962930 | Environment: | |
| Last Closed: | 2021-07-29 12:58:50 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
James Jeffers
2021-06-17 11:19:42 UTC
*** Bug 1687852 has been marked as a duplicate of this bug. *** 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 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. 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 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 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 |