Bug 1645117
| Summary: | No registered resource provider found for location 'germanycentral' and API version '2014-04-01' for type 'virtualMachines' | |||
|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Niladri Roy <niroy> | |
| Component: | Providers | Assignee: | Daniel Berger <dberger> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Nandini Chandra <nachandr> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | high | |||
| Version: | 5.9.4 | CC: | dberger, dmetzger, gblomqui, jfrey, jhardy, jprause, nachandr, niroy, obarenbo, simaishi | |
| Target Milestone: | GA | Keywords: | TestOnly, ZStream | |
| Target Release: | 5.10.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | 5.10.0.24 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1648955 (view as bug list) | Environment: | ||
| Last Closed: | 2019-02-12 16:52:00 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | CFME Core | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1648955 | |||
|
Description
Niladri Roy
2018-11-01 12:47:07 UTC
Dan Can you verify this just requires a backport of: https://github.com/ManageIQ/manageiq-providers-azure/pull/98 thanks Bronagh Bronagh, yep, that should do it. Actually, it looks like we already support the Germany endpoint in 5.9. https://github.com/ManageIQ/manageiq-providers-azure/blob/gaprindashvili/app/models/manageiq/providers/azure/manager_mixin.rb#L59 The api-version should be set via config/settings.yml. I will continue to dig. Hm, I noticed that this error is popping up from metrics. I wonder if insights registered, because it's not necessarily registered by default in some regions. Try running this command: az provider show -n Microsoft.Insights -o table If the ProviderState isn't "registered" then run this: az provider register -n Microsoft.Insights If it is registered, then it must be something else and I'll keep digging. Please let me know. Seems that the provider is registered az provider show -n Microsoft.Insights -o table Namespace RegistrationState ------------------ ------------------- microsoft.insights Registered It's looking to me like Azure changed the endpoint for listing metric definitions, which means metrics is broken everywhere now. I'll have to update the azure-armrest gem asap, and get it backported. Ah, I forgot there's an "old" metrics listing (i.e. diagnostics, for those vm's that have it enabled) and a new one. The new one has a different endpoint, and is cross-platform, but doesn't collect the information we want. I think the short version is that the old version is simply not supported on that region, and using different api-version strings does not help, even if the insights provider is enabled. All we can do is add a catch for Azure::Armrest::BadRequestException and, if we hit that, assume that it's not supported for that region. I'll submit a PR soon. New commit detected on ManageIQ/manageiq-providers-azure/hammer: https://github.com/ManageIQ/manageiq-providers-azure/commit/3e5ba61abfd42d3a3b13d135b2aa2a04c98b4162 commit 3e5ba61abfd42d3a3b13d135b2aa2a04c98b4162 Author: Adam Grare <agrare> AuthorDate: Thu Nov 8 10:55:32 2018 -0500 Commit: Adam Grare <agrare> CommitDate: Thu Nov 8 10:55:32 2018 -0500 Merge pull request #302 from djberg96/metrics_unsupported Handle regions where metrics are unsupported (cherry picked from commit a94f2b03a21ac70f07e11ef327740e6af8d889ce) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1645117 app/models/manageiq/providers/azure/cloud_manager/metrics_capture.rb | 5 + spec/models/manageiq/providers/azure/cloud_manager/metrics_capture_spec.rb | 48 +- 2 files changed, 52 insertions(+), 1 deletion(-) Verified in 5.10.0.29 |