Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1329225 - vmWare vCenter provider autodiscovery fails with error in the log
vmWare vCenter provider autodiscovery fails with error in the log
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers (Show other bugs)
5.6.0
All All
high Severity high
: GA
: 5.6.0
Assigned To: Adam Grare
Dmitry Misharov
discovery
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-04-21 08:58 EDT by Dmitry Misharov
Modified: 2016-07-15 09:30 EDT (History)
4 users (show)

See Also:
Fixed In Version: 5.6.0.4
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-06-29 11:52:08 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
evm.log for CFME 5.6 (1.93 MB, application/zip)
2016-04-21 08:58 EDT, Dmitry Misharov
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 14:50:04 EDT

  None (edit)
Description Dmitry Misharov 2016-04-21 08:58:08 EDT
Created attachment 1149463 [details]
evm.log for CFME 5.6

Description of problem:
During verifying https://bugzilla.redhat.com/show_bug.cgi?id=1307153 I encountered with another autodiscovery bug. vmWare vCenter cannot be added.

Version-Release number of selected component (if applicable):
5.6.0.1-beta2.20160413141124_e25ac0e

How reproducible:
Always

Steps to Reproduce:
1. Navigate to Infrastructure->Providers panel and select 'Configuration' button.
2. Select 'Discover Infrastructure Providers' from drop down box.
3. Select the checkbox for the vmWare vCenter provider.
4. Enter a from-to set of ip address which includes an address of vCenter provider.

Actual results:
Erorr "[NoMethodError]: undefined method `exist?' for #<ActiveRecord::Relation []>  Method:[rescue in discoverHost]" when vCenter ip address is discovered.

Expected results:
vCenter provider should be discovered without errors.

Additional info:
In the testing environment, ip address 10.8.58.22 is known to be a Virtual Center.  While searching thru a range that includes this value the following error is encountered:
[----] I, [2016-04-21T08:53:32.854970 #2988:10a1990]  INFO -- : MIQ(Host.discoverHost) Discovered: #<OpenStruct ipaddr="10.8.58.22", usePing=nil, timeout=10, discover_types=[:virtualcenter], os=[:mswin], hypervisor=[:virtualcenter]>
[----] E, [2016-04-21T08:53:32.899317 #2988:10a1990] ERROR -- : [NoMethodError]: undefined method `exist?' for #<ActiveRecord::Relation []>  Method:[rescue in discoverHost]
[----] E, [2016-04-21T08:53:32.899811 #2988:10a1990] ERROR -- : /opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/activerecord/lib/active_record/relation/delegation.rb:124:in `method_missing'
/opt/rh/cfme-gemset/bundler/gems/rails-efaa6e4f79d4/activerecord/lib/active_record/relation/delegation.rb:94:in `method_missing'
/var/www/miq/vmdb/app/models/ext_management_system.rb:155:in `create_discovered_ems'
/var/www/miq/vmdb/app/models/host.rb:989:in `discoverHost'
/var/www/miq/vmdb/app/models/miq_queue.rb:347: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:343: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:152:in `block in do_work'
/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:146:in `loop'
/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:146:in `do_work'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:334:in `block in do_work_loop'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:331:in `loop'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:331:in `do_work_loop'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:153:in `run'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:128:in `start'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:21:in `start_worker'
/var/www/miq/vmdb/app/models/miq_worker.rb:346:in `block in start'
/opt/rh/cfme-gemset/gems/nakayoshi_fork-0.0.3/lib/nakayoshi_fork.rb:24:in `fork'
/opt/rh/cfme-gemset/gems/nakayoshi_fork-0.0.3/lib/nakayoshi_fork.rb:24:in `fork'
/var/www/miq/vmdb/app/models/miq_worker.rb:344:in `start'
/var/www/miq/vmdb/app/models/miq_worker.rb:274:in `start_worker'
/var/www/miq/vmdb/app/models/miq_worker.rb:154:in `block in sync_workers'
/var/www/miq/vmdb/app/models/miq_worker.rb:154:in `times'
/var/www/miq/vmdb/app/models/miq_worker.rb:154:in `sync_workers'
/var/www/miq/vmdb/app/models/miq_server/worker_management/monitor.rb:49:in `block in sync_workers'
/var/www/miq/vmdb/app/models/miq_server/worker_management/monitor.rb:47:in `each'
/var/www/miq/vmdb/app/models/miq_server/worker_management/monitor.rb:47:in `sync_workers'
/var/www/miq/vmdb/app/models/miq_server.rb:173:in `start'
/var/www/miq/vmdb/app/models/miq_server.rb:264:in `start'
/var/www/miq/vmdb/lib/workers/evm_server.rb:65:in `start'
/var/www/miq/vmdb/lib/workers/evm_server.rb:92:in `start'
/var/www/miq/vmdb/lib/workers/bin/evm_server.rb:4:in `<main>'
Comment 2 Adam Grare 2016-04-21 09:56:58 EDT
https://github.com/ManageIQ/manageiq/pull/8104

A typo was recently introduced in self.create_discovered_ems caused any successful provider discovery to fail.
Comment 3 Dmitry Misharov 2016-04-26 03:08:30 EDT
Verfied fixed in 5.6.0.4-beta2.3.20160421172650_719e256. vCenter discovering works properly.
Comment 5 errata-xmlrpc 2016-06-29 11:52:08 EDT
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.