Skip to content

fix(sdk): declare the security option Docker adds for host IPC - #13435

Merged
cv merged 1 commit into
v1from
fix/host-ipc-security-opts
Oct 19, 2026
Merged

cv merged 1 commit into
v1from
fix/host-ipc-security-opts

Conversation

@cv

@cv cv commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

Failure

A managed vLLM or Ollama service with container.ipc: host planned a replacement on every apply after its first, even with no change. Docker adds label=disable to the security options of any container that shares the host's IPC namespace. The graph declared only no-new-privileges, and the Docker provider treats security_opts as forcing replacement. So every later plan wanted to replace a healthy model container. With the default updatePolicy: Preserve, plan and apply then refuse; with Recreate, every apply would restart the model.

It surfaced on a DGX Spark running one of the GTC DC templates (Nemotron 3 Super with ipc: host). Every Station and Spark vLLM example that sets host IPC is affected. Confirmed with plain Docker:

Container Recorded security options
Default IPC ["no-new-privileges"]
--ipc host ["no-new-privileges","label=disable"]

Decision

When a service uses host IPC, the graph declares label=disable along with no-new-privileges, matching what Docker records. Containers without host IPC are unchanged.

Validation

  • A new unit test checks both cases. It failed before the change (["no-new-privileges"] against the expected pair) and passes after.
  • cargo ci passes locally: 1,601 unit tests and 149 lifecycle tests.
  • Re-planning the running DGX Spark deployment against a bundle with this change no longer plans to replace the model container.

Docker adds label=disable to a container sharing the host IPC namespace.
Declaring it keeps managed services with host IPC from planning a replacement
on every apply.
@cv
cv enabled auto-merge (squash) October 19, 2026 00:01
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 1d6166f into v1 Oct 19, 2026
@cv
cv deleted the fix/host-ipc-security-opts branch October 19, 2026 00:15
cv added a commit that referenced this pull request Oct 19, 2026
## Failure

The ARM64 vLLM runtime (`runtimes/vllm`) built on an upstream
`vllm/vllm-openai` image published under the tag `qwen38-flash-next`,
which isn't a vLLM release. Whether it served the GTC DC templates'
model, Nemotron 3 Super 120B NVFP4, was untested. The GTC DC README
called all nine templates "planned configurations", and still said apply
fails an agent health check that no longer exists.

## Decision

- **The runtime base** is the vLLM v0.32.0 release (today's latest),
pinned by its multi-platform digest. `runtimes/qwen38` keeps its own
base, built for that model.
- **The GTC DC README** records results from a DGX Spark run of the
Spark templates, and drops the stale health-check sentence. The three
Spark templates' headers say what was verified.
- **Not changed:** the AMD64 runtime (`runtimes/vllm-amd64`, vLLM
0.27.1), because it can't be verified on AMD64 GPU hardware here.

## Validation

On a DGX Spark, with this runtime image and agent images built from
`v1`, plus #13434 and #13435:

- **Model service:** the Hermes template applied in about 72 minutes,
mostly a 74.8 GiB download at about 20 MiB/s and a 15-minute load. vLLM
v0.32.0 used FlashInfer's NVFP4 kernels on the GB10. Requests without
the key were refused with `401`, and requests with it succeeded.
- **Hermes:** a short answer in 4 seconds once warm; a terminal tool
call returned the exact hash in 17 seconds; a five-point itinerary in
14.5 seconds, within the 1,024-token limit.
- **Deep Agents:** switching the deployment's harness replaced only the
sandbox, in 28 seconds, while the model kept serving. Short answers took
5–6 seconds, the itinerary 18 seconds, and a write-then-read file task
with three tool calls 29 seconds, returning the file's contents.
- **OpenClaw:** agent start fails, as tracked in #13372. Inside the
sandbox, `setpriv` reports "initgroups failed: Operation not permitted"
(NVIDIA/NeMo-Fabric#430).
- **Destroy** took 9 seconds and kept the model cache, gateway storage
and credentials.

The run found two bugs, fixed separately:

- **#13434:** the SDK refused harness and image changes that should
replace the sandbox.
- **#13435:** services with host IPC planned a replacement on every
reapply.

`cargo ci` passes locally: 1,598 unit tests and 149 lifecycle tests.
@wscurran wscurran added area: local-models Local model providers, downloads, launch, or connectivity area: providers Inference provider integrations and provider behavior bug-fix PR fixes a bug or regression platform: container Affects Docker, containerd, Podman, or images provider: ollama Ollama local model provider behavior provider: vllm vLLM local or hosted provider behavior v1 NemoClaw v1 branch area: security Security controls, permissions, secrets, or hardening labels Oct 23, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: local-models Local model providers, downloads, launch, or connectivity area: providers Inference provider integrations and provider behavior area: security Security controls, permissions, secrets, or hardening bug-fix PR fixes a bug or regression platform: container Affects Docker, containerd, Podman, or images provider: ollama Ollama local model provider behavior provider: vllm vLLM local or hosted provider behavior v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants