Bug 1279508 - SSA - RHOS throwing undefined method `vmConfig' error
Summary: SSA - RHOS throwing undefined method `vmConfig' error
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: SmartState Analysis
Version: 5.5.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.6.0
Assignee: Hui Song
QA Contact: Dave Johnson
URL:
Whiteboard:
: 1282878 (view as bug list)
Depends On:
Blocks: 1289700
TreeView+ depends on / blocked
 
Reported: 2015-11-09 15:34 UTC by Ronnie Rasouli
Modified: 2017-03-20 09:29 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1289700 (view as bug list)
Environment:
Last Closed: 2016-01-24 14:56:09 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
evm.log while reproducing the issue (31.11 KB, text/plain)
2015-11-09 15:34 UTC, Ronnie Rasouli
no flags Details
evm.log showing errors during cloud instance ssa (287.83 KB, text/plain)
2015-11-10 14:59 UTC, Marius Cornea
no flags Details

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. ***


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