Skip to content

Recover stale native host exports and apply stopped-VM mount removals - #66

Merged
candlelightner merged 2 commits into
mainfrom
fix/native-host-mount-restart
Oct 23, 2026
Merged

candlelightner merged 2 commits into
mainfrom
fix/native-host-mount-restart

Conversation

@candlelightner

@candlelightner candlelightner commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

A failed Incus shutdown can leave a host-export staging mount attached to a stopped VM, so the next native start fails with EBUSY before guest boot. Saved mount removals also previously required recreating the guest.

Retry normal unmounts through the existing mTLS host policy before native start/removal. Cleanup verifies the ordinary worker, installation, native incarnation, stopped state, applied source identity and exact staging path. Busy, stacked or nested mounts remain blocked with bounded diagnostics. The hardened service uses the host mount namespace; source directories and guest disks are retained.

Restart applies only saved export removals through the existing mutation fence and captured ETag. Retained devices and metadata must match. Additions, source/access changes and durable host-access revocation retain their existing recreation guards. The internal endpoint accepts IDs only; existing global/group MCP lifecycle authorization is unchanged.

Validation: CI typecheck, 1,996 module/helper tests, 35 isolated API/UI tests, and the real busy-export regression pass. Both orchestrator architecture image builds pass; the separate candidate quality-image workflow also passes. The local image passed managed live acceptance before publication: cleanup and obsolete-device removal restored worker/storage/Docker and terminal readiness while preserving native incarnation, base image, other devices and source directory identity. Two isolated real busy-stop/restart cycles pass. The native adapter size budget accounts for the added recovery checks and retains dependency/application isolation checks.

Deployment: update the installed host policy with the documented --update-policy command before deploying the orchestrator. No worker-image conversion is required. A general pending-rebuild flag remains because it may cover other settings. GPU/CUDA readiness is separate.

Follow-up to #61.

Release verification: merged mainline CI passes and the published orchestrator is verified healthy with the reviewed host policy installed. Fresh service/Docker/terminal checks pass, and the existing guest boot and other native VM states are preserved.

@candlelightner
candlelightner merged commit 746c036 into main Oct 23, 2026
12 checks passed
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.

1 participant