Open iwilltry42 opened 2 years ago
@huberts90, it doesn't look like a bug in k3d, but rather something fishiy with either docker or your system setup.
Does this happen every time you try to delete a cluster? Does a docker service restart help?
Can you kill that container manually (docker rm -f k3d-buildsignerworker-63-server-0
)?
I can not delete this container manually. I get the same error as seen in the cluster's log:
ERRO[0012] docker failed to remove the container 'k3d-buildsignerworker-63-server-0': Error response from daemon: Could not kill running container 774281fb7dbc92f4da5f766d1d2d0dffea02face10eb1a79e95b7067cfeccf2c, cannot remove - tried to kill container, but did not receive an exit event
This issue happens only if setup contains nfs pod ( I am using erichough/nfs-server:2.2.1
) and the client pod mounts nfs
volume e.q.
containers:
- name: nfs-client
image: alpine:3.14
imagePullPolicy: IfNotPresent
securityContext:
privileged: true
volumeMounts:
- name: nfs
mountPath: "/mnt"
volumes:
- name: nfs
persistentVolumeClaim:
claimName: nfs-claim
readOnly: false
@huberts90 , so it's not a k3d issue then. Interesting nonetheless, so let me try to help you there.. Can you please paste both manifests that you have for the NFS server and client so I can try to replicate your issue? Really weird, since killing the node container shouldn't be influenced in any way by what is running inside of the cluster inside the container :thinking: Can you see any logs from the container?
@iwilltry42 I hope this repository will be enough: https://github.com/huberts90/go-k3d-nfs/tree/main/k8s
@huberts90 , that setup requires some host-level configuration which I didn't want to do for the quick test. However, the "official" nfs server and provisioner https://github.com/kubernetes-sigs/nfs-ganesha-server-and-external-provisioner/tree/master/deploy/kubernetes worked just fine for me (I chose to install the pod, as that directory offers pod/statefulset/deployment). NFS worked just fine and the cluster was deleted without any issues as well :+1:
@iwilltry42 I think I pasted too narrow log entry. Let me pardon you ! I am trying to delete the cluster with 2 pods: nfs-server and nfs-client:
Originally posted by @huberts90 in https://github.com/k3d-io/k3d/issues/932#issuecomment-1044037322
Also:
https://github.com/k3d-io/k3d/issues/932#issuecomment-1044074432:
It is on my machine but I am going to use this stuff in CI too. Let me share the details below:
OS