openshift / openshift-sdn

Apache License 2.0
69 stars 63 forks source link

openshift-ovs-subnet script cannot cope with systemd/udev predictable network interface names #91

Closed Stephen001 closed 8 years ago

Stephen001 commented 9 years ago

http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/

On suitably new versions of systemd/udev, there is no presumed default physical interface name of 'eth0' created by systemd/udev. As such, openshift-ovs-subnet fails to correctly determine the ifindex of the new veth it is looking to map into the ovs flow. This sometimes results in incorrect mappings of subnets to remote members of the vxlan.

https://github.com/openshift/openshift-sdn/blob/master/ovssubnet/bin/openshift-ovs-subnet#L37

dcbw commented 9 years ago

@Stephen001 do you mean that inside the container, the interface is no longer called eth0 because it gets renamed by udev? Are you attempting to run systemd/udev inside the container? Last I knew that wasn't supported and udev wasn't used inside containers at all, but perhaps that has changed...

dcbw commented 9 years ago

@Stephen001 ping; any chance you could answer the questions above? Thanks!

dcbw commented 8 years ago

Closing this one; please re-open if you have can grab the info requested above or if the problem re-appears. Thanks!