-
Notifications
You must be signed in to change notification settings - Fork 590
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
fix multus config file generation to avoid self-delegation #1137
fix multus config file generation to avoid self-delegation #1137
Conversation
cmd/thin_entrypoint/main.go
Outdated
// where multus delegates to itself and breaks pod networking | ||
multusRegexp, err := regexp.Compile("multus") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently thin_entrypoint creates 00-multus.conf or 00-multus.conflist. So could you please use "00-multus.conf{,list}" to match the multus generated file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, thanks for the input.
Add a check to make sure that we don't use an existing multus configuration file. This avoids creating a situation where multus delegates to itself and breaks pod networking by trying multiple times to create the same intefarce for a pod. Signed-off-by: Thomas Ferrandiz <[email protected]>
ea7f19b
to
4b973ea
Compare
I locally tested simpe go code from your PR code and found that your code still choose 00-multus.conf, hence your code does not fix this issue. Please check your code?
|
File another PR for this issue: #1142 so let me close this PR. |
The original PR without the modification you requested actually worked. After testing, the correct regexp would be |
Add a check to make sure that we don't use an existing multus configuration file. This avoids creating a situation where multus delegates to itself and breaks pod networking by trying multiple times to create the same intefarce for a pod.
This should fix: #1130