Uploaded image for project: 'OpenShift Java Client'
  1. OpenShift Java Client
  2. OSJC-263

Unable to delete resource after okclient refactor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 5.0.x
    • 5.0.x
    • core
    • None

    Description

      While trying to delete a resource in JBT:

      com.openshift.restclient.OpenShiftException: Exception trying to fetch https://192.168.1.7:8443/oapi/v1/namespaces/test/builds/nodejs-example-2 response code: 500 converting (v1.Build) to (api.DeleteOptions): GracePeriodSeconds not present in src
      at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:107)
      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:208)
      at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:186)
      at com.openshift.internal.restclient.DefaultClient.delete(DefaultClient.java:254)
      at org.jboss.tools.openshift.core.connection.Connection.deleteResource(Connection.java:518)
      at org.jboss.tools.openshift.internal.ui.job.DeleteResourceJob.doRun(DeleteResourceJob.java:47)
      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)

      Probably should validate this is not a 3.2 api issue to handle vs origin.

      Attachments

        Issue Links

          Activity

            People

              jcantril@redhat.com Jeffrey Cantrill
              jcantril@redhat.com Jeffrey Cantrill
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: