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 1216200 - Attempting to display the content hosts that have the errata in their life cycle environment failed
Summary: Attempting to display the content hosts that have the errata in their life cy...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Walden Raines
QA Contact: sthirugn@redhat.com
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-28 18:01 UTC by sthirugn@redhat.com
Modified: 2017-02-23 20:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 13:57:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Page loads forever (83.31 KB, image/png)
2015-04-28 18:01 UTC, sthirugn@redhat.com
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 10308 0 None None None 2016-04-22 15:01:19 UTC

Description sthirugn@redhat.com 2015-04-28 18:01:58 UTC
Created attachment 1019813 [details]
Page loads forever

Description of problem:
Attempting to display the content hosts that have the errata in their life cycle environment failed

Version-Release number of selected component (if applicable):
Satellite-6.1.0-RHEL-6-20150424.0

How reproducible:
Always

Steps to Reproduce:
1. Go to Content -> Errata
2. Select an errata which is installable in atleast 2 content hosts 
3. Click 'Apply Errata'
4. Check the check box which says "Only show content hosts where $errata is currently installable in the host's Lifecycle Environment."

Actual results:
The UI never loads (screenshot attached).  I saw this error in foreman/production.log
2015-04-28 14:00:39 [I]   Parameters: {"erratum_id"=>"812b13a6-82a2-46e7-ab10-5e752048f653", "organization_id"=>"1", "page"=>1, "search"=>"", "erratum_restrict_installable"=>false, "fields"=>"full", "api_version"=>"v2", "system"=>{}}
2015-04-28 14:00:39 [E] NoMethodError: undefined method `to_bool' for false:FalseClass
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.37/app/controllers/katello/api/v2/systems_controller.rb:391:in `systems_by_errata'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.37/app/controllers/katello/api/v2/systems_controller.rb:75:in `index'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:167:in `process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rendering.rb:10:in `process_action'

Expected results:
Page loads without error

Additional info:

Comment 3 Walden Raines 2015-04-29 14:43:07 UTC
Created redmine issue http://projects.theforeman.org/issues/10308 from this bug

Comment 4 Walden Raines 2015-04-29 14:49:42 UTC
PR: https://github.com/Katello/katello/pull/5198

Comment 5 Walden Raines 2015-05-19 13:52:18 UTC
Required Foreman change merged - https://github.com/theforeman/foreman/commit/c74610f9ae1de9c543dd976c26ee7d81fe6506e6

Comment 6 Bryan Kearney 2015-05-19 16:05:47 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/10308 has been closed
-------------
Walden Raines
Applied in changeset commit:katello|9f2797e3d9540b548e499f714773ead424e1932f.

Comment 7 Bryan Kearney 2015-05-19 16:32:52 UTC
commit 94bc4ac39f4cd230e0eebec2c3c1a5930b745159
Author: Walden Raines <walden>
Date:   Tue May 5 10:56:23 2015 -0400

    Fixes #10402: add to_bool function for converting to boolean.
    
    This commit adds a to_bool function for casting values to boolean
    as well as an example usage.
    
    http://projects.theforeman.org/issues/10402
    (cherry picked from commit c74610f9ae1de9c543dd976c26ee7d81fe6506e6)


commit 4c5b9af92e0ead438ceff6b4d56322d309feb579
Author: Walden Raines <walden>
Date:   Wed Apr 29 10:43:21 2015 -0400

    Fixes #10308: prevent ISE on errata content hosts page BZ1216200.
    
    Add to_bool methods for TrueClass, FalseClass, Fixnum, and NilClass
    in order to prevent undefined method error.
    
    http://projects.theforeman.org/issues/10308
    https://bugzilla.redhat.com/show_bug.cgi?id=1216200
    (cherry picked from commit 9f2797e3d9540b548e499f714773ead424e1932f)
    
    Conflicts:
        lib/monkeys/string_to_bool.rb
        spec/lib/string.rb

Comment 9 sthirugn@redhat.com 2015-05-21 18:20:54 UTC
Verified in Sat 6.1 GA Snap 5.  I am able to view the content hosts that have the errata in their life cycle environment.

Comment 10 Bryan Kearney 2015-08-11 13:32:20 UTC
This bug is slated to be released with Satellite 6.1.

Comment 11 Bryan Kearney 2015-08-12 13:57:56 UTC
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.


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