[jbosstools-issues] [JBoss JIRA] (JBIDE-25670) Delete Resources: replication controllers and pods are not deleted (on OpenShift Online)

Josef Kopriva (JIRA) issues at jboss.org
Tue Apr 10 04:54:01 EDT 2018


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

Josef Kopriva edited comment on JBIDE-25670 at 4/10/18 4:53 AM:
----------------------------------------------------------------

Hi [~adietish], I need to reopen this - against OpenShift.io this works, but against https://open.paas.redhat.com I am still getting similar error:

{code:java}
null
org.jboss.tools.openshift.core
Error
Tue Apr 10 10:46:10 CEST 2018
Error deleting Pod named  eap-app-1-build.

com.openshift.restclient.NotFoundException: pods "eap-app-1-build" not found pods "eap-app-1-build" not found
	at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:112)
	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:257)
	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:221)
	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:209)
	at com.openshift.internal.restclient.DefaultClient.delete(DefaultClient.java:320)
	at org.jboss.tools.openshift.core.connection.Connection.deleteResource(Connection.java:545)
	at org.jboss.tools.openshift.internal.core.job.AbstractDeleteResourceJob.delete(AbstractDeleteResourceJob.java:45)
	at org.jboss.tools.openshift.internal.core.job.DeleteResourcesJob.lambda$0(DeleteResourcesJob.java:46)
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
	at org.jboss.tools.openshift.internal.core.job.DeleteResourcesJob.doRun(DeleteResourcesJob.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:56)
{code}

Can you please look at this once again?

Also [~dgolovin] created relevant JIRA: JBIDE-25902 (this applies to me too).

Verified in:
Red Hat JBoss Developer Studio
Version: 11.3.0.GA
Build id: GA-v20180409-0537-B2335
Build date: 20180409-0537



was (Author: jkopriva):
Hi [~adietish], I need to reopen this - against OpenShift.io this works, but against https://open.paas.redhat.com I am still getting similar error:

{code:java}
null
org.jboss.tools.openshift.core
Error
Tue Apr 10 10:46:10 CEST 2018
Error deleting Pod named  eap-app-1-build.

com.openshift.restclient.NotFoundException: pods "eap-app-1-build" not found pods "eap-app-1-build" not found
	at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:112)
	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:257)
	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:221)
	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:209)
	at com.openshift.internal.restclient.DefaultClient.delete(DefaultClient.java:320)
	at org.jboss.tools.openshift.core.connection.Connection.deleteResource(Connection.java:545)
	at org.jboss.tools.openshift.internal.core.job.AbstractDeleteResourceJob.delete(AbstractDeleteResourceJob.java:45)
	at org.jboss.tools.openshift.internal.core.job.DeleteResourcesJob.lambda$0(DeleteResourcesJob.java:46)
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
	at org.jboss.tools.openshift.internal.core.job.DeleteResourcesJob.doRun(DeleteResourcesJob.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:56)
{code}

Can you please look at this once again?

Also [~dgolovin] created relevant JIRA: JBIDE-25902 (this applies to me too).


> Delete Resources: replication controllers and pods are not deleted (on OpenShift Online)
> ----------------------------------------------------------------------------------------
>
>                 Key: JBIDE-25670
>                 URL: https://issues.jboss.org/browse/JBIDE-25670
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.5.2.Final
>            Reporter: Andre Dietisheim
>            Assignee: Andre Dietisheim
>              Labels: delete_resources
>             Fix For: 4.5.3.Final
>
>         Attachments: Screenshot_20180213_123635.png, image-2018-01-29-09-34-08-598.png
>
>
> This is most likely a timing issue, thus it is usually not observable when using a local CDK but always reproducible on OpenShift Online:
> steps:
> # ASSERT: have an application - with deployment configs, replication controllers, pods, etc.) running in OpenShift Online (ex. created via nodejs-mongo-persistent)
> # EXEC: launch "Delete Resources" wizard
> # ASSERT: you see deployment configs, replication controllers, pods etc.
> # EXEC: select all resources and hit "Finish"
> # ASSERT: wait for all removal jobs to be finished
> # EXEC: launch "Delete Resource" wizard again and inspect the resources that are still there
> Result:
>  !image-2018-01-29-09-34-08-598.png! 
> Replication controller(s) and pods are left in place, they were not deleted.
> Some pods may be in terminating state and disappear eventually.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jbosstools-issues mailing list