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 1980875 - [RFE] Remove InsightsReporting status affecting global host status from relvancy if insights disabled.
Summary: [RFE] Remove InsightsReporting status affecting global host status from relva...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: RH Cloud - Insights
Version: 6.9.0
Hardware: All
OS: All
unspecified
low
Target Milestone: 6.9.5
Assignee: Shimon Shtein
QA Contact: Jameer Pathan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-09 16:54 UTC by Dylan Gross
Modified: 2024-10-01 18:56 UTC (History)
6 users (show)

Fixed In Version: 3.0.25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-31 12:04:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 6176762 0 None None None 2021-07-09 17:01:35 UTC
Red Hat Product Errata RHBA-2021:3387 0 None None None 2021-08-31 12:04:18 UTC

Description Dylan Gross 2021-07-09 16:54:16 UTC
1. Proposed title of this feature request

    [RFE] Remove InsightsReporting status affecting global host status from relvancy if insights disabled.

3. What is the nature and description of the request?

    As of Satellite 6.9.3, when building a host, a host status is set depending on whether that host has sent it's Insights report.
    If it has not, it reports as an error, and that error status then causes the entire host global status to be an error.
   
    If a user disables the Global Parameter 'host_insights_registration`, then all future hosts will have the Insights reporting status as "Ok" and will not cause the overall host to report an error, but perhaps no Insights Reporting status should be reported whatsoever if Insights reporting is disabled (either via disabling the global or overridden parameter for the host, or by disabling the Insights service entirely on the satellite).

4. Why does the customer need this? (List the business requirements here)

    If a customer doesn't use Insights, the Insights reporting status is irrelevant and should not affect the global status of the host one way or another.

5. How would the customer like to achieve this? (List the functional requirements here)

    If the Insights service is turned off by some mechanism (disabling the Global Parameter, or the parameter is overridden for a host maybe), then no status should be reported whatsoever.

6. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.

    Disable insights reporting.   Build a new host and "submit".  
    No Insights status should be set, as it is in either of the two screenshots in this article:   https://access.redhat.com/solutions/6176762

7. Is there already an existing RFE upstream or in Red Hat Bugzilla?

    No

8. Does the customer have any specific timeline dependencies and which release would they like to target (i.e. RHEL8, RHEL9)?

    No

9. Is the sales team involved in this request and do they have any additional input?

    No

10. List any affected packages or components.

   tfm-rubygem-foreman_rh_cloud-3.0.22-1.el7sat.noarch

11. Would the customer be able to assist in testing this functionality if implemented?

   Yes.

Comment 2 Jameer Pathan 2021-08-16 07:43:55 UTC
Verified

Verified with:
- Satellite 6.9.5 snap 2
- tfm-rubygem-foreman_rh_cloud-3.0.25-1.el7sat.noarch

Test steps:
- Register a satellite content host with insights.
- Run "/usr/sbin/foreman-rake rh_cloud_insights:clean_statuses SEARCH="dhcp""

Observation:
- rh_cloud_insights:clean_statuses rake command deletes insights status of hosts based on given search query.
- Host won't show insights status until host itself sends a report.

********************************************************************************
[root@dhcp-3-161 ~]# /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 7 errata-xmlrpc 2021-08-31 12:04:00 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.5 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:3387


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