Repository navigation
Recover stale native host exports and apply stopped-VM mount removals - #66
Merged
Merged
Conversation
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.
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-policycommand 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.