[jbosstools-issues] [JBoss JIRA] (JBIDE-20514) cannot delete project

Max Rydahl Andersen (JIRA) issues at jboss.org
Wed Aug 26 06:22:44 EDT 2015


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

Max Rydahl Andersen commented on JBIDE-20514:
---------------------------------------------

could not find way to delete specific project via `oc` either ;/

did manage to do this:

{code} 
oc delete project -l name=eap
{code}

but that resulted it in deleting *all* my projects ;/


> cannot delete project
> ---------------------
>
>                 Key: JBIDE-20514
>                 URL: https://issues.jboss.org/browse/JBIDE-20514
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>            Reporter: Max Rydahl Andersen
>            Priority: Critical
>             Fix For: 4.3.0.CR1
>
>
> Since there is no way to delete an "app" but only a project I wanted to Delete project to clean up/shutdown my test instances.
> When trying to delete a project then I got this error:
> {code}
> com.openshift.restclient.OpenShiftException: Could not delete resource test2: {
>   "kind": "Status",
>   "apiVersion": "v1",
>   "metadata": {},
>   "status": "Failure",
>   "message": "the server could not find the requested resource",
>   "reason": "NotFound",
>   "details": {},
>   "code": 404
> }
> 	at com.openshift.internal.restclient.DefaultClient.createOpenShiftException(DefaultClient.java:436)
> 	at com.openshift.internal.restclient.DefaultClient.delete(DefaultClient.java:251)
> 	at org.jboss.tools.openshift.core.connection.Connection.deleteResource(Connection.java:400)
> 	at org.jboss.tools.openshift.internal.ui.job.DeleteResourceJob.doRun(DeleteResourceJob.java:47)
> 	at org.jboss.tools.openshift.internal.ui.job.OpenShiftJobs$1.doRun(OpenShiftJobs.java:48)
> 	at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:36)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Caused by: com.openshift.internal.restclient.http.NotFoundException: {
>   "kind": "Status",
>   "apiVersion": "v1",
>   "metadata": {},
>   "status": "Failure",
>   "message": "the server could not find the requested resource",
>   "reason": "NotFound",
>   "details": {},
>   "code": 404
> }
> 	at com.openshift.internal.restclient.http.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:210)
> 	at com.openshift.internal.restclient.http.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:151)
> 	at com.openshift.internal.restclient.http.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:130)
> 	at com.openshift.internal.restclient.http.UrlConnectionHttpClient.delete(UrlConnectionHttpClient.java:118)
> 	at com.openshift.internal.restclient.http.UrlConnectionHttpClient.delete(UrlConnectionHttpClient.java:124)
> 	at com.openshift.internal.restclient.DefaultClient.delete(DefaultClient.java:247)
> 	... 5 more
> Caused by: java.io.FileNotFoundException: https://console.qe.openshift.com/oapi/v1/namespaces/test2/projects/test2
> 	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1834)
> 	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)
> 	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
> 	at com.openshift.internal.restclient.http.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:147)
> 	... 9 more
> {code}
> No info on how much if anything was actually managed to be deleted.
> Deleting individual resources works, except I can't delete the Pod nor Services. No info/error given, they just pop up back again.
> so I can't see a way for users actually stopping/replacing their created applications ;/



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jbosstools-issues mailing list