Bug 1593202

Summary: RHV provider full refresh fail on "undefined method `keys' for "<some guid>":String
Product: Red Hat CloudForms Management Engine Reporter: Ilanit Stein <istein>
Component: ProvidersAssignee: Boriso <bodnopoz>
Status: CLOSED CURRENTRELEASE QA Contact: Angelina Vasileva <anikifor>
Severity: high Docs Contact:
Priority: high    
Version: 5.9.0CC: bodnopoz, cpelland, gblomqui, istein, jfrey, jhardy, obarenbo, simaishi
Target Milestone: GAKeywords: Regression, TestOnly, ZStream
Target Release: 5.10.0Flags: istein: needinfo+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: rhev
Fixed In Version: 5.10.0.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1593684 (view as bug list) Environment:
Last Closed: 2019-02-11 14:08:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: RHEVM Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1584695, 1588577, 1589297, 1590430, 1591355, 1591361, 1593684    
Attachments:
Description Flags
evm.log
none
automation.log
none
rhevm.log none

Description Ilanit Stein 2018-06-20 09:44:35 UTC
Description of problem:
When adding a new RHV provider to CFME,
last refresh fail 

Version-Release number of selected component (if applicable):
CFME-5.9.3.2
RHV-4.2.3

How reproducible:
100%

Steps to Reproduce:
1.Add a RHV provider
2.Track the last refresh field - once initial full refresh end,
such error appear:
Error - Less Than A Minute Ago
undefined method `keys' for "48921a37-198d-4003-bbb2-b96bd2b2241d":String

Actual results:
RHV full refresh fail

Expected results:
RHV full refresh should succeed

Additional info:
This bug do not exist on cfme-5.9.3.1

Comment 2 Ilanit Stein 2018-06-20 09:47:51 UTC
Created attachment 1453166 [details]
evm.log

Comment 3 Ilanit Stein 2018-06-20 09:48:29 UTC
Created attachment 1453167 [details]
automation.log

Comment 4 Ilanit Stein 2018-06-20 09:48:51 UTC
Created attachment 1453168 [details]
rhevm.log

Comment 5 Dave Johnson 2018-06-20 10:02:27 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.

If it's something like a tracker bug where it doesn't matter, please set the severity to Low.

Comment 6 Ilanit Stein 2018-06-20 11:02:56 UTC
After RHV provider first full refresh failure, 
Triggering a "Refresh relationships and power states" fail on the same error.
That is the RHV components data are not collected at all.

Comment 9 CFME Bot 2018-06-21 09:19:30 UTC
New commit detected on ManageIQ/manageiq-providers-ovirt/master:

https://github.com/ManageIQ/manageiq-providers-ovirt/commit/923d54b62a854a2ea021b848d3f8fd2d2a11e480
commit 923d54b62a854a2ea021b848d3f8fd2d2a11e480
Author:     Boris Odnopozov <bodnopoz>
AuthorDate: Wed Jun 20 15:38:39 2018 -0400
Commit:     Boris Odnopozov <bodnopoz>
CommitDate: Wed Jun 20 15:38:39 2018 -0400

    Fix refresh failing on guest device lan collection

    Pass hash to find_by instead of string.

    Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1593202

 app/models/manageiq/providers/redhat/inventory/parser/infra_manager.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 11 Ilanit Stein 2018-06-25 11:22:24 UTC
Fix was implemented manually on CFME-5.9.3.2/RHV-4.2.3.5 and verified.

Comment 12 Ilanit Stein 2018-06-27 12:40:26 UTC
Verified on CFME-5.10.0.2/RHV-4.2.3.5