Bug 1513637

Summary: error "undefined method `[]=' for nil:NilClass" while syncing against rhevm 3.6
Product: Red Hat CloudForms Management Engine Reporter: Felix Dewaleyne <fdewaley>
Component: ProvidersAssignee: Piotr Kliczewski <pkliczew>
Status: CLOSED CURRENTRELEASE QA Contact: Angelina Vasileva <anikifor>
Severity: low Docs Contact:
Priority: unspecified    
Version: 5.8.0CC: agrare, bdunne, fdewaley, gblomqui, jfrey, jhardy, obarenbo, pkliczew, simaishi
Target Milestone: GAKeywords: TestOnly
Target Release: 5.10.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1520556 1520557 (view as bug list) Environment:
Last Closed: 2018-06-21 20:34:48 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: 1520556, 1520557    

Description Felix Dewaleyne 2017-11-15 17:37:44 UTC
Created attachment 1352800 [details]
evm.log.gz affected

Description of problem:
error "undefined method `[]=' for nil:NilClass" while syncing against rhevm 3.6

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

How reproducible:
all the time in lab

Steps to Reproduce:
1.attach the rhevm 3.6 provider from brno
2.initiate a refresh against the provider
3.

Actual results:
[----] E, [2017-11-15T17:04:08.028345 #19310:eb5140] ERROR -- : MIQ(ManageIQ::Providers::Redhat::InfraManager::Refresh::Strategies::Api3#refresh) EMS: [brno lab], id: [666000000000005] Refresh failed
[----] E, [2017-11-15T17:04:08.030396 #19310:eb5140] ERROR -- : [NoMethodError]: undefined method `[]=' for nil:NilClass  Method:[rescue in block in refresh]
[----] E, [2017-11-15T17:04:08.030477 #19310:eb5140] ERROR -- : /opt/rh/cfme-gemset/gems/ovirt-0.18.0/lib/ovirt/vm.rb:294:in `parse_xml'
/opt/rh/cfme-gemset/gems/ovirt-0.18.0/lib/ovirt/base.rb:7:in `create_from_xml'
/opt/rh/cfme-gemset/gems/ovirt-0.18.0/lib/ovirt/service.rb:42:in `xml_to_object'


Expected results:
refresh is able to pull information from the provider and populate cloudforms

Additional info:
see attachment for full info

Comment 5 Brandon Dunne 2017-12-04 15:11:52 UTC
Piotr, I released ovirt gem v0.18.1

Comment 6 Piotr Kliczewski 2017-12-04 15:15:07 UTC
Great, thank you!