Skip to content

Fix single-instance start after stop in multi-instance groups - #3514

Queued
SuperStrongDinosaur wants to merge 2 commits into
google:mainfrom
SuperStrongDinosaur:fix_single_instance_start
Queued

SuperStrongDinosaur wants to merge 2 commits into
google:mainfrom
SuperStrongDinosaur:fix_single_instance_start

Conversation

@SuperStrongDinosaur

Copy link
Copy Markdown
Collaborator

Remove the deprecated --report_anonymous_usage_stats flag from Host Orchestrator's Instance.Start, Group.Start, and StartOptions so per-instance start requests pass CanBypassToSingleInstance instead of falling through to group start and failing when peer instances are running. Also accept --report_anonymous_usage_stats in CanBypassToSingleInstance for backwards compatibility.

Update LaunchSingleInstance to pre-register only the target instance with the operator and stop only the target instance on boot failure so running sibling instances are not disrupted.

Bug: 581680503

@SuperStrongDinosaur SuperStrongDinosaur added the kokoro:run Run e2e tests. label Nov 4, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed kokoro:run Run e2e tests. labels Nov 4, 2026
@SuperStrongDinosaur SuperStrongDinosaur added the kokoro:run Run e2e tests. label Nov 4, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Nov 4, 2026
@SuperStrongDinosaur
SuperStrongDinosaur marked this pull request as ready for review November 5, 2026 16:01
@SuperStrongDinosaur SuperStrongDinosaur added the kokoro:run Run e2e tests. label Nov 6, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Nov 6, 2026
@SuperStrongDinosaur SuperStrongDinosaur added the kokoro:run Run e2e tests. label Nov 11, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Nov 11, 2026
@SuperStrongDinosaur SuperStrongDinosaur added kokoro:run Run e2e tests. kokoro:force-run Trigger a presubmit build unconditionally. labels Nov 11, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed kokoro:run Run e2e tests. kokoro:force-run Trigger a presubmit build unconditionally. labels Nov 11, 2026
Allow `--report_anonymous_usage_stats` and `INSTANCE_STATE_BOOT_FAILED`
in `CanBypassToSingleInstance` for backwards compatibility and
boot-failure retries.

Update `LaunchSingleInstance` to run `run_cvd` with the instance
directory as its working directory (matching `cvd_internal_start` so
`secure_env` stores TPM/KeyMint state in the instance directory rather
than failing in a read-only daemon CWD), and parameterize `LaunchDevice`
with `instances` so `LaunchSingleInstance` pre-registers only the target
instance with the operator and stops only the target instance (with a 5s
launcher timeout) on boot failure.

Also exclude shared `assembly_dir()` from `stop_cvd`'s fallback stop
when stopping a subset of instances so running sibling instances are not
disrupted.

Bug: 581680503
Test: bazel test //cuttlefish/host/commands/cvd/... //cuttlefish/host/commands/stop/...
Assisted-by: Jetski:Gemini
Remove the deprecated `--report_anonymous_usage_stats` flag from
`Instance.Start`, `Group.Start`, and `StartOptions` in Host
Orchestrator.

Rename `TestStopStart` to `TestGroupStopStart` without changing its
behavior, and add `TestSingleInstanceStopStart` to cover stopping and
starting a single secondary instance within a multi-instance group.

Bug: 581680503
Test: go test ./... in frontend/src/host_orchestrator
Test: bazel build //orchestration/stop_start_test:stop_start_test_test
Assisted-by: Jetski:Gemini
@SuperStrongDinosaur SuperStrongDinosaur added the kokoro:run Run e2e tests. label Nov 11, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Nov 11, 2026
@SuperStrongDinosaur SuperStrongDinosaur added the kokoro:force-run Trigger a presubmit build unconditionally. label Nov 11, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:force-run Trigger a presubmit build unconditionally. label Nov 11, 2026
@SuperStrongDinosaur SuperStrongDinosaur added the kokoro:force-run Trigger a presubmit build unconditionally. label Nov 11, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:force-run Trigger a presubmit build unconditionally. label Nov 11, 2026
@SuperStrongDinosaur SuperStrongDinosaur added the kokoro:force-run Trigger a presubmit build unconditionally. label Nov 11, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:force-run Trigger a presubmit build unconditionally. label Nov 11, 2026
@SuperStrongDinosaur
SuperStrongDinosaur added this pull request to the merge queue Nov 11, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 11, 2026
@SuperStrongDinosaur
SuperStrongDinosaur added this pull request to the merge queue Nov 11, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 11, 2026
@SuperStrongDinosaur
SuperStrongDinosaur added this pull request to the merge queue Nov 11, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 11, 2026
@SuperStrongDinosaur
SuperStrongDinosaur added this pull request to the merge queue Nov 11, 2026

This branch has not been deployed

No deployments
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