Openstack infrastructure provider


#1

Dear all,

I have some issues adding an OpenStack as Infrastructure provider. The initial scan fails with “ERROR – : [NoMethodError]: undefined method `ports’ for nil:NilClass”:

[----] E, [2015-05-29T07:50:42.311871 #26541:9d7e98] ERROR -- : MIQ(EmsRefresh::Refreshers::OpenstackInfraRefresher.refresh) EMS: [Devstack], id: [11] Refresh failed
[----] E, [2015-05-29T07:50:42.312108 #26541:9d7e98] ERROR -- : [NoMethodError]: undefined method `ports' for nil:NilClass  Method:[rescue in block in refresh]
[----] E, [2015-05-29T07:50:42.312232 #26541:9d7e98] ERROR -- : /var/www/miq/vmdb/app/models/ems_refresh/parsers/openstack_infra.rb:67:in `hosts_ports'
/var/www/miq/vmdb/app/models/ems_refresh/parsers/openstack_infra.rb:79:in `load_hosts'
/var/www/miq/vmdb/app/models/ems_refresh/parsers/openstack_infra.rb:35:in `ems_inv_to_hashes'
/var/www/miq/vmdb/app/models/ems_refresh/parsers/openstack_infra.rb:8:in `ems_inv_to_hashes'
/var/www/miq/vmdb/app/models/ems_refresh/refreshers/openstack_infra_refresher.rb:7:in `parse_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:in `each'
/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:in `refresh'
/var/www/miq/vmdb/app/models/ems_refresh.rb:80:in `block in refresh'
/var/www/miq/vmdb/app/models/ems_refresh.rb:78:in `each'
/var/www/miq/vmdb/app/models/ems_refresh.rb:78:in `refresh'
/var/www/miq/vmdb/app/models/miq_queue.rb:356:in `block 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:in `deliver'
/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:in `deliver_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:in `loop'
/var/www/miq/vmdb/lib/workers/queue_worker_base.rb:146:in `do_work'
/var/www/miq/vmdb/lib/workers/worker_base.rb:323:in `block 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:in `do_work_loop'
/var/www/miq/vmdb/lib/workers/worker_base.rb:141:in `run'
/var/www/miq/vmdb/lib/workers/worker_base.rb:122:in `start'
/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 `<main>'
[----] E, [2015-05-29T07:50:42.312313 #26541:9d7e98] ERROR -- : MIQ(EmsRefresh::Refreshers::OpenstackInfraRefresher.refresh) EMS: [Devstack], id: [11] Unable to perform refresh for the following targets:
[----] E, [2015-05-29T07:50:42.312450 #26541:9d7e98] ERROR -- :  --- EmsOpenstackInfra [Devstack] id [11]
[----] I, [2015-05-29T07:50:42.323187 #26541:9d7e98]  INFO -- : MIQ(EmsRefresh::Refreshers::OpenstackInfraRefresher.refresh) Refreshing all targets...Complete

I’m using Botvinnic RC3.


Error adding OpenStack Infrastructure provider
#2

I too am having this issue - with RC3 and RC4 - does anyone have a solution to this?


#3

Hi using Botvinnik release, I managed to add Openstack Provider, either thru Cloud and Infrastructure with no problems.


#4

Are you using the correct port? I am on Juno and i have port 5000 and it works for me using Botvinnik


#5

Thanks to both for your suggestions. I still did try it on RC4 due to my busy schedule.

@nohtyp: The port is OK… in fact you cannot change the port if you add the OpenStack as the infrastructure provider (but you can change it if you add OpenStack as Cloud provider) - at least this is true for RC3.


#6

@cankarm, @mriddel: did you setup your OpenStack Infrastructure environment with TripleO?


#7

@blomquisg No. I tried with existing (non-TripleO) OpenStack deployments that worked as a cloud provider.
Just now I saw the duplicate discussion of the same problem in Error adding OpenStack Infrastructure provider.


#8

@cankarm, take a look at @ladas’ response in that thread (if you haven’t already). He’s the OpenStack Integration engineer that can answer most questions related to our openstack integration, especially with the OpenStack Infrastructure integration.


#9

@blomquisg I saw that response, thanks to you and @Ladas for clarification!