Bug 1279508

Summary: SSA - RHOS throwing undefined method `vmConfig' error
Product: Red Hat CloudForms Management Engine Reporter: Ronnie Rasouli <rrasouli>
Component: SmartState AnalysisAssignee: Hui Song <hsong>
Status: CLOSED NOTABUG QA Contact: Dave Johnson <dajohnso>
Severity: high Docs Contact:
Priority: high    
Version: 5.5.0CC: jfrey, jhardy, mcornea, obarenbo, rananda, roliveri
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1289700 (view as bug list) Environment:
Last Closed: 2016-01-24 14:56:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1289700    
Attachments:
Description Flags
evm.log while reproducing the issue
none
evm.log showing errors during cloud instance ssa none

Description Ronnie Rasouli 2015-11-09 15:34:32 UTC
Created attachment 1091804 [details]
evm.log while reproducing the issue

Description of problem:

Performing SmartState analysis on cloud provider instance does not functioning well, showing its Last Analyzed never

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


5.5.0.9-beta2.20151102161742_5530c9a


How reproducible:


Steps to Reproduce:
1.Login to CFME
2.Select cloud provider
3.select one of instances that powered on
4. perform SmartState analysis
5. refresh the page 

Actual results:
attributes of the instance state did not update their properties
Last Analyzed 	Never 

Status 	Never Verified 

Running Processes 	Not Available 

Expected results:

SmartState should update the above properties and discover  the instance state

Additional info:

Comment 2 Marius Cornea 2015-11-10 14:58:53 UTC
The SmartProxy role needs to be enabled for the SSA to run. Nevertheless the evm.log shows a couple of errors while doing the SSA for a cloud instance:

ERROR -- : MIQExtract.extract undefined method `vmConfig' for #<MiqOpenStackInstance:0x0000000282e4c8>
MIQ(ManageIQ::Providers::Openstack::CloudManager::Vm#scan_via_miq_vm) Error: No XML returned for category [vmconfig]  TaskId:[e45cfe50-87ba-11e5-b4da-525400b46795]  VM:[wordpress-my_instance-zr7zogf65jzk]
ERROR -- : Q-task_id([e45cfe50-87ba-11e5-b4da-525400b46795]) [ActiveRecord::UnknownAttributeError]: unknown attribute 'type' for Network.  Method:[rescue in block in add_elements]

Attaching the complete evm.log

Comment 3 Marius Cornea 2015-11-10 14:59:23 UTC
Created attachment 1092291 [details]
evm.log showing errors during cloud instance ssa

Comment 4 Ladislav Smola 2015-11-10 16:39:22 UTC
so seems in this case SSA timeouted probably because smartproxy was not running. There was also issue on upstream preventing the ssa, but that was fix and is not present in 5.5.


So this BZ should solve the errors in log listed in comment #2 and comment #3 log, I was able to reproduce this on master ERROR -- : MIQExtract.extract undefined method `vmConfig' for #<MiqOpenStackInstance:0x0000000282e4c8>

I don't see rest on master, maybe they were fixed already?

changing to SSA bug

Comment 5 Rich Oliveri 2015-11-17 17:57:22 UTC
*** Bug 1282878 has been marked as a duplicate of this bug. ***