Created attachment 1151478 [details] err Description of problem: Version-Release number of selected component (if applicable): 5.6.0.4-beta2.3.20160421172650_719e256 How reproducible: 100% Steps to Reproduce: 1.add rhevm provider with invalid credentials 2. 3. Actual results: "undefined method `strip' for nil:NilClass" in UI. see attached screeshot Expected results: Proper validation message should be displayed Additional info:
Aziza, I could not reproduce this. The message that I'm seeing for invalid credentials is - "Credential validation was not successful. Login failed due to a bad username or password." Can you provide me your appliance details so I can debug there? Thanks.
Adding needinfo for the above request.
Aziza, This time I tried it on your appliance, and still no luck. Wonder what I'm doing different.. Can you retry and let me know? Thanks, Aparna
It looks like the error occurs with saved records only. I was trying to add a new record and hence did not see the issue earlier.
This does seem like a backend problem. Here are a couple things that I observed : 1. Happens only in Edit mode (not in Add mode) 2. Happens when you previously had the right credentials saved and then in the edit mode you put the wrong credentials in and hit the Validate button.
https://github.com/ManageIQ/manageiq/pull/8362
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/e71ea5f1d30f1eab02d3f64818615e4fb19ddc91 commit e71ea5f1d30f1eab02d3f64818615e4fb19ddc91 Author: Greg Blomquist <gblomqui> AuthorDate: Fri Apr 29 16:06:50 2016 -0400 Commit: Greg Blomquist <gblomqui> CommitDate: Fri Apr 29 16:15:31 2016 -0400 Fix RHEVM Verify Creds error message Stop trying to process the login error message. Also, handle SocketError for RHEVM cred verification. Instead of saying that the credential verification failed, indicate that we had trouble connecting to RHEV on a SocketError https://bugzilla.redhat.com/show_bug.cgi?id=1331088 app/models/manageiq/providers/redhat/infra_manager.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
https://github.com/ManageIQ/manageiq/pull/8473
Verified on 5.6.0.7-beta2.6.20160516171555_b1be31f Following steps from comment #10. For wrong credentials, get the following error: "Credential validation was not successful. Login failed due to a bad username or password."
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/RHBA-2016:1348