Bug 1040673 - Streamline auth exception has no useful message
Summary: Streamline auth exception has no useful message
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Abhishek Gupta
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-11 21:08 UTC by Clayton Coleman
Modified: 2015-05-15 00:23 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-30 00:53:03 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Clayton Coleman 2013-12-11 21:08:30 UTC
The traced new relic exception from streamline:

https://rpm.newrelic.com/accounts/411887/applications/2116199/traced_errors/1024208320

conveys no useful information about the cause of the problem.  If this is an "expected" exception (i.e. auth just failed) then we shouldn't be logging this exception (the exception needs to be more specific, and then handled in handle_exception with a specific block that sets internal_error false).  If this is unexpected, we need to be logging more information about what triggered it (i.e. a bad streamline response, "Unable to authenticate at this time, please try again later").  If it's being logged to new relic as is it's also showing up to a user without a message.

Comment 1 Abhishek Gupta 2014-01-04 00:13:11 UTC
Proposed fix --> https://github.com/openshift/origin-server/pull/4418

Comment 3 Jianwei Hou 2014-01-07 02:31:24 UTC
Verified on devenv_4191

Make the steamline unavailable(by updating the streamline config) and then create an application. An AuthServiceException will be logged.

2014-01-06 21:24:30.298 [DEBUG] FAILURE ACTION=LIST_DOMAIN USER_ID= LOGIN= DOMAIN= Unable to complete the requested operation due to: OpenShift::AuthServiceException. Unable to complete the requested operation due to: OpenShift::AuthServiceException.
Reference ID: a6d98d1d241b91d59d40f29bcce813ee (pid:10229)


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