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 1615800

Summary: Export list of content host do not honour search filter
Product: Red Hat Satellite Reporter: Nikhil Kathole <nkathole>
Component: Hosts - ContentAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Nikhil Kathole <nkathole>
Severity: medium Docs Contact:
Priority: high    
Version: 6.4CC: bhoefer, dgross, egolov, mmccune, pcreech, pmoravec, sghai, tbrisker
Target Milestone: 6.5.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.9.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-14 12:37:48 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:
Bug Depends On:    
Bug Blocks: 1464219    

Description Nikhil Kathole 2018-08-14 09:39:19 UTC
Description of problem: 

Exporting list of content host on the basis of search filter result added all content hosts in csv file.

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

Satellite 6.4 snap 17


How reproducible: always


Steps to Reproduce:
1. Navigate to Hosts-> content host (Have some hosts in satellite)
2. Search for any host pattern (such as os_title ~ "RHEL Server 7.5")
3. Click on export

Actual results:
All the hosts info in satellite get exported in csv.


Expected results:

only filtered host info should present in csv.


Additional info: This works as expected at Hosts -> All hosts page. (Export on content host page is newly added in sat 6.4)

Comment 3 Brad Buckingham 2018-08-14 13:07:26 UTC
Hi Tomer,

This was opened while verifying bug 1464219.  Is this a bug or RFE?

If I recall correctly, the Export CSV does not honor search filters or paging.  If so, I was unsure if this is intentional.

Comment 4 Tomer Brisker 2018-08-14 15:00:12 UTC
CSV export should respect search filters (as well as org/loc context). It should only ignore pagination. (and ordering which is ignored for performance reasons)

Comment 7 Samir Jha 2018-10-17 20:22:54 UTC
Created redmine issue http://projects.theforeman.org/issues/25226 from this bug

Comment 8 Satellite Program 2018-10-25 14:06:24 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/25226 has been resolved.

Comment 11 Nikhil Kathole 2018-12-12 10:42:03 UTC
VERIFIED

Version tested:
Satellite 6.5 snap 7 

Successfully exported only list of hosts which are filtered.

Comment 15 errata-xmlrpc 2019-05-14 12:37:48 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-2019:1222

Comment 16 Brad Buckingham 2019-07-10 20:56:24 UTC
*** Bug 1604457 has been marked as a duplicate of this bug. ***