Bug 1333137 - Cloud : Image Table Sort by "last Analysis Time" shows error
Summary: Cloud : Image Table Sort by "last Analysis Time" shows error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.6.0
Assignee: Ladislav Smola
QA Contact: Shveta
URL:
Whiteboard: cloud :instances
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-04 18:05 UTC by Shveta
Modified: 2016-06-29 15:57 UTC (History)
5 users (show)

Fixed In Version: 5.6.0.6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-29 15:57:32 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Last analysis time (176.38 KB, image/png)
2016-05-04 18:05 UTC, Shveta
no flags Details
error (52.49 KB, image/png)
2016-05-04 18:05 UTC, Shveta
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 0 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 18:50:04 UTC

Description Shveta 2016-05-04 18:05:12 UTC
Created attachment 1153974 [details]
Last analysis time

Description of problem:


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


How reproducible:


Steps to Reproduce:
1. Add a cloud provider . CLick on the provider
2. Go to Images . List view
3. Click on  column "Last Analysis Time " 

Actual results:


Expected results:


Additional info:

Build : 5.6.0.5-beta2.4.20160503153816_1fb554f 


Logs
=============
[----] F, [2016-05-04T13:49:38.589454 #3057:105a66c] FATAL -- : Error caught: [NoMethodError] undefined method `to_sql' for #<Arel::Attributes::Attribute:0x0000000b56a940>
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb:659:in `block in columns_for_distinct'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb:657:in `map'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb:657:in `columns_for_distinct'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activerecord/lib/active_record/relation/finder_methods.rb:428:in `limited_ids_for'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activerecord/lib/active_record/relation/finder_methods.rb:420:in `apply_join_dependency'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activerecord/lib/active_record/relation/finder_methods.rb:380:in `find_with_associations'
/var/www/miq/vmdb/lib/extensions/ar_virtual.rb:407:in `find_with_associations'
/var/www/miq/vmdb/lib/extensions/ar_virtual.rb:409:in `find_with_associations'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activerecord/lib/active_record/relation.rb:699:in `exec_queries'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activerecord/lib/active_record/relation.rb:580:in `load'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activerecord/lib/active_record/relation.rb:260:in `records'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activerecord/lib/active_record/relation.rb:256:in `to_a'
/var/www/miq/vmdb/app/models/miq_report/generator.rb:350:in `build_table'
/var/www/miq/vmdb/app/models/miq_report/search.rb:112:in `paged_view_search'
/var/www/miq/vmdb/app/controllers/application_controller.rb:1592:in `get_view'
/var/www/miq/vmdb/app/controllers/ems_common.rb:118:in `view_setup_helper'
/var/www/miq/vmdb/app/controllers/ems_common.rb:69:in `show'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/abstract_controller/base.rb:181:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_controller/metal/rendering.rb:30:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/callbacks.rb:126:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/callbacks.rb:126:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/callbacks.rb:455:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/callbacks.rb:455:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/callbacks.rb:101:in `__run_callbacks__'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/callbacks.rb:90:in `run_callbacks'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/abstract_controller/callbacks.rb:19:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_controller/metal/rescue.rb:31:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/notifications.rb:164:in `block in instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/notifications.rb:164:in `instrument'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activerecord/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/abstract_controller/base.rb:126:in `process'
/opt/rh/cfme-gemset/gems/actionview-5.0.0.beta4/lib/action_view/rendering.rb:30:in `process'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_controller/metal.rb:190:in `dispatch'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_controller/metal.rb:262:in `dispatch'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/routing/route_set.rb:32:in `serve'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/journey/router.rb:39:in `block in serve'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/journey/router.rb:26:in `each'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/journey/router.rb:26:in `serve'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/routing/route_set.rb:725:in `call'
/opt/rh/cfme-gemset/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:186:in `call!'
/opt/rh/cfme-gemset/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:164:in `call'
/opt/rh/cfme-gemset/gems/omniauth-1.3.1/lib/omniauth/builder.rb:63:in `call'
/opt/rh/cfme-gemset/gems/secure_headers-3.0.3/lib/secure_headers/middleware.rb:10:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.0.alpha/lib/rack/etag.rb:25:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.0.alpha/lib/rack/conditional_get.rb:25:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.0.alpha/lib/rack/head.rb:12:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.0.alpha/lib/rack/session/abstract/id.rb:220:in `context'
/opt/rh/cfme-gemset/gems/rack-2.0.0.alpha/lib/rack/session/abstract/id.rb:214:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/middleware/cookies.rb:613:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/middleware/callbacks.rb:38:in `block in call'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/callbacks.rb:97:in `__run_callbacks__'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/callbacks.rb:90:in `run_callbacks'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/middleware/callbacks.rb:36:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
/opt/rh/cfme-gemset/gems/railties-5.0.0.beta4/lib/rails/rack/logger.rb:36:in `call_app'
/opt/rh/cfme-gemset/gems/railties-5.0.0.beta4/lib/rails/rack/logger.rb:26:in `call'
/opt/rh/cfme-gemset/gems/request_store-1.3.1/lib/request_store/middleware.rb:9:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/middleware/request_id.rb:24:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.0.alpha/lib/rack/method_override.rb:22:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.0.alpha/lib/rack/runtime.rb:22:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/middleware/executor.rb:12:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.0.alpha/lib/rack/sendfile.rb:111:in `call'
/opt/rh/cfme-gemset/gems/railties-5.0.0.beta4/lib/rails/engine.rb:522:in `call'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/puma-3.3.0/lib/puma/configuration.rb:224:in `call'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/puma-3.3.0/lib/puma/server.rb:561:in `handle_request'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/puma-3.3.0/lib/puma/server.rb:406:in `process_client'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/puma-3.3.0/lib/puma/server.rb:271:in `block in run'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/puma-3.3.0/lib/puma/thread_pool.rb:111:in `call'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/puma-3.3.0/lib/puma/thread_pool.rb:111:in `block in spawn_thread'
/opt/rh/cfme-gemset/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
/opt/rh/cfme-gemset/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'

Comment 1 Shveta 2016-05-04 18:05:52 UTC
Created attachment 1153975 [details]
error

Comment 3 Ladislav Smola 2016-05-05 09:54:56 UTC
same for the architecture column, it shows 

[----] D, [2016-05-05T11:53:03.302411 #11841:2a4dcb8] DEBUG -- :   CACHE (0.0ms)  SELECT COUNT(DISTINCT "vms"."id") FROM "vms" LEFT OUTER JOIN "hardwares" ON "hardwares"."vm_or_template_id" = "vms"."id" LEFT OUTER JOIN "compliances" ON "compliances"."resource_id" = "vms"."id" AND "compliances"."resource_type" = $1 LEFT OUTER JOIN "operating_systems" ON "operating_systems"."vm_or_template_id" = "vms"."id" LEFT OUTER JOIN "taggings" ON "taggings"."taggable_id" = "vms"."id" AND "taggings"."taggable_type" = $2 LEFT OUTER JOIN "tags" ON "tags"."id" = "taggings"."tag_id" WHERE "vms"."type" IN ('ManageIQ::Providers::CloudManager::Template', 'ManageIQ::Providers::Azure::CloudManager::Template', 'ManageIQ::Providers::Amazon::CloudManager::Template', 'ManageIQ::Providers::Openstack::CloudManager::Template', 'ManageIQ::Providers::Google::CloudManager::Template') AND "vms"."template" = $3 AND (((NOT (vms.ems_id IS NULL AND vms.storage_id IS NULL)) AND (NOT (vms.ems_id IS NULL AND vms.storage_id IS NOT NULL))) AND (vms.id IN (611,610,609,608,607,606,605,604,603,602,601,600,599,666,665)))  [["resource_type", "VmOrTemplate"], ["taggable_type", "VmOrTemplate"], ["template", true]]
[----] F, [2016-05-05T11:53:03.304533 #11841:2a4dcb8] FATAL -- : Error caught: [NoMethodError] undefined method `to_sql' for #<Arel::Attributes::Attribute:0x007f1f87cb3128>
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb:659:in `block in columns_for_distinct'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb:657:in `map'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb:657:in `columns_for_distinct'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activerecord/lib/active_record/relation/finder_methods.rb:428:in `limited_ids_for'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activerecord/lib/active_record/relation/finder_methods.rb:420:in `apply_join_dependency'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activerecord/lib/active_record/relation/finder_methods.rb:380:in `find_with_associations'
/home/Ladas/Projects/cfme/manageiq/lib/extensions/ar_virtual.rb:407:in `find_with_associations'
/home/Ladas/Projects/cfme/manageiq/lib/extensions/ar_virtual.rb:409:in `find_with_associations'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activerecord/lib/active_record/relation.rb:699:in `exec_queries'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activerecord/lib/active_record/relation.rb:580:in `load'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activerecord/lib/active_record/relation.rb:260:in `records'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activerecord/lib/active_record/relation.rb:256:in `to_a'
/home/Ladas/Projects/cfme/manageiq/app/models/miq_report/generator.rb:350:in `build_table'
/home/Ladas/Projects/cfme/manageiq/app/models/miq_report/search.rb:112:in `paged_view_search'
/home/Ladas/Projects/cfme/manageiq/app/controllers/application_controller.rb:1592:in `get_view'
/home/Ladas/Projects/cfme/manageiq/app/controllers/application_controller/ci_processing.rb:1047:in `process_show_list'
/home/Ladas/Projects/cfme/manageiq/app/controllers/vm_common.rb:1522:in `get_node_info'
/home/Ladas/Projects/cfme/manageiq/app/controllers/vm_common.rb:1563:in `replace_right_cell'
/home/Ladas/Projects/cfme/manageiq/app/controllers/mixins/vm_show_mixin.rb:16:in `explorer'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/abstract_controller/base.rb:181:in `process_action'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_controller/metal/rendering.rb:30:in `process_action'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activesupport/lib/active_support/callbacks.rb:126:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activesupport/lib/active_support/callbacks.rb:126:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activesupport/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activesupport/lib/active_support/callbacks.rb:455:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activesupport/lib/active_support/callbacks.rb:455:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activesupport/lib/active_support/callbacks.rb:101:in `__run_callbacks__'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activesupport/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activesupport/lib/active_support/callbacks.rb:90:in `run_callbacks'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/abstract_controller/callbacks.rb:19:in `process_action'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_controller/metal/rescue.rb:31:in `process_action'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activesupport/lib/active_support/notifications.rb:164:in `block in instrument'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activesupport/lib/active_support/notifications.rb:164:in `instrument'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activerecord/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/abstract_controller/base.rb:126:in `process'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionview/lib/action_view/rendering.rb:30:in `process'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_controller/metal.rb:190:in `dispatch'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_controller/metal.rb:262:in `dispatch'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_dispatch/routing/route_set.rb:32:in `serve'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_dispatch/journey/router.rb:39:in `block in serve'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_dispatch/journey/router.rb:26:in `each'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_dispatch/journey/router.rb:26:in `serve'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_dispatch/routing/route_set.rb:725:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:186:in `call!'
/home/Ladas/.rvm/gems/ruby-2.2.3/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:164:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/gems/omniauth-1.3.1/lib/omniauth/builder.rb:63:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/gems/secure_headers-3.0.3/lib/secure_headers/middleware.rb:10:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionview/lib/action_view/digestor.rb:12:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/gems/rack-2.0.0.alpha/lib/rack/etag.rb:25:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/gems/rack-2.0.0.alpha/lib/rack/conditional_get.rb:38:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/gems/rack-2.0.0.alpha/lib/rack/head.rb:12:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/gems/rack-2.0.0.alpha/lib/rack/session/abstract/id.rb:220:in `context'
/home/Ladas/.rvm/gems/ruby-2.2.3/gems/rack-2.0.0.alpha/lib/rack/session/abstract/id.rb:214:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_dispatch/middleware/cookies.rb:613:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_dispatch/middleware/callbacks.rb:38:in `block in call'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activesupport/lib/active_support/callbacks.rb:97:in `__run_callbacks__'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activesupport/lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activesupport/lib/active_support/callbacks.rb:90:in `run_callbacks'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_dispatch/middleware/callbacks.rb:36:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_dispatch/middleware/executor.rb:12:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/railties/lib/rails/rack/logger.rb:36:in `call_app'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/railties/lib/rails/rack/logger.rb:26:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/gems/request_store-1.3.1/lib/request_store/middleware.rb:9:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_dispatch/middleware/request_id.rb:24:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/gems/rack-2.0.0.alpha/lib/rack/method_override.rb:22:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/gems/rack-2.0.0.alpha/lib/rack/runtime.rb:22:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/activesupport/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_dispatch/middleware/executor.rb:12:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/actionpack/lib/action_dispatch/middleware/static.rb:136:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/gems/rack-2.0.0.alpha/lib/rack/sendfile.rb:111:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/bundler/gems/rails-6bd3e867f97c/railties/lib/rails/engine.rb:522:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/gems/puma-3.3.0/lib/puma/configuration.rb:224:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/gems/puma-3.3.0/lib/puma/server.rb:561:in `handle_request'
/home/Ladas/.rvm/gems/ruby-2.2.3/gems/puma-3.3.0/lib/puma/server.rb:406:in `process_client'
/home/Ladas/.rvm/gems/ruby-2.2.3/gems/puma-3.3.0/lib/puma/server.rb:271:in `block in run'
/home/Ladas/.rvm/gems/ruby-2.2.3/gems/puma-3.3.0/lib/puma/thread_pool.rb:111:in `call'
/home/Ladas/.rvm/gems/ruby-2.2.3/gems/puma-3.3.0/lib/puma/thread_pool.rb:111:in `block in spawn_thread'

Comment 6 CFME Bot 2016-05-05 16:26:01 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/7588103f3c209a917efb738dfd263144f5e0dfcf

commit 7588103f3c209a917efb738dfd263144f5e0dfcf
Author:     Ladislav Smola <lsmola>
AuthorDate: Thu May 5 14:57:29 2016 +0200
Commit:     Ladislav Smola <lsmola>
CommitDate: Thu May 5 15:07:45 2016 +0200

    Fix ascending ordering exception
    
    For distinct and order together in active record, for acending,
    we can either send Arel::Nodes::NamedFunction, which will
    just do ORDER BY without direction, which will default to ASC.
    Or we can send Arel::Nodes::Ascending, which will do ORDER BY
    ASC.
    
    Right now, for columns other than :string, :text, we were sending
    only Arel::Attributes::Attribute, which will blow up in
    active_record, when it tries to call to_sql on itself.
    
    Best solution seems to be to always send Arel::Nodes::Ascending,
    when we order in that direction.
    
    Fixes BZ:
    https://bugzilla.redhat.com/show_bug.cgi?id=1333137

 app/models/miq_report/search.rb | 2 ++
 1 file changed, 2 insertions(+)

Comment 7 Shveta 2016-05-13 00:32:01 UTC
Fixed.
Verified in 5.6.0.6-beta2.5.20160511140943_ff75fb2

Comment 10 errata-xmlrpc 2016-06-29 15:57: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/RHBA-2016:1348


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