Skip to content

feat(cuttlefish): auto-recover from stale HO state on power.on() - #1032

Draft
bennyz wants to merge 1 commit into
jumpstarter-dev:mainfrom
bennyz:cuttlefish-auto-reset
Draft

feat(cuttlefish): auto-recover from stale HO state on power.on()#1032
bennyz wants to merge 1 commit into
jumpstarter-dev:mainfrom
bennyz:cuttlefish-auto-reset

Conversation

@bennyz

@bennyz bennyz commented Aug 27, 2026

Copy link
Copy Markdown
Member

Adds an auto_reset config option that calls reset_host() and retries power.on() once when Host Orchestrator state looks stale (orphaned CVDs that won't delete, or creation failing with "in use"/"already running"). Off by default since HO's /reset is host-wide and stops every CVD on the host.

ADB port-mismatch is deliberately left
out of auto-reset scope since the occupied slot may belong to a different tenant's legitimate CVD.

Also documents that cvd reset must run as the httpcvd user, not root, since HO launches CVDs as httpcvd and cvd's instance database is per-user.

Adds an auto_reset config option that calls reset_host() and retries
power.on() once when Host Orchestrator state looks stale (orphaned
CVDs that won't delete, or creation failing with "in use"/"already
running"). Off by default since HO's /reset is host-wide and stops
every CVD on the host.

ADB port-mismatch is deliberately left
out of auto-reset scope since the occupied slot may belong to a
different tenant's legitimate CVD.

Also documents that `cvd reset` must run as the httpcvd user, not
root, since HO launches CVDs as httpcvd and cvd's instance database
is per-user.

Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>
@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant