-
Notifications
You must be signed in to change notification settings - Fork 135
Open
Description
Existing code uses "/run/netns"
Line 24 in 596a397
| const bindMountPath = "/run/netns" /* Bind mount path for named netns */ |
However, iproute
#ifndef NETNS_RUN_DIR
#define NETNS_RUN_DIR "/var/run/netns"
and the man page https://man7.org/linux/man-pages/man8/ip-netns.8.html use "/var/run/netns"
I understand that changing this constant will cause compatibility issues since it will be almost sure someone depends on that behavior but as today all the *[By|From]Name functions does not work on the systems that does not use "/run/netns" , specially on Kubernetes systems that mounts the host path on a Pod, and use the iproute convention for portability
I do not know what will be the best solution, but I'm just documenting it, since it took me one hour of debugging to figure out and this can save some other peoples time :)
aboch
Metadata
Metadata
Assignees
Labels
No labels