Bug 1515483

Summary: Azure Smart State on Windows VM throwing error "undefined method `[]' for nil:NilClass" in evm.log
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: SmartState AnalysisAssignee: Jerry Keselman <jkeselma>
Status: CLOSED ERRATA QA Contact: Satyajit Bulage <sbulage>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.8.0CC: bascar, dajohnso, jhardy, obarenbo, sbulage, simaishi
Target Milestone: GAKeywords: ZStream
Target Release: 5.8.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: smartstate:azure:vm
Fixed In Version: 5.8.3.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1490488 Environment:
Last Closed: 2018-02-28 13:09:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On: 1490488    
Bug Blocks:    

Comment 2 CFME Bot 2017-11-28 19:48:30 UTC
New commit detected on ManageIQ/manageiq-gems-pending/fine:
https://github.com/ManageIQ/manageiq-gems-pending/commit/a106416e388fbe845c4ff67755e0444615228d65

commit a106416e388fbe845c4ff67755e0444615228d65
Author:     Richard Oliveri <oliveri.richard.github>
AuthorDate: Mon Nov 20 13:19:07 2017 -0500
Commit:     Satoe Imaishi <simaishi>
CommitDate: Tue Nov 28 14:36:57 2017 -0500

    Merge pull request #45 from jerryk55/dont_assume_software_node_has_attributes
    
    Don't assume xml node for software in the Registry has attributes
    (cherry picked from commit 7c0ce6569a06c60d42f7a717bf391dbcac1af49c)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1515483

 lib/gems/pending/metadata/util/win32/Win32Software.rb | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

Comment 3 Jerry Keselman 2017-11-28 21:48:28 UTC
https://github.com/ManageIQ/manageiq-gems-pending/pull/316 fixes the Travis problem found because the fix for this used the Ruby 2.3 Safe Navigation operator which will not work when Travis uses Ruby 2.2.x.

Comment 4 Satyajit Bulage 2017-12-22 15:46:11 UTC
After performing SSA on windows instance without error it succeed.

Verified Version: 5.8.3.0.20171213193853_f1b4a89

Comment 7 errata-xmlrpc 2018-02-28 13:09:53 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:0374