Skip to content

Route per-instance start API#2618

Merged
rmuthiah merged 1 commit into
google:mainfrom
SuperStrongDinosaur:frontend_start
Jun 12, 2026
Merged

Route per-instance start API#2618
rmuthiah merged 1 commit into
google:mainfrom
SuperStrongDinosaur:frontend_start

Conversation

@SuperStrongDinosaur

@SuperStrongDinosaur SuperStrongDinosaur commented May 28, 2026

Copy link
Copy Markdown
Collaborator

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

@jemoreira jemoreira left a comment

Copy link
Copy Markdown
Member

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

@SuperStrongDinosaur SuperStrongDinosaur force-pushed the frontend_start branch 2 times, most recently from 873914f to c2ce32f Compare June 8, 2026 13:48

@jemoreira jemoreira left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't see anything related to snapshots in this change, should the title be updated?

@SuperStrongDinosaur SuperStrongDinosaur changed the title Route per-instance start API with snapshot support Route per-instance start API Jun 9, 2026
@rmuthiah rmuthiah added kokoro:force-run Trigger a presubmit build unconditionally. kokoro:run Run e2e tests. labels Jun 12, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed kokoro:run Run e2e tests. kokoro:force-run Trigger a presubmit build unconditionally. labels Jun 12, 2026
@rmuthiah rmuthiah enabled auto-merge June 12, 2026 03:08
@rmuthiah rmuthiah added this pull request to the merge queue Jun 12, 2026
Merged via the queue into google:main with commit 4f5b412 Jun 12, 2026
37 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.

4 participants