Bug 1302786
Summary: | Azure api version issue - The resource type 'locations/vmSizes' could not be found in the namespace | |||
---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Felix Dewaleyne <fdewaley> | |
Component: | Providers | Assignee: | Bronagh Sorota <bsorota> | |
Status: | CLOSED ERRATA | QA Contact: | Jeff Teehan <jteehan> | |
Severity: | urgent | Docs Contact: | ||
Priority: | high | |||
Version: | 5.5.0 | CC: | bsorota, carnott, cpelland, fdewaley, gblomqui, jfrey, jhardy, jteehan, mfeifer, ncatling, obarenbo, simaishi | |
Target Milestone: | GA | Keywords: | ZStream | |
Target Release: | 5.6.0 | |||
Hardware: | All | |||
OS: | All | |||
Whiteboard: | provider:azure | |||
Fixed In Version: | 5.6.0.0 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1303122 (view as bug list) | Environment: | ||
Last Closed: | 2016-06-29 15:34:30 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1303122 |
Description
Felix Dewaleyne
2016-01-28 15:55:49 UTC
Fixed this upstream: https://github.com/ManageIQ/azure-armrest/pull/120 Patch is confirmed by CFME-QE as well. Been using it for several days. I am working with a client for whom this patch worked initially, but has recently ceased. Their error output this second time around, is mostly the same as the above logs however the api version is '2016-03-30', not '2016-04-30-preview' as above. I can provide logs if requested. Here is a fix for this issue. Its ignores any ARM API versions that are dated in the future. Note, we already ignore all preview versions of the ARM API: - Locate the Azure-armrest files on the appliance. - Open the file: lib/azure/armrest/armrest_service.rb - Refer to: https://github.com/ManageIQ/azure-armrest/pull/130/files - Remove the lines marked with a minus - Add the lines marked with a plus ::Providers::Amazon::CloudManager", 4253000000000001]]], Dequeued in: [10.172265537] seconds [----] I, [2016-03-03T11:14:24.458086 #6638:86b988] INFO -- : MIQ(MiqQueue#deliver) Message id: [4253000000029871], Delivering... [----] I, [2016-03-03T11:14:24.475704 #6638:86b988] INFO -- : MIQ(ManageIQ::Providers::Amazon::CloudManager::Refresher#refresh) Refreshing all targets... [----] I, [2016-03-03T11:14:24.475921 #6638:86b988] INFO -- : MIQ(ManageIQ::Providers::Amazon::CloudManager::Refresher#refresh) EMS: [ACI], id: [4253000000000001] Refreshing targets for EMS: [ACI], id: [4253000000000001]... [----] I, [2016-03-03T11:14:24.476053 #6638:86b988] INFO -- : MIQ(ManageIQ::Providers::Amazon::CloudManager::Refresher#refresh) EMS: [ACI], id: [4253000000000001] ManageIQ::Providers::Amazon::CloudManager [ACI] id [4253000000000001] [----] E, [2016-03-03T11:14:24.882577 #6635:b2d98c] ERROR -- : MIQ(ManageIQ::Providers::Azure::CloudManager::Refresher#refresh) EMS: [MCI-Test], id: [4253000000000002] Refresh failed [----] E, [2016-03-03T11:14:24.882821 #6635:b2d98c] ERROR -- : [NoMethodError]: undefined method `[]' for nil:NilClass Method:[rescue in block in refresh] [----] E, [2016-03-03T11:14:24.882972 #6635:b2d98c] ERROR -- : /opt/rh/cfme-gemset/gems/azure-armrest-0.0.8/lib/azure/armrest/armrest_service.rb:444:in `set_service_api_version' /opt/rh/cfme-gemset/gems/azure-armrest-0.0.8/lib/azure/armrest/virtual_machine_service.rb:23:in `initialize' /var/www/miq/vmdb/app/models/manageiq/providers/azure/cloud_manager/refresh_parser.rb:17:in `new' /var/www/miq/vmdb/app/models/manageiq/providers/azure/cloud_manager/refresh_parser.rb:17:in `initialize' /var/www/miq/vmdb/app/models/manageiq/providers/azure/cloud_manager/refresh_parser.rb:10:in `new' /var/www/miq/vmdb/app/models/manageiq/providers/azure/cloud_manager/refresh_parser.rb:10:in `ems_inv_to_hashes' /var/www/miq/vmdb/app/models/manageiq/providers/azure/cloud_manager/refresher.rb:6:in `parse_inventory' /var/www/miq/vmdb/app/models/ems_refresh/refreshers/ems_refresher_mixin.rb:19:in `block in refresh' /var/www/miq/vmdb/app/models/ems_refresh/refreshers/ems_refresher_mixin.rb:7:in `each' /var/www/miq/vmdb/app/models/ems_refresh/refreshers/ems_refresher_mixin.rb:7:in `refresh' /var/www/miq/vmdb/app/models/manageiq/providers/base_manager/refresher.rb:10:in `refresh' /var/www/miq/vmdb/app/models/ems_refresh.rb:77:in `block in refresh' /var/www/miq/vmdb/app/models/ems_refresh.rb:76:in `each' /var/www/miq/vmdb/app/models/ems_refresh.rb:76:in `refresh' /var/www/miq/vmdb/app/models/miq_queue.rb:345:in `block in deliver' /opt/rh/rh-ruby22/root/usr/share/ruby/timeout.rb:89:in `block in timeout' /opt/rh/rh-ruby22/root/usr/share/ruby/timeout.rb:34:in `block in catch' /opt/rh/rh-ruby22/root/usr/share/ruby/timeout.rb:34:in `catch' /opt/rh/rh-ruby22/root/usr/share/ruby/timeout.rb:34:in `catch' /opt/rh/rh-ruby22/root/usr/share/ruby/timeout.rb:104:in `timeout' /var/www/miq/vmdb/app/models/miq_queue.rb:341:in `deliver' /var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:106:in `deliver_queue_message' /var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:134:in `deliver_message' /var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:151:in `block in do_work' /var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:145:in `loop' /var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:145:in `do_work' /var/www/miq/vmdb/app/models/miq_worker/runner.rb:334:in `block in do_work_loop' /var/www/miq/vmdb/app/models/miq_worker/runner.rb:331:in `loop' /var/www/miq/vmdb/app/models/miq_worker/runner.rb:331:in `do_work_loop' /var/www/miq/vmdb/app/models/miq_worker/runner.rb:153:in `run' /var/www/miq/vmdb/app/models/miq_worker/runner.rb:128:in `start' /var/www/miq/vmdb/app/models/miq_worker/runner.rb:29:in `start_worker' /var/www/miq/vmdb/lib/workers/bin/worker.rb:2:in `<top (required)>' /opt/rh/cfme-gemset/gems/railties-4.2.5.1/lib/rails/commands/runner.rb:60:in `load' /opt/rh/cfme-gemset/gems/railties-4.2.5.1/lib/rails/commands/runner.rb:60:in `<top (required)>' /opt/rh/cfme-gemset/gems/railties-4.2.5.1/lib/rails/commands/commands_tasks.rb:123:in `require' /opt/rh/cfme-gemset/gems/railties-4.2.5.1/lib/rails/commands/commands_tasks.rb:123:in `require_command!' /opt/rh/cfme-gemset/gems/railties-4.2.5.1/lib/rails/commands/commands_tasks.rb:90:in `runner' /opt/rh/cfme-gemset/gems/railties-4.2.5.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!' /opt/rh/cfme-gemset/gems/railties-4.2.5.1/lib/rails/commands.rb:17:in `<top (required)>' /var/www/miq/vmdb/bin/rails:4:in `require' /var/www/miq/vmdb/bin/rails:4:in `<main>' the suggested change filters out all the api versions I noticed that I missed the "require 'time'" segment after quadruple-checking. No more workarounds are required for 5.5.3 and 5.6.0 Both of these are connecting to and updating Azure out of the box. Moving to verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1348 No need for information since this BZ is closed |