Bug 1327297 - Unexpected error while viewing host drift analysis
Summary: Unexpected error while viewing host drift analysis
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
high
high
Target Milestone: GA
: 5.6.0
Assignee: Dávid Halász
QA Contact: Nandini Chandra
URL:
Whiteboard: ui:host:drift
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-14 17:22 UTC by Nandini Chandra
Modified: 2016-08-12 18:48 UTC (History)
5 users (show)

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


Attachments (Terms of Use)


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 Nandini Chandra 2016-04-14 17:22:09 UTC
Description of problem:
---------------------
UI blows up with this error while viewing host drift analysis.

Error text:

Missing partial layouts/_drift with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :haml, :jbuilder, :rjs]}. Searched in: * "/var/www/miq/vmdb/app/views" * "/opt/rh/rh-ruby22/root/usr/share/gems/gems/redhat_access_cfme-1.0.1/app/views" [host/drift]


Snippet from production.log:

[----] F, [2016-04-14T13:07:39.423445 #12706:b82874] FATAL -- : Error caught: [ActionView::MissingTemplate] Missing partial layouts/_drift with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :haml, :jbuilder, :rjs]}. Searched in:
  * "/var/www/miq/vmdb/app/views"
  * "/opt/rh/rh-ruby22/root/usr/share/gems/gems/redhat_access_cfme-1.0.1/app/views"

/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionview/lib/action_view/path_set.rb:46:in `find'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionview/lib/action_view/lookup_context.rb:122:in `find'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionview/lib/action_view/renderer/partial_renderer.rb:420:in `find_template'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionview/lib/action_view/renderer/partial_renderer.rb:415:in `find_partial'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionview/lib/action_view/renderer/partial_renderer.rb:297:in `render'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionview/lib/action_view/renderer/renderer.rb:47:in `render_partial'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionview/lib/action_view/renderer/renderer.rb:21:in `render'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionview/lib/action_view/helpers/rendering_helper.rb:32:in `render'
/opt/rh/cfme-gemset/bundler/gems/jquery-rjs-17772e44831c/lib/jquery-rjs/rendering.rb:8:in `render_with_update'
/var/www/miq/vmdb/app/views/host/show.html.haml:9:in `_app_views_host_show_html_haml___2893756640718680839_58232100'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionview/lib/action_view/template.rb:158:in `block in render'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/activesupport/lib/active_support/notifications.rb:166:in `instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionview/lib/action_view/template.rb:348:in `instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionview/lib/action_view/template.rb:156:in `render'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionview/lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionview/lib/action_view/renderer/abstract_renderer.rb:42:in `block in instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/activesupport/lib/active_support/notifications.rb:164:in `block in instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/activesupport/lib/active_support/notifications.rb:164:in `instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionview/lib/action_view/renderer/abstract_renderer.rb:41:in `instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionview/lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionview/lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionview/lib/action_view/renderer/template_renderer.rb:52:in `render_template'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionview/lib/action_view/renderer/template_renderer.rb:14:in `render'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionview/lib/action_view/renderer/renderer.rb:42:in `render_template'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionview/lib/action_view/renderer/renderer.rb:23:in `render'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionview/lib/action_view/rendering.rb:103:in `_render_template'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionpack/lib/action_controller/metal/streaming.rb:217:in `_render_template'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionview/lib/action_view/rendering.rb:83:in `render_to_body'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionpack/lib/action_controller/metal/rendering.rb:52:in `render_to_body'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionpack/lib/action_controller/metal/renderers.rb:144:in `render_to_body'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionpack/lib/abstract_controller/rendering.rb:26:in `render'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionpack/lib/action_controller/metal/rendering.rb:36:in `render'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionpack/lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/activesupport/lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/opt/rh/rh-ruby22/root/usr/share/ruby/benchmark.rb:303:in `realtime'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/activesupport/lib/active_support/core_ext/benchmark.rb:12:in `ms'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionpack/lib/action_controller/metal/instrumentation.rb:44:in `block in render'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionpack/lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/activerecord/lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/actionpack/lib/action_controller/metal/instrumentation.rb:43:in `render'




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


How reproducible:
-----------------
Always


Steps to Reproduce:
-------------------
1.Perform smart analysis on a host a few times.
2.On the host summary page, click drift history.
3.On the Drift History page,select a few timestamps to view drift analysis.


Actual results:
---------------
Unexpected error


Expected results:
-----------------
No error


Additional info:
----------------

Comment 2 Harpreet Kataria 2016-04-15 16:57:32 UTC
David, 

Can you look into this, layouts/_drift.html.haml view was removed in commit sha: bb28f66fe5b15e8a47c4b9f59d5576dd5a6bde89
maybe there are still some references left in the code to that view.

Thanks,
~Harpreet

Comment 5 CFME Bot 2016-04-18 17:56:10 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/39d03be610a31fa1d6ef69760a049b433f995289

commit 39d03be610a31fa1d6ef69760a049b433f995289
Author:     Dávid Halász <dhalasz>
AuthorDate: Mon Apr 18 13:50:52 2016 +0200
Commit:     Dávid Halász <dhalasz>
CommitDate: Mon Apr 18 13:52:24 2016 +0200

    Fixed missing partials after drift -> compare renaming
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1327297

 app/views/cloud_tenant/show.html.haml | 2 +-
 app/views/flavor/show.html.haml       | 2 +-
 app/views/host/show.html.haml         | 4 +++-
 3 files changed, 5 insertions(+), 3 deletions(-)

Comment 6 Nandini Chandra 2016-04-22 19:35:24 UTC
Verified in 5.6.0.4

Comment 8 errata-xmlrpc 2016-06-29 15:49:52 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.