Bug 1506463

Summary: Graph refresh fails when targeting a vm.
Product: Red Hat CloudForms Management Engine Reporter: Ilanit Stein <istein>
Component: ProvidersAssignee: Jan Zmeskal <jzmeskal>
Status: CLOSED ERRATA QA Contact: Angelina Vasileva <anikifor>
Severity: high Docs Contact:
Priority: medium    
Version: 5.7.0CC: agrare, gblomqui, jfrey, jhardy, jzmeskal, lsmola, obarenbo, pkliczew, simaishi
Target Milestone: GAKeywords: Regression
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: rhev:graph refresh
Fixed In Version: 5.9.0.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-01 13:20:20 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: 1532255    
Attachments:
Description Flags
evm.log
none
evm.log from verification none

Description Ilanit Stein 2017-10-26 07:01:32 UTC
Description of problem:
There seem to be a problem with the refresh, that follow VM status change:

Activate on CFME machine, the RHV Graph refresh, 
and added a RHV provider.

Full refresh ended up successfully.

Powered off a VM on RHV side,
and on the CFME side, under VMs this VM indeed turned into down state,
however the refresh itself failed on "undefined method `split' for #<Hash:0x0000000c9f7868>"
See evm.log attached.

The CFME has 2 disks one for OS, and one for the DB.


Version-Release number of selected component (if applicable):
CFME-5.9.0.4
RHV-4.1.7

How reproducible:
Occurred once, but did not try to reproduce.

Additional info:
It is not clear if this problem is related to Graph refresh activation or not.

Comment 2 Ilanit Stein 2017-10-26 07:09:50 UTC
Created attachment 1343574 [details]
evm.log

Comment 4 CFME Bot 2017-10-30 14:04:23 UTC
New commit detected on ManageIQ/manageiq-providers-ovirt/master:
https://github.com/ManageIQ/manageiq-providers-ovirt/commit/3a88df10a7c50a5a53aedf2509e801526c2bca00

commit 3a88df10a7c50a5a53aedf2509e801526c2bca00
Author:     Ladislav Smola <lsmola>
AuthorDate: Thu Oct 26 10:44:26 2017 +0200
Commit:     Ladislav Smola <lsmola>
CommitDate: Thu Oct 26 10:44:26 2017 +0200

    We need to use lazy_find_by for hash index
    
    We need to use lazy_find_by for hash index
    
    Fixes BZ:
    https://bugzilla.redhat.com/show_bug.cgi?id=1506463

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

Comment 5 Jan Zmeskal 2017-11-27 16:38:49 UTC
Verified on:
CFME 5.9.0.9
RHV 4.1.7.6

Verification steps:
1. Activate graph refresh in /var/www/miq/vmdb/config/settings.yml
2. Add RHV provider to CFME
3. Do full relationships/power states refresh
4. Shutdown VM on RHV side, observe evm.log

evm.log is attached. there is no relevant error during targeted VM refresh. There is one error in the beginning, but I am pretty sure this is because I tried to do provider's refresh via checkbox and at this time this bug prevents it: https://bugzilla.redhat.com/show_bug.cgi?id=1514334

Comment 6 Jan Zmeskal 2017-11-27 16:39:30 UTC
Created attachment 1359567 [details]
evm.log from verification

Comment 10 errata-xmlrpc 2018-03-01 13:20:20 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