Bug 1539775

Summary: [RHV][Graph Refresh] Hosts not displayed on CFME, after moved to maintenance
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ProvidersAssignee: Boriso <bodnopoz>
Status: CLOSED CURRENTRELEASE QA Contact: Ilanit Stein <istein>
Severity: high Docs Contact:
Priority: high    
Version: 5.9.0CC: bodnopoz, cpelland, gblomqui, istein, jfrey, jhardy, mperina, obarenbo, simaishi, smallamp
Target Milestone: GAKeywords: Regression
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: rhev:graph refresh:host target refresh
Fixed In Version: 5.9.0.19 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1528856 Environment:
Last Closed: 2018-03-06 15:17:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: RHEVM Target Upstream Version:
Embargoed:
Bug Depends On: 1528856    
Bug Blocks:    

Comment 3 CFME Bot 2018-01-29 15:21:52 UTC
New commit detected on ManageIQ/manageiq-providers-ovirt/gaprindashvili:
https://github.com/ManageIQ/manageiq-providers-ovirt/commit/9c48c8013daff0623c91c1318d4cb8c68a16a8b9

commit 9c48c8013daff0623c91c1318d4cb8c68a16a8b9
Author:     Moti Asayag <masayag>
AuthorDate: Mon Nov 27 15:18:59 2017 +0200
Commit:     Satoe Imaishi <simaishi>
CommitDate: Mon Jan 29 10:18:42 2018 -0500

    Merge pull request #155 from pkliczewski/master
    
    Fix target host
    (cherry picked from commit fe47ea66b05f8de8a3988126e48ba5f794fc0af6)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1539775

 .../redhat/inventory/collector/target_collection.rb         | 13 ++++++++++---
 .../redhat/inventory/persister/target_collection.rb         | 12 ++++++++++++
 2 files changed, 22 insertions(+), 3 deletions(-)

Comment 4 Ilanit Stein 2018-01-31 08:17:09 UTC
Verified on CFME-5.9.0.19/RHV-4.1.9:

1. On RHV side, move host to maintenance.
2. On CFME side, Check Compute->Hosts: The host is in maintenance status.
3. On RHV side, Activate host.
5. On CFME side, Check Compute->Hosts: The host is in up state.