Bug 1260139 - IP Address of VMware host not found [NEEDINFO]
Summary: IP Address of VMware host not found
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.4.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: GA
: 5.5.0
Assignee: Adam Grare
QA Contact: Kyrylo Zvyagintsev
URL:
Whiteboard:
Depends On:
Blocks: 1262024
TreeView+ depends on / blocked
 
Reported: 2015-09-04 14:04 UTC by Adam Grare
Modified: 2016-02-09 17:43 UTC (History)
8 users (show)

Fixed In Version: 5.5.0.1
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1262024 (view as bug list)
Environment:
Last Closed: 2015-12-08 13:29:23 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:
cfme-bot: needinfo?


Attachments (Terms of Use)
VMware hostname in IP address field (22.26 KB, image/png)
2015-09-04 14:04 UTC, Adam Grare
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2551 0 normal SHIPPED_LIVE Moderate: CFME 5.5.0 bug fixes and enhancement update 2015-12-08 17:58:09 UTC

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.


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