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

Scaling: Sometimes incorrect version of RC leads to error when scaling

    XMLWordPrintable

Details

    • Hide

      ASSERT: Have an OpenShift 3 application (e.g. nodejs-example).
      EXEC: Try several times Scale To, Scale Up, via context menu of a service in OpenShift explorer view or via context menu of a replication controller in properties.

      Show
      ASSERT: Have an OpenShift 3 application (e.g. nodejs-example). EXEC: Try several times Scale To, Scale Up, via context menu of a service in OpenShift explorer view or via context menu of a replication controller in properties.

    Description

      Sometimes when scaling an OpenShift 3 application several times, there is an error about failed PUT call. No jobs are running when triggering a scaling. Even though pods are shown correctly (right amount is shown) this error is shown:

      com.openshift.restclient.OpenShiftException: Exception trying to PUT https://10.1.2.2:8443/api/v1/namespaces/test-project/replicationcontrollers/nodejs-example-1 response code: 409 Operation cannot be fulfilled on replicationcontrollers "nodejs-example-1": the object has been modified; please apply your changes to the latest version and try again
      	at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:114)
      	at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:65)
      	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:217)
      	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:194)
      	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:183)
      	at com.openshift.internal.restclient.DefaultClient.update(DefaultClient.java:275)
      	at org.jboss.tools.openshift.core.connection.Connection.updateResource(Connection.java:451)
      	at org.jboss.tools.openshift.internal.ui.handler.ScaleDeploymentHandler$2.run(ScaleDeploymentHandler.java:155)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      

      Attachments

        Issue Links

          Activity

            People

              adietish@redhat.com André Dietisheim
              mlabuda_jira Marián Labuda (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: