Description of problem: RoleBindingRestriction not being deleted when namespaces are removed Version-Release number of selected component (if applicable): # openshift version openshift v3.5.0.55 kubernetes v1.5.2+43a9be4 etcd 3.1.0 How reproducible: always Steps to Reproduce: 1.create rolebindingrestriction by cluster-admin, oc create -f -<<EOF -n test apiVersion: v1 kind: RoleBindingRestriction metadata: name: match-groups spec: grouprestriction: groups: ["groups-rolebindingrestriction"] EOF 2.Delete the namespace 'test' by cluster-admin or project admin 3. Actual results: When the namespaces are removed, the RoleBindingRestriction not being deleted. oc get rolebindingrestriction --all-namespaces NAMESPACE NAME SUBJECT TYPE SUBJECTS match-groups Group groups-rolebindingrestriction Expected results: When the namespaces are removed, the RoleBindingRestriction should be deleted also. Additional info:
need to be added to https://github.com/openshift/origin/blob/master/pkg/project/controller/controller.go#L55 Also need a test to ensure content is removed Also need a test to iterate over all registered origin resources to ensure this doesn't reoccur
This also will cause the project with same name cannot be created again with error: $ oc new-project test Error from server (InternalError): Internal error occurred: rolebindings "system:image-pullers" is forbidden: rolebindings to SystemGroup "system:serviceaccounts:test" are not allowed in project "test"
Miciah, are you working on this? Seems like something PM team should be addressing :-)
As there no new 3.5 puddle available, set the status to modified first.
Verified with 3.5.5.2, # openshift version openshift v3.5.5.2 kubernetes v1.5.2+43a9be4 etcd 3.1.0
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-2017:0884