Bug 1260139

Summary: IP Address of VMware host not found
Product: Red Hat CloudForms Management Engine Reporter: Adam Grare <agrare>
Component: ProvidersAssignee: Adam Grare <agrare>
Status: CLOSED ERRATA QA Contact: Kyrylo Zvyagintsev <kzvyahin>
Severity: low Docs Contact:
Priority: medium    
Version: 5.4.0CC: agrare, cpelland, gblomqui, jfrey, jhardy, kzvyahin, mfeifer, obarenbo
Target Milestone: GAKeywords: ZStream
Target Release: 5.5.0Flags: cfme-bot: needinfo?
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.5.0.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1262024 (view as bug list) Environment:
Last Closed: 2015-12-08 13:29:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1262024    
Attachments:
Description Flags
VMware hostname in IP address field none

Description Adam Grare 2015-09-04 14:04:39 UTC
Created attachment 1070282 [details]
VMware hostname in IP address field

Description of problem:
Inventory refresh fails to find and IP address for VMware hosts, this leads to the hostname showing up in the database and on the UI where the IP address should be.

During refresh the following is observed in the logs:
IP lookup for host in VIM inventory data...Failed. Falling back to reverse lookup.
IP lookup by hostname [per410b-t4.manageiq.com]...Failed with the following error: getaddrinfo: Name or service not known

Version-Release number of selected component (if applicable):
Observed on 5.3 and upstream manageiq

How reproducible:
100%

Steps to Reproduce:
1. Deploy CFME or ManageIQ appliance and add a vCenter
2. Wait for inventory refresh to complete
3. Go to hosts tab for that provider and observe the IP address field

Actual results:
Hostname is in the IP address field

Expected results:
IP address is in the IP address field

Additional info:

Comment 2 Oleg Barenboim 2015-09-07 17:11:49 UTC
Pull Request: https://github.com/ManageIQ/manageiq/pull/4238

Comment 3 CFME Bot 2015-09-10 22:24:44 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/b0cb3a76e0ac553186395d4412aabd0c13d1069d

commit b0cb3a76e0ac553186395d4412aabd0c13d1069d
Author:     Adam Grare <agrare>
AuthorDate: Mon Sep 7 12:43:05 2015 -0400
Commit:     Adam Grare <agrare>
CommitDate: Thu Sep 10 13:18:29 2015 -0400

    Fix IP address lookup on VMware hosts
    
    Fix for missing ip address on vmware hosts due to ||= returning
    an empty array.
    https://bugzilla.redhat.com/show_bug.cgi?id=1260139

 .../manageiq/providers/vmware/infra_manager/refresh_parser.rb      | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Comment 4 CFME Bot 2015-09-28 12:18:11 UTC
New commit detected on cfme/5.4.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=af1c19daff168f63ff526313e5b987d0c4e9cdff

commit af1c19daff168f63ff526313e5b987d0c4e9cdff
Author:     Adam Grare <agrare>
AuthorDate: Mon Sep 7 12:43:05 2015 -0400
Commit:     Adam Grare <adam>
CommitDate: Fri Sep 11 09:02:07 2015 -0400

    Fix IP address lookup on VMware hosts
    
    Fix for missing ip address on vmware hosts due to ||= returning
    an empty array.
    https://bugzilla.redhat.com/show_bug.cgi?id=1260139

 vmdb/app/models/ems_refresh/parsers/vc.rb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Comment 7 errata-xmlrpc 2015-12-08 13:29:23 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/RHSA-2015:2551

Comment 9 CFME Bot 2016-02-09 17:43:17 UTC
Detected commit referencing this ticket while ticket status is CLOSED.