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

GitHub | smarterclayton | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

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

    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