Bug 1393681 - Unsupported content type 'menu' ERROR in logs when generating Menu Widget for user
Summary: Unsupported content type 'menu' ERROR in logs when generating Menu Widget for...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Appliance
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.9.0
Assignee: Yuri Rudman
QA Contact: Nandini Chandra
URL:
Whiteboard: widget:ui
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-10 07:19 UTC by Jerome Marc
Modified: 2018-03-01 13:07 UTC (History)
10 users (show)

Fixed In Version: 5.9.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-01 13:07:41 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
evm.log with widget error for BZ1393681 (2.07 MB, application/zip)
2017-03-13 22:48 UTC, Jerome Marc
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:0380 0 normal SHIPPED_LIVE Moderate: Red Hat CloudForms security, bug fix, and enhancement update 2018-03-01 18:37:12 UTC

Description Jerome Marc 2016-11-10 07:19:21 UTC
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:

Comment 3 Šimon Lukašík 2017-02-28 09:10:56 UTC
> 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!

Comment 5 Jerome Marc 2017-03-13 22:46:55 UTC
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.

Comment 6 Jerome Marc 2017-03-13 22:48:02 UTC
Created attachment 1262698 [details]
evm.log with widget error for BZ1393681

Comment 8 CFME Bot 2017-06-27 20:11:40 UTC
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(-)

Comment 9 Nandini Chandra 2017-10-18 17:07:13 UTC
Verified in 5.9.0.2.

Verified that menu type widgets are skipped and are not generated.

Comment 12 errata-xmlrpc 2018-03-01 13:07:41 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/RHSA-2018:0380


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