Bug 1489403
| Summary: | After upgrade package install page remains in loading state and getting execption w/ error: NoMethodError: undefined method `order' for #<Array:0x007fbf964b8748> | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Sachin Ghai <sghai> | ||||||
| Component: | Hosts - Content | Assignee: | satellite6-bugs <satellite6-bugs> | ||||||
| Status: | CLOSED DUPLICATE | QA Contact: | Katello QA List <katello-qa-list> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 6.2.12 | CC: | bbuckingham, bkearney, sghai | ||||||
| Target Milestone: | Unspecified | Keywords: | Regression, Triaged | ||||||
| Target Release: | Unused | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2017-09-25 11:25:19 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: |
|
||||||||
Created attachment 1323064 [details]
complete exception from production.log
I think its side effect of changes appears w/ bz1419139. I'll keep this open until next snap and will re-check if its fixed w/ new snap. 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! Yeah, issue has been fixed. closing this out. *** This bug has been marked as a duplicate of bug 1419139 *** |
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: