Bug 1431361 - Azure Cloud provider fail to refresh
Summary: Azure Cloud provider fail to refresh
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: GA
: 5.8.0
Assignee: Daniel Berger
QA Contact: Jeff Teehan
URL:
Whiteboard:
Depends On:
Blocks: 1434172
TreeView+ depends on / blocked
 
Reported: 2017-03-11 15:59 UTC by Saif Ali
Modified: 2020-05-14 15:44 UTC (History)
8 users (show)

Fixed In Version: 5.8.0.7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1434172 (view as bug list)
Environment:
Last Closed: 2017-06-12 16:17:12 UTC
Category: Bug
Cloudforms Team: Azure
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Saif Ali 2017-03-11 15:59:06 UTC
Description of problem:
After successfully added the Azure provider into CF, it is not detecting any changes to Azure.  For example, it discovered 1 instance on Azure, but not the one created afterward.

[----] E, [2017-03-09T16:06:45.748870 #12099:a8d130] ERROR -- : MIQ(ManageIQ::Providers::Azure::CloudManager::Refresher#refresh) EMS: [Azure US East], id: [1000000000009] Refresh failed
[----] E, [2017-03-09T16:06:45.750917 #12099:a8d130] ERROR -- : [NoMethodError]: undefined method `offer' for #<Azure::Armrest::VirtualMachineModel::Properties::StorageProfile::ImageReference:0x0000000fbaad10>  Method:[rescue in block in refresh]
[----] E, [2017-03-09T16:06:45.751127 #12099:a8d130] ERROR -- : /var/www/miq/vmdb/app/models/manageiq/providers/azure/cloud_manager/refresh_parser.rb:254:in `guest_os'
/var/www/miq/vmdb/app/models/manageiq/providers/azure/cloud_manager/refresh_parser.rb:246:in `process_os'

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

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 5 Daniel Berger 2017-03-13 13:59:56 UTC
This was addressed in https://github.com/ManageIQ/manageiq-providers-azure/pull/37. I've since added a backport label for Euwe.

However, we need to determine how an image without the offer attribute was generated in the first place in order to deal with stuff like this in a more robust manner. Can you tell me more about how this particular image was created?

Comment 6 Daniel Berger 2017-03-17 18:40:22 UTC
Ok, I see the issue now. Azure has been encouraging a switch from individual storage accounts to managed accounts, and so the properties we assumed would always be there are not there.

I need to update the refresher and also the azure-armrest gem.

Comment 9 Jeff Teehan 2017-04-24 18:16:58 UTC
Refresh is working find with 5.8.0.11  Moving to verified.


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