Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1331088 - "undefined method `strip' for nil:NilClass" displayed while adding rhevm provider with invalid crendentails
"undefined method `strip' for nil:NilClass" displayed while adding rhevm prov...
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS (Show other bugs)
5.6.0
Unspecified Unspecified
high Severity medium
: GA
: 5.6.0
Assigned To: Greg Blomquist
Ilanit Stein
provider:validation
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-04-27 12:52 EDT by Aziza Karol
Modified: 2016-06-29 11:55 EDT (History)
8 users (show)

See Also:
Fixed In Version: 5.6.0.6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-06-29 11:55:36 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
err (64.66 KB, image/png)
2016-04-27 12:52 EDT, Aziza Karol
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 14:50:04 EDT

  None (edit)
Description Aziza Karol 2016-04-27 12:52:43 EDT
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:
Comment 3 Aparna Karve 2016-04-27 17:55:15 EDT
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.
Comment 4 Aparna Karve 2016-04-27 17:56:34 EDT
Adding needinfo for the above request.
Comment 8 Aparna Karve 2016-04-28 14:21:34 EDT
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
Comment 9 Aparna Karve 2016-04-28 19:47:22 EDT
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.
Comment 10 Aparna Karve 2016-04-29 15:19:55 EDT
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.
Comment 12 CFME Bot 2016-05-04 01:25:49 EDT
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/e71ea5f1d30f1eab02d3f64818615e4fb19ddc91

commit e71ea5f1d30f1eab02d3f64818615e4fb19ddc91
Author:     Greg Blomquist <gblomqui@redhat.com>
AuthorDate: Fri Apr 29 16:06:50 2016 -0400
Commit:     Greg Blomquist <gblomqui@redhat.com>
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(-)
Comment 14 Ilanit Stein 2016-05-29 09:35:59 EDT
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."
Comment 16 errata-xmlrpc 2016-06-29 11:55:36 EDT
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

Note You need to log in before you can comment on or make changes to this bug.