Provider refresh error (uninitialized constant)


#1

Following along with a video posted in another question I had regarding adding an Azure provider, I was able to get authentication working. However, it seems I am running into a new problem.

On the provider summary page under Status, the Last Refresh value is

Error - 15 minutes ago
uninitialized constant ManageIQ::Providers::BaseManager::Refresher::Settings

I haven’t been able to find anything pertaining to this error in my searches. Has anyone encountered it before or otherwise know what it is?


#2

@theillien Do you have a stack trace from /var/www/miq/vmdb/evm.log?


#3

I think I found all of the relevant log data. It looks like it isn’t just an issue with Azure but the entire application. The entries below are related to AWS:

[----] I, [2016-06-02T04:21:09.142132 #2931:bc7988] INFO – : MIQ(MiqEvent#process_evm_event) target = [#<ManageIQ::Providers::Amazon::CloudManager id: 5, name: “Cloud 2.0 - Oregon”, port: nil, hostname: nil, ipaddress: nil, created_on: “2016-05-31 23:30:08”, updated_on: “2016-06-02 06:20:36”, guid: “9c8eaad4-2787-11e6-a7b1-525400878f16”, zone_id: 1, type: “ManageIQ::Providers::Amazon::CloudManager”, api_version: nil, uid_ems: nil, host_default_vnc_port_start: nil, host_default_vnc_port_end: nil, provider_region: “us-west-2”, last_refresh_error: “uninitialized constant ManageIQ::Providers::BaseMa…”, last_refresh_date: “2016-06-02 06:20:36”, provider_id: nil, security_protocol: nil, realm: nil, tenant_id: 1>]
[----] I, [2016-06-02T04:21:09.142425 #2931:bc7988] INFO – : Followed Relationship [miqaedb:/System/event_handlers/event_enforce_policy#create]
[----] I, [2016-06-02T04:21:09.142787 #2931:bc7988] INFO – : Followed Relationship [miqaedb:/System/Event/MiqEvent/POLICY/ems_auth_valid#create]
[----] I, [2016-06-02T04:21:09.143511 #2931:bc7988] INFO – : MIQ(MiqQueue#delivered) Message id: [113381], State: [ok], Delivered in [0.246196485] seconds
[----] I, [2016-06-02T04:21:09.989020 #29999:e9398c] INFO – : MIQ(ManageIQ::Providers::Amazon::CloudManager::RefreshWorker::Runner#get_message_via_drb) Message id: [113377], MiqWorker id: [250], Zone: [default], Role: [ems_inventory], Server: [], Ident: [ems_5], Target id: [], Instance id: [], Task id: [], Command: [EmsRefresh.refresh], Timeout: [7200], Priority: [100], State: [dequeue], Deliver On: [], Data: [], Args: [[[“ManageIQ::Providers::Amazon::CloudManager”, 5]]], Dequeued in: [10.288113237] seconds
[----] I, [2016-06-02T04:21:09.989269 #29999:e9398c] INFO – : MIQ(MiqQueue#deliver) Message id: [113377], Delivering…
[----] I, [2016-06-02T04:21:10.004299 #29999:e9398c] INFO – : MIQ(ManageIQ::Providers::Amazon::CloudManager::Refresher#refresh) Refreshing all targets…
[----] I, [2016-06-02T04:21:10.004493 #29999:e9398c] INFO – : MIQ(ManageIQ::Providers::Amazon::CloudManager::Refresher#refresh) EMS: [Cloud 2.0 - Oregon], id: [5] Refreshing targets for EMS: [Cloud 2.0 - Oregon], id: [5]…
[----] I, [2016-06-02T04:21:10.004612 #29999:e9398c] INFO – : MIQ(ManageIQ::Providers::Amazon::CloudManager::Refresher#refresh) EMS: [Cloud 2.0 - Oregon], id: [5] ManageIQ::Providers::Amazon::CloudManager [Cloud 2.0 - Oregon] id [5]
[----] E, [2016-06-02T04:21:10.016064 #29999:e9398c] ERROR – : MIQ(ManageIQ::Providers::Amazon::CloudManager::Refresher#refresh) EMS: [Cloud 2.0 - Oregon], id: [5] Refresh failed
[----] E, [2016-06-02T04:21:10.016322 #29999:e9398c] ERROR – : [NameError]: uninitialized constant ManageIQ::Providers::BaseManager::Refresher::Settings Method:[rescue in block in refresh]
[----] E, [2016-06-02T04:21:10.016437 #29999:e9398c] ERROR – : /var/www/miq/vmdb/app/models/manageiq/providers/base_manager/refresher.rb:20:in options' /var/www/miq/vmdb/app/models/manageiq/providers/base_manager/refresher.rb:24:inrefresher_options’
/var/www/miq/vmdb/app/models/manageiq/providers/amazon/cloud_manager/refresher.rb:5:in parse_inventory' /var/www/miq/vmdb/app/models/ems_refresh/refreshers/ems_refresher_mixin.rb:19:inblock 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:inrefresh’
/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:inblock in refresh’
/var/www/miq/vmdb/app/models/ems_refresh.rb:76:in each' /var/www/miq/vmdb/app/models/ems_refresh.rb:76:inrefresh’
/var/www/miq/vmdb/app/models/miq_queue.rb:345:in block in deliver' /opt/rubies/ruby-2.2.4/lib/ruby/2.2.0/timeout.rb:88:inblock in timeout’
/opt/rubies/ruby-2.2.4/lib/ruby/2.2.0/timeout.rb:32:in block in catch' /opt/rubies/ruby-2.2.4/lib/ruby/2.2.0/timeout.rb:32:incatch’
/opt/rubies/ruby-2.2.4/lib/ruby/2.2.0/timeout.rb:32:in catch' /opt/rubies/ruby-2.2.4/lib/ruby/2.2.0/timeout.rb:103:intimeout’
/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:indeliver_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:inblock 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:indo_work’
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:335:in block in do_work_loop' /var/www/miq/vmdb/app/models/miq_worker/runner.rb:332:inloop’
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:332:in do_work_loop' /var/www/miq/vmdb/app/models/miq_worker/runner.rb:154:inrun’
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:129:in start' /var/www/miq/vmdb/app/models/miq_worker/runner.rb:29:instart_worker’
/var/www/miq/vmdb/lib/workers/bin/worker.rb:2:in <top (required)>' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/commands/runner.rb:60:inload’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/commands/runner.rb:60:in <top (required)>' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:123:inrequire’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:123:in require_command!' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:90:inrunner’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:39:in run_command!' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/railties-4.2.5/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'
[----] E, [2016-06-02T04:21:10.016521 #29999:e9398c] ERROR – : MIQ(ManageIQ::Providers::Amazon::CloudManager::Refresher#refresh) EMS: [Cloud 2.0 - Oregon], id: [5] Unable to perform refresh for the following targets:
[----] E, [2016-06-02T04:21:10.016640 #29999:e9398c] ERROR – : MIQ(ManageIQ::Providers::Amazon::CloudManager::Refresher#refresh) — ManageIQ::Providers::Amazon::CloudManager [Cloud 2.0 - Oregon] id [5]


#4

Thanks @theillien I’ll take a look.