Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1371434 - Error appears when creating resource(s) in openshift via jenkins
Error appears when creating resource(s) in openshift via jenkins
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Image (Show other bugs)
3.3.0
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Ben Parees
Wang Haoran
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-08-30 04:26 EDT by wewang
Modified: 2017-03-08 13 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-09-27 05:46:53 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1933 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.3 Release Advisory 2016-09-27 09:24:36 EDT

  None (edit)
Comment 1 Ben Parees 2016-08-30 09:05:50 EDT
The jenkins pod is run using serviceaccount "jenkins" now, not "default", so you need to add the permissions to system:serviceaccount:test:jenkins

note that those permissions are automatically added to the jenkins service account for the project in which you created the jenkins server, so you only need to add them for project "test1" in your scenario.

see:
https://github.com/openshift/origin/blob/master/examples/jenkins/jenkins-ephemeral-template.json#L153-L175
Comment 2 wewang 2016-08-30 22:14:14 EDT
updated cases, and verified when using system:serviceaccount:test:jenkins, thanks@Ben Parees
Comment 3 wewang 2016-08-30 22:20:28 EDT
pls also update docs:https://github.com/openshift/origin/blob/master/examples/jenkins/README.md, it seems still using default ,thx
Comment 4 Ben Parees 2016-08-30 22:47:56 EDT
Sure, readme is updated here:
https://github.com/openshift/origin/pull/10725

notice that i removed the step entirely as it is not necessary when using the new template since the new template creates the service account and adds the edit permission.  For your scenario (accessing a secondary project) you'll still need to add the edit permission to the appropriate service account.
Comment 6 errata-xmlrpc 2016-09-27 05:46:53 EDT
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-2016:1933

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