Skip to content

fix(supervisor): add configurable log directory - #4982

Open
ericcurtin wants to merge 2 commits into
ai-openshell:mainfrom
ericcurtin:fix/3855-supervisor-log-dir/ericcurtin
Open

ericcurtin wants to merge 2 commits into
ai-openshell:mainfrom
ericcurtin:fix/3855-supervisor-log-dir/ericcurtin

Conversation

@ericcurtin

@ericcurtin ericcurtin commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add --log-dir (OPENSHELL_LOG_DIR) to the supervisor, default /var/log.

Related Issue

Closes #3855

The VM driver part moves to ai-openshell/desktop (#6167).

Changes

  • Supervisor log dir is configurable; one shared default replaces three /var/log literals.
  • /v1/denials reads from the configured dir.
  • Docs updated.

Release Notes

The supervisor log directory is configurable.

Testing

  • Checks appropriate to the affected code and behavior pass
  • Unit tests added/updated (if applicable)
  • E2E tests added/updated (if applicable)

Ran cargo fmt, cargo clippy -D warnings and unit tests for the supervisor and network crates.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

@copy-pr-bot

copy-pr-bot Bot commented Oct 27, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@ericcurtin

Copy link
Copy Markdown
Contributor Author

@krishicks @TaylorMutch PTAL, and /ok to test 8e5c5f3257bbfee475c38596fe26a21cddf59206 if it looks good. Thank you!

@ericcurtin

Copy link
Copy Markdown
Contributor Author

@alangou @shailendra-nv PTAL when you get a chance. Thank you!

@ericcurtin

Copy link
Copy Markdown
Contributor Author

Merged main.

@shailendra-nv

Copy link
Copy Markdown
Collaborator

The change looks consistent and is fixing the bug. Looks fine to me.

@ericcurtin

Copy link
Copy Markdown
Contributor Author

@drew @johntmyers Merged main. PTAL, and /ok to test 4d661509876952387cffec80fd760b160d0d621c if it looks good. Thank you!

shailendra-nv
shailendra-nv previously approved these changes Nov 3, 2026

Copy link
Copy Markdown
Collaborator

/ok to test 4d66150

@ericcurtin

Copy link
Copy Markdown
Contributor Author

@elezar PTAL when you get a chance, this is approved with green CI and only needs a merge. Thank you!

@ericcurtin

Copy link
Copy Markdown
Contributor Author

@shailendra-nv @johntmyers I merged main to fix a docs conflict, which dropped the approval. PTAL when you get a chance, and /ok to test a85e479527791f9e0d3e9617c4f4d5bccbb70aff if it looks good. Thank you!

@ericcurtin

Copy link
Copy Markdown
Contributor Author

@TaylorMutch @purp PTAL when you get a chance. Thank you!

@ericcurtin

Copy link
Copy Markdown
Contributor Author

@shailendra-nv @drew PTAL when you get a chance, and /ok to test a85e479527791f9e0d3e9617c4f4d5bccbb70aff if it looks good. Thank you!

@ericcurtin

Copy link
Copy Markdown
Contributor Author

@shailendra-nv @johntmyers PTAL when you get a chance, and /ok to test a85e479527791f9e0d3e9617c4f4d5bccbb70aff if it looks good. Thank you!

@ericcurtin

Copy link
Copy Markdown
Contributor Author

Merged main to start CI (05cd2d5). @shailendra-nv @drew PTAL, and could you please approve the workflow runs? Thank you!

VM sandboxes log to their state dir instead of a shared /var/log.

Signed-off-by: Eric Curtin <eric.curtin@docker.com>
@ericcurtin
ericcurtin force-pushed the fix/3855-supervisor-log-dir/ericcurtin branch from 05cd2d5 to 1e77eb9 Compare November 27, 2026 10:08
@ericcurtin

Copy link
Copy Markdown
Contributor Author

@johntmyers @elezar PTAL when you get a chance, and /ok to test 1e77eb97aed7048db234a431bb099e88f4e0764a if it looks good. Could you please also approve the workflow runs? Thank you!

@ericcurtin

Copy link
Copy Markdown
Contributor Author

@SDAChess @matthewgrossman PTAL when you get a chance, and /ok to test 1e77eb97aed7048db234a431bb099e88f4e0764a if it looks good. Thank you!

@elezar

elezar commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Heads-up: this PR changes both files in paths that are frozen in this repository while the Docker, Podman and VM drivers move to ai-openshell/desktop, and files that stay in core. The move is tracked in #5200, and this PR in #6167.

Frozen files in this PR: crates/openshell-driver-vm/README.md, crates/openshell-driver-vm/src/driver.rs.

The Frozen Paths check (#6124) fails PRs that change those files, so this PR has to be split into a core part and a desktop part that land separately. The desktop part is to be ported to desktop with your authorship preserved.

Signed-off-by: Eric Curtin <eric.curtin@docker.com>
@ericcurtin

Copy link
Copy Markdown
Contributor Author

@elezar thanks. Split done: 5a7e2d3 drops the frozen files from this PR, so it only touches core now. Desktop part for the port is the crates/openshell-driver-vm/src/driver.rs hunks (private logs/ dir plus OPENSHELL_LOG_DIR env) and the README.md sentence, both in 1e77eb9, plus the VM row in docs/observability/accessing-logs.mdx. @elezar @shailendra-nv PTAL when you get a chance, and /ok to test 5a7e2d3aeda3f1fd0e13549f1a1982ccdb28ef8d if it looks good. Thank you!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ocsf_json_enabled silently writes nothing with the MicroVM driver (supervisor cannot open /var/log)

3 participants