Bug 1473619 - Azure inventory collection fails with missing instances for west-india region
Summary: Azure inventory collection fails with missing instances for west-india region
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.7.0
Hardware: All
OS: Linux
high
medium
Target Milestone: GA
: 5.9.0
Assignee: Daniel Berger
QA Contact: Leo Khomenko
URL:
Whiteboard:
Depends On:
Blocks: 1479437 1481862
TreeView+ depends on / blocked
 
Reported: 2017-07-21 10:23 UTC by Neha Chugh
Modified: 2020-09-10 10:59 UTC (History)
10 users (show)

Fixed In Version: 5.9.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1479437 1481862 (view as bug list)
Environment:
Last Closed: 2018-03-06 14:37:24 UTC
Category: Bug
Cloudforms Team: Azure
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


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