Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete kubernetes cluster failed #7531

Closed
tuanhoangth1603 opened this issue May 13, 2023 · 1 comment
Closed

Delete kubernetes cluster failed #7531

tuanhoangth1603 opened this issue May 13, 2023 · 1 comment

Comments

@tuanhoangth1603
Copy link

tuanhoangth1603 commented May 13, 2023

Hello,
I created a K8S cluster named "traefik". Then, I created an instance that uses the network of the K8S cluster.
Now, I am unable to delete the K8S cluster and receive an error message on the dashboard:

Network : traefik-network for Kubernetes cluster : traefik has instances using it which are not part of the Kubernetes cluster

Even when I have removed the NIC card from the instance, I still cannot delete the cluster.
Please guide me what should I do to delete the cluster ?
Thanks !
Here is log of delete action:

2023-05-13 19:06:01,561 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (qtp1443435931-3581:ctx-c5b747ae ctx-ba237f8a) (logid:5cd97356) submit async job-2440, details: AsyncJobVO: {id:2440, userId: 2, accountId: 2, instanceType: None, instanceId: null, cmd: org.apache.cloudstack.api.command.user.kubernetes.cluster.DeleteKubernetesClusterCmd, cmdInfo: {"response":"json","ctxUserId":"2","httpmethod":"GET","ctxStartEventId":"14461","id":"fe5b759c-78a4-4a0e-b5c2-5e2d861df4fc","ctxDetails":"{\"interface com.cloud.kubernetes.cluster.KubernetesCluster\":\"fe5b759c-78a4-4a0e-b5c2-5e2d861df4fc\"}","ctxAccountId":"2","uuid":"fe5b759c-78a4-4a0e-b5c2-5e2d861df4fc","cmdEventType":"KUBERNETES.CLUSTER.DELETE"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 2486689901113, completeMsid: null, lastUpdated: null, lastPolled: null, created: null, removed: null}
2023-05-13 19:06:01,563 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-8:ctx-7fcdc023 job-2440) (logid:a74992c9) Executing AsyncJobVO: {id:2440, userId: 2, accountId: 2, instanceType: None, instanceId: null, cmd: org.apache.cloudstack.api.command.user.kubernetes.cluster.DeleteKubernetesClusterCmd, cmdInfo: {"response":"json","ctxUserId":"2","httpmethod":"GET","ctxStartEventId":"14461","id":"fe5b759c-78a4-4a0e-b5c2-5e2d861df4fc","ctxDetails":"{\"interface com.cloud.kubernetes.cluster.KubernetesCluster\":\"fe5b759c-78a4-4a0e-b5c2-5e2d861df4fc\"}","ctxAccountId":"2","uuid":"fe5b759c-78a4-4a0e-b5c2-5e2d861df4fc","cmdEventType":"KUBERNETES.CLUSTER.DELETE"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 2486689901113, completeMsid: null, lastUpdated: null, lastPolled: null, created: null, removed: null}
2023-05-13 19:06:01,565 DEBUG [c.c.a.ApiServlet] (qtp1443435931-3581:ctx-c5b747ae ctx-ba237f8a) (logid:5cd97356) ===END===  103.149.172.101 -- GET  id=fe5b759c-78a4-4a0e-b5c2-5e2d861df4fc&command=deleteKubernetesCluster&response=json
2023-05-13 19:06:01,598 ERROR [c.c.k.c.a.KubernetesClusterActionWorker] (API-Job-Executor-8:ctx-7fcdc023 job-2440 ctx-13a975a9) (logid:a74992c9) Network : traefik-network for Kubernetes cluster : traefik has instances using it which are not part of the Kubernetes cluster
2023-05-13 19:06:01,599 INFO  [c.c.k.c.a.KubernetesClusterActionWorker] (API-Job-Executor-8:ctx-7fcdc023 job-2440 ctx-13a975a9) (logid:a74992c9) Revoking launch permission for systemVM template
2023-05-13 19:06:01,606 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-8:ctx-7fcdc023 job-2440) (logid:a74992c9) Complete async job-2440, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"530","errortext":"Network : traefik-network for Kubernetes cluster : traefik has instances using it which are not part of the Kubernetes cluster"}
2023-05-13 19:06:01,621 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-8:ctx-7fcdc023 job-2440) (logid:a74992c9) Done executing org.apache.cloudstack.api.command.user.kubernetes.cluster.DeleteKubernetesClusterCmd for job-2440

And this is a list of instances on the network
image

@tuanhoangth1603
Copy link
Author

Need to delete the instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant