Bug 1373866

Summary: Subscriptions: Invalid username/password message masks other errors
Product: Red Hat Quickstart Cloud Installer Reporter: Antonin Pagac <apagac>
Component: WebUIAssignee: John Matthews <jmatthew>
Status: NEW --- QA Contact: Sudhir Mallamprabhakara <smallamp>
Severity: low Docs Contact:
Priority: unspecified    
Version: 1.0CC: tsanders
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Antonin Pagac 2016-09-07 10:27:46 UTC
Description of problem:
While logging-in to customer portal via WebUI in step Subscriptions/Content Provider, when using bad subscription credentials, I can see message:

'Your username or password is incorrect. Please try again.'

with corresponding error in production.log:

'exception when talking to a remote client: 401 Unauthorized RestClient::Unauthorized: 401 Unauthorized'

I can however see the same message in WebUI even if the error isn't 401, for example it will display when error in production.log is:

'SocketError: getaddrinfo: Temporary failure in name resolution'

thus effectively masking the real issue.

Version-Release number of selected component (if applicable):
QCI-1.0-RHEL-7-20160902.5
QCIOOO-8.0-RHEL-7-20160902.1

How reproducible:
Always

Steps to Reproduce:
1. While doing a deployment, get to the Subscription section
2. Disable DNS
3. Try to login with valid credentials

Actual results:
Invalid username/password message displayed

Expected results:
Some general error message displayed; in ideal case, the message would reflect the error in production.log

Additional info:

Comment 1 Antonin Pagac 2016-09-07 10:50:49 UTC
Happens also with:

'Errno::ECONNRESET: Connection reset by peer - SSL_connect'