Skip to content

Instance shutdown policy - #3453

Draft
benjaminleonard wants to merge 4 commits into
mainfrom
instance-shutdown-policy
Draft

benjaminleonard wants to merge 4 commits into
mainfrom
instance-shutdown-policy

Conversation

@benjaminleonard

@benjaminleonard benjaminleonard commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #3424

Added mostly to work through the UX, the actual implementation underneath I have no strong feelings on and you can pick and choose into a new PR if you'd prefer.

image image

Pins omicron 0c6c243 (API 2026111100.0.0), which adds
InstanceShutdownPolicy (oxidecomputer/omicron#11565).

InstanceUpdate.shutdownPolicy is required and null resets it to the
default, so every update call now passes the instance's current policy
through to avoid clobbering it on resize or boot disk changes.
- Shutdown card on the instance settings tab to pick hard power off or
  power button with a 1-900s timeout
- Same field in the Advanced section of instance create
- Stop and reboot confirmations explain the power button behavior, and
  power button instances get Force stop and Force reboot actions that
  pass force=true. Force stop also works while the instance is stopping,
  which is how a pending power button shutdown gets cut short
- Mock stays in stopping longer for power button stops so the force
  path is testable
- Settings tab forms are labelled by their card titles so tests can tell
  the Save buttons apart
@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
console Ready Ready Preview Nov 23, 2026 12:56pm UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — 512f6e3d Deployed Nov 23, 2026 by vercel[bot]
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.

Console to handle instances' graceful shutdown policy

1 participant