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 1593553 - Error while assigning location to a number of hosts that is larger than per_page setting
Summary: Error while assigning location to a number of hosts that is larger than per_p...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts - Content
Version: 6.3.0
Hardware: x86_64
OS: Unspecified
unspecified
high
Target Milestone: 6.4.0
Assignee: Stephen Benjamin
QA Contact: Matt Pusateri
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-21 05:09 UTC by Ranjan Kumar
Modified: 2021-09-09 14:40 UTC (History)
5 users (show)

Fixed In Version: foreman-1.18.0.19-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-16 19:02:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Steps Recorded (646.85 KB, image/gif)
2018-06-21 05:09 UTC, Ranjan Kumar
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 24702 0 Normal Closed Error while assigning location to a number of hosts that is larger than per_page setting 2020-03-31 09:42:12 UTC
Red Hat Bugzilla 1634728 0 unspecified CLOSED Discovered host assign organization or assign location failure 2021-02-22 00:41:40 UTC

Internal Links: 1634728

Description Ranjan Kumar 2018-06-21 05:09:27 UTC
Created attachment 1453334 [details]
Steps Recorded

Description of problem:


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


How reproducible: Always


Steps to Reproduce:
1. Navigate to Hosts -> All Hosts
2. In the search box, use a filter like "lifecycle_environment = Library" that will yield a number of servers that is larger than the "Entries per page" setting.
3. select the check box that selects all hosts on this page and then select "Select all <no> hosts"
4. click on "Select Action" and select "Assign Location" from the drop-down box
5. select Fix Location on Mismatch and a location.
6. click Submit

Actual results:
Oops, we're sorry but something went wrong ERROR: missing FROM-clause entry for table "katello_environments" LINE 1: ..." WHERE "hosts"."type" IN ('Host::Managed') AND (("katello_e... ^ 

Expected results:
It should not show any error message

Additional info:
Similarly
Assign Organization produces a similar error when filter used "organization = <org-name>"
 Oops, we're sorry but something went wrong ERROR: missing FROM-clause entry for table "taxonomies" LINE 1: ...Managed') AND "hosts"."organization_id" = 1 AND (("taxonomie... ^

Comment 2 Mike McCune 2018-08-07 17:13:20 UTC
This is fairly easy to reproduce, just set your "Per Page" setting to something really small like 5 and ensure you are trying to select 6 or more hosts from the Content Hosts bulk actions page.

This is a regression from 6.2 as it does not have this same error. Marking as such.

Comment 4 Mike McCune 2018-08-07 17:36:38 UTC
This makes bulk changes to hosts impossible when the number is anything more than one page long.

Comment 5 Stephen Benjamin 2018-08-23 17:11:14 UTC
Created redmine issue https://projects.theforeman.org/issues/24702 from this bug

Comment 6 Satellite Program 2018-08-31 12:16:56 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/24702 has been resolved.

Comment 9 Matt Pusateri 2018-09-19 19:28:22 UTC
Verified in 6.4.0-22

Comment 10 Bryan Kearney 2018-10-16 19:02:32 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:2927


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