Skip to content

Route per-instance start API with snapshot support#2618

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

Route per-instance start API with snapshot support#2618
SuperStrongDinosaur wants to merge 1 commit into
google:mainfrom
SuperStrongDinosaur:frontend_start

Conversation

@SuperStrongDinosaur
Copy link
Copy Markdown
Collaborator

@SuperStrongDinosaur SuperStrongDinosaur commented May 28, 2026

Summary

Exposes per-instance start functionality through the HO API. This change ensures that users can start a specific stopped instance, with support for passing a SnapshotID in the request body to boot the instance from a snapshot.

Key Changes

Dedicated Handler: Implemented newStartCVDInstanceHandler and startCVDInstanceHandler in controller.go. This handler correctly decodes the apiv1.StartCVDRequest from the POST request body.
StartCVDInstanceAction: Added StartCVDInstanceAction in startcvdaction.go to handle the logic. It validates the request, locates the snapshot if provided, and invokes cvdCLI.LazySelectInstance().Start(opts).
Route Redirection: Updated controller.go to map /cvds/{group}/{name}/:start to newStartCVDInstanceHandler instead of the group instance command handler.

Bug

b/459780275

Document

go/cuttlefish-per-instance-control

Backend pr

#2617

@SuperStrongDinosaur SuperStrongDinosaur changed the title feat(frontend): route per-instance start API with snapshot support Route per-instance start API with snapshot support 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 2, 2026 10:01
Copy link
Copy Markdown
Member

@jemoreira jemoreira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG but please wait until support for the operation is added in cvd before merging this one

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.

3 participants