Bug 1494451 - Can't assign dedicated admin role to group
Summary: Can't assign dedicated admin role to group
Keywords:
Status: ASSIGNED
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Unknown
Version: 3.x
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 3.x
Assignee: Abhishek Gupta
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-22 09:53 UTC by zhou ying
Modified: 2023-08-14 08:15 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift online issues 1457 0 None None None 2020-10-01 11:46:45 UTC

Description zhou ying 2017-09-22 09:53:25 UTC
Description of problem:
When assign the dedicated admin role to group met error: Adding cluster role dedicated-cluster-admin to groups 'test' failed: Error from server (NotFound): the server could not find the requested resource

Version-Release number of selected component (if applicable):
openshift v3.7.0-0.127.0
kubernetes v1.7.0+80709908fd
etcd 3.2.1

How reproducible:
always

Steps to Reproduce:
1. Run the python scrip to assign the dedicated admin role to groups;
`python apply-dedicated-roles.py  -p dedicated-project-admin.json -c dedicated-cluster-admin.json -d dedicated-admin-group.json -g test -v`

Actual results:
1. Met error: 
Arguments to program:
    ProjectRole = dedicated-project-admin
    ClusterRole = dedicated-cluster-admin
    Groups = ['test']
    SkipProjects = ['default', 'openshift-infra']
    ReCreate = False
    Verbose = True

Checking OpenShift CLI command ... 
OK
Checking OpenShift admin CLI command ... 
OK
Getting cluster role dedicated-cluster-admin if exists ... 
OK
Creating cluster role dedicated-cluster-admin ... 
OK
Getting dedicated admin group dedicated-admins to check if it exists ... 
OK
Creating dedicated admin group dedicated-admins ... 
OK
Adding cluster role dedicated-cluster-admin to groups 'test' ... 
FAIL
Error: Adding cluster role dedicated-cluster-admin to groups 'test' failed: Error from server (NotFound): the server could not find the requested resource

Expected results:
1. Should assign the dedicated admin role succeed.

Additional info:


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