Repository navigation
Conversation
|
🌿 Preview your docs: https://nvidia-preview-pr-5894.docs.buildwithfern.com/openshell |
| matrix: | ||
| include: | ||
| - triple: x86_64-unknown-linux-gnu | ||
| runner: linux-amd64-cpu8 |
| - triple: x86_64-unknown-linux-gnu | ||
| runner: linux-amd64-cpu8 | ||
| - triple: aarch64-unknown-linux-gnu | ||
| runner: linux-arm64-cpu8 |
A launched driver logs before the gateway has sent its telemetry settings. install_deferred_driver_tracing installs console logging at start with an empty export slot, and DeferredDriverTracing::enable_export fills it once. The span filter stays outside the slot because a per-layer filter added by a reload is never registered with the subscriber. Signed-off-by: Evan Lezar <elezar@nvidia.com>
A gateway-launched driver starts with only its socket, the gateway's PID and the log level, and serves the DriverLaunch service from proto/driver_launch.proto at once. GetLaunchInfo reports the driver's name, version and protocol version; Configure carries the gateway context, the staged network trust artifact, typed image overrides, telemetry and the operator's driver table as opaque TOML. openshell-driver-launch provides the generated types, a Configure service that applies the request at most once and allows a retry after a failure, and a ComputeDriver wrapper that returns UNAVAILABLE until then. Signed-off-by: Evan Lezar <elezar@nvidia.com>
openshell-driver-sdk holds what launched drivers share on top of the launch protocol: applying Configure telemetry to supervisor OTLP settings and the driver's own export, loading and re-verifying the gateway's staged network trust artifact, stopping with the gateway, and the bounded JSON results of the probe and preflight subcommands. The VM driver's network trust loader moves here unchanged. Signed-off-by: Evan Lezar <elezar@nvidia.com>
…gure openshell-driver-vm serve binds the socket with only --bind-socket, --expected-peer-pid and --log-level, keeps its peer PID check, and returns UNAVAILABLE from ComputeDriver until Configure succeeds. Configure decodes the operator's [openshell.drivers.vm] table, which the driver now owns and validates, applies the gateway context, telemetry and network trust artifact, and defaults the sandbox endpoint to the gateway's listener as before. A rejected Configure leaves the driver running so the gateway can retry. preflight reads the same request from stdin and validates it without starting the driver. The standalone flag mode is unchanged. Signed-off-by: Evan Lezar <elezar@nvidia.com>
The gateway starts openshell-driver-vm serve with only the socket, its own PID and the log level, checks GetLaunchInfo, and sends one Configure request built by a generic launcher: the VM table serialized unchanged as opaque TOML, the gateway context, the staged network trust artifact, telemetry and typed image overrides. The OTLP and driver flags it used to pass on argv are gone. config preflight now validates the VM table by running the driver's preflight with the same request on stdin, so validation stays with the driver that owns the table. The launcher only runs a driver binary from a trusted path and stops the gateway if a launched driver exits. Signed-off-by: Evan Lezar <elezar@nvidia.com>
openshell-driver-podman serve binds the socket with only --bind-socket, --expected-peer-pid and --log-level, installs console tracing at once, and builds the driver inside Configure from the operator's [openshell.drivers.podman] table, the gateway context, telemetry, the staged network trust artifact and typed image overrides. Until then ComputeDriver returns UNAVAILABLE; a rejected Configure leaves the driver running so the gateway can retry. probe reports whether a Podman socket is reachable, for gateway auto-detection, and preflight validates a Configure request read from stdin without starting the driver. The standalone flag mode and the in-process library are unchanged. Signed-off-by: Evan Lezar <elezar@nvidia.com>
The gateway no longer links openshell-driver-podman. It starts openshell-driver-podman serve and configures it through the same launcher as the VM driver, sending the Podman table unchanged as opaque TOML with typed image overrides, the gateway context, telemetry and the staged network trust artifact. Auto-detection runs the driver's probe, keeping the existing order and treating a missing, untrusted, failing or slow binary as unavailable. config preflight validates the Podman table with the driver's preflight. Signed-off-by: Evan Lezar <elezar@nvidia.com>
…ivers Document where the gateway finds driver binaries and which it refuses, the serve bootstrap and Configure call, the opaque driver tables, fail-fast on a driver exit, Podman probe detection, and preflight. Signed-off-by: Evan Lezar <elezar@nvidia.com>
The gateway now launches openshell-driver-podman instead of linking it, so build the binary for Linux and install it next to the VM driver in /usr/libexec/openshell in the Debian and RPM packages and the test machine artifacts. Signed-off-by: Evan Lezar <elezar@nvidia.com>
elezar
force-pushed
the
feat/5385-driver-launch-configure/elezar
branch
from
November 23, 2026 13:28
3d0735a to
f1fbdc6
Compare
Compatibility review (advisory)New or updated breaking changes; see the full report for all findings. 1. cli — No explicit risk acceptance found
Review details
Advisory review; publication gates are unchanged. |
This branch has not been deployed
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.
Summary
Launch the VM and Podman compute drivers as separate processes configured over a
DriverLaunchgRPC service (GetLaunchInfo,Configure) instead of a startup document. This is an alternative to #5838, built onmainas nine commits ordered for review.Related Issue
Closes #5385
Related: #5384, #5200
Changes
openshell-otel:install_deferred_driver_tracinginstalls console tracing at once and enables OTLP export whenConfiguresupplies telemetry.proto/driver_launch.protoandopenshell-driver-launch: launch protocol, once-onlyConfigurewith retry after failure, and aComputeDriverwrapper that returnsUNAVAILABLEuntil configured.openshell-driver-sdk: sharedConfiguretelemetry helpers, staged network trust artifact loader, parent-death handling, andprobe/preflightresults.serve --bind-socket --expected-peer-pid --log-level, configuration fromConfigure, andpreflightreading the encoded request from stdin. Podman addsprobe.probe, andconfig preflightuses each driver'spreflight.Deferred: enforcing
--expected-peer-pidin shared code (VM keeps its own check) and driver restart after a crash.Release Notes
The gateway now runs the Podman driver as a separate
openshell-driver-podmanbinary, installed next toopenshell-driver-vm.Testing
cargo fmt --checkandcargo clippy --all-targets -D warningspass on every commit for the changed cratescargo testpasses for gateway, server, VM, Podman, driver SDK, driver launch and otel;tasks/scripts/test-packaging-assets.shpassesserve/Configureintegration tests against the real VM and Podman binaries and a late-export test for deferred tracingChecklist