Vcenter Provider refresh getting fail with error as "undefined method `map_labels"

Hi,

Trying to setup new MIQ version Kasparov-1.
Added Vcenter in Provider, during Provider refresh its getting failed with below given error.

[----] E, [2021-03-04T23:00:50.900612 #2957:2ae1e38361a8] ERROR – : [NoMethodError]: undefined method map_labels' for nil:NilClass Method:[block (2 levels) in <class:LogProxy>] [----] E, [2021-03-04T23:00:50.901146 #2957:2ae1e38361a8] ERROR -- : [NoMethodError]: undefined method map_labels’ for nil:NilClass Method:[block (2 levels) in class:LogProxy]
[----] E, [2021-03-05T01:14:55.509442 #54960:2b02d1750784] ERROR – : [NoMethodError]: undefined method map_labels' for nil:NilClass Method:[block (2 levels) in <class:LogProxy>] [----] E, [2021-03-05T01:14:55.519455 #54960:2b02d1750784] ERROR -- : [NoMethodError]: undefined method map_labels’ for nil:NilClass Method:[block (2 levels) in class:LogProxy]

Just googled and found this link related to this error.

  1. Looks like this pull request committed. So, is that mean this fix is applied in the .ova file which available in ManageIQ - Download ManageIQ ? I am trying VMware version md5 9e374a55d6e8e9ac24be87fdae74d2fc for the ova which I am using.

  2. Since i cant able to see this mentioned changes in this md5 9e374a55d6e8e9ac24be87fdae74d2fc OVA file.

  3. And I have tried to do the code as for the below listed files as mentioned in Clear cached tags after finishing a full refresh by agrare · Pull Request #695 · ManageIQ/manageiq-providers-vmware · GitHub, but know luck getting new error as

[----] E, [2021-03-05T00:23:39.943762 #32082:2af2ec321644] ERROR – : [NoMethodError]: undefined method delete_at' for #<RbVmomi::VIM::VirtualIDEController:0x000055e5ffbb8c90> Method:[block (2 levels) in <class:LogProxy>] [----] E, [2021-03-05T00:52:02.514851 #44561:2af698147cb0] ERROR -- : [NoMethodError]: undefined method delete_at’ for #RbVmomi::VIM::VirtualIDEController:0x000055ed58b66a98 Method:[block (2 levels) in class:LogProxy]

Files which I have modified:-

i) /opt/manageiq/manageiq-gemset/bundler/gems/manageiq-providers-vmware-eb218a96aad1/app/models/manageiq/providers/vmware/infra_manager/inventory/collector.rb
ii) /opt/manageiq/manageiq-gemset/bundler/gems/manageiq-providers-vmware-eb218a96aad1/app/models/manageiq/providers/vmware/infra_manager/inventory/parser/virtual_machine.rb

  1. This file refresher_spec.rb, I cant see anywhere in this image.

Hey, I just had the same (similar?) issue with my vcenter inventory not refreshing, I fixed it by applying the changes to the files in thix fix here https://github.com/ManageIQ/manageiq-providers-vmware/pull/700, I was also missing the refresher_spec.rb and parser_spec.rb so I created those. works for me now.

Hi Flaya1278,

I have tried below given suggested both.

But no luck.

image

This is the error getting

Thanks

Additionally I am getting below given error also, during Vcenter provider refresh

So,

Error 1:- map_labels

Error 2:- VirtualIDEController

Error 3 :- timeout "could not obtain a connection from the pool within 5 sec

Finally Vcenter inventory refresh status is failed :-