Capablanca - SCVVM


#1

Hi,

Tried to add SCVMM provider to Capablanca, but it doesn’t seem to work.

I can provide credentials ok and that seems to work, but when it tries to find something, scvmm.log/evm.log says (below). Is this something that should work, or how reboust SCVMM integration is at first place ?

Thanks!

[----] I, [2015-11-18T05:16:07.494493 #3355:12ed988] INFO – : MIQ(ManageIQ::Providers::Microsoft::InfraManager::RefreshParser.ems_inv_to_hashes) Collecting data for EMS name: [SCVMM (10.50.2.201)] id: [1]…
[----] E, [2015-11-18T05:16:31.782460 #3355:12ed988] ERROR – : MIQ(Class#log_dos_error_results) #< CLIXML
System.Management.Automation.PSCustomObjectSystem.Object1Preparing modules for first use.0-1-1Completed-1 2Preparing modules for first use.0-1-1Completed-1 3Preparing modules for first use.0-1-1Completed-1 3Preparing modules for first use.0-1-1Completed-1 3Preparing modules for first use.0-1-1Completed-1 3Preparing modules for first use.0-1-1Completed-1

On evm.log:

[----] E, [2015-11-18T05:23:37.398451 #3355:12ed988] ERROR – : MIQ(ManageIQ::Providers::Microsoft::InfraManager::Refresher#refresh) EMS: [SCVMM (10.50.2.201)], id: [1] Refre
sh failed
[----] E, [2015-11-18T05:23:37.398646 #3355:12ed988] ERROR – : [TypeError]: no implicit conversion of Symbol into Integer Method:[rescue in block in refresh]
[----] E, [2015-11-18T05:23:37.398876 #3355:12ed988] ERROR – : /var/www/miq/vmdb/app/models/manageiq/providers/microsoft/infra_manager/refresh_parser.rb:417:in []' /var/www/miq/vmdb/app/models/manageiq/providers/microsoft/infra_manager/refresh_parser.rb:417:inprocess_iso_image’
/var/www/miq/vmdb/app/models/manageiq/providers/microsoft/infra_manager/refresh_parser.rb:393:in process_vm_guest_devices' /var/www/miq/vmdb/app/models/manageiq/providers/microsoft/infra_manager/refresh_parser.rb:317:inprocess_vm_hardware’
/var/www/miq/vmdb/app/models/manageiq/providers/microsoft/infra_manager/refresh_parser.rb:193:in parse_vm' /var/www/miq/vmdb/app/models/manageiq/providers/microsoft/infra_manager/refresh_parser.rb:64:inblock in get_vms’
/var/www/miq/vmdb/app/models/manageiq/providers/microsoft/infra_manager/refresh_parser.rb:601:in block in process_collection' /var/www/miq/vmdb/app/models/manageiq/providers/microsoft/infra_manager/refresh_parser.rb:600:ineach’
/var/www/miq/vmdb/app/models/manageiq/providers/microsoft/infra_manager/refresh_parser.rb:600:in process_collection' /var/www/miq/vmdb/app/models/manageiq/providers/microsoft/infra_manager/refresh_parser.rb:64:inget_vms’
/var/www/miq/vmdb/app/models/manageiq/providers/microsoft/infra_manager/refresh_parser.rb:31:in ems_inv_to_hashes' /var/www/miq/vmdb/app/models/manageiq/providers/microsoft/infra_manager/refresh_parser.rb:7:inems_inv_to_hashes’
/var/www/miq/vmdb/app/models/manageiq/providers/microsoft/infra_manager/refresher.rb:6: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.3/lib/ruby/2.2.0/timeout.rb:88:inblock in timeout’
/opt/rubies/ruby-2.2.3/lib/ruby/2.2.0/timeout.rb:32:in block in catch' /opt/rubies/ruby-2.2.3/lib/ruby/2.2.0/timeout.rb:32:incatch’
/opt/rubies/ruby-2.2.3/lib/ruby/2.2.0/timeout.rb:32:in catch' /opt/rubies/ruby-2.2.3/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.3/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/commands/runner.rb:60:inload’
/opt/rubies/ruby-2.2.3/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.3/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:123:inrequire’
/opt/rubies/ruby-2.2.3/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.3/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:90:inrunner’
/opt/rubies/ruby-2.2.3/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.3/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, [2015-11-18T05:23:37.398948 #3355:12ed988] ERROR – : MIQ(ManageIQ::Providers::Microsoft::InfraManager::Refresher#refresh) EMS: [SCVMM (10.50.2.201)], id: [1] Unable to perform refresh for the following targets:


#2

Actually this same happens with botvinnik and cloudforms 3.2 as well.


#3

Can you go to configure/configuration -> Advanced and then set the level_scvmm from info to debug then issue a refresh against the provider and see what the scvmm.log displays?

Also can you provide a little more details about your scvmm env.? Mixed hosts ? Vm’s? etc


#4

@tonimaatta,
From what I can tell, it looks like the refresh parser is tripping up when it tries to gather an inventory of the DVDs on the VM(s). Can you tell me if there are multiple virtual DVD drives on the VM(s) or just one?

Bronagh


#5

hmm… I deleted one VM and took one iso image away from another VM and now it works. Sorry, but now I’m not quite sure what caused that. I cannot reprodue it anymore.

But might be something with DVDs…


#6

@tonimaatta,

Thanks for the feedback. If you hit it again, let us know and we can try to help out.


Greg Blomquist
@blomquisg


#7

Great, thanks!

It seems that if cloning from template doesn’t work (if creates broken VM on SCVMM), that happens.
I guess I had a broken VM on SCVMM and that’s why refresh didn’t work at all. Maybe this is something you could take a look ?

Another thing, is there a way to select VLAN for a network interface ? Now if I create catalog item, it only shows the network card itself.