Bug 1871084

Summary: Jenkins console log out cannot delete oauthaccesstoken
Product: OpenShift Container Platform Reporter: XiuJuan Wang <xiuwang>
Component: JenkinsAssignee: Akram Ben Aissi <abenaiss>
Status: CLOSED ERRATA QA Contact: XiuJuan Wang <xiuwang>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.6CC: abenaiss, aos-bugs, dtaylor, jhadvig, jokerman, pbhattac, pmali, pweil, slaznick, vbobade, xxia
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1869966
: 1879327 (view as bug list) Environment:
Last Closed: 2020-10-27 16:30:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1869966, 1872288    
Bug Blocks: 1879327    

Description XiuJuan Wang 2020-08-21 09:56:50 UTC
+++ This bug was initially created as a clone of Bug #1869966 +++

Description of problem:
Now oauthaccesstoken name is not the token value. Jenkins console log out cannot delete oauthaccesstoken. Refer to oc bug 1868324

Version-Release number of selected component (if applicable):
4.6.0-0.nightly-2020-08-18-191231

How reproducible:
Always

Steps to Reproduce:
1. Create a jenkins application
$oc new-app jenkins-ephemeral
2. Login to web console
3. Check `oc get oauthaccesstoken`
4. Then log out from web console. Check `oc get oauthaccesstoken` again.

Actual results:
3. Step 3 command output is still shown in step 4 command. 

Expected results:
4. The delete-token request should convert the token to oauthaccesstoken name, then delete oauthaccesstoken name like oc bug 1868324

Additional info:

--- Additional comment from Jakub Hadvig on 2020-08-20 21:13:19 UTC ---

Will revert https://github.com/openshift/console/pull/6319 when the logout bug is fixed.

Comment 2 Akram Ben Aissi 2020-09-07 16:47:18 UTC
resetting to POST because it is actually closed by another PR
This PR https://github.com/openshift/jenkins-openshift-login-plugin/pull/109 contains the effective fix
but the plugin update is in https://github.com/openshift/jenkins/pull/1151

Comment 7 XiuJuan Wang 2020-09-11 07:01:19 UTC
Still could reproduce this bug with jenkins image quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:ced6b04b9934fd7cac073f16096ea54107989028211ac96e0bc075f271459313 included in payload 4.6.0-0.nightly-2020-09-10-195619.
Jenkins image need rebuild to launch openshift-login 1.0.25 plugin

Comment 8 XiuJuan Wang 2020-09-14 06:40:31 UTC
Verified this bug with jenkins image in payload 4.6.0-0.nightly-2020-09-12-230035
The openshift-login plugin is 1.0.25
When log out from jenkins webconsole, oauthaccesstoken will be deleted.

Comment 10 errata-xmlrpc 2020-10-27 16:30:14 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 (OpenShift Container Platform 4.6 GA Images), 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-2020:4196

Comment 11 Red Hat Bugzilla 2023-09-14 06:06:32 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days