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

Fix DISABLE_MODULES_MANAGEMENT #4363

Closed

Conversation

kvaps
Copy link
Contributor

@kvaps kvaps commented Aug 5, 2024

There is a regression introduced by #4326

Let's move this logic into start-ovn.sh script

@kvaps kvaps force-pushed the fix-DISABLE_MODULES_MANAGEMENT branch from 0651fe7 to f997986 Compare August 5, 2024 06:58
@kvaps kvaps force-pushed the fix-DISABLE_MODULES_MANAGEMENT branch from f997986 to eaab811 Compare August 5, 2024 07:01
@kvaps kvaps marked this pull request as draft August 5, 2024 07:04
Comment on lines +129 to +131
{{- if not .Values.DISABLE_MODULES_MANAGEMENT }}
- SYS_MODULE
{{- end }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kube-ovn-cni will fail to start if we drop capability SYS_MODULE.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah you're right, this makes ovn totally incompatible with Talos Linux, because it is not allowed managing system modules by containers.

https://www.talos.dev/v1.7/learn-more/process-capabilities/

@@ -81,18 +81,7 @@ spec:
{{- if .Values.DPDK }}
command: ["/kube-ovn/start-ovs-dpdk.sh"]
{{- else }}
command:
{{- if .Values.DISABLE_MODULES_MANAGEMENT }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we introduced DISABLE_MODULES_MANAGEMENT? Is it related to https://github.com/kubeovn/kube-ovn/issues/4286?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because it is the only way for running kube-ovn on Talos Linux

### Talos Linux

Copy link

@cybercoder cybercoder Sep 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have deployed my simple ovs daemonset inside talos and works fine. The problem is : modinfo is lying because it fetches the list of known modules by reading the /lib/modules/$(uname -r)/modules.* files, which are usually updated with depmod.

depmod -a can't run in talos and modinfo does not knows about it. openvswitch kernel module already supprted by talos and doesn't need to load it.

@kvaps
Copy link
Contributor Author

kvaps commented Aug 5, 2024

Closed in favor #4365

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

Successfully merging this pull request may close these issues.

3 participants