Bug 1278654 - OpenStack Provider Discovery Fails
Summary: OpenStack Provider Discovery Fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: GA
: 5.6.0
Assignee: Ladislav Smola
QA Contact: Shveta
URL:
Whiteboard:
: 1286622 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-06 05:45 UTC by Brandon Johnson
Modified: 2016-06-29 15:02 UTC (History)
6 users (show)

Fixed In Version: 5.6.0.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-29 15:02:46 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
logs from CF4 (1.90 MB, application/x-gzip)
2015-11-06 09:16 UTC, Brandon Johnson
no flags Details
cloud providers (56.67 KB, image/png)
2016-06-09 14:28 UTC, Shveta
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 0 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 18:50:04 UTC

Description Brandon Johnson 2015-11-06 05:45:13 UTC
Description of problem:
OpenStack Provider (RHELOSP 6 is not being discovered) I don't have other OpenStack environments to test if other versions are affected.


Version-Release number of selected component (if applicable):
5.5.0.9-beta2.20151102161742_5530c9a

How reproducible:
Everytime I try to discover or refresh the provider

Steps to Reproduce:
Add RHELOSP 6 as a provider

Actual results:
an error occurrs:
[----] E, [2015-11-06T00:37:24.646330 #41004:ed998c] ERROR -- : MIQ(ManageIQ::Providers::Openstack::CloudManager::Refresher#refresh) EMS: [OpenStack], id: [99000000000001] Refresh failed
[----] E, [2015-11-06T00:37:24.646639 #41004:ed998c] ERROR -- : [NoMethodError]: undefined method `fetch_path' for nil:NilClass  Method:[rescue in block in refresh]
[----] E, [2015-11-06T00:37:24.646801 #41004:ed998c] ERROR -- : /var/www/miq/vmdb/app/models/manageiq/providers/openstack/refresh_parser_common/networks.rb:170:in `parse_network_router'
/var/www/miq/vmdb/app/models/manageiq/providers/openstack/refresh_parser_common/networks.rb:40:in `block in get_network_routers'
/var/www/miq/vmdb/app/models/manageiq/providers/openstack/refresh_parser_common/helper_methods.rb:14:in `process_collection_item'
/var/www/miq/vmdb/app/models/manageiq/providers/openstack/refresh_parser_common/helper_methods.rb:8:in `block in process_collection'
/var/www/miq/vmdb/app/models/manageiq/providers/openstack/refresh_parser_common/helper_methods.rb:8:in `each'
/var/www/miq/vmdb/app/models/manageiq/providers/openstack/refresh_parser_common/helper_methods.rb:8:in `process_collection'
/var/www/miq/vmdb/app/models/manageiq/providers/openstack/refresh_parser_common/networks.rb:40:in `get_network_routers'
/var/www/miq/vmdb/app/models/manageiq/providers/openstack/cloud_manager/refresh_parser.rb:46:in `ems_inv_to_hashes'
/var/www/miq/vmdb/app/models/manageiq/providers/openstack/cloud_manager/refresh_parser.rb:12:in `ems_inv_to_hashes'
/var/www/miq/vmdb/app/models/manageiq/providers/openstack/cloud_manager/refresher.rb:6:in `parse_inventory'
/var/www/miq/vmdb/app/models/ems_refresh/refreshers/ems_refresher_mixin.rb:19:in `block 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:in `refresh'
/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:in `block in refresh'
/var/www/miq/vmdb/app/models/ems_refresh.rb:76:in `each'
/var/www/miq/vmdb/app/models/ems_refresh.rb:76:in `refresh'
/var/www/miq/vmdb/app/models/miq_queue.rb:345:in `block in deliver'
/opt/rh/rh-ruby22/root/usr/share/ruby/timeout.rb:89:in `block in timeout'
/opt/rh/rh-ruby22/root/usr/share/ruby/timeout.rb:34:in `block in catch'
/opt/rh/rh-ruby22/root/usr/share/ruby/timeout.rb:34:in `catch'
/opt/rh/rh-ruby22/root/usr/share/ruby/timeout.rb:34:in `catch'
/opt/rh/rh-ruby22/root/usr/share/ruby/timeout.rb:104:in `timeout'
/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:in `deliver_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:in `block 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:in `do_work'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:323:in `block in do_work_loop'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:320:in `loop'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:320:in `do_work_loop'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:142:in `run'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:123:in `start'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:24:in `start_worker'
/var/www/miq/vmdb/lib/workers/bin/worker.rb:2:in `<top (required)>'
/opt/rh/cfme-gemset/bundler/gems/rails-a37d0e57571f/railties/lib/rails/commands/runner.rb:60:in `load'
/opt/rh/cfme-gemset/bundler/gems/rails-a37d0e57571f/railties/lib/rails/commands/runner.rb:60:in `<top (required)>'
/opt/rh/cfme-gemset/bundler/gems/rails-a37d0e57571f/railties/lib/rails/commands/commands_tasks.rb:123:in `require'
/opt/rh/cfme-gemset/bundler/gems/rails-a37d0e57571f/railties/lib/rails/commands/commands_tasks.rb:123:in `require_command!'
/opt/rh/cfme-gemset/bundler/gems/rails-a37d0e57571f/railties/lib/rails/commands/commands_tasks.rb:90:in `runner'
/opt/rh/cfme-gemset/bundler/gems/rails-a37d0e57571f/railties/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
/opt/rh/cfme-gemset/bundler/gems/rails-a37d0e57571f/railties/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 `<main>'
[----] E, [2015-11-06T00:37:24.646882 #41004:ed998c] ERROR -- : MIQ(ManageIQ::Providers::Openstack::CloudManager::Refresher#refresh) EMS: [OpenStack], id: [99000000000001] Unable to perform refresh for the following targets:
[----] E, [2015-11-06T00:37:24.646977 #41004:ed998c] ERROR -- : MIQ(ManageIQ::Providers::Openstack::CloudManager::Refresher#refresh)  --- ManageIQ::Providers::Openstack::CloudManager [OpenStack] id [99000000000001]



Additional info:
I tested this on CloudForms 3.2 (current errata) and CloudForms 4 Alpha 1 and it worked perfectly in this environment.

Comment 2 Brandon Johnson 2015-11-06 05:47:53 UTC
If you need further info the CloudForms appliance IP Address is 10.11.164.109 and all the default passwords.

Comment 3 Brandon Johnson 2015-11-06 09:16:30 UTC
Created attachment 1090518 [details]
logs from CF4

Comment 5 CFME Bot 2015-11-10 13:40:25 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/3e3045e658675b958dde9518e087857cd216de71

commit 3e3045e658675b958dde9518e087857cd216de71
Author:     Ladislav Smola <lsmola>
AuthorDate: Fri Nov 6 15:34:09 2015 +0100
Commit:     Ladislav Smola <lsmola>
CommitDate: Fri Nov 6 15:35:04 2015 +0100

    Openstack get reouter external_gateway_info safely
    
    Doc says the type is xsd:dict but it can be nil
    
    Fixes BZ:
    https://bugzilla.redhat.com/show_bug.cgi?id=1278654

 .../manageiq/providers/openstack/refresh_parser_common/networks.rb      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 6 Ladislav Smola 2015-11-30 12:14:36 UTC
*** Bug 1286622 has been marked as a duplicate of this bug. ***

Comment 8 CFME Bot 2015-12-02 20:29:59 UTC
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=4ca22d79b0b23570566cdac3eb42e287c1783f11

commit 4ca22d79b0b23570566cdac3eb42e287c1783f11
Author:     Ladislav Smola <lsmola>
AuthorDate: Fri Nov 6 15:34:09 2015 +0100
Commit:     Ladislav Smola <lsmola>
CommitDate: Mon Nov 30 13:20:04 2015 +0100

    Openstack get reouter external_gateway_info safely
    
    Doc says the type is xsd:dict but it can be nil
    
    Fixes BZ:
    https://bugzilla.redhat.com/show_bug.cgi?id=1278654

 .../manageiq/providers/openstack/refresh_parser_common/networks.rb      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 9 CFME Bot 2015-12-02 20:30:10 UTC
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=2ee029fce1fed4bcee058a045f0a440661af3d11

commit 2ee029fce1fed4bcee058a045f0a440661af3d11
Merge: fe1fdce 4ca22d7
Author:     Greg Blomquist <gblomqui>
AuthorDate: Mon Nov 30 08:56:57 2015 -0500
Commit:     Greg Blomquist <gblomqui>
CommitDate: Mon Nov 30 08:56:57 2015 -0500

    Merge branch 'bz1278654' into '5.5.z'
    
    Openstack get reouter external_gateway_info safely
    
    Doc says the type is xsd:dict but it can be nil
    
    Fixes BZ:
    https://bugzilla.redhat.com/show_bug.cgi?id=1278654
    
    Clean cherry-pick of:
    https://github.com/ManageIQ/manageiq/pull/5328
    
    See merge request !542

 .../manageiq/providers/openstack/refresh_parser_common/networks.rb      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 10 Shveta 2016-06-09 14:28:42 UTC
Created attachment 1166328 [details]
cloud providers

Discover cloud providers does not show openstack anymore ? 
Just shows Azure and Amazon.

Comment 11 Ladislav Smola 2016-06-13 08:02:37 UTC
Shveta, the heading of this bug is kinda confusing. It refers to error in refresh, not discovery. OpenStack never had a 'discovery', we wait for multi-region support, before starting that.

Comment 12 Shveta 2016-06-13 18:13:22 UTC
Fixed.
Verified in 5.6.0.10-rc2.1.20160607103248_d06c141

Comment 14 errata-xmlrpc 2016-06-29 15:02:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1348


Note You need to log in before you can comment on or make changes to this bug.