Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loopback with CNI Spec 1.0.0 #952

Open
ssbostan opened this issue Jan 26, 2023 · 6 comments
Open

Loopback with CNI Spec 1.0.0 #952

ssbostan opened this issue Jan 26, 2023 · 6 comments

Comments

@ssbostan
Copy link

Hello everyone,
I used the following code to config loopback, but it doesn't work with SPEC 1.0.0.

{
    "cniVersion": "1.0.0",
    "name": "lo",
    "plugins": [
        {
            "type": "loopback"
        }
    ]
}

Loopback supports v1.0.0 spec?

Thanks.

@ssbostan
Copy link
Author

Here is the error:

Jan 26 16:00:17 node006 kubelet[2229]: I0126 16:00:17.660868    2229 remote_runtime.go:620] "[RemoteRuntimeService] Status Response" status="&RuntimeStatus{Conditions:[]*RuntimeCondition{&RuntimeCondition{Type:RuntimeReady,Status:true,Reason:,Message:,},&RuntimeCondition{Type:NetworkReady,Status:false,Reason:NetworkPluginNotReady,Message:Network plugin returns error: cni plugin not initialized,},},}"
Jan 26 16:00:17 node006 kubelet[2229]: I0126 16:00:17.661033    2229 kubelet.go:2468] "Container runtime status" status="Runtime Conditions: RuntimeReady=true reason: message:, NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized"
Jan 26 16:00:17 node006 kubelet[2229]: E0126 16:00:17.661094    2229 kubelet.go:2475] "Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized"

If I use Spec 0.4.0, it works, but Spec 1.0.0 not works.

@MikeZappa87
Copy link
Contributor

What container runtime are you using?

@ssbostan
Copy link
Author

Containerd. All components with the latest version.

@MikeZappa87
Copy link
Contributor

containerd already includes the loopback plugin in the go-cni library. Adding the loopback again just results in it calling loopback twice. What are you trying to do?

@ssbostan
Copy link
Author

ssbostan commented Feb 25, 2023

I configured Kubelet + Containerd, but Kubelet with spec 1.0.0 did not become ready. With 0.4.0 was OK. I tested the configuration of the spec and it's OK, but it doesn't work with Kubelet and Containerd. As you can see in the above log, it said cni plugin not initialized.

@MikeZappa87
Copy link
Contributor

In containerd, its included: https://github.com/containerd/go-cni/blob/6603d5bd8941d7f2026bb5627f6aa4ff434f859a/opts.go#L88

A lot of discussion around loopback. At one point we wanted to deprecate the plugin as a whole.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants