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 1992495 - [RFE] add more search options on the base of status information
Summary: [RFE] add more search options on the base of status information
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Search
Version: 6.10.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 6.15.0
Assignee: Marek Hulan
QA Contact: Pavel Novotny
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-11 08:50 UTC by Stefan Nemeth
Modified: 2024-04-23 17:10 UTC (History)
5 users (show)

Fixed In Version: foreman-3.7.0, foreman_rh_cloud-7.0.45
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-04-23 17:10:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 35845 0 Normal Closed Searching hosts should be possible by all reported data 2023-03-01 15:16:16 UTC
Foreman Issue Tracker 35846 0 Normal Ready For Testing Searching hosts should be possible by PXE loader 2023-03-01 15:16:14 UTC
Github theforeman foreman pull 9546 0 None Merged Fixes #35843 - add alias for configuration_status searching 2023-03-02 08:21:27 UTC
Github theforeman foreman_rh_cloud pull 790 0 None Merged Add host searching based on insights statuses 2023-03-02 08:21:22 UTC
Red Hat Issue Tracker SAT-9132 0 None None None 2022-03-17 14:16:36 UTC
Red Hat Product Errata RHSA-2024:2010 0 None None None 2024-04-23 17:10:51 UTC

Internal Links: 2077529

Description Stefan Nemeth 2021-08-11 08:50:56 UTC
Description of problem:

Add possibility to filter hosts on the base of following options

Status
Configuration
Execution
Insights
Inventory
Errata
Subscription
Traces

also option to filter by

facts, such as Manufacturer, PXE Loader, or whether they have katello tracer and katello agent installed (Content Hosts/ Host X/ Katello Tracer + Agent).

Release Version.

Metrics and information as applied, failed, failed_restarts, Provisioning Details 


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

6.10
.
How reproducible:

100%

Steps to Reproduce:
1.navigate to hosts
2.try to search 


Actual results:

not possible to filter hosts on the base of criteria mentioned in description

Expected results:

Have possiblity to filter hosts on the base of above mentioned  criteria

Additional info:

Comment 1 Brad Buckingham 2022-09-02 20:25:18 UTC
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team.  Thank you.

Comment 2 Brad Buckingham 2022-09-05 22:55:19 UTC
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team.  Thank you.

Comment 4 Marek Hulan 2022-09-29 13:44:58 UTC
This request shouldn't get closed. Few updates that we recently clarified

1) some of the states are searcheable, but not all, we should make sure all of them are searchable,
e.g. "errata_status = security_needed" or "subscription_status = valid" or "trace_status = reboot_needed" works today, but insights_status definition does not exist

2) searching by facts is already possible today, e.g.
"reported.sockets > 2"
"reported.cores = 4"
facts.processor0 = "Intel Core Processor (Broadwell, no TSX)"

but we have seen that more data should be added to the reported_data facet and should be searchable

Comment 6 Marek Hulan 2022-12-09 09:44:34 UTC
Based on the list above, we have identified two main categories of the data that are missing. The next steps:

1) go through all statuses (including plugins) and add missing definitions
2) go through all reported data and add missing search definitions

Comment 7 Marek Hulan 2022-12-09 11:55:17 UTC
Regrading 1)

the only missing statuses found were for insights, here's the list of all available status searching terms
errata_status
addon_status
role_status
sla_status
purpose_status
usage_status
subscription_status
trace_status
compliance_status
execution_status
configuration_status.$metric**
build_status
insights_client_report_status*
insights_inventory_sync_status*

* pending https://github.com/theforeman/foreman_rh_cloud/pull/790
** configuration status alias introduced by https://github.com/theforeman/foreman/pull/9546, currently it's available only as "status.$metric" where $metric is e.g. applied, failed. One special metric is "interesting", user can find all hosts with events in the last report by "status.interesting = true"

Besides things that can be found through facts, we added more things to "reported data", which is based on all fact sources and is easier to search on. Currently this list is
reported.boot_time
reported.cores
reported.disk_total
reported.kernel_version
reported.ram
reported.sockets
reported.virtual
reported.bios_version*
reported.bios_release_date*
reported.bios_vendor*

* pending https://projects.theforeman.org/issues/35845

From the explicit list we also added pxe_loader in https://projects.theforeman.org/issues/35846

Katello Agent is deprecated so we probably won't introduce that. The Traces status should be searchable through trace_status. For hosts not having any trace status, the following search syntax will work "null? trace_status".

Comment 8 Bryan Kearney 2022-12-09 12:02:22 UTC
Upstream bug assigned to mhulan

Comment 9 Bryan Kearney 2023-03-03 16:02:15 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35845 has been resolved.

Comment 11 Pavel Novotny 2024-02-07 18:01:05 UTC
Verified in Satellite 6.15 snap 8:
satellite-6.15.0-2.el8sat.noarch
foreman-3.9.1.5-1.el8sat.noarch
rubygem-foreman_rh_cloud-9.0.55-1.el8sat.noarch


New search parameters:

'configuration_status' alias for 'status'
reported.bios_release_date
reported.bios_vendor
reported.bios_version
insights_client_report_status
insights_inventory_sync_status


Search examples:

configuration_status.enabled  =  true  # equals to 'status.enabled  =  true'
reported.bios_release_date ~ 2014  # note: the date field is handled as a plain-text, it is not possible to do a time-based search like 'reported.bios_release_date >= 01/01/2014'
reported.bios_vendor = SeaBIOS  # the '=' operator is case sensitive. for case-insensitive search use the '~' operator
reported.bios_version ~ 1.14
insights_client_report_status = reporting
insights_inventory_sync_status = disconnect

Comment 14 errata-xmlrpc 2024-04-23 17:10: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 (Important: Satellite 6.15.0 release), 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/RHSA-2024:2010


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