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

[BUG] default container namespace "k8s.io" should change to "moby"? #69

Open
chinglinwen opened this issue Nov 8, 2022 · 0 comments
Open

Comments

@chinglinwen
Copy link

Describe the bug
failed to attach interface

here's the error logs

I1108 07:47:08.265374       1 pod.go:202] pod [default/virt-launcher-case1-singlexbjrg-ltftr] updated
I1108 07:47:08.265419       1 network-selection-elements.go:34] parsePodNetworkAnnotation: [{"interface":"net1","name":"vnop2","namespace":"default"}], default
I1108 07:47:08.265474       1 pod.go:217] 1 attachments to add to pod default/virt-launcher-case1-singlexbjrg-ltftr
E1108 07:47:08.267290       1 pod.go:221] failed to figure out the pod's network namespace: failed to get netns for container [903d061e03dee7ef975706352eed3111a1eccdb9185f056196b014f89b79148b]: container "903d061e03dee7ef975706352eed3111a1eccdb9185f056196b014f89b79148b" in namespace "k8s.io": not found

such container-id seems only exist in moby namespace as for docker

Expected behavior
pod added second interface dynamically

To Reproduce
Steps to reproduce the behavior:

  1. create vmi
  2. kubectl edit vmi pod, add k8s.v1.cni.cncf.io/networks: '[{"interface":"net1","name":"flannel","namespace":"default"}]'
  3. kubectl exec into pod, no interface added

Environment:

  • multus-dynamic-networks-controller version: N/A
  • Kubernetes version (use kubectl version):
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.2", GitCommit:"59603c6e503c87169aea6106f57b9f242f64df89", GitTreeState:"clean", BuildDate:"2020-01-18T23:30:10Z", GoVersion:"go1.13.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.4", GitCommit:"b695d79d4f967c403a96986f1750a35eb75e75f1", GitTreeState:"clean", BuildDate:"2021-11-17T15:42:41Z", GoVersion:"go1.16.10", Compiler:"gc", Platform:"linux/amd64"}
  • Network-attachment-definition: N/A
  • OS (e.g. from /etc/os-release): CentOS Linux release 7.9.2009
  • Controller configuration (criSocketPath / multusSocketPath): /run/multus/multus.sock
  • Kernel (e.g. uname -a): Linux stack1.cpp.zll.qianxin-inc.cn 3.10.0-1160.el7.x86_64 ci: add github codeowners file #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
  • Others: N/A

Additional info / context

docker version

[root@stack1 ~]# docker version
Client: Docker Engine - Community
 Version:           20.10.12
 API version:       1.41
 Go version:        go1.16.12
 Git commit:        e91ed57
 Built:             Mon Dec 13 11:45:41 2021
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.12
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.16.12
  Git commit:       459d0df
  Built:            Mon Dec 13 11:44:05 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.4.13
  GitCommit:        9cc61520f4cd876b86e77edfeb88fbcd536d1f9d
 runc:
  Version:          1.0.3
  GitCommit:        v1.0.3-0-gf46b6ba
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
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

1 participant