Bug 1226366

Summary: MIQ(MiqWidget.get_group) Unable to find group '' in evm.log
Product: Red Hat CloudForms Management Engine Reporter: Thom Carlin <tcarlin>
Component: UI - OPSAssignee: Lucy Fu <lufu>
Status: CLOSED ERRATA QA Contact: Thom Carlin <tcarlin>
Severity: low Docs Contact:
Priority: low    
Version: 5.4.0CC: cpelland, gmccullo, hkataria, jhardy, mfeifer, mpovolny, obarenbo, tcarlin
Target Milestone: GAKeywords: ZStream
Target Release: 5.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.5.0.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1231937 (view as bug list) Environment:
Last Closed: 2015-12-08 13:12:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1231937    

Description Thom Carlin 2015-05-29 14:54:38 UTC
Description of problem:

Multiple WARN -- : MIQ(MiqWidget.get_group) Unable to find group '' in evm.log

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

5.4.0.2.20150519003830_673f996

How reproducible:

Unknown

Steps to Reproduce:
1. Not able to reproduce so far
2.
3.

Actual results:

WARN -- : MIQ(MiqWidget.get_group) Unable to find group ''

Expected results:

No error

Additional info:

Low severity because cause is unknown

Other possibly relevant messages:
INFO -- : MIQ(MiqWidget.create_task) Created MiqTask ID: [7], Name: [Generate Widget: 'EVM: Recently Discovered Hosts'] for: [1] groups
INFO -- : MIQ(MiqWidget.create_task) Created MiqTask ID: [7], Name: [Generate Widget: 'EVM: Recently Discovered Hosts'] for: [1] groups
INFO -- : MIQ(MiqQueue.put)        Message id: [8086],  id: [], Zone: [], Role: [reporting], Server: [], Ident: [reporting], Target id: [], Instance
 id: [8], Task id: [], Command: [MiqWidget.generate_content], Timeout: [3600], Priority: [100], State: [ready], Deliver On: [], Data: [], Args: ["MiqGroup", "EvmGroup-super_administrator", nil, ["UTC"]
]

Comment 3 Greg McCullough 2015-05-29 18:37:11 UTC
Lucy - Can you provide any insight into why we would see this warning message?  In at least one path it looks like we end up using the current group for the user in this case.

Comment 4 Thom Carlin 2015-06-08 12:27:26 UTC
Will try to reproduce after finishing up the high priority bugs.

Comment 5 Thom Carlin 2015-06-09 15:20:01 UTC
Reproducer:
1) For new appliance, Cloud Intelligence > Dashboard
2) Plus symbol [upper right], add widget
3) Default Dashboard should refresh from "No data" to reports/graphs/charts
4) Check evm.log for 9 messages (1 per widget)

Comment 6 Oleg Barenboim 2015-06-11 13:48:41 UTC
https://github.com/ManageIQ/manageiq/pull/3124

Comment 7 CFME Bot 2015-06-12 15:14:00 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/145c5fb9f7b6c9cb6eeffb38d18bc78cecccb6a3

commit 145c5fb9f7b6c9cb6eeffb38d18bc78cecccb6a3
Author:     Lucy Fu <lufu>
AuthorDate: Wed Jun 10 17:12:28 2015 -0400
Commit:     Lucy Fu <lufu>
CommitDate: Wed Jun 10 17:13:34 2015 -0400

    Let MiqWidget.get_group check for nil group.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1226366

 vmdb/app/models/miq_widget.rb | 2 ++
 1 file changed, 2 insertions(+)

Comment 8 CFME Bot 2015-06-22 15:58:22 UTC
New commit detected on cfme/5.4.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=dafb7b77caf6842e1913457bd4fd070efd8e65ba

commit dafb7b77caf6842e1913457bd4fd070efd8e65ba
Author:     Lucy Fu <lufu>
AuthorDate: Wed Jun 10 17:12:28 2015 -0400
Commit:     Lucy Fu <lufu>
CommitDate: Mon Jun 15 12:43:56 2015 -0400

    Let MiqWidget.get_group check for nil group.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1226366

 vmdb/app/models/miq_widget.rb | 2 ++
 1 file changed, 2 insertions(+)

Comment 9 Thom Carlin 2015-10-09 18:20:11 UTC
Verified in 5.5.0.5-beta1.1.20151007163855_ed40d96

Comment 11 errata-xmlrpc 2015-12-08 13:12:56 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-2015:2551