puppetlabs / vmpooler-deployment

Apache License 2.0
0 stars 2 forks source link

vsphere #153

Closed ralfbosz closed 2 months ago

ralfbosz commented 2 months ago

Describe the Bug

I'm trying to run the docker-compose environment with the vsphere-provider, but my 'vmpooler-manager' is giving an error.

My config for vsphere is:

:providers:
  :vsphere:
    server:  <redacted>
    username: <redacted>
    password: <redacted>

And the logging shows:

bundler: failed to load command: vmpooler (/usr/local/bundle/bin/vmpooler)
NoMethodError: undefined method `keys' for nil:NilClass
  get_domain_for_pool at /usr/local/bundle/gems/vmpooler-3.6.0/lib/vmpooler/dns.rb:40
  load_pools_to_redis at /usr/local/bundle/gems/vmpooler-3.6.0/lib/vmpooler/pool_manager.rb:70
                 each at org/jruby/RubyArray.java:1989
  load_pools_to_redis at /usr/local/bundle/gems/vmpooler-3.6.0/lib/vmpooler/pool_manager.rb:60
         with_metrics at /usr/local/bundle/gems/vmpooler-3.6.0/lib/vmpooler/generic_connection_pool.rb:29
     handle_interrupt at org/jruby/RubyThread.java:827
         with_metrics at /usr/local/bundle/gems/vmpooler-3.6.0/lib/vmpooler/generic_connection_pool.rb:28
     handle_interrupt at org/jruby/RubyThread.java:827
         with_metrics at /usr/local/bundle/gems/vmpooler-3.6.0/lib/vmpooler/generic_connection_pool.rb:21
  load_pools_to_redis at /usr/local/bundle/gems/vmpooler-3.6.0/lib/vmpooler/pool_manager.rb:57
             execute! at /usr/local/bundle/gems/vmpooler-3.6.0/lib/vmpooler/pool_manager.rb:1682
               <main> at /usr/local/bundle/gems/vmpooler-3.6.0/bin/vmpooler:58

Expected Behavior

I expected a login to vsphere and a list of the pools.

Steps to Reproduce

Steps to reproduce the behavior:

  1. clone this repo
  2. copy the config into the docker/data directory
  3. start the docker with docker-compose up -d

Environment

Additional Context

The default config with the dummy-provider runs.

ralfbosz commented 2 months ago

Found it, I did not mention:

dns_plugin: 'example'

In my pool...