Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1492696

Summary: Search doesn't work for template type
Product: Red Hat Satellite Reporter: Oleksandr Shtaier <oshtaier>
Component: Audit LogAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Nikhil Kathole <nkathole>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbuckingham, ehelms, inecas, nkathole, oshtaier
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 17:09:04 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:
Attachments:
Description Flags
full list
none
search results
none
screenshot of UI searching for partition_table and templates
none
screenshot of UI seraching type = templates none

Description Oleksandr Shtaier 2017-09-18 13:39:16 UTC
Description of problem:
Search for 'type = template' return nothing when audit logs has corresponding entries for full entities list

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

How reproducible:
Always

Steps to Reproduce:
1. Create new provisioning template
2. Search for that template by its type no matter in WebUI or using API
3.

Actual results:
No results returned

Expected results:
All created templates should be returned

Additional info:
Can be related https://bugzilla.redhat.com/show_bug.cgi?id=1492668

Comment 1 Oleksandr Shtaier 2017-09-18 13:41:56 UTC
Created attachment 1327452 [details]
full list

Comment 2 Oleksandr Shtaier 2017-09-18 13:42:19 UTC
Created attachment 1327453 [details]
search results

Comment 9 Ivan Necas 2017-09-22 15:44:23 UTC
The fix for http://projects.theforeman.org/issues/20708 also changes the way the search is provided, after that is shipped, it will be possible to search by "partition_table = aaa" or "provisioning_template = bbb". Turning to "modified" as https://bugzilla.redhat.com/show_bug.cgi?id=1492668 is modified as well.

Comment 10 Nikhil Kathole 2017-10-09 14:32:23 UTC
VERIFIED

Version Tested:
Satellite-6.3 Snap 19

steps:
1. Created new provisioning template and partition table
2. Search for type = template

Successfully searched for provisioning templates, partition_table = <table name> and provisioning_template = <template name>.(see attachment)

Comment 11 Nikhil Kathole 2017-10-09 14:33:23 UTC
Created attachment 1336432 [details]
screenshot of UI searching for partition_table and templates

Comment 12 Nikhil Kathole 2017-10-09 14:33:56 UTC
Created attachment 1336433 [details]
screenshot of UI seraching type = templates

Comment 13 Bryan Kearney 2018-02-21 17:09:04 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, 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-2018:0336