networkop / meshnet-cni

a (K8s) CNI plugin to create arbitrary virtual network topologies
BSD 3-Clause "New" or "Revised" License
116 stars 28 forks source link

VXLan existed issues #45

Open ghost opened 2 years ago

ghost commented 2 years ago

Hello, I just encountered the vxlan existed issue when creating topo through meshnet. Any suggestions? Thank you!

Warning FailedCreatePodSandBox 5s kubelet (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "15ec95fd9c2564055c051b9b1b0f6dade81bb856edecac2aabcb001ebb101ce0" network for pod "vswitch-12": networkPlugin cni failed to set up pod "vswitch-12_default" network: vxlan add failed: Failed to add vxlan koko4039455774: file exists

networkop commented 2 years ago

This is strange, it's not supposed to happen. How big is your topology? Can you share the topology CRDs?

haylinmoore commented 1 year ago

We are seeing this issue too. It happens randomly on some of our topologies. We've got 2 spines, with 4 leafs connected to each of the spines. We've been getting our fair share of

  Warning  FailedCreatePodSandBox  3m10s                kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "d176d34f7eaf3622f7a8ca162168dcd174aded523fa4eb7d0cc6d12914e2524b": plugin type="meshnet" name="meshnet" failed (add): vxlan add failed: Failed to add vxlan koko3772318383: file exists
  Warning  FailedCreatePodSandBox  2m56s                kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "6e0b091eda743122c3b03ec0b188fec3b6f4cd37754c1232ef2c050b8c7f5c49": plugin type="meshnet" name="meshnet" failed (add): vxlan add failed: Failed to add vxlan koko2288473695: file exists
  Warning  FailedCreatePodSandBox  2m40s                kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "da74f05393b56fba047c18870306aeae4c2e391f1b2bdabbe9b85acc9b1348e1": plugin type="meshnet" name="meshnet" failed (add): vxlan add failed: Failed to add vxlan koko566137827: file exists
  Warning  FailedCreatePodSandBox  2m27s                kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "881675c69b899b3a9782eeda23a259179a48a1745630acb9f066322265e853d7": plugin type="meshnet" name="meshnet" failed (add): vxlan add failed: Failed to add vxlan koko3526202731: file exists
  Warning  FailedCreatePodSandBox  2m10s                kubelet            (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "3d05d29c5bf4637399cecc1bf403b2f27ba325486bd899ac0302f99e9626ff42": plugin type="meshnet" name="meshnet" failed (add): vxlan add failed: Failed to add vxlan koko2171372583: file exists

during topology creations. After like 5 minutes of spitting out that error, it just suddenly works and pulls the init image

    Normal   Pulled                  118s                 kubelet            Container image "networkop/init-wait:latest" already present on machine
  Normal   Created                 118s                 kubelet            Created container init-leaf1
  Normal   Started                 118s                 kubelet            Started container init-leaf1

cc @burnyd

networkop commented 1 year ago

can you share your CRDs?