Skip to content

[WIP][Stack on #1730] Use ActorDirs in ateom-gvisor/ateom-microVM and remove ateompath - #1842

Closed
Haven Xia (HavenXia) wants to merge 4 commits into
agent-substrate:mainfrom
HavenXia:ateom-read-actor-dirs
Closed

Haven Xia (HavenXia) wants to merge 4 commits into
agent-substrate:mainfrom
HavenXia:ateom-read-actor-dirs

Conversation

@HavenXia

Copy link
Copy Markdown
Member

#1730 adds ActorDirs to the ateom RPCs and has atelet fill it. This PR makes both ateoms uses the paths from RPC, so no need to computes per-actor paths from the actor UID anymore.

Everything else ateom needs under the actor is built from these directories too: ShapeMicroVM uses the entire ActorDirs, and the two paths ateom keeps for itself, rootfs-upper (micro-VM) and the sandbox resolv.conf (gVisor), use the ActorDirs.root_dir.

Validation:
A request whose ActorDirs is missing, relative, or outside root_dir is rejected with InvalidArgument before anything runs.

Part of #1604.

atelet and both ateoms derive the per-actor directories (bundles, runsc
state, pid files, checkpoint and restore state, durable-dir, system-info
and CSI volume roots) from the actor UID through the same package,
internal/ateompath. 

Add an ActorDirs message to RunWorkloadRequest, RestoreWorkloadRequest,
CheckpointWorkloadRequest and TerminateWorkloadRequest, and have atelet
fill it with the directories it prepared.
@HavenXia Haven Xia (HavenXia) changed the title [Stack on #1730] Use ActorDirs in ateom-gvisor/ateom-microVM and move ateom only paths [Stack on #1730] Use ActorDirs in ateom-gvisor/ateom-microVM and remove ateompath Sep 24, 2026
- cmd/atelet/internal/ateletpath: atelet's on-node pathes, the per-actor
  directories it prepares (and ActorDirs, built from them) plus the
  node-level directories only atelet uses. 
- internal/nodepath: what both sides need before the first RPC, the
  host directory they mount and the sockets and netns they find each
  other by. atecontroller renders the worker pod's hostPath from it.
- internal/ateompath: only what the ateoms still uses it self.
@HavenXia Haven Xia (HavenXia) changed the title [Stack on #1730] Use ActorDirs in ateom-gvisor/ateom-microVM and remove ateompath [WIP][Stack on #1730] Use ActorDirs in ateom-gvisor/ateom-microVM and remove ateompath Sep 24, 2026
@HavenXia

Copy link
Copy Markdown
Member Author

close to sperate into two prs

@innaveli4k-lab

This comment was marked as spam.

@bowei Bowei Du (bowei) added kind/cleanup Small fixes that are not bugs, for example a typo in a code comment area/node area/gvisor area/microVM labels Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/gvisor area/microVM area/node kind/cleanup Small fixes that are not bugs, for example a typo in a code comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants