Bug 1473619

Summary: Azure inventory collection fails with missing instances for west-india region
Product: Red Hat CloudForms Management Engine Reporter: Neha Chugh <nchugh>
Component: ProvidersAssignee: Daniel Berger <dberger>
Status: CLOSED CURRENTRELEASE QA Contact: Leo Khomenko <lkhomenk>
Severity: medium Docs Contact:
Priority: high    
Version: 5.7.0CC: akarol, bsorota, dberger, gblomqui, jfrey, jhardy, nchugh, obarenbo, rmanes, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.9.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1479437 1481862 (view as bug list) Environment:
Last Closed: 2018-03-06 14:37:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Azure Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1479437, 1481862    

Description Neha Chugh 2017-07-21 10:23:16 UTC
Description of problem:
Azure inventory collection fails with missing instances for west-india region

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

How reproducible:
Always

Steps to Reproduce:
1. Navigate to compute -> cloud -> provider
2. Add Azure provider with west-india region
3. After addition, the inventory collection fails for images and instances.

Actual results:
Inventory collection missing for images and instances.


Expected results:
Inventory collection should not failed.

Additional info:

Comment 3 Daniel Berger 2017-07-21 13:16:22 UTC
I cannot reproduce locally. When you say it fails, do you mean that the "Last Refresh" for the provider shows an error? Or simply that there are resources you see in the Azure portal that are not showing up in the app?

Please attach the evm.log to this BZ.

Comment 4 Daniel Berger 2017-07-21 18:18:53 UTC
Upon further review, I think this is actually a minor bug in Azure, which is -supposed- to return locations for all resources in lowercase. However, for VM's in the India regions it's returning them in a mix of lower and upper case characters, so that's why you're seeing your other resources, but not VM's.

The fix requires a minor modification to the refresh_helper_methods.rb file. I or someone on our team will have a fix for this shortly.

Comment 5 Neha Chugh 2017-07-31 12:04:57 UTC
Hello Daniel,

By inventory collection fails, I mean the VMs,images and other information are not shown for the west-india region provider.

Is the fix in work-in-progress or somebody else is working on it?

Let me know if any other details required.

Regards,
Neha Chugh

Comment 6 Daniel Berger 2017-08-03 14:00:28 UTC
The plan is to make our filtering caseless in the azure-armrest gem, which should solve this:

https://github.com/ManageIQ/azure-armrest/pull/291

Comment 7 Daniel Berger 2017-08-07 20:29:54 UTC
Upon further review, we need to handle it on the provider side:

https://github.com/ManageIQ/manageiq-providers-azure/pull/99