Bug 1562788

Summary: [Regression] RHV provider discovery doesn't work
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ProvidersAssignee: Boriso <bodnopoz>
Status: CLOSED ERRATA QA Contact: Jan Zmeskal <jzmeskal>
Severity: high Docs Contact:
Priority: high    
Version: 5.9.0CC: cpelland, gblomqui, jfrey, jhardy, jzmeskal, lsmola, mperina, ndhandre, obarenbo
Target Milestone: GAKeywords: ZStream
Target Release: 5.9.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.9.2.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1559796 Environment:
Last Closed: 2018-05-07 20:48:01 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: 1559796    
Bug Blocks:    

Comment 2 CFME Bot 2018-04-02 13:52:11 UTC
New commit detected on ManageIQ/manageiq-providers-ovirt/gaprindashvili:

https://github.com/ManageIQ/manageiq-providers-ovirt/commit/f26df63e4c6676bfdc967e80b1be4a0a82435d98
commit f26df63e4c6676bfdc967e80b1be4a0a82435d98
Author:     Moti Asayag <masayag>
AuthorDate: Sun Apr  1 03:56:49 2018 -0400
Commit:     Moti Asayag <masayag>
CommitDate: Sun Apr  1 03:56:49 2018 -0400

    Merge pull request #232 from borod108/bugs/discovery1559796

    Fix provider discovery
    (cherry picked from commit 9e95b90ada4f822ae971fc2565bd46d1f0e82255)

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

 app/models/manageiq/providers/redhat/discovery.rb | 6 +-
 1 file changed, 3 insertions(+), 3 deletions(-)

Comment 3 Jan Zmeskal 2018-04-18 12:55:45 UTC
I tried to verify the bug but I came to conclusion that discovering RHV provider does not work as expected. I tried to provide valid IP range. It is true that my RHV provider was discovered, but even after manually refreshing relationships and waiting for some time, the provider had no subordinate inventory. That is no clusters, hosts, datastores, VMs or templates have been displayed in UI although they are present on the provider side. 

Video and evm.log from verification are in the attachment.

Tested on: 
CFME 5.9.2.2.20180410215257_6961422
RHV 4.2.2.5

Comment 6 Boriso 2018-04-22 09:46:55 UTC
Hi,
Perhaps there is a missing part in the video, but it seems there were no credentials set for the discovered provider.

As per documentation: 
https://access.redhat.com/documentation/en-us/red_hat_cloudforms/4.6/html/managing_providers/infrastructure_providers#discovering_multiple_management_systems

One has to edit the provider after it has been discovered and add its credentials before it can be used.

Comment 7 Jan Zmeskal 2018-04-23 07:40:50 UTC
Boris is right, I was missing last step in the verification. Tried it again and discovery works as expected. Moving to verified status. Thank you for catching that Boris!

Comment 10 errata-xmlrpc 2018-05-07 20:48:01 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-2018:1328