Skip to content

Route per-instance stop API to instance-level stop#2615

Open
SuperStrongDinosaur wants to merge 1 commit into
google:mainfrom
SuperStrongDinosaur:frontend_stop
Open

Route per-instance stop API to instance-level stop#2615
SuperStrongDinosaur wants to merge 1 commit into
google:mainfrom
SuperStrongDinosaur:frontend_stop

Conversation

@SuperStrongDinosaur
Copy link
Copy Markdown
Collaborator

@SuperStrongDinosaur SuperStrongDinosaur commented May 28, 2026

Summary

Exposes the backend per-instance stop functionality through the Host Orchestrator's REST API. Previously, stopping an instance via the frontend API routed to a group-level stop, which terminated all instances in the group.

Key Changes

Route Redirection: Modified controller.go to route the POST request /cvds/{group}/{name}/:stop to newExecCVDInstanceCommandHandler using &stopCvdInstanceCommand{}. Instance.Stop() Method: Added a native Stop() method to the Instance struct in cvd.go.

Bug

b/459780275

Document

go/cuttlefish-per-instance-control

Backend pr

#2614

@SuperStrongDinosaur SuperStrongDinosaur changed the title feat(frontend): route per-instance stop API to instance-level stop Route per-instance stop API to instance-level stop May 28, 2026
@SuperStrongDinosaur SuperStrongDinosaur added the kokoro:run Run e2e tests. label May 28, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label May 28, 2026
@SuperStrongDinosaur SuperStrongDinosaur marked this pull request as ready for review June 1, 2026 12:55
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.

4 participants