Comments (8)
Hi @ryanm101
I found a bit similar error here: intel/intel-technology-enabling-for-openshift#113. There are a couple of workarounds in the issue that could work. Could you try them out?
from intel-device-plugins-for-kubernetes.
I reproduced the issue on a VM. Device plugin seems to work without selinux but fails with selinux. In the selinux audit logs there is an entry:
type=AVC msg=audit(1702889339.432:3913): avc: denied { connectto } for pid=16332 comm="intel_gpu_devic" path="/var/lib/kubelet/device-plugins/kubelet.sock" scontext=system_u:system_r:container_device_plugin_t:s0:c620,c968 tcontext=system_u:system_r:container_runtime_t:s0 tclass=unix_stream_socket permissive=0
I'll need to study if this is similar/same as the above linked issue.
EDIT: using setenforce 0
is a workaround. Though, not plausible if selinux is required.
from intel-device-plugins-for-kubernetes.
setenforce 0
corrects it but Nuc1&3 are both enforcing and working fine.
from intel-device-plugins-for-kubernetes.
I followed instructions from the audit entry:
sudo ausearch -c 'intel_gpu_devic' --raw | audit2allow -M intelgpudevice
sudo semodule -X 300 -i intelgpudevice.pp
That seems to allow device plugin to access kubelet. I'm not sure where we should file a bug to: FC, k3s or somewhere else.
from intel-device-plugins-for-kubernetes.
The plugins already run with proper label to have access to kubelet. That policy went into container-selinux package. Is that package installed on your node?
from intel-device-plugins-for-kubernetes.
Those get installed alongside k3s. and are installed.
from intel-device-plugins-for-kubernetes.
I followed instructions from the audit entry:
sudo ausearch -c 'intel_gpu_devic' --raw | audit2allow -M intelgpudevice sudo semodule -X 300 -i intelgpudevice.pp
That seems to allow device plugin to access kubelet. I'm not sure where we should file a bug to: FC, k3s or somewhere else.
Yes this seems to solve it.
from intel-device-plugins-for-kubernetes.
@mregmi do you happen to know the container-selinux version?
from intel-device-plugins-for-kubernetes.
Related Issues (20)
- RFC: SGX EPC limits enforcement using NRI to configure misc controller
- QAT plugin crashes when device is detected, but not fully configured HOT 15
- Improve QAT+Apparmor case HOT 2
- rethink and rework logging
- GPU: Selinux issue with workload HOT 8
- qat-initcontainer does not have LICENSE installed in root/licenses dir HOT 2
- gpu_plugin failing on k3s with kubelet.crt error HOT 7
- Intel SGX nodes not displaying expected EPC status values HOT 1
- Cannot mount /dev/dri in Pod: invalid volume specification HOT 2
- Feature to make variations of init container Dockerfiles for other platforms like OCP HOT 6
- Allow custom tolerations with operator HOT 13
- [QUESTION] Is it possible to differentiate between heterogeneous i915 devices? HOT 9
- Prepare 0.29.0 release HOT 2
- FPGA: Issue with .aocx bitstream parser HOT 3
- QAT: enable 420xx
- QAT VF kernel driver name is c62xvt, not c6xxvt for C62X device HOT 5
- Intel QAT service script issues and restriction HOT 3
- intel device plugins gpu : failed to call webhook, context deadline exceeded HOT 10
- GPU product node label supports only one product type HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intel-device-plugins-for-kubernetes.