Repository navigation
fix(sdk): wait for a managed gateway before the apply-time read - #13419
Merged
Merged
Conversation
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.
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Failure
On rootless Podman 5.8.8, applying
examples/managed-podman.yamlcreated the gateway and then failed:The gateway itself was healthy, listening on its endpoint within a second. In the single root (#13286),
data.openshell_gateway.applyruns 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
pastanetworking report it requires first appeared there, and that Ubuntu 24.04's Podman 4.9.3 fails the prerequisite.Validation
the_apply_time_gateway_read_waits_for_a_managed_gatewayfailed before the change (Nullinstead of90, for Podman) and passes for Podman and Docker.pasta: with the rebuilt bundle,nemoclaw applyof 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 cipasses locally: 1,571 unit tests and 153 lifecycle tests.