Unable to load VMware vCenter data into ManageIQ Console


#1

I am unable to load VMWare vCenter Virtual Machine information into my ManageIQ console. I could add the VMWare vCenter to MIQ but unable to see any data on console.

ManageIQ EUWE - 1

I have tried increasing vim_worker_broker size to 4 GB but no use.

I could see below messages in the logs:

[----] E, [2017-02-21T16:05:52.830323 #4379:125d130] ERROR – : MIQ(ManageIQ::Providers::Vmware::InfraManager::Refresher#refresh) EMS: [xxxxxxxxx], id: [5] Unable to perform refresh for
the following targets:
[----] E, [2017-02-21T16:05:52.830841 #4379:125d130] ERROR – : MIQ(ManageIQ::Providers::Vmware::InfraManager::Refresher#refresh) — ManageIQ::Providers::Vmware::InfraManager [xxxxxxxxx
00] id [5]
[----] I, [2017-02-21T16:05:52.844933 #4379:125d130] INFO – : MIQ(ManageIQ::Providers::Vmware::InfraManager::Refresher#refresh) Refreshing all targets…Complete
[----] E, [2017-02-21T16:05:52.845145 #4379:125d130] ERROR – : MIQ(MiqQueue#deliver) Message id: [690122], Error: [undefined method name' for nil:NilClass] [----] E, [2017-02-21T16:05:52.845325 #4379:125d130] ERROR -- : [EmsRefresh::Refreshers::EmsRefresherMixin::PartialRefreshError]: undefined methodname’ for nil:NilClass Method:[rescue in
deliver]
[----] E, [2017-02-21T16:05:52.845500 #4379:125d130] ERROR – : /var/www/miq/vmdb/app/models/ems_refresh/refreshers/ems_refresher_mixin.rb:50:in refresh' /var/www/miq/vmdb/app/models/manageiq/providers/base_manager/refresher.rb:10:inrefresh’
/var/www/miq/vmdb/app/models/ems_refresh.rb:91:in block in refresh' /var/www/miq/vmdb/app/models/ems_refresh.rb:90:ineach’


#2

@krain, @jprause

Guys, could you please check this?


#3

@Ram there should be another backtrace that shows the line that hit the error, ems_refresher_mixin.rb:50 is just where the exception was raised. It should be above this section in the logs.

Thanks,
Adam


#4

@agrare… thanks for your reply.

It says Active VimBroker not found. Where do I verify the availability of this VimBroker?

----] W, [2017-02-22T16:22:19.699341 #9745:125d130] WARN – : MIQ(MiqVimBrokerWorker.drb_uri) Active VimBroker not found
[----] W, [2017-02-22T16:22:19.699846 #9745:125d130] WARN – : MIQ(MiqFaultTolerantVim._execute_with_broker) Retrying communication via VimBroker to [xxxxxxxxxxxxxxxxx] because [MiqException::M
iqVimBrokerUnavailable] [Broker is not available (connection error).]
[----] I, [2017-02-22T16:22:19.699988 #9745:125d130] INFO – : MIQ(MiqFaultTolerantVim._connect) EMS: [xxxxxxxxxxxxxxxxx] [Broker] Connecting with address: [xxxxxxxxxxxxxxxxx], userid: [xxxxxxxxxxxxxxxxx]…
[----] I, [2017-02-22T16:22:19.700314 #9745:125d130] INFO – : MIQ(ManageIQ::Providers::Vmware::InfraManager::Refresher#disconnect_from_ems) Disconnecting from EMS: [xxxxxxxxxxxxxxxxx], id: [5
]…
[----] W, [2017-02-22T16:22:19.700384 #9745:125d130] WARN – : MIQ(MiqFaultTolerantVim._execute) @vim handle is nil.
[----] I, [2017-02-22T16:22:19.700455 #9745:125d130] INFO – : MIQ(ManageIQ::Providers::Vmware::InfraManager::Refresher#disconnect_from_ems) Disconnecting from EMS: [xxxxxxxxxxxxxxxxx], id: [5
]…Complete
[----] E, [2017-02-22T16:22:19.700530 #9745:125d130] ERROR – : MIQ(ManageIQ::Providers::Vmware::InfraManager::Refresher#refresh) EMS: [xxxxxxxxxxxxxxxxx], id: [5] Refresh failed
[----] E, [2017-02-22T16:22:19.700700 #9745:125d130] ERROR – : [MiqException::MiqVimBrokerUnavailable]: Broker is not available (not running). Method:[rescue in block in refresh]
[----] E, [2017-02-22T16:22:19.700784 #9745:125d130] ERROR – : MIQ(ManageIQ::Providers::Vmware::InfraManager::Refresher#refresh) EMS: [xxxxxxxxxxxxxxxxx], id: [5] Unable to perform refresh for
the following targets:
[----] E, [2017-02-22T16:22:19.700873 #9745:125d130] ERROR – : MIQ(ManageIQ::Providers::Vmware::InfraManager::Refresher#refresh) — ManageIQ::Providers::Vmware::InfraManager [SMGMULIVNSK
00] id [5]
[----] I, [2017-02-22T16:22:19.712964 #9745:125d130] INFO – : MIQ(ManageIQ::Providers::Vmware::InfraManager::Refresher#refresh) Refreshing all targets…Complete
[----] E, [2017-02-22T16:22:19.713229 #9745:125d130] ERROR – : MIQ(MiqQueue#deliver) Message id: [794625], Error: [Broker is not available (not running).]
[----] E, [2017-02-22T16:22:19.713411 #9745:125d130] ERROR – : [EmsRefresh::Refreshers::EmsRefresherMixin::PartialRefreshError]: Broker is not available (not running). Method:[rescue in d
eliver]
[----] E, [2017-02-22T16:22:19.713580 #9745:125d130] ERROR – : /var/www/miq/vmdb/app/models/ems_refresh/refreshers/ems_refresher_mixin.rb:50:in `refresh’


#5

Hm so that looks like a different error, maybe the broker isn’t running due to the first error.
This sounds like https://github.com/ManageIQ/manageiq/pull/13706 which was backported to euwe but looks like not released yet. Can you try applying that and see if that resolves your issue?


#6

@agrare

I have tried applying the patch but it never executed.

I ran this " patch -p3 MiqVimInventory.rb" command under lib but it didn’t through. I am applying the patch correctly?

Is there any other way for applying it?


#7

@Ram this commit was recently released with euwe-2 so you could upgrade to that.