Skip to content

fix(sdk): wait for a managed gateway before the apply-time read - #13419

Merged
cv merged 1 commit into
v1from
fix/podman-gateway-apply-wait
Oct 18, 2026
Merged

cv merged 1 commit into
v1from
fix/podman-gateway-apply-wait

Conversation

@cv

@cv cv commented Oct 18, 2026

Copy link
Copy Markdown
Collaborator

Failure

On rootless Podman 5.8.8, applying examples/managed-podman.yaml created the gateway and then failed:

Gateway capability observation failed
observation transport failed

The gateway itself was healthy, listening on its endpoint within a second. In the single root (#13286), data.openshell_gateway.apply runs during apply right after the gateway starts, with no wait. Docker gateways have a separate readiness check that holds the read back until the gateway listens; Podman gateways have none. So the read raced the gateway's startup, failed on its first attempt, and didn't retry. Run on its own against the running gateway, the same read succeeded.

Decision

For a managed gateway, the apply-time read waits up to 90 seconds, as the plan-time read already does. The wait ends as soon as the gateway answers, so on Docker, where the readiness check runs first, it costs nothing. External gateways are unchanged.

The docs now say that managed rootless Podman needs Podman 5 or later, since the pasta networking report it requires first appeared there, and that Ubuntu 24.04's Podman 4.9.3 fails the prerequisite.

Validation

  • New test: the_apply_time_gateway_read_waits_for_a_managed_gateway failed before the change (Null instead of 90, for Podman) and passes for Podman and Docker.
  • Live, on rootless Podman 5.8.8 with pasta: with the rebuilt bundle, nemoclaw apply of the Podman example, with a fresh UID and the Hermes image, completes: gateway, workspace, provider, sandbox and agent. Destroy then deleted the agent, sandbox and gateway, and the documented removal procedure left nothing behind.
  • cargo ci passes locally: 1,571 unit tests and 153 lifecycle tests.

The apply-time gateway read ran right after a Podman gateway started, with
no wait, and raced its startup; Docker's readiness check had hidden this.
For managed gateways it now waits up to 90 seconds, as the plan-time read
does. Document that managed rootless Podman needs Podman 5.
@cv
cv enabled auto-merge (squash) October 18, 2026 13:49
@cv
cv merged commit ce555cc into v1 Oct 18, 2026
@cv
cv deleted the fix/podman-gateway-apply-wait branch October 18, 2026 14:02
@github-actions

Copy link
Copy Markdown
Contributor

@wscurran wscurran added area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery bug-fix PR fixes a bug or regression platform: container Affects Docker, containerd, Podman, or images v1 NemoClaw v1 branch 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: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery bug-fix PR fixes a bug or regression platform: container Affects Docker, containerd, Podman, or images v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants