Skip to content

fix(images): probe supervisor readiness - #6020

Merged
SDAChess merged 2 commits into
fix/6016-resource-defaults/SDAChessfrom
fix/6017-supervisor-healthcheck/SDAChess
Nov 27, 2026
Merged

SDAChess merged 2 commits into
fix/6016-resource-defaults/SDAChessfrom
fix/6017-supervisor-healthcheck/SDAChess

Conversation

@SDAChess

@SDAChess SDAChess commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Declare a shell-free supervisor image HEALTHCHECK using the existing native readiness-socket probe. Docker and Podman keep their explicit probes; Kubernetes keeps its TCP probes.

Stack: #6018 → #6020 → #6021 (native stack #6037, based on main).

Related Issue

Closes #6017

Changes

  • Probe /run/openshell/health.sock every 30 seconds, with a 5-second timeout, 60-second start period and three retries.
  • Document the explicit dedicated readiness-socket flag, Unix-socket probe overrides, and disabling the inherited check for direct shared-supervisor/network-proxy launches.

Release Notes

Direct launches inherit the dedicated-supervisor readiness check. Configure the readiness socket explicitly; override the Unix-socket path or disable the inherited check for shared-supervisor/network-proxy launches.

Testing

  • Built the amd64 supervisor image through mise run build:docker:supervisor using the published binary (packaging-only change).

  • Inspected the exact exec-form image healthcheck and non-root user.

  • Native probe against an isolated socket harness: live listener succeeds; missing/stale sockets fail; the Podman alternate socket succeeds. Containers ran non-root with read-only root, no network and all capabilities dropped.

  • Trivy confirms supervisor DS-0026 is removed. Gateway and sandbox findings remain visible because they have no single safe image-default endpoint.

  • Documentation build and Markdown lint pass.

  • Combined-stack Docker, Podman and Kubernetes E2E pass on ci(trivy): remove obsolete bootstrap manifests #6021 at fb6dfd608 (CI run).

  • Restored the native stack on main at 2cd4f5384; range-diff confirms every patch is unchanged. The combined tree matches the previously validated tree apart from two upstream CI workflow changes. Local validation: 524 gateway / 7 workspace tests, complete Helm tests, lint and generated README checks, Markdown lint and Fern build, and full-severity Trivy comparison across all 16 scan targets with no new findings.

  • Refreshed-head CI.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Runtime guidance updated

@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Nov 26, 2026
@github-actions

Copy link
Copy Markdown

@SDAChess SDAChess added area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. topic:operability Installing/configuring deployments, upgrades, backup/restore, diagnostics, and maintenance. topic:reliability High availability, recovery, retries, graceful degradation, and correctness across restarts. topic:security Vulnerability management, security analysis/auditing, bypass detection, and abuse prevention. labels Nov 26, 2026
@SDAChess
SDAChess force-pushed the fix/6017-supervisor-healthcheck/SDAChess branch from 83e3385 to 9fa0d0d Compare November 26, 2026 17:33
@alangou

alangou commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

No impact on the drivers. Docs nit: the supervisor only opens /run/openshell/health.sock when started with --health-socket-path, and the suggested TCP/proxy overrides cannot run in this shell-free image. Disabling the inherited check is the working option there.

Signed-off-by: @alangou

@SDAChess
SDAChess force-pushed the fix/6017-supervisor-healthcheck/SDAChess branch from 9fa0d0d to 081cad4 Compare November 27, 2026 11:12
alangou
alangou previously approved these changes Nov 27, 2026
@SDAChess
SDAChess added this pull request to stack #6034 November 27, 2026 11:51
@SDAChess
SDAChess removed this pull request from stack #6034 November 27, 2026 12:57
@SDAChess
SDAChess changed the base branch from fix/6016-resource-defaults/SDAChess to main November 27, 2026 12:57
@SDAChess
SDAChess dismissed alangou’s stale review November 27, 2026 12:57

The base branch was changed.

@SDAChess
SDAChess force-pushed the fix/6017-supervisor-healthcheck/SDAChess branch from 081cad4 to 96ee96a Compare November 27, 2026 12:58
@SDAChess
SDAChess requested a review from alangou November 27, 2026 12:58
@SDAChess

Copy link
Copy Markdown
Contributor Author

@alangou please reapprove the final rebased head. #6014 is now merged, and this PR targets main independently to avoid further parent-merge retargets. git range-diff confirms the reviewed patches are unchanged. Combined local Helm tests (524 gateway + 7 workspace), lint, generated README, documentation and full-severity Trivy comparison pass. Fresh CI is running; the resource-budget PR #6018 carries the full E2E labels.

Signed-off-by: Simon Scatton <sscatton@nvidia.com>
(cherry picked from commit 0a7d719165026e3b43c67c9ccbf50d70ea8defb2)
Signed-off-by: Simon Scatton <sscatton@nvidia.com>
@SDAChess
SDAChess changed the base branch from main to fix/6016-resource-defaults/SDAChess November 27, 2026 13:18
@SDAChess
SDAChess added this pull request to stack #6037 November 27, 2026 13:18
@SDAChess
SDAChess force-pushed the fix/6017-supervisor-healthcheck/SDAChess branch from 96ee96a to 42f789c Compare November 27, 2026 13:18
@SDAChess SDAChess mentioned this pull request Nov 27, 2026
12 of 13 tasks
@SDAChess
SDAChess enabled stacked auto-merge November 27, 2026 13:21
@SDAChess
SDAChess added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit 94f58a4 Nov 27, 2026
123 of 144 checks passed
@SDAChess
SDAChess deleted the fix/6017-supervisor-healthcheck/SDAChess branch November 27, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. state:accepted A maintainer decided OpenShell should pursue this issue topic:operability Installing/configuring deployments, upgrades, backup/restore, diagnostics, and maintenance. topic:reliability High availability, recovery, retries, graceful degradation, and correctness across restarts. topic:security Vulnerability management, security analysis/auditing, bypass detection, and abuse prevention.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(images): probe standalone supervisor readiness

2 participants