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

multus cni binary and configuration not found in the host #3289

Open
Icarus9913 opened this issue Mar 5, 2024 · 1 comment
Open

multus cni binary and configuration not found in the host #3289

Icarus9913 opened this issue Mar 5, 2024 · 1 comment
Assignees
Labels
kind/test priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.

Comments

@Icarus9913
Copy link
Collaborator

Icarus9913 commented Mar 5, 2024

Spiderpool Version

main

Bug Type

IPAM

Main CNI

/

What happened?

The spiderpool-agent component runs good, but the multus binary and configuration file not found in the host(/etc/cni/net.d and /opt/cni/bin).
the helm value multus.multusCNI.uninstall was set to be true. And the spiderpool-agent restarts several times.

I tried to reproduce it in my kind environment, but can't do it. It's very strange.

What did you expect to happen?

/

How to reproduce it (as minimally and precisely as possible)

/

Additional Context

The spiderpool-agent container has preStop hook to clean up the multus binary and cni configuration:

          preStop:
            exec:
              command:
              - "/bin/sh"
              - "-c"
              - | 
                {{- if .Values.multus.multusCNI.uninstall }}
                rm -f /host/opt/cni/bin/multus || true
                rm -rf /host/etc/cni/net.d/multus.d || true
                rm -f /host/etc/cni/net.d/00-multus.conf || true
                {{- end }}
                {{ .Values.spiderpoolAgent.binName }} shutdown

And the initContainer would install the multus binary and cni configuration.

@Icarus9913 Icarus9913 added priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. kind/bug labels Mar 5, 2024
@Icarus9913 Icarus9913 self-assigned this Mar 5, 2024
@Icarus9913 Icarus9913 changed the title cni not found multus cni binary and configuration not found in the host Mar 5, 2024
@Icarus9913 Icarus9913 assigned cyclinder and ty-dc and unassigned Icarus9913 Apr 7, 2024
@ty-dc
Copy link
Collaborator

ty-dc commented Apr 23, 2024

无法确定如何安装的?但在如下的场景中,将会出现你所提到的问题。

  1. 你的集群中,并没有自行安装过 multus
  2. 安装 spiderpool 时 --set multus.multusCNI.install=false 指定了 false
~# helm upgrade --install spiderpool spiderpool/spiderpool -n kube-system --version=0.9.2 --set multus.multusCNI.install=false

[root@controller-node-1 bin]# kubectl get po -n kube-system | grep spiderpool
spiderpool-agent-59lkz                                  1/1     Running     0                 3m
spiderpool-agent-srdpg                                  1/1     Running     0                 3m
spiderpool-controller-5769cc7776-ftr6l                  1/1     Running     0                 3m
spiderpool-init                                         1/1     Running     0                 3m

[root@controller-node-1 bin]# pwd && ls multus
/opt/cni/bin
ls: cannot access multus: No such file or directory
[root@controller-node-1 bin]# pwd && ls spiderpool
/opt/cni/bin
spiderpool

[root@controller-node-1 net.d]# pwd && ls
/etc/cni/net.d
10-calico.conflist  calico-kubeconfig

@ty-dc ty-dc added kind/test and removed kind/bug labels Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/test priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Projects
None yet
Development

No branches or pull requests

3 participants