Error with openstack provider on fresh install


#1

Just installed ManageIQ into a newly provisioned OpenStack and when trying to add the provider, I am getting a time out error on the web page.

Looking at the logs, it seems that is failing on [rescue on blocks] (?)

[----] E, [2015-11-05T13:41:41.433415 #1143:c47e94] ERROR – : excon.error #<Excon::Errors::Timeout: connect timeout reached>

[----] E, [2015-11-05T13:41:41.433852 #1143:c47e94] ERROR – : MIQ(EmsRefresh::Refreshers::OpenstackRefresher.refresh) EMS: [LTG_Blades_OpenStack], id: [5] Refresh failed
[----] E, [2015-11-05T13:41:41.434019 #1143:c47e94] ERROR – : [Excon::Errors::Timeout]: connect timeout reached Method:[rescue in block in refresh]
[----] E, [2015-11-05T13:41:41.434143 #1143:c47e94] ERROR – : /opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/excon-0.45.3/lib/excon/socket.rb:139:in rescue in block in connect' /opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/excon-0.45.3/lib/excon/socket.rb:119:inblock in connect’
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/excon-0.45.3/lib/excon/socket.rb:110:in each' /opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/excon-0.45.3/lib/excon/socket.rb:110:inconnect’
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/excon-0.45.3/lib/excon/socket.rb:28:in initialize' /opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/excon-0.45.3/lib/excon/connection.rb:389:innew’
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/excon-0.45.3/lib/excon/connection.rb:389:in socket' /opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/excon-0.45.3/lib/excon/connection.rb:106:inrequest_call’
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/excon-0.45.3/lib/excon/middlewares/mock.rb:47:in request_call' /opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/excon-0.45.3/lib/excon/middlewares/instrumentor.rb:19:inblock in request_call’
/var/www/miq/vmdb/lib/vmdb/logging/fog_logger.rb:22:in instrument' /opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/excon-0.45.3/lib/excon/middlewares/instrumentor.rb:18:inrequest_call’
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/excon-0.45.3/lib/excon/middlewares/base.rb:15:in request_call' /opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/excon-0.45.3/lib/excon/middlewares/base.rb:15:inrequest_call’
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/excon-0.45.3/lib/excon/middlewares/base.rb:15:in request_call' /opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/excon-0.45.3/lib/excon/connection.rb:233:inrequest’
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/fog-core-1.30.0/lib/fog/core/connection.rb:81:in request' /opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/fog-1.28.0/lib/fog/openstack/core.rb:216:inget_supported_version’
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/fog-1.28.0/lib/fog/openstack/image.rb:206:in authenticate' /opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/fog-1.28.0/lib/fog/openstack/image.rb:122:ininitialize’
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/fog-core-1.30.0/lib/fog/core/service.rb:115:in new' /opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/fog-core-1.30.0/lib/fog/core/service.rb:115:innew’
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/fog-core-1.30.0/lib/fog/image.rb:12:in new' /var/www/miq/lib/openstack/openstack_handle/handle.rb:61:inraw_connect’
/var/www/miq/lib/openstack/openstack_handle/handle.rb:42:in block in raw_connect_try_ssl' /var/www/miq/lib/openstack/openstack_handle/handle.rb:31:intry_connection’
/var/www/miq/lib/openstack/openstack_handle/handle.rb:39:in raw_connect_try_ssl' /var/www/miq/lib/openstack/openstack_handle/handle.rb:115:inconnect’
/var/www/miq/lib/openstack/openstack_handle/handle.rb:214:in detect_service' /var/www/miq/lib/openstack/openstack_handle/handle.rb:180:indetect_image_service’
/var/www/miq/vmdb/app/models/ems_refresh/parsers/openstack.rb:24:in initialize' /var/www/miq/vmdb/app/models/ems_refresh/parsers/openstack.rb:9:innew’
/var/www/miq/vmdb/app/models/ems_refresh/parsers/openstack.rb:9:in ems_inv_to_hashes' /var/www/miq/vmdb/app/models/ems_refresh/refreshers/openstack_refresher.rb:6:inparse_inventory’
/var/www/miq/vmdb/app/models/ems_refresh/refreshers/ems_refresher_mixin.rb:20:in block in refresh' /var/www/miq/vmdb/app/models/ems_refresh/refreshers/ems_refresher_mixin.rb:8:ineach’
/var/www/miq/vmdb/app/models/ems_refresh/refreshers/ems_refresher_mixin.rb:8:in refresh' /var/www/miq/vmdb/app/models/ems_refresh/refreshers/base_refresher.rb:8:inrefresh’
/var/www/miq/vmdb/app/models/ems_refresh.rb:80:in block in refresh' /var/www/miq/vmdb/app/models/ems_refresh.rb:78:ineach’
/var/www/miq/vmdb/app/models/ems_refresh.rb:78:in refresh' /var/www/miq/vmdb/app/models/miq_queue.rb:356:inblock in deliver’
/opt/rubies/ruby-2.0.0-p645/lib/ruby/2.0.0/timeout.rb:66:in timeout' /var/www/miq/vmdb/app/models/miq_queue.rb:352:indeliver’
/var/www/miq/vmdb/lib/workers/queue_worker_base.rb:107:in deliver_queue_message' /var/www/miq/vmdb/lib/workers/queue_worker_base.rb:135:indeliver_message’
/var/www/miq/vmdb/lib/workers/queue_worker_base.rb:152:in block in do_work' /var/www/miq/vmdb/lib/workers/queue_worker_base.rb:146:inloop’
/var/www/miq/vmdb/lib/workers/queue_worker_base.rb:146:in do_work' /var/www/miq/vmdb/lib/workers/worker_base.rb:323:inblock in do_work_loop’
/var/www/miq/vmdb/lib/workers/worker_base.rb:320:in loop' /var/www/miq/vmdb/lib/workers/worker_base.rb:320:indo_work_loop’
/var/www/miq/vmdb/lib/workers/worker_base.rb:141:in run' /var/www/miq/vmdb/lib/workers/worker_base.rb:122:instart’
/var/www/miq/vmdb/lib/workers/worker_base.rb:23:in start_worker' /var/www/miq/vmdb/lib/workers/bin/worker.rb:3:in<top (required)>’
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/railties/lib/rails/commands/runner.rb:52:in eval' /opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/railties/lib/rails/commands/runner.rb:52:in<top (required)>’
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/railties/lib/rails/commands.rb:64:in require' /opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/railties/lib/rails/commands.rb:64:in<top (required)>'
script/rails:6:in require' script/rails:6:in'
[----] E, [2015-11-05T13:41:41.434239 #1143:c47e94] ERROR – : MIQ(EmsRefresh::Refreshers::OpenstackRefresher.refresh) EMS: [LTG_Blades_OpenStack], id: [5] Unable to perform refresh for the following targets:
[----] E, [2015-11-05T13:41:41.434562 #1143:c47e94] ERROR – : — EmsOpenstack [LTG_Blades_OpenStack] id [5]
[----] I, [2015-11-05T13:41:41.470885 #1143:c47e94] INFO – : MIQ(EmsRefresh::Refreshers::OpenstackRefresher.refresh) Refreshing all targets…Complete
[----] I, [2015-11-05T13:41:41.471317 #1143:c47e94] INFO – : MIQ(MiqQueue.delivered) Message id: [14858], State: [ok], Delivered in [61.303597682] seconds

Thanks!


#2

/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/fog-1.28.0/lib/fog/openstack/image.rb:206:in authenticate’

seems like it timeouts talking to Glance service. Is that service available? Can be just firewall issue.