Skip to content

Make DRA_CPUSET env parsing fail closed in NRI #185

Description

@AutuSnow

CreateContainer currently logs DRA_CPUSET_* parsing errors but continues as if the container had no DRA CPU allocation, which makes it fall back to the shared CPU pool.

Synchronize has a similar recovery concern: if an existing container has a malformed DRA_CPUSET_* env, the container is skipped while rebuilding allocation state.

This should not happen in the normal path because the env is generated by this driver through CDI, but fail-closed behavior would be safer for corrupted CDI specs, runtime anomalies, or future env contract changes.

Related:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions