Bug 1874251

Summary: p&f panic: oc delete user --as --as-groups didn't works as expected
Product: OpenShift Container Platform Reporter: Abu Kashem <akashem>
Component: kube-apiserverAssignee: Abu Kashem <akashem>
Status: CLOSED ERRATA QA Contact: Ke Wang <kewang>
Severity: medium Docs Contact:
Priority: high    
Version: 4.5CC: aos-bugs, haowang, jokerman, kewang, mfojtik, scheng, sttts, xxia
Target Milestone: ---   
Target Release: 4.5.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1855500 Environment:
Last Closed: 2020-09-21 17:42:06 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: 1855500    
Bug Blocks:    

Comment 2 Ke Wang 2020-09-14 06:49:47 UTC
$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.5.0-0.nightly-2020-09-12-063044   True        False         3h29m   Cluster version is 4.5.0-0.nightly-2020-09-12-063044

Impersonate-User: pm2
Impersonate-Group: group1

$ oc auth can-i list machines  --as=pm2 --as-group=group1 
no

$ oc adm policy add-cluster-role-to-group cluster-admin group1 
Warning: Group 'group1' not found

clusterrole.rbac.authorization.k8s.io/cluster-admin added: "group1"

$ oc auth can-i list machines  --as=pm2 --as-group=group1
yes

$ oc create user pm1 --full-name="pm1"
user.user.openshift.io/pm1 created

$ oc delete user pm1 --as=pm2 --as-group=group1
user.user.openshift.io "pm1" deleted

The command line 'oc delete user --as --as-groups' works as expected. so move the bug VERIFIED.

Comment 5 errata-xmlrpc 2020-09-21 17:42:06 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.5.11 bug fix update), 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:3719