-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Hi Tomofumi,
it's me again. I've been using your library for quite a while now and occasionally I run into a race condition when two Vxlan links are created with the same name at the same time. Like this:
- First vxlan link is created using
MakeVxLancall for container c1, it's interface name iseth1 - Before the first call gets to the
SetVethLink, another vxlan links is created for container c2 but with the same nameeth1. - Obviously the
netlink.LinkAdd(&vxlanconf)fails for the second call withvxlan add failed: Failed to add vxlan eth1: file exists
I was wondering, would it be possible to do a similar trick that you do with veth pair, namely give it a temporary name and rename it only after it's been moved to the container's namespace?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels