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 manifests template error or docs error #721

Closed
pepesi opened this issue Dec 25, 2023 · 0 comments
Closed

multus-cni manifests template error or docs error #721

pepesi opened this issue Dec 25, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@pepesi
Copy link

pepesi commented Dec 25, 2023

What happened:
I used the nicclusterpolicy in the example

https://github.com/Mellanox/network-operator/blob/master/example/crs/mellanox.com_v1alpha1_nicclusterpolicy_cr.yaml

but got empty cni config file '00-multus.conf'.

After google it, got this document
https://docs.nvidia.com/networking/display/cokan10/network+operator#src-39285883_NetworkOperator-MultusCNI

It says "Multus CNI config. If empty, the config will be automatically generated from the CNI configuration file of the master plugin (the first file in lexicographical order in the cni-confg-dir)."

Finally, NodeNotReady with error "cni plugin not initialized", and the 00-multus.conf is an empty file.

What you expected to happen:
I hope it can work normally

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

Anything else we need to know?:

- "--multus-conf-file={{- if .CrSpec.Config -}}/tmp/multus-conf/00-multus.conf{{- else -}}auto{{- end -}}"

change this line

{{- if .CrSpec.Config -}}{{- if gt (len .CrSpec.Config) 0 -}}/tmp/multus-conf/00-multus.conf{{- else -}}auto{{- end -}}{{- else -}}auto{{- end -}}
@pepesi pepesi added the bug Something isn't working label Dec 25, 2023
@pepesi pepesi closed this as not planned Won't fix, can't repro, duplicate, stale May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant