Description of problem: ERROR received when generating dashboard widget with links (Menu type). Version-Release number of selected component (if applicable): 5.6.2.2 How reproducible: Always Steps to Reproduce: 1. Add a Link Widget to a dashboard for a user 2. Check evm.log Actual results: The following ERROR occurs: [----] I, [2016-11-09T05:00:41.701060 #13001:12d9988] INFO -- : MIQ(MiqWidget#generate_one_content_for_user) Widget: [Quick Links] ID: [1000000 0000030] for group: [cloud-users] users: [clouduser]... [----] E, [2016-11-09T05:00:41.707926 #13001:12d9988] ERROR -- : MIQ(MiqWidget#generate_one_content_for_user) Widget: [Quick Links] ID: [10000000000030] Unsupported content type 'menu' [----] E, [2016-11-09T05:00:41.708035 #13001:12d9988] ERROR -- : MIQ(MiqWidget::ContentGenerator#generate) Widget: [Quick Links] ID: [10000000000030] Expected 1 contents, received 0 contents for ["clouduser"] [----] E, [2016-11-09T05:00:41.709676 #13001:12d9988] ERROR -- : MIQ(MiqQueue#deliver) Message id: [10000069192036], Error: [Expected 1 contents, received 0 contents for ["clouduser"]] [----] I, [2016-11-09T05:00:41.709812 #13001:12d9988] INFO -- : MIQ(MiqQueue#delivered) Message id: [10000069192036], State: [error], Delivered in [0.020417514] seconds [----] I, [2016-11-09T05:00:41.716008 #13001:12d9988] INFO -- : MIQ(MiqQueue#m_callback) Message id: [10000069192036], Invoking Callback with args: ["error", "Expected 1 contents, received 0 contents for [\"clouduser\"]", "nil"] [----] I, [2016-11-09T05:00:41.716116 #13001:12d9988] INFO -- : MIQ(MiqWidget#generate_content_complete_callback) Widget ID: [10000000000030], MiqTask ID: [10000000129307], Status: [error] [----] I, [2016-11-09T05:00:41.721295 #13001:12d9988] INFO -- : MIQ(MiqTask#update_status) Task: [10000000129307] [Finished] [Error] [Widget Generation for 1 groups complete (1 in Error)] [----] I, [2016-11-09T05:00:41.754216 #13001:12d9988] INFO -- : MIQ(MiqReportingWorker::Runner#get_message_via_drb) Message id Expected results: No error Additional info:
> 1. Add a Link Widget to a dashboard for a user I cannot get this reproduced on 5.6.4.2. What are the exact step I need to do to see this error? I played with various combinations of menu-short-cut widgets and various dashboards but I cannot get this reproduced. Thanks!
To reproduce this issue, you will need to wait until the widget regeneration script runs. 1) Add a simple Link widget to your dashboard 2) wait until the auto-generation script runs (daily) 3) check evm.log for the error (as reported) I have attached the full log.
Created attachment 1262698 [details] evm.log with widget error for BZ1393681
https://github.com/ManageIQ/manageiq/pull/15435
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/0d5fe007e1b68d2e3ba204cac73a5aeb7a6f935d commit 0d5fe007e1b68d2e3ba204cac73a5aeb7a6f935d Author: Yuri Rudman <yrudman> AuthorDate: Thu Jun 22 16:31:56 2017 -0400 Commit: Yuri Rudman <yrudman> CommitDate: Tue Jun 27 10:20:18 2017 -0400 do not generate widget if widget's content_type is menu https://bugzilla.redhat.com/show_bug.cgi?id=1393681 app/models/miq_widget.rb | 2 ++ spec/models/miq_widget_spec.rb | 19 ++++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-)
Verified in 5.9.0.2. Verified that menu type widgets are skipped and are not generated.
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/RHSA-2018:0380