-
Notifications
You must be signed in to change notification settings - Fork 8
Error messages when pod is deleted #32
Comments
Could you post a bit more of the logs please? I'm not clear what files are not existing. The standard configuration puts binaries in |
From a node that is tearing down a pod:
Weave is up and pods can communicate between each other, so I am guessing that it is working. I can recreate this, so please let me know what you need. |
Here is more of the full log
|
There is an hour between "No networks found in /etc/cni/net.d" and the next message, so maybe that comes from when the cluster was being set up? That would be normal. I'm still mystified about the "no such file or directory". If you are able to re-run kubelet with |
The above is happening right after I delete the pod. Let me dig through the code and turn up the logging. |
@bboreham here is the block of code that is being called, and the culprit is func (network *cniNetwork) deleteFromNetwork(podName string, podNamespace string, podInfraContainerID kubecontainer.ContainerID, podNetnsPath string) error {
rt, err := buildCNIRuntimeConf(podName, podNamespace, podInfraContainerID, podNetnsPath)
if err != nil {
glog.Errorf("Error deleting network: %v", err)
return err
}
netconf, cninet := network.NetworkConfig, network.CNIConfig
glog.V(4).Infof("About to run with conf.Network.Type=%v", netconf.Network.Type)
err = cninet.DelNetwork(netconf, rt)
if err != nil {
glog.Errorf("Error deleting network: %v", err)
return err
}
return nil
} |
Digging more through the code I am seeing that we are executing the plugin, and the error seems to be coming from execing the plugin. https://github.com/containernetworking/cni/blob/v0.3/pkg/invoke/exec.go#L59 Going to try to turn up logging on weave-net first. |
So when
|
OK, but why is it returning "No such file or directory" ? Is the file there? Is there a missing dynamic library? (run |
No you guys made it as a static executable. root@ip-172-20-114-111:/opt/cni/bin# ldd weave-net
not a dynamic executable |
To add into: admin@ip-172-20-108-48:~$ uname -a
Linux ip-172-20-108-48 4.4.23-k8s #1 SMP Fri Sep 30 13:51:02 UTC 2016 x86_64 GNU/Linux
admin@ip-172-20-108-48:~$ cat /etc/debian_version
8.6 |
Aha!
There is, most likely "no such file or directory" 🙂 So, I think the |
@chrislovecnm could out please provide exact version of kubelet you are using? (Just to be sure). |
admin@ip-172-20-108-48:~$ kubelet --version
Kubernetes v1.4.0 |
Suspected to be caused by kubernetes/kubernetes#20379 |
@bboreham you want me to close this? |
If you're satisfied, feel free to close. |
I improved the error messages at weaveworks/weave@b38a55c |
I am seeing a couple of quirky things. I have installed weave-kube, and working on getting it running using
kops
- kubernetes/kops#621Running K8s 1.4 with the latest weave yaml. AWS vpc cloud hosted environment.
It is working since Cassandra nodes are able to communicate with each other via gossip. Able to delete and expand nodes.
First
I am also getting errors that the default cni directory does not exist as well.
Thoughts?
cc: @kris-nova
The text was updated successfully, but these errors were encountered: