diff --git a/README.md b/README.md index ad703cc..e6efd6f 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ The guest has no network device. ## The vendored driver `vendor/openshell` holds one crate: OpenShell's VM driver (`openshell-driver-vm`), taken from -NVIDIA/OpenShell release `v0.1.8` (commit `f3d9765`, pinned in [`driver/UPSTREAM.env`](driver/UPSTREAM.env)) and +NVIDIA/OpenShell release `v0.1.9` (commit `ce58cf8`, pinned in [`driver/UPSTREAM.env`](driver/UPSTREAM.env)) and trimmed. It is its own cargo workspace. The other OpenShell crates it uses (`openshell-core` and friends) are **git dependencies on the same commit**, not copies, so building needs network access to GitHub. The changes from upstream are listed in @@ -61,8 +61,8 @@ pinned commit when a release is made. `mise run driver:check-pin` fails if the r ### Compatibility The supervisor protocol is not stable across OpenShell revisions, so the gateway must come -from a revision compatible with the one in `driver/UPSTREAM.env`, currently the `v0.1.8` -release, so run a `v0.1.8` gateway. Other releases have not been checked. `install.sh` prints +from a revision compatible with the one in `driver/UPSTREAM.env`, currently the `v0.1.9` +release, so run a `v0.1.9` gateway. Other releases have not been checked. `install.sh` prints the commit the installed driver was built from and the gateway's reported version, and leaves the comparison to you. diff --git a/driver/UPSTREAM.env b/driver/UPSTREAM.env index e154be3..0cf8478 100644 --- a/driver/UPSTREAM.env +++ b/driver/UPSTREAM.env @@ -8,8 +8,8 @@ # driver crate from it (see crates/openshell-driver-vm/README.md), then change the commit here # and the `rev` in vendor/openshell/Cargo.toml. OPENSHELL_REPO=https://github.com/NVIDIA/OpenShell -OPENSHELL_COMMIT=f3d976590d3eb1379690a2abaf0f0e26c21d487d -OPENSHELL_TAG=v0.1.8 +OPENSHELL_COMMIT=ce58cf8e9b953281352d98a637e41616295b1318 +OPENSHELL_TAG=v0.1.9 # Optional: build the embedded runtime (host supervisor, guest sandbox, guest init) from # another revision than the pin above, to try an OpenShell change against an unchanged diff --git a/vendor/openshell/Cargo.lock b/vendor/openshell/Cargo.lock index e6aab90..9670324 100644 --- a/vendor/openshell/Cargo.lock +++ b/vendor/openshell/Cargo.lock @@ -90,7 +90,7 @@ version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" dependencies = [ - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -101,7 +101,7 @@ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" dependencies = [ "anstyle", "once_cell_polyfill", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -901,7 +901,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -2208,7 +2208,7 @@ version = "0.50.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" dependencies = [ - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -2332,7 +2332,7 @@ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" [[package]] name = "openshell-core" version = "0.0.0" -source = "git+https://github.com/NVIDIA/OpenShell?rev=f3d976590d3eb1379690a2abaf0f0e26c21d487d#f3d976590d3eb1379690a2abaf0f0e26c21d487d" +source = "git+https://github.com/NVIDIA/OpenShell?rev=ce58cf8e9b953281352d98a637e41616295b1318#ce58cf8e9b953281352d98a637e41616295b1318" dependencies = [ "async-trait", "base64 0.22.1", @@ -2373,7 +2373,7 @@ dependencies = [ [[package]] name = "openshell-crypto" version = "0.0.0" -source = "git+https://github.com/NVIDIA/OpenShell?rev=f3d976590d3eb1379690a2abaf0f0e26c21d487d#f3d976590d3eb1379690a2abaf0f0e26c21d487d" +source = "git+https://github.com/NVIDIA/OpenShell?rev=ce58cf8e9b953281352d98a637e41616295b1318#ce58cf8e9b953281352d98a637e41616295b1318" dependencies = [ "aws-lc-rs", "jsonwebtoken", @@ -2440,7 +2440,7 @@ dependencies = [ [[package]] name = "openshell-extension-core" version = "0.0.0" -source = "git+https://github.com/NVIDIA/OpenShell?rev=f3d976590d3eb1379690a2abaf0f0e26c21d487d#f3d976590d3eb1379690a2abaf0f0e26c21d487d" +source = "git+https://github.com/NVIDIA/OpenShell?rev=ce58cf8e9b953281352d98a637e41616295b1318#ce58cf8e9b953281352d98a637e41616295b1318" dependencies = [ "hyper-util", "serde", @@ -2453,7 +2453,7 @@ dependencies = [ [[package]] name = "openshell-isolation-interface" version = "0.0.0" -source = "git+https://github.com/NVIDIA/OpenShell?rev=f3d976590d3eb1379690a2abaf0f0e26c21d487d#f3d976590d3eb1379690a2abaf0f0e26c21d487d" +source = "git+https://github.com/NVIDIA/OpenShell?rev=ce58cf8e9b953281352d98a637e41616295b1318#ce58cf8e9b953281352d98a637e41616295b1318" dependencies = [ "openshell-core", "serde", @@ -2465,7 +2465,7 @@ dependencies = [ [[package]] name = "openshell-ocsf" version = "0.0.0" -source = "git+https://github.com/NVIDIA/OpenShell?rev=f3d976590d3eb1379690a2abaf0f0e26c21d487d#f3d976590d3eb1379690a2abaf0f0e26c21d487d" +source = "git+https://github.com/NVIDIA/OpenShell?rev=ce58cf8e9b953281352d98a637e41616295b1318#ce58cf8e9b953281352d98a637e41616295b1318" dependencies = [ "chrono", "serde", @@ -2479,7 +2479,7 @@ dependencies = [ [[package]] name = "openshell-otel" version = "0.0.0" -source = "git+https://github.com/NVIDIA/OpenShell?rev=f3d976590d3eb1379690a2abaf0f0e26c21d487d#f3d976590d3eb1379690a2abaf0f0e26c21d487d" +source = "git+https://github.com/NVIDIA/OpenShell?rev=ce58cf8e9b953281352d98a637e41616295b1318#ce58cf8e9b953281352d98a637e41616295b1318" dependencies = [ "async-trait", "bytes", @@ -2511,7 +2511,7 @@ dependencies = [ [[package]] name = "openshell-otel-test-support" version = "0.0.0" -source = "git+https://github.com/NVIDIA/OpenShell?rev=f3d976590d3eb1379690a2abaf0f0e26c21d487d#f3d976590d3eb1379690a2abaf0f0e26c21d487d" +source = "git+https://github.com/NVIDIA/OpenShell?rev=ce58cf8e9b953281352d98a637e41616295b1318#ce58cf8e9b953281352d98a637e41616295b1318" dependencies = [ "bytes", "http", @@ -2535,7 +2535,7 @@ dependencies = [ [[package]] name = "openshell-policy-schema" version = "0.0.0" -source = "git+https://github.com/NVIDIA/OpenShell?rev=f3d976590d3eb1379690a2abaf0f0e26c21d487d#f3d976590d3eb1379690a2abaf0f0e26c21d487d" +source = "git+https://github.com/NVIDIA/OpenShell?rev=ce58cf8e9b953281352d98a637e41616295b1318#ce58cf8e9b953281352d98a637e41616295b1318" dependencies = [ "miette", "noyalib", @@ -2548,7 +2548,7 @@ dependencies = [ [[package]] name = "openshell-sandbox-backend" version = "0.0.0" -source = "git+https://github.com/NVIDIA/OpenShell?rev=f3d976590d3eb1379690a2abaf0f0e26c21d487d#f3d976590d3eb1379690a2abaf0f0e26c21d487d" +source = "git+https://github.com/NVIDIA/OpenShell?rev=ce58cf8e9b953281352d98a637e41616295b1318#ce58cf8e9b953281352d98a637e41616295b1318" dependencies = [ "async-trait", "bytes", @@ -3386,7 +3386,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -3444,7 +3444,7 @@ dependencies = [ "security-framework", "security-framework-sys", "webpki-root-certs", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -3798,7 +3798,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e" dependencies = [ "libc", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -4151,7 +4151,7 @@ dependencies = [ "getrandom 0.4.2", "once_cell", "rustix", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -4161,7 +4161,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "230a1b821ccbd75b185820a1f1ff7b14d21da1e442e22c0863ea5f08771a8874" dependencies = [ "rustix", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -4925,7 +4925,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] diff --git a/vendor/openshell/Cargo.toml b/vendor/openshell/Cargo.toml index 5d4543f..59f1888 100644 --- a/vendor/openshell/Cargo.toml +++ b/vendor/openshell/Cargo.toml @@ -17,12 +17,12 @@ repository = "https://github.com/NVIDIA/OpenShell" # The rest of OpenShell, from the revision driver/UPSTREAM.env names (keep the two in sync: # `mise run driver:check-pin` checks). The host supervisor and guest binaries the driver # embeds are built from that revision too. -openshell-core = { git = "https://github.com/NVIDIA/OpenShell", rev = "f3d976590d3eb1379690a2abaf0f0e26c21d487d", default-features = false } -openshell-isolation-interface = { git = "https://github.com/NVIDIA/OpenShell", rev = "f3d976590d3eb1379690a2abaf0f0e26c21d487d" } -openshell-sandbox-backend = { git = "https://github.com/NVIDIA/OpenShell", rev = "f3d976590d3eb1379690a2abaf0f0e26c21d487d" } -openshell-otel = { git = "https://github.com/NVIDIA/OpenShell", rev = "f3d976590d3eb1379690a2abaf0f0e26c21d487d" } -openshell-otel-test-support = { git = "https://github.com/NVIDIA/OpenShell", rev = "f3d976590d3eb1379690a2abaf0f0e26c21d487d" } -openshell-crypto = { git = "https://github.com/NVIDIA/OpenShell", rev = "f3d976590d3eb1379690a2abaf0f0e26c21d487d", default-features = false, features = ["aws-lc"] } +openshell-core = { git = "https://github.com/NVIDIA/OpenShell", rev = "ce58cf8e9b953281352d98a637e41616295b1318", default-features = false } +openshell-isolation-interface = { git = "https://github.com/NVIDIA/OpenShell", rev = "ce58cf8e9b953281352d98a637e41616295b1318" } +openshell-sandbox-backend = { git = "https://github.com/NVIDIA/OpenShell", rev = "ce58cf8e9b953281352d98a637e41616295b1318" } +openshell-otel = { git = "https://github.com/NVIDIA/OpenShell", rev = "ce58cf8e9b953281352d98a637e41616295b1318" } +openshell-otel-test-support = { git = "https://github.com/NVIDIA/OpenShell", rev = "ce58cf8e9b953281352d98a637e41616295b1318" } +openshell-crypto = { git = "https://github.com/NVIDIA/OpenShell", rev = "ce58cf8e9b953281352d98a637e41616295b1318", default-features = false, features = ["aws-lc"] } # Async runtime tokio = { version = "1.53.3", features = ["full"] } diff --git a/vendor/openshell/crates/openshell-driver-vm/src/driver.rs b/vendor/openshell/crates/openshell-driver-vm/src/driver.rs index 7a934fd..1139479 100644 --- a/vendor/openshell/crates/openshell-driver-vm/src/driver.rs +++ b/vendor/openshell/crates/openshell-driver-vm/src/driver.rs @@ -5416,6 +5416,7 @@ pub async fn run_image_preparation_worker(request_path: &Path) -> Result<(), Str preparation::watch_parent(request.parent_pid)?; tracing_subscriber::fmt() .with_writer(std::io::stderr) + .with_ansi(openshell_core::color::stderr_ansi()) .with_env_filter(request.config.log_level.clone()) .try_init() .map_err(|error| format!("initialize image preparation logging: {error}"))?; diff --git a/vendor/openshell/crates/openshell-driver-vm/src/main.rs b/vendor/openshell/crates/openshell-driver-vm/src/main.rs index 89ecc92..f054f73 100644 --- a/vendor/openshell/crates/openshell-driver-vm/src/main.rs +++ b/vendor/openshell/crates/openshell-driver-vm/src/main.rs @@ -316,6 +316,7 @@ async fn main() -> Result<()> { gateway_name: args.gateway_name.as_deref(), service_version: VERSION, log_level: &args.log_level, + ansi: openshell_core::color::stdout_ansi(), }, ); args.otlp.warn_deprecated();