Bug 1686884

Summary: [RHV 4.3] IP Address Not Always Being Displayed in CFME
Product: Red Hat CloudForms Management Engine Reporter: juwatts
Component: ProvidersAssignee: Boriso <bodnopoz>
Status: CLOSED CURRENTRELEASE QA Contact: Angelina Vasileva <anikifor>
Severity: low Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: low    
Version: 5.10.1CC: agrare, bmidwood, bodnopoz, dmetzger, greartes, hkataria, jfrey, jhardy, jprause, juwatts, lavenel, mperina, mpovolny, mshriver, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.11.0.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1711957 (view as bug list) Environment:
Last Closed: 2019-12-13 14:57:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: RHEVM Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1661283, 1711957    
Attachments:
Description Flags
cfme
none
rhev 4.3 none

Description juwatts 2019-03-08 15:25:02 UTC
Created attachment 1542125 [details]
cfme

Description of problem:
When a VM is spun in up rhev 4.3 with external and internal IP addresses; CFME will sometimes display them all (MAC, internal, external), just one, or none of the information. 


Version-Release number of selected component (if applicable):
5.10.1.2.20190219165527_7a4a22b

How reproducible:
100%

Steps to Reproduce:
1. Add RHEV 4.3 as a infrastructure provider
2. Navigate to Infrastructure->Virtual Machines
3. Select a few virtual machines and look at the IP address in the properties table.

Actual results:
Some VMs are not displayed the IP address even though it is displayed in rhev

Expected results:
IP addresses are displayed

Additional info:

Attaching screen shots

Comment 2 juwatts 2019-03-08 15:25:26 UTC
Created attachment 1542126 [details]
rhev 4.3

Comment 6 Adam Grare 2019-03-15 14:02:46 UTC
Hey Martin can you see if this is an issue with RHV refresh?

Comment 8 Martin Perina 2019-03-15 14:27:27 UTC
AFAIK VM IP/hostname is fetched from VM only if guest-agent (ovirt-guest-agent in 4.2 and below, qemu-guest-agent in 4.3+) is installed within VM. So could you please check RHV Manager webadmin if IPs are displayed there? If not, then guest-agent is not installed within VM and it must be installed there manually.

Comment 14 CFME Bot 2019-05-20 12:47:09 UTC
New commit detected on ManageIQ/manageiq-providers-ovirt/master:

https://github.com/ManageIQ/manageiq-providers-ovirt/commit/2ae0116d07ce20d15e673547b22bdba88e6ca83d
commit 2ae0116d07ce20d15e673547b22bdba88e6ca83d
Author:     Boris Odnopozov <bodnopoz>
AuthorDate: Mon May 20 08:22:18 2019 -0400
Commit:     Boris Odnopozov <bodnopoz>
CommitDate: Mon May 20 08:22:18 2019 -0400

    Fix refreshing vm ips - multiple reported devices

    When a vm would have several network reported devices and one of them
    would not have an ipaddress we would not get the ips from all the
    devices that come after it.

    Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1686884

 app/models/manageiq/providers/redhat/inventory/parser/infra_manager.rb | 2 +-
 spec/models/manageiq/providers/redhat/infra_manager/refresh/refresher_4_async_graph_spec.rb | 6 +-
 spec/models/manageiq/providers/redhat/infra_manager/refresh/refresher_4_async_spec.rb | 4 +-
 spec/vcr_cassettes/manageiq/providers/redhat/infra_manager/refresh/ovirt_sdk_refresh_recording.yml | 64 +
 4 files changed, 71 insertions(+), 5 deletions(-)

Comment 16 Angelina Vasileva 2019-05-29 08:28:59 UTC
Verified in 5.11.0.5.20190521144849_d0a06e6 with RHV 4.3.3.5-0.1.el7.

All IP addresses are shown in CFME.