Skip to content

cgroup: skip empty Docker BlockIO when blkio controller is missing - #17537

Merged
copybara-service[bot] merged 2 commits into
masterfrom
test/cl1019799700
Nov 14, 2026
Merged

copybara-service[bot] merged 2 commits into
masterfrom
test/cl1019799700

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

cgroup: skip empty Docker BlockIO when blkio controller is missing

Description

blockIO.skip currently fails whenever spec.BlockIO != nil, even if every
field is the zero/empty default. Docker always populates blockIO (as {}
or {"weight":0}) when no I/O limits are requested, so runsc fails to start
on hosts that lack the blkio cgroup controller (CONFIG_BLK_CGROUP=n).

This change mirrors the cpuset optional-controller pattern: skip when BlockIO
is nil/empty/weight-0, and still error when real limits are set.

Fixes #14738

AI disclosure

Assisted-by: Cursor Agent. I reviewed and validated the change against the
issue reproducer and the existing TestOptional coverage.

Testing

Docker always emits a BlockIO object even when no I/O limits are set
(empty object, or Weight=0). Treat those as "no limits" so runsc can
start on hosts without CONFIG_BLK_CGROUP.

Fixes #14738

Assisted-by: Cursor Agent
@copybara-service copybara-service Bot added the exported Issue was exported automatically label Nov 12, 2026
@copybara-service
copybara-service Bot force-pushed the test/cl1019799700 branch 5 times, most recently from 2fb5d7e to 7aade47 Compare November 14, 2026 11:34
@copybara-service
copybara-service Bot merged commit e45d53c into master Nov 14, 2026
1 check passed
@copybara-service
copybara-service Bot deleted the test/cl1019799700 branch November 14, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

runsc Doesn't Skip Empty BlockIO

2 participants