Bug 1390480 - '--recreate' option can't remove the old cluster role and project role
Summary: '--recreate' option can't remove the old cluster role and project role
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: apiserver-auth
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Abhishek Gupta
QA Contact: Chuan Yu
URL:
Whiteboard:
: 1385864 (view as bug list)
Depends On:
Blocks: OSOPS_V3
TreeView+ depends on / blocked
 
Reported: 2016-11-01 08:12 UTC by zhou ying
Modified: 2019-03-29 15:48 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-16 22:12:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description zhou ying 2016-11-01 08:12:11 UTC
Description of problem:
Download apply-dedicated-roles.py and json files from the repo. When use the script to assign dedicated admin role to user with '--recreate' option, the old cluster role and project role can't be deleted. 

Version-Release number of selected component (if applicable):
openshift version
openshift v3.4.0.18+ada983f
kubernetes v1.4.0+776c994
etcd 3.1.0-rc.0
apply-dedicated-roles.py 0.1

How reproducible:
always

Steps to Reproduce:
1. Create 3 projects: pro1, pro2,pro3;
2. Use the script to assign dedicated admin role to group with skip project: 'pro1';
   `python apply-dedicated-roles.py -c dedicated-cluster-admin.json -p dedicated-project-admin.json -d dedicated-admin-group.json -g gtest  -r  -s pro1 -v`
3. As the user , check the projects;
4. Use the script to reassign dedicated admin role to group with skip project: 'pro2' and '--recreate' option:
   `python apply-dedicated-roles.py -c dedicated-cluster-admin.json -p dedicated-project-admin.json -d dedicated-admin-group.json -g gtest  -r  -s pro2 -v`
5. As the user, check the projects;


Actual results:
3. Could see project: pro2,pro3;
5. Could see project: pro1,pro2,pro3.

Expected results:
5. Should only see project: pro1,pro3, and delete the old cluster role and project role of pro2.


Additional info:

Comment 1 Abhishek Gupta 2016-11-01 16:46:19 UTC
*** Bug 1385864 has been marked as a duplicate of this bug. ***


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