Backport: fix(dra): drop redundant /sys hostPath mount breaking container start#2661
Merged
deckhouse-BOaTswain merged 1 commit intoJul 14, 2026
Conversation
…#2638) Description The virtualization-dra USB DaemonSet pods never start — they stay in CrashLoopBackOff on every node, so USB device passthrough is unavailable. The main container is privileged and runs with a read-only root filesystem while also bind-mounting the host /sys. Under containerd this combination makes the runtime fail to set up the /sys/fs/cgroup mount on the read-only rootfs, and the container never starts. A privileged container already gets a read-write /sys from the runtime, so the explicit /sys mount is redundant. It is removed together with its volume and the now-dead /sys entry in the SecurityPolicy host-path allow-list. ------------- Signed-off-by: Nikita Korolev <nikita.korolev@flant.com>
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The
virtualization-draUSB DaemonSet pods never start — they stay inCrashLoopBackOffon every node, so USB device passthrough is unavailable. The main container is privileged and runs with a read-only root filesystem while also bind-mounting the host/sys. Under containerd this combination makes the runtime fail to set up the/sys/fs/cgroupmount on the read-only rootfs, and the container never starts.A privileged container already gets a read-write
/sysfrom the runtime, so the explicit/sysmount is redundant. It is removed together with its volume and the now-dead/sysentry in the SecurityPolicy host-path allow-list.Why do we need it, and what problem does it solve?
Without this, the DRA component cannot run at all, and USB devices cannot be passed through to VMs. Verified on a cluster: a privileged pod with a read-only rootfs and an explicit
/sysmount crash-loops with the cgroup mount error, while the same pod without that mount starts fine and still has read-write access to/sys/bus/usb.What is the expected result?
virtualization-drapods reachRunningon all nodes (noCrashLoopBackOff), and USB device passthrough works.Checklist
Changelog entries