Giter Club home page Giter Club logo

Comments (6)

paulnivin avatar paulnivin commented on August 20, 2024

Thanks for looking into this; we haven't tested with containerd. Somewhat related, I'm working on unforking our custom ipvlan plugin so we can switch back to upstream now that containernetworking/plugins#88 has been merged and shipped with 0.7.0. I'll look into your PR as part of that work -- the ipvlan unfork change should land soon.

from cni-ipvlan-vpc-k8s.

lbernail avatar lbernail commented on August 20, 2024

Great thanks
I think the workaround I used in my PR to populate the MAC address of the peered veth is probably an issue in the CNI ip pkg. I will check how it is used in other plugins

from cni-ipvlan-vpc-k8s.

lbernail avatar lbernail commented on August 20, 2024

We have been running this patch for a few weeks and it works with both docker and containerd.

However for containerd we found an issue: containerd/containerd#2329

This issue is not a big problem in general but will break the CNI plugin when triggered (which requires manually creating a network namespace, for instance when using cnitool) due to how the ipam plugin identifies used IP addresses (by iterating over /var/run/netns which will contain invalid entries). I wonder if instead of iterating over /var/run/netns we could use the CRI API directly.

from cni-ipvlan-vpc-k8s.

theatrus avatar theatrus commented on August 20, 2024

Calling the CRI API to enumerate namespaces is likely the best plan as it will become the most portable state. I'm happy to work on this as a third (and preferred) path for discovery of existing namespaces this week - I haven't had a chance to do any digging into any API conformance issues. Or if you jump on it first, patches accepted :)

from cni-ipvlan-vpc-k8s.

Random-Liu avatar Random-Liu commented on August 20, 2024

I think all the CRI implementations today are assuming eth0 is the default interface, and none of them makes it configurable:

In addition, the plugin seems to "move" the IP address created for interface eth0 to interface veth0 (https://github.com/lyft/cni-ipvlan-vpc-k8s/blob/master/plugin/unnumbered-ptp/unnumbered-ptp.go#L241) which does not work with containerd because it is explicitly looking for the IP address associated to eth0.

Not quite familiar with this. If this is done after SetupPod, it works for containerd and cri-o, because both of them cache the ip address. But if this happens before, it won't work.

from cni-ipvlan-vpc-k8s.

lbernail avatar lbernail commented on August 20, 2024

It turns out the netns issue is actually a bug in iproute (see containerd/containerd#2329 for more details)
We will start testing containerd with the CNI plugin much more seriously very soon (still requires PR #34)

from cni-ipvlan-vpc-k8s.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.