Bug 1593553
Summary: | Error while assigning location to a number of hosts that is larger than per_page setting | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Ranjan Kumar <rankumar> | ||||
Component: | Hosts - Content | Assignee: | Stephen Benjamin <stbenjam> | ||||
Status: | CLOSED ERRATA | QA Contact: | Matt Pusateri <mpusater> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.3.0 | CC: | egolov, inecas, mmccune, mpusater, vincent.vandecamp | ||||
Target Milestone: | 6.4.0 | Keywords: | Regression, Triaged | ||||
Target Release: | Unused | ||||||
Hardware: | x86_64 | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | foreman-1.18.0.19-1 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2018-10-16 19:02:32 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: |
|
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. This makes bulk changes to hosts impossible when the number is anything more than one page long. Created redmine issue https://projects.theforeman.org/issues/24702 from this bug Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/24702 has been resolved. Verified in 6.4.0-22 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 |
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... ^