Bug 1459612

Summary: SmartState Analysis fails with undefined method `vhd' for Azure Windows instances/VMs
Product: Red Hat CloudForms Management Engine Reporter: ncatling
Component: SmartState AnalysisAssignee: Jerry Keselman <jkeselma>
Status: CLOSED DUPLICATE QA Contact: Satyajit Bulage <sbulage>
Severity: high Docs Contact:
Priority: high    
Version: 5.8.0CC: cpelland, jhardy, jteehan, krain, ncatling, obarenbo, roliveri, sbulage
Target Milestone: GA   
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: azure:smartstate
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-05 13:02:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Azure Target Upstream Version:
Embargoed:

Description ncatling 2017-06-07 15:00:49 UTC
Description of problem:
SmartState Analysis of Azure Windows VMs fails with:
undefined method `vhd' for #<Azure::Armrest::VirtualMachineModel::Properties::StorageProfile::OsDisk:0x0000000ede9d98>

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

How reproducible:


Steps to Reproduce:
1. SSA any Windows VM on Azure provider
2. Error produced
3.

Actual results:
ERROR -- : MIQ(MiqServer#scan_metadata) undefined method `vhd' for #<Azure::Armrest::VirtualMachineModel::Properties::StorageProfile::OsDisk:0x0000000ede9d98>
ERROR -- : MIQ(VmScan#process_abort) job aborting, undefined method `vhd' for #<Azure::Armrest::VirtualMachineModel::Properties::StorageProfile::OsDisk:0x0000000ede9d98>

Expected results:


Additional info:

Comment 3 Jeff Teehan 2017-06-16 14:22:34 UTC
This problem isn't global.  SSA is working fine on multiple appliances.  We're going to need a little more information.  Output for 2012 and 2016

Status = Ok	06/15/17 23:05:35 UTC	06/15/17 22:53:24 UTC	06/15/17 22:53:17 UTC	finished	Process completed successfully	Scan from Vm WS2016SSA	admin	EVM	Synchronization complete
Status = Ok	06/15/17 22:36:32 UTC	06/15/17 22:15:53 UTC	06/15/17 22:15:44 UTC	finished	Process completed successfully	Scan from Vm WS2012R2SSA	admin	EVM	Synchronization complete

Comment 5 Rich Oliveri 2017-08-02 17:53:03 UTC
Jerry,

I think this is related to the manage storage issues you're looking into.

Comment 6 Jerry Keselman 2017-08-02 18:01:35 UTC
Yes.  This is the error one would get attempting to run SSA against a VM with a Managed Disk.  Working on a fix right now.

Comment 7 Krain Arnold 2017-08-18 06:59:43 UTC
For what it's worth, I'm seeing this consistently as well, and on RHEL and Ubuntu workloads so the problem is not only affecting Windows machines. The error is consistent: undefined method `vhd' for #<Azure::Armrest::VirtualMachineModel::Properties::StorageProfile::OsDisk.....

Comment 8 Jerry Keselman 2017-09-05 13:02:32 UTC
This BZ is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1475540 in which the fixes for this issue are being tracked.   Closing this one in lieu of the other BZ.

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