Bug 1302946 - Sometime can't get token when access token/request api in v3 stage env
Summary: Sometime can't get token when access token/request api in v3 stage env
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: apiserver-auth
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: Jordan Liggitt
QA Contact: weiwei jiang
URL:
Whiteboard:
: 1304099 1306351 (view as bug list)
Depends On:
Blocks: OSOPS_V3
TreeView+ depends on / blocked
 
Reported: 2016-01-29 05:57 UTC by DeShuai Ma
Modified: 2019-10-10 11:02 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-23 20:31:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0293 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise bug fix update 2016-02-24 01:31:30 UTC

Description DeShuai Ma 2016-01-29 05:57:22 UTC
Description of problem:
Can't request token in v3 stage env, always return error "Error getting token: Invalid status code (400): 400 Bad Request"

Version-Release number of selected component (if applicable):
latest stage env.

How reproducible:
sometime

Steps to Reproduce:
1.In web access token request url
https://<stage_api_server>/oauth/token/request

Actual results:
1.Error getting token: Invalid status code (400): 400 Bad Request 

Expected results:
1.Get token success

Additional info:

Comment 1 Jordan Liggitt 2016-01-29 16:43:22 UTC
What is in the master logs when this occurs?

Comment 2 DeShuai Ma 2016-02-01 01:31:34 UTC
(In reply to Jordan Liggitt from comment #1)
> What is in the master logs when this occurs?

We can't get the master logs, the env is provided by ops, we have no permission to access the master and node. When test on the env, this happened very often

Comment 3 Jordan Liggitt 2016-02-02 21:33:30 UTC
*** Bug 1304099 has been marked as a duplicate of this bug. ***

Comment 4 Jordan Liggitt 2016-02-02 22:20:14 UTC
Fix upstream in https://github.com/openshift/origin/pull/6982/

Comment 5 DeShuai Ma 2016-02-03 06:04:36 UTC
This bug test block our v3 stage test, high this bug.

Comment 6 Jordan Liggitt 2016-02-03 06:08:21 UTC
Until the fix is deployed, you can get a token by logging into the web console and running this in the javascript console:

prompt("Token",localStorage["LocalStorageUserStore.token"])

That token can be taken to the console for testing.

Comment 7 Wesley Hearn 2016-02-03 22:07:01 UTC
We have deployed a hotfix it should be working now.

Comment 8 Wei Sun 2016-02-04 02:21:56 UTC
Verified this bug against v3 stage,now we could get token via accessing oauth/token/request page.

Comment 10 Jordan Liggitt 2016-02-05 20:30:37 UTC
Fix is in OSE in https://github.com/openshift/ose/commit/5d69528c759aceaed3ce3bebcee3da6deedd7592

I think that means it will be in the next 3.1.x update.

Comment 11 Miheer Salunke 2016-02-11 08:53:49 UTC
*** Bug 1306351 has been marked as a duplicate of this bug. ***

Comment 14 errata-xmlrpc 2016-02-23 20:31:55 UTC
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:0293


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