-
Notifications
You must be signed in to change notification settings - Fork 196
Block volume skipped when privileged_without_host_devices=true #3132
Comments
Show kata-collect-data.sh details
Meta detailsRunning Runtime is
|
@snir911 is this the same issue you are hitting? |
Relevant document for the logic used with kata privileges: in https://github.com/kata-containers/documentation/blob/master/how-to/privileged.md, updated for this topic here: kata-containers/documentation#529 |
Please note that this issue is not about "gain access to mount any block device from the host". |
Appreciated the details Alex. |
There is |
When i used privileged=true, privileged_without_host_devices=false i hit kata-containers/kata-containers#1342 , any idea why it didn't happen here? BTW in regards to you overlay use case I'd also refer to this option |
We use containerd, not crio. |
Privileged isn’t part of runtime spec, nor is it something that the kata runtime has visibility on. I’m wondering if there’s an issue in containerd side where it removes ALL host devices (including the explicit one you added) when the priv w no-host-devices flag is set, instead of just the ones that were implicitly added w priv flag. |
I think this should resolve the issue you are seeing @sepich : What version of CRI/Containerd are you running? Can you please test w/ latest from release 1.4? |
Confirming that no issue on containerd v1.4.3 |
Description of problem
I'm able to do steps mentioned in
kata-containers/runtime#1354 (comment)
to get local block volume mounted to pod as
/dev/xda
.But when I enable
privileged: true
on the pod - then/dev/xda
disappears.I'm having
privileged_without_host_devices=true
on containerd side.Expected result
Block Volume mounted to privileged Pod should not be filtered out.
Actual result
privileged=true, privileged_without_host_devices=true:
privileged=true, privileged_without_host_devices=false:
privileged=false, privileged_without_host_devices=true:
Further information
I'm trying to get docker working in kata. I was able to create custom kernel with overlayfs support, but it is too slow on
kataShared
mount. So, I want to use local block volume for scratch space. In this case bothprivileged
andblock volume
should be working at the same time. As kata is being explored for untrusted workload, havingprivileged_without_host_devices=false
is not an option in this case.Thank you.
The text was updated successfully, but these errors were encountered: