Skip to content

fix(runtime): replace a stale status as soon as the runtime takes its storage - #13659

Merged
cv merged 2 commits into
v1from
fix/runtime-initializing-status
Oct 23, 2026
Merged

cv merged 2 commits into
v1from
fix/runtime-initializing-status

Conversation

@cv

@cv cv commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

Failure

The vLLM and Ollama runtimes write their status to /data/status.json, which persists on retained storage. A new container wrote nothing until its service reached a later phase, so a ready left by an earlier container could be read as current. That affects NemoClaw's own Docker readiness, and any platform that reads the status.

Separately, docs/inference.md told other platforms to probe GET /health. That's right for vLLM, but Ollama answers HTTP before the runtime has pulled its model.

#13487 found both. That PR is closed in favor of this smaller change.

Decision

  • Both runtimes record initializing as soon as they hold the storage lock, through a shared begin helper, replacing any status an earlier container left behind. Both of the provider's status readers already accept initializing as not ready (host_container_health.rs, services/status.rs).
  • docs/inference.md points platforms at the servers' own checks: GET /health for vLLM, an exec probe running ollama show MODEL for Ollama, and a restart policy that doesn't restart the model after memory protection stops it.
  • No NemoClaw readiness command and no hold mode: vLLM and Ollama already answer readiness, and restarting is the platform's decision.

Validation

  • New test a_started_runtime_replaces_a_ready_status_left_by_an_earlier_container failed before the fix (the helper didn't exist), and passes now.
  • cargo ci passed, including the bundle and lifecycle steps.
  • cargo ci live-docker passed all 9 tests, including managed Ollama's Docker readiness.
  • fern check reported 0 errors.

Thanks to @gaveezy for #13487, which found both problems.

@cv
cv enabled auto-merge (squash) October 23, 2026 09:02
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 940f64f into v1 Oct 23, 2026
54 checks passed
@cv
cv deleted the fix/runtime-initializing-status branch October 23, 2026 09:18
@wscurran wscurran added v1 NemoClaw v1 branch 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 provider: ollama Ollama local model provider behavior provider: vllm vLLM local or hosted provider behavior labels Oct 27, 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 bug-fix PR fixes a bug or regression 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