Bug 1399622

Summary: RHV bad credentials fail on "version 3 of the api is not supported by the provider"
Product: Red Hat CloudForms Management Engine Reporter: Ilanit Stein <istein>
Component: ProvidersAssignee: Boriso <bodnopoz>
Status: CLOSED CURRENTRELEASE QA Contact: Angelina Vasileva <anikifor>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.7.0CC: bodnopoz, cpelland, jfrey, jhardy, jistefan, obarenbo, oourfali, simaishi
Target Milestone: GAKeywords: TestOnly
Target Release: 5.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: rhev
Fixed In Version: 5.8.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1402084 (view as bug list) Environment:
Last Closed: 2017-06-12 16:47:23 UTC Type: Bug
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:    
Bug Blocks: 1402084    
Attachments:
Description Flags
bad credentials error none

Description Ilanit Stein 2016-11-29 12:54:03 UTC
Description of problem:
When adding a RHV-4.0, with bad credentials, validation fail on irrelevant error:
"Credentials validation was not successful: version 3 of the api is not supported by the provider" 

Version-Release number of selected component (if applicable):
CFME-5.7.0.12
RHV-4.0.4.4-0.1.el7ev

How reproducible:
100%

Expected results:
Error should be relevant, like for example: "Wrong credentials" or "Wrong user/password"

Additional info:
When testing it I user: 'bad', and some incorrect password.

Comment 2 Ilanit Stein 2016-11-29 12:56:14 UTC
Created attachment 1225808 [details]
bad credentials error

Comment 4 CFME Bot 2016-12-06 17:14:22 UTC
New commit detected on ManageIQ/manageiq/euwe:
https://github.com/ManageIQ/manageiq/commit/b835181f05497aaca467f124ff00968c047979c2

commit b835181f05497aaca467f124ff00968c047979c2
Author:     Adam Grare <agrare>
AuthorDate: Tue Dec 6 10:38:47 2016 -0500
Commit:     Oleg Barenboim <chessbyte>
CommitDate: Tue Dec 6 10:48:08 2016 -0500

    Merge pull request #13010 from borod108/bugs/1399622verify_connection
    
    Rebuild api version cache on connection validation
    (cherry picked from commit e7ea3ab8bfbd4dd8b27341d65e6a650f44d4581a)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1399622

 app/models/manageiq/providers/redhat/infra_manager/api_integration.rb | 1 +
 1 file changed, 1 insertion(+)

Comment 5 CFME Bot 2016-12-06 17:16:45 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/bcad38d70ef99396206d4f1e4917509db6424e1e

commit bcad38d70ef99396206d4f1e4917509db6424e1e
Author:     borod108 <bodnopoz>
AuthorDate: Tue Dec 6 11:52:07 2016 +0200
Commit:     borod108 <bodnopoz>
CommitDate: Tue Dec 6 11:52:07 2016 +0200

    Rebuild api version cache on connection validation
    
    When trying to validate credentials rebuild the supported api versions
    cache.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1399622

 app/models/manageiq/providers/redhat/infra_manager/api_integration.rb | 1 +
 1 file changed, 1 insertion(+)

Comment 6 Satoe Imaishi 2016-12-06 17:53:05 UTC
Never mind... PR: https://github.com/ManageIQ/manageiq/pull/13010

Comment 8 Boriso 2016-12-08 19:50:27 UTC
*** Bug 1400928 has been marked as a duplicate of this bug. ***