Bug 1359424 - Scheduling report causes inability to schedule additional reports
Summary: Scheduling report causes inability to schedule additional reports
Keywords:
Status: CLOSED DUPLICATE of bug 1353363
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.7.0
Assignee: Eric Hayes
QA Contact: Dave Johnson
URL:
Whiteboard: report
Depends On:
Blocks: 1362633
TreeView+ depends on / blocked
 
Reported: 2016-07-23 22:43 UTC by shea.stewart
Modified: 2017-12-21 14:59 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1362633 (view as bug list)
Environment:
Last Closed: 2016-08-03 20:25:39 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot (92.02 KB, image/png)
2016-07-24 15:52 UTC, shea.stewart
no flags Details

Description shea.stewart 2016-07-23 22:43:50 UTC
Description of problem:
Navigate to Cloud Intel -> Reports. 
Our test included navigating to Configuration Management -> Containers. 
Add a schedule (ie. hourly/daily) to one of the reports. Attempt to make the same change to a second report, and notice that you may see "loaderror! (parse error)" under any other elements. 

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

How reproducible:
Every time, at least across 2 individual instances. 

Steps to Reproduce:
1. navigate to Configuration Management -> Containers. 
2. Add a schedule (ie. hourly/daily) to one of the reports. 
3. Attempt to make the same change to a second report, and notice that you may see "loaderror! (parseerror)" under any other elements. 

Actual results:
loaderror! (parseerror)  is seen and a re-login is required. 

Expected results:
abel to add new schedules across any/multiple elements. 


Additional info:

Comment 2 shea.stewart 2016-07-24 15:52:48 UTC
Created attachment 1183413 [details]
screenshot

Comment 3 shea.stewart 2016-07-24 15:54:09 UTC
Note: a re-login is not necessary, navigating to another element in the explorer (ie. Dashboard Widgets) and navigating back will clear the issue.

Comment 4 Gregg Tanzillo 2016-07-28 14:20:19 UTC
Would to be able to provide the error backtrace that corresponds to the error in the UI from the log file? Thanks.

Comment 7 shea.stewart 2016-07-29 14:05:12 UTC
I was able to capture the following from production.log

[----] I, [2016-07-29T09:53:36.742971 #3094:f0b3ec]  INFO -- : Started POST "/report/schedule_edit?button=add" for 99.230.48.171 at 2016-07-29 09:53:36 -0400
[----] I, [2016-07-29T09:53:36.744258 #3094:f0b3ec]  INFO -- : Processing by ReportController#schedule_edit as JS
[----] I, [2016-07-29T09:53:36.744382 #3094:f0b3ec]  INFO -- :   Parameters: {"button"=>"add"}
[----] I, [2016-07-29T09:53:36.819461 #3094:f0b3ec]  INFO -- :   Rendered layouts/_dynatree.html.haml (11.4ms)
[----] I, [2016-07-29T09:53:36.819596 #3094:f0b3ec]  INFO -- :   Rendered shared/_tree.html.haml (17.2ms)
[----] I, [2016-07-29T09:53:36.820441 #3094:f0b3ec]  INFO -- :   Rendered layouts/_flash_msg.html.haml (0.2ms)
[----] I, [2016-07-29T09:53:36.822643 #3094:f0b3ec]  INFO -- :   Rendered report/_show_schedule.html.haml (2.5ms)
[----] I, [2016-07-29T09:53:36.822733 #3094:f0b3ec]  INFO -- :   Rendered report/_schedule_list.html.haml (2.7ms)
[----] I, [2016-07-29T09:53:36.829407 #3094:f0b3ec]  INFO -- : Completed 200 OK in 85ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[----] I, [2016-07-29T09:53:48.582476 #3094:f0b0a4]  INFO -- : Started POST "/report/tree_select/?id=xx-0_xx-0-7_rep-1r55" for 99.230.48.171 at 2016-07-29 09:53:48 -0400
[----] I, [2016-07-29T09:53:48.584173 #3094:f0b0a4]  INFO -- : Processing by ReportController#tree_select as JS
[----] I, [2016-07-29T09:53:48.584236 #3094:f0b0a4]  INFO -- :   Parameters: {"id"=>"xx-0_xx-0-7_rep-1r55"}
[----] I, [2016-07-29T09:53:48.605966 #3094:f0b0a4]  INFO -- :   Rendered layouts/_info_msg.html.haml (0.1ms)
[----] I, [2016-07-29T09:53:48.606066 #3094:f0b0a4]  INFO -- :   Rendered report/_schedule_list.html.haml (0.3ms)
[----] I, [2016-07-29T09:53:48.611514 #3094:f0b0a4]  INFO -- : Completed 200 OK in 27ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[----] I, [2016-07-29T09:53:49.873593 #3094:f0ac30]  INFO -- : Started POST "/report/tree_autoload_dynatree" for 99.230.48.171 at 2016-07-29 09:53:49 -0400
[----] I, [2016-07-29T09:53:49.874802 #3094:f0ac30]  INFO -- : Processing by ReportController#tree_autoload_dynatree as JSON
[----] I, [2016-07-29T09:53:49.874908 #3094:f0ac30]  INFO -- :   Parameters: {"id"=>"xx-0_xx-0-7_rep-1r55", "tree"=>"reports_tree", "mode"=>"all"}
[----] F, [2016-07-29T09:53:49.892130 #3094:f0ac30] FATAL -- : Error caught: [NoMethodError] undefined method `x_get_tree_r_kids' for #<TreeBuilderReportSchedules:0x0000000f5708c8>
/var/www/miq/vmdb/app/presenters/tree_builder.rb:381:in `x_get_tree_objects'
/var/www/miq/vmdb/app/presenters/tree_builder.rb:209:in `x_get_child_nodes'
/var/www/miq/vmdb/app/presenters/tree_builder.rb:486:in `tree_add_child_nodes'
/var/www/miq/vmdb/app/controllers/application_controller/tree_support.rb:35:in `tree_autoload_dynatree'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/abstract_controller/base.rb:188:in `process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/action_controller/metal/rendering.rb:30:in `process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/activesupport/lib/active_support/callbacks.rb:126:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/activesupport/lib/active_support/callbacks.rb:126:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/activesupport/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/activesupport/lib/active_support/callbacks.rb:455:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/activesupport/lib/active_support/callbacks.rb:455:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/activesupport/lib/active_support/callbacks.rb:101:in `__run_callbacks__'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/activesupport/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/activesupport/lib/active_support/callbacks.rb:90:in `run_callbacks'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/abstract_controller/callbacks.rb:19:in `process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/action_controller/metal/rescue.rb:20:in `process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/activesupport/lib/active_support/notifications.rb:164:in `block in instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/activesupport/lib/active_support/notifications.rb:164:in `instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/activerecord/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/abstract_controller/base.rb:126:in `process'
/opt/rh/cfme-gemset/gems/actionview-5.0.0.rc2/lib/action_view/rendering.rb:30:in `process'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/action_controller/metal.rb:190:in `dispatch'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/action_controller/metal.rb:262:in `dispatch'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/action_dispatch/routing/route_set.rb:32:in `serve'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/action_dispatch/journey/router.rb:39:in `block in serve'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/action_dispatch/journey/router.rb:26:in `each'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/action_dispatch/journey/router.rb:26:in `serve'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/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.rc1/lib/rack/etag.rb:25:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.0.rc1/lib/rack/conditional_get.rb:38:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.0.rc1/lib/rack/head.rb:12:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.0.rc1/lib/rack/session/abstract/id.rb:222:in `context'
/opt/rh/cfme-gemset/gems/rack-2.0.0.rc1/lib/rack/session/abstract/id.rb:216:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/action_dispatch/middleware/cookies.rb:613:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/action_dispatch/middleware/callbacks.rb:38:in `block in call'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/activesupport/lib/active_support/callbacks.rb:97:in `__run_callbacks__'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/activesupport/lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/activesupport/lib/active_support/callbacks.rb:90:in `run_callbacks'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/action_dispatch/middleware/callbacks.rb:36:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
/opt/rh/cfme-gemset/gems/railties-5.0.0.rc2/lib/rails/rack/logger.rb:36:in `call_app'
/opt/rh/cfme-gemset/gems/railties-5.0.0.rc2/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/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/action_dispatch/middleware/request_id.rb:24:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.0.rc1/lib/rack/method_override.rb:22:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.0.rc1/lib/rack/runtime.rb:22:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/activesupport/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-3d9d4f56c1ee/actionpack/lib/action_dispatch/middleware/executor.rb:12:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.0.rc1/lib/rack/sendfile.rb:111:in `call'
/opt/rh/cfme-gemset/gems/railties-5.0.0.rc2/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'
[----] I, [2016-07-29T09:53:49.901322 #3094:f0ac30]  INFO -- :   Rendered layouts/_exception_contents.html.haml (5.1ms)
[----] I, [2016-07-29T09:53:49.901837 #3094:f0ac30]  INFO -- : Completed 200 OK in 27ms (Views: 7.8ms | ActiveRecord: 0.0ms)
[----] I, [2016-07-29T09:53:52.844880 #3094:f0a3ac]  INFO -- : Started POST "/report/tree_select/?id=xx-0_xx-0-7_rep-1r56" for 99.230.48.171 at 2016-07-29 09:53:52 -0400
[----] I, [2016-07-29T09:53:52.846423 #3094:f0a3ac]  INFO -- : Processing by ReportController#tree_select as JS
[----] I, [2016-07-29T09:53:52.846490 #3094:f0a3ac]  INFO -- :   Parameters: {"id"=>"xx-0_xx-0-7_rep-1r56"}
[----] I, [2016-07-29T09:53:52.872370 #3094:f0a3ac]  INFO -- :   Rendered layouts/_info_msg.html.haml (0.1ms)
[----] I, [2016-07-29T09:53:52.872524 #3094:f0a3ac]  INFO -- :   Rendered report/_schedule_list.html.haml (0.5ms)
[----] I, [2016-07-29T09:53:52.879603 #3094:f0a3ac]  INFO -- : Completed 200 OK in 33ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[----] I, [2016-07-29T09:53:53.765333 #3094:f0b8b0]  INFO -- : Started POST "/report/tree_select/?id=xx-0_xx-0-7_rep-1r57" for 99.230.48.171 at 2016-07-29 09:53:53 -0400
[----] I, [2016-07-29T09:53:53.766698 #3094:f0b8b0]  INFO -- : Processing by ReportController#tree_select as JS
[----] I, [2016-07-29T09:53:53.766760 #3094:f0b8b0]  INFO -- :   Parameters: {"id"=>"xx-0_xx-0-7_rep-1r57"}
[----] I, [2016-07-29T09:53:53.788710 #3094:f0b8b0]  INFO -- :   Rendered layouts/_info_msg.html.haml (0.1ms)
[----] I, [2016-07-29T09:53:53.788817 #3094:f0b8b0]  INFO -- :   Rendered report/_schedule_list.html.haml (0.3ms)
[----] I, [2016-07-29T09:53:53.795024 #3094:f0b8b0]  INFO -- : Completed 200 OK in 28ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[----] I, [2016-07-29T09:53:56.155268 #3094:f0b3ec]  INFO -- : Started POST "/report/tree_select/?id=xx-0_xx-0-7_rep-1r58" for 99.230.48.171 at 2016-07-29 09:53:56 -0400
[----] I, [2016-07-29T09:53:56.156502 #3094:f0b3ec]  INFO -- : Processing by ReportController#tree_select as JS
[----] I, [2016-07-29T09:53:56.156562 #3094:f0b3ec]  INFO -- :   Parameters: {"id"=>"xx-0_xx-0-7_rep-1r58"}
[----] I, [2016-07-29T09:53:56.178517 #3094:f0b3ec]  INFO -- :   Rendered layouts/_info_msg.html.haml (0.0ms)
[----] I, [2016-07-29T09:53:56.178640 #3094:f0b3ec]  INFO -- :   Rendered report/_schedule_list.html.haml (0.3ms)
[----] I, [2016-07-29T09:53:56.184934 #3094:f0b3ec]  INFO -- : Completed 200 OK in 28ms (Views: 0.2ms | ActiveRecord

Comment 10 Harpreet Kataria 2016-08-03 19:54:32 UTC
Eric,

Can you take a look at this one, it looks like a dup of another one that was recently fixed by you, and i was not able to recreate it on upstream. Mark it as a dup if this has already been fixed.

Thanks,
~Harpreet

Comment 11 Eric Hayes 2016-08-03 20:24:12 UTC
I believe this is related to https://bugzilla.redhat.com/show_bug.cgi?id=1353363 and fixed here: https://github.com/ManageIQ/manageiq/commit/8915246c0cdaf0f1303390044dafca67df2dc9be

Adding a schedule should bring the user to the schedules section β€”the navigation change happens naturally and error is avoided.

Comment 12 Eric Hayes 2016-08-03 20:25:39 UTC

*** This bug has been marked as a duplicate of bug 1353363 ***


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