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.
After upgrade package install page remains in loading state and getting execption w/ error: NoMethodError: undefined method `order' for #<Array:0x007fbf964b8748>
Created attachment 1323063[details]
loading package install page from UI
Description of problem:
Upgraded satellite 6.2.11 -> 6.2.12 and I see following error while installing packages on content hosts:
2017-09-07 07:28:25 60e323d5 [app] [I] Started GET "/api/v2/hosts/48/packages?page=1&search=" for 10.65.223.131 at 2017-09-07 07:28:25 -0400
2017-09-07 07:28:25 60e323d5 [app] [I] Processing by Katello::Api::V2::HostPackagesController#index as JSON
2017-09-07 07:28:25 60e323d5 [app] [I] Parameters: {"page"=>"1", "search"=>"", "api_version"=>"v2", "host_id"=>"48"}
2017-09-07 07:28:25 60e323d5 [app] [E] NoMethodError: undefined method `order' for #<Array:0x007fbf964b8748>
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.152/app/controllers/katello/api/v2/api_controller.rb:76:in `scoped_search'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.152/app/controllers/katello/api/v2/host_packages_controller.rb:23:in `index'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/abstract_controller/base.rb:189:in `process_action'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/action_controller/metal/rendering.rb:10:in `process_action'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:113:in `call'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:113:in `call'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:149:in `call'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:149:in `call'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:149:in `call'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in `call'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in `block in halting'
Version-Release number of selected component (if applicable):
upgrade 6.2.11 -> 6.2.12
How reproducible:
Steps to Reproduce:
1. upgrade satellite
2. try to install package on content-host registered before upgrade
3.
Actual results:
package install page remains in loading state and see following error in production.log:
2017-09-07 07:28:25 60e323d5 [app] [E] NoMethodError: undefined method `order' for #<Array:0x007fbf964b8748>
Expected results:
no error should raise and user should be install packages.
Additional info:
Hi Sachin, adding a needinfo to ensure we cover comment 3. The fix for bug 1419139 is in the latest snap, so let us know if the issue persists or if we may close this one out. Thanks!
Created attachment 1323063 [details] loading package install page from UI Description of problem: Upgraded satellite 6.2.11 -> 6.2.12 and I see following error while installing packages on content hosts: 2017-09-07 07:28:25 60e323d5 [app] [I] Started GET "/api/v2/hosts/48/packages?page=1&search=" for 10.65.223.131 at 2017-09-07 07:28:25 -0400 2017-09-07 07:28:25 60e323d5 [app] [I] Processing by Katello::Api::V2::HostPackagesController#index as JSON 2017-09-07 07:28:25 60e323d5 [app] [I] Parameters: {"page"=>"1", "search"=>"", "api_version"=>"v2", "host_id"=>"48"} 2017-09-07 07:28:25 60e323d5 [app] [E] NoMethodError: undefined method `order' for #<Array:0x007fbf964b8748> | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.152/app/controllers/katello/api/v2/api_controller.rb:76:in `scoped_search' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.152/app/controllers/katello/api/v2/host_packages_controller.rb:23:in `index' | /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/action_controller/metal/implicit_render.rb:4:in `send_action' | /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/abstract_controller/base.rb:189:in `process_action' | /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/action_controller/metal/rendering.rb:10:in `process_action' | /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/abstract_controller/callbacks.rb:20:in `block in process_action' | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:113:in `call' | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:113:in `call' | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:149:in `call' | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:149:in `call' | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:149:in `call' | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in `call' | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in `block in halting' Version-Release number of selected component (if applicable): upgrade 6.2.11 -> 6.2.12 How reproducible: Steps to Reproduce: 1. upgrade satellite 2. try to install package on content-host registered before upgrade 3. Actual results: package install page remains in loading state and see following error in production.log: 2017-09-07 07:28:25 60e323d5 [app] [E] NoMethodError: undefined method `order' for #<Array:0x007fbf964b8748> Expected results: no error should raise and user should be install packages. Additional info: