Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-22914

OpenShift Deployment: Deploy latest does not work correctly

XMLWordPrintable

    • devex #121 October 2016
    • 8
    • Hide

      ASSERT: Have an OpenShift 3 connection with a project and some configuration for deployment without any replication controller.
      EXEC: Select Deploy Latest in context menu of a service in OpenShift explorer view or in context menu of a deployment configuration in Properties view.

      RESULT: Error pops up.
      EXPECTED RESULT: Application id redeployed from latest deployment configuration.

      Show
      ASSERT: Have an OpenShift 3 connection with a project and some configuration for deployment without any replication controller. EXEC: Select Deploy Latest in context menu of a service in OpenShift explorer view or in context menu of a deployment configuration in Properties view. RESULT: Error pops up. EXPECTED RESULT: Application id redeployed from latest deployment configuration.

      When I have an application where no replication controller is yet and I want to deploy latest, I get following error:

      Unable to perform a deployment for config hello-openshift
      
      com.openshift.restclient.NotFoundException: replicationcontrollers "hello-openshift-0" not found
      	at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:105)
      	at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:59)
      	at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:190)
      	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163)
      	at okhttp3.RealCall.execute(RealCall.java:57)
      	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:200)
      	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:181)
      	at com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:269)
      	at com.openshift.internal.restclient.capability.resources.DeployCapability.deploy(DeployCapability.java:59)
      	at org.jboss.tools.openshift.internal.ui.handler.TriggerDeploymentHandler$1$1.visit(TriggerDeploymentHandler.java:90)
      	at org.jboss.tools.openshift.internal.ui.handler.TriggerDeploymentHandler$1$1.visit(TriggerDeploymentHandler.java:1)
      	at com.openshift.internal.restclient.model.KubernetesResource.accept(KubernetesResource.java:91)
      	at org.jboss.tools.openshift.internal.ui.handler.TriggerDeploymentHandler$1.doRun(TriggerDeploymentHandler.java:85)
      	at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:37)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      

      This is wrong, because it is trying to "deploy latest replication controller" instead of deploying latest deployment configuration (as it works e.g. from oc binary - deployment uses latest deployment configuration not replication controller which could be understood as instance of deployment configuration). Therefore if there is no replication controller and I click Deploy Latest in context menu of a service in OpenShift Explorer view or in context menu of a deployment configuration in properties view, I get the error.

              dbocharo@redhat.com Dmitrii Bocharov (Inactive)
              mlabuda_jira Marián Labuda (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: