Bug 1389026 - azure smart state fails undefined method `key?' for nil:NilClass
Summary: azure smart state fails undefined method `key?' for nil:NilClass
Keywords:
Status: CLOSED DUPLICATE of bug 1378447
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: SmartState Analysis
Version: 5.7.0
Hardware: All
OS: All
high
high
Target Milestone: GA
: cfme-future
Assignee: Hui Song
QA Contact: Satyajit Bulage
URL:
Whiteboard: azure:smartstate
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-26 16:59 UTC by Josh Carter
Modified: 2016-11-18 22:49 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-07 14:59:21 UTC
Category: ---
Cloudforms Team: Azure
Target Upstream Version:


Attachments (Terms of Use)

Description Josh Carter 2016-10-26 16:59:31 UTC
Description of problem:

scanning a azure vm results in failure

[----] I, [2016-10-26T12:50:01.119680 #13666:bdd148]  INFO -- : MIQ(ManageIQ::Providers::Azure::CloudManager::Vm#scan_metadata) category=[["vmconfig", "accounts", "software", "services"
, "system"]] [Array]
[----] I, [2016-10-26T12:50:01.135756 #1521:bdd148]  INFO -- : MIQ(MiqQueue.put) Message id: [23000000010456],  id: [], Zone: [], Role: [database_operations], Server: [], Ident: [generi
c], Target id: [], Instance id: [], Task id: [], Command: [VmdbMetric.purge_all_timer], Timeout: [600], Priority: [90], State: [ready], Deliver On: [], Data: [], Args: []
[----] E, [2016-10-26T12:50:01.143525 #13666:bdd148] ERROR -- : [NoMethodError]: undefined method `key?' for nil:NilClass  Method:[rescue in scan_metadata]
[----] E, [2016-10-26T12:50:01.143738 #13666:bdd148] ERROR -- : /opt/rh/rh-ruby23/root/usr/share/ruby/ostruct.rb:176:in `respond_to_missing?'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/psych-2.0.17/lib/psych/visitors/to_ruby.rb:381:in `respond_to?'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/psych-2.0.17/lib/psych/visitors/to_ruby.rb:381:in `init_with'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/psych-2.0.17/lib/psych/visitors/to_ruby.rb:374:in `revive'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/psych-2.0.17/lib/psych/visitors/to_ruby.rb:208:in `visit_Psych_Nodes_Mapping'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/psych-2.0.17/lib/psych/visitors/visitor.rb:16:in `visit'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/psych-2.0.17/lib/psych/visitors/visitor.rb:6:in `accept'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/psych-2.0.17/lib/psych/visitors/to_ruby.rb:32:in `accept'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/psych-2.0.17/lib/psych/visitors/to_ruby.rb:330:in `block in register_empty'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/psych-2.0.17/lib/psych/visitors/to_ruby.rb:330:in `each'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/psych-2.0.17/lib/psych/visitors/to_ruby.rb:330:in `register_empty'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/psych-2.0.17/lib/psych/visitors/to_ruby.rb:141:in `visit_Psych_Nodes_Sequence'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/psych-2.0.17/lib/psych/visitors/visitor.rb:16:in `visit'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/psych-2.0.17/lib/psych/visitors/visitor.rb:6:in `accept'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/psych-2.0.17/lib/psych/visitors/to_ruby.rb:32:in `accept'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/psych-2.0.17/lib/psych/visitors/to_ruby.rb:311:in `visit_Psych_Nodes_Document'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/psych-2.0.17/lib/psych/visitors/visitor.rb:16:in `visit'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/psych-2.0.17/lib/psych/visitors/visitor.rb:6:in `accept'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/psych-2.0.17/lib/psych/visitors/to_ruby.rb:32:in `accept'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/psych-2.0.17/lib/psych/nodes/node.rb:38:in `to_ruby'

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Josh Carter 2016-10-26 17:01:57 UTC
Forgot the version 

 Version 5.7.0.7-beta1.20161025153249_9376fbd

Comment 4 Rich Oliveri 2016-10-28 15:34:03 UTC
This appears to be the same problem as:

https://bugzilla.redhat.com/show_bug.cgi?id=1378447
and
https://bugzilla.redhat.com/show_bug.cgi?id=1388982

Comment 5 Hui Song 2016-11-07 14:59:21 UTC
This issue is caused by a ruby bug: https://bugs.ruby-lang.org/issues/11884. Ruby version of 2.3.1 will solve the problem.

*** This bug has been marked as a duplicate of bug 1378447 ***


Note You need to log in before you can comment on or make changes to this bug.