Bug 1439859

Summary: cannot create jenkins pipeline buildConfig when no jenkins server preinstall
Product: OpenShift Container Platform Reporter: Tracy Rankin <trankin>
Component: BuildAssignee: Miciah Dashiel Butler Masters <mmasters>
Status: CLOSED ERRATA QA Contact: Wenjing Zheng <wzheng>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.5.0CC: abhgupta, aos-bugs, bparees, dakini, dyan, mmasters, wzheng, xtian
Target Milestone: ---   
Target Release: 3.5.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: When the RestrictUsersAdmission admission control plug-in is enforcing role binding restrictions and examines a role binding with a service account subject, the plug-in requires that the subject have an explicit namespace that matches some role binding restriction in order to be admitted. When an application template contains a role binding with a service account subject, typically the subject's namespace is left blank in the template (rather than hardcoding a namespace or requiring a parameter) so that the namespace will be defaulted to the namespace in which the role binding is created. (An example is the jenkins-persistent application template and its jenkins_edit role binding.) However, this defaulting happens only after admission control is performed. Consequence: Role binding restrictions cannot match against role bindings as they are typically specified in an application template (that is, with the namespace left unspecified/blank), and so the RestrictUsersAdmission admission control plug-in rejects these role bindings. Fix: The RestrictUsersAdmission admission control plug-in has been changed to treat a blank namespace in a service account subject as implicitly matching the namespace of the role binding restriction. Result: The RestrictUsersAdmission admission control plug-in, with appropriate role binding restrictions, will now admit the aforementioned role bindings.
Story Points: ---
Clone Of: 1439065 Environment:
Last Closed: 2017-04-26 05:36:54 UTC Type: Bug
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: 1439065, 1439066    
Bug Blocks:    

Comment 4 Dongbo Yan 2017-04-10 05:22:20 UTC
Verified
openshift v3.5.5.5
kubernetes v1.5.2+43a9be4
etcd 3.1.0

Comment 6 errata-xmlrpc 2017-04-26 05:36:54 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, 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:1129