com.openshift.restclient.authorization.ResourceForbiddenException: User "system:serviceaccount:test:default" cannot get deploymentconfigs in project "test"

GitHub | smarterclayton | 4 months ago
  1. 0

    Jenkins ephemeral template (installed to dedicated hack machine) doesn't have edit permission

    GitHub | 4 months ago | smarterclayton
    com.openshift.restclient.authorization.ResourceForbiddenException: User "system:serviceaccount:test:default" cannot get deploymentconfigs in project "test"
  2. 0

    Jenkins plugin using default serviceaccount instead of "jenkins"

    GitHub | 1 month ago | jupierce
    com.openshift.restclient.authorization.ResourceForbiddenException: User "system:serviceaccount:extended-test-jenkins-plugin-eg2xp-6vdhc-jenkins:default" cannot get imagestreams in project "extended-test-jenkins-plugin-eg2xp-6vdhc" User "system:serviceaccount:extended-test-jenkins-plugin-eg2xp-6vdhc-jenkins:default" cannot get imagestreams in project "extended-test-jenkins-plugin-eg2xp-6vdhc"

    Root Cause Analysis

    1. com.openshift.restclient.authorization.ResourceForbiddenException

      User "system:serviceaccount:test:default" cannot get deploymentconfigs in project "test"

      at com.openshift.internal.restclient.DefaultClient.createOpenShiftException()
    2. com.openshift.internal
      DefaultClient.get
      1. com.openshift.internal.restclient.DefaultClient.createOpenShiftException(DefaultClient.java:483)
      2. com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:312)
      2 frames
    3. com.openshift.jenkins
      OpenShiftBaseStep.perform
      1. com.openshift.jenkins.plugins.pipeline.OpenShiftScaler.coreLogic(OpenShiftScaler.java:110)
      2. com.openshift.jenkins.plugins.pipeline.IOpenShiftPlugin.doItCore(IOpenShiftPlugin.java:116)
      3. com.openshift.jenkins.plugins.pipeline.IOpenShiftPlugin.doIt(IOpenShiftPlugin.java:129)
      4. com.openshift.jenkins.plugins.pipeline.OpenShiftBaseStep.perform(OpenShiftBaseStep.java:98)
      4 frames
    4. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
      3. hudson.model.Build$BuildExecution.build(Build.java:205)
      4. hudson.model.Build$BuildExecution.doRun(Build.java:162)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      6. hudson.model.Run.execute(Run.java:1738)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:98)
      9. hudson.model.Executor.run(Executor.java:410)
      9 frames