netand593 / dn-vtap

Data Networks Lab VirtualTAP development as a Custom K8S resource
1 stars 0 forks source link

Error while creating mirror interface in pod #2

Open netand593 opened 6 months ago

netand593 commented 6 months ago

The error we are encountering is the following:

andres@k8s-cp:~/koko/kokotap$ kubectl logs captured-ueransim-gnb-ues-6c7d5c7bfb-2nd9t-108 network-mirror 
sender
XXX:failed to lookup "eth0" in "/host//proc/3198749/ns/net": Link not found
Waiting for signal at main ...
XXX:vxlan add failed: Failed to add vxlan mirror: file exists

It appeared to be some remaining vxlan interface which was not cleaned properly after deletion. Even though after deleting it, the error is now similar:

andres@k8s-cp:~/koko/kokotap$ kubectl logs captured-ueransim-gnb-ues-6c7d5c7bfb-2nd9t-771 network-mirror 
sender
XXX:failed to lookup "eth0" in "/host//proc/3198749/ns/net": Link not found
Waiting for signal at main ...
XXX:Cannot add IPaddr/netns failed: failed to Statfs "/host//proc/3198749/ns/net": no such file or directory

Seems to be a parsing or syntax error in the args passed to the kokotap-pod go binary. The code used to create the container can be found in this repo

netand593 commented 6 months ago

@davidpelacho

netand593 commented 6 months ago

Now I'm ever more confused, because using kokotap throws a similar error, but the capture and the vxlan creation worked fine:

andres@k8s-cp:~/koko/kokotap$ kubectl logs kokotap-ueransim-gnb-ues-6c7d5c7bfb-2nd9t-sender kokotap-ueransim-gnb-ues-6c7d5c7bfb-2nd9t-sender 
sender
XXX:failed to lookup "eth0" in "/host//proc/3198749/ns/net": Link not found
Waiting for signal at main ...
XXX:failed to get eth0 MTU: failed to lookup "eth0": Link not found