[jbosstools-issues] [JBoss JIRA] (JBIDE-26550) Cannot delete pod on OpenShift

Andre Dietisheim (Jira) issues at jboss.org
Wed Feb 13 09:04:00 EST 2019


    [ https://issues.jboss.org/browse/JBIDE-26550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13694987#comment-13694987 ] 

Andre Dietisheim commented on JBIDE-26550:
------------------------------------------

PR for openshift-restclient-java at https://github.com/openshift/openshift-restclient-java/pull/364 was merged. 
I'm lacking deploy rights for repository.jboss.org currently (user migration jboss->RH at fault here), so the patched client currently isn't available in the repository yet.

> Cannot delete pod on OpenShift
> ------------------------------
>
>                 Key: JBIDE-26550
>                 URL: https://issues.jboss.org/browse/JBIDE-26550
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.11.0.AM1
>            Reporter: Andre Dietisheim
>            Assignee: Andre Dietisheim
>            Priority: Critical
>              Labels: delete_resource, delete_resources
>             Fix For: 4.11.0.AM1
>
>         Attachments: error-deleting-pod-openshift-3_10.png, image-2019-02-08-21-12-00-707.png, image-2019-02-08-21-12-12-917.png
>
>
> steps:
> # ASSERT: make sure that you have an application with a pod running on OpenShift (ex. https://employee.openshift.com)
> # EXEC: in Explorer select the pod and choose "Delete"
> Result:
>  !image-2019-02-08-21-12-12-917.png!
> {code}
> com.openshift.restclient.OpenShiftException: Exception trying to DELETE https://api.rh-us-east-1.openshift.com/api/v1/namespaces/testomat/pods/wfl14-7-wg76m response code: 500 no kind "Pod" is registered for version "v1" in scheme "k8s.io/apimachinery/pkg/apis/meta/internalversion/register.go:31"
> 	at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:116)
> 	at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:66)
> 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
> 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
> 	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
> 	at okhttp3.RealCall.execute(RealCall.java:77)
> 	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:294)
> 	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:268)
> 	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:236)
> 	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:219)
> 	at com.openshift.internal.restclient.DefaultClient.delete(DefaultClient.java:388)
> 	at org.jboss.tools.openshift.core.connection.Connection.deleteResource(Connection.java:549)
> 	at org.jboss.tools.openshift.internal.core.job.AbstractDeleteResourceJob.delete(AbstractDeleteResourceJob.java:45)
> 	at org.jboss.tools.openshift.internal.core.job.DeleteResourceJob.doRun(DeleteResourceJob.java:35)
> 	at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:37)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
> {code} 
> ps. Deleting the pod via "oc" command line (oc v3.11.0+0cbc58b) works fine.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jbosstools-issues mailing list