TurboPanel Docs
Database

Upgrades

Instance-wide upgrade runs and the per-server daemon and instance steps that belong to them.

Tables in this group: stage, upgrade.

stage

One daemon or instance install on one server inside an upgrade run, advanced by the orchestrator until a terminal outcome.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
upgrade_iduuidyesParent upgrade row (on delete cascade).
server_iduuidyesParent server row (on delete cascade).
statustextyespending/waiting/dispatched/preparing/downloading/installing/restarting/verifying/done/failed/rolled_back/needs_attention/skipped.
unittextyesdaemon or instance: the package this step installs on its server.
phasetextyesWhich part of the run the step belongs to: colocated_daemon first, then control_plane, then fleet; checked against the run order.
batch_indexintegeryesZero-based wave index within the run; steps that share an index are dispatched together.
request_idtextnoCell correlation id for the in-flight install; NULL until the step is dispatched.
attemptsintegeryesDispatch count for this step, starting at 0 and incremented before each retry.
next_attempt_attimestamp(3) with time zonenoEarliest time a non-terminal step may be retried; NULL when no retry is scheduled.
from_versiontextnoVersion installed before this step ran; NULL when the host had none.
to_versiontextnoVersion this step installs, copied from the run target for unit.
from_committextnoCommit installed before this step ran; NULL when it was unknown.
to_committextnoCommit this step installs, copied from the run target for unit.
status_changed_attimestamp(3) with time zonenoWhen status last changed, so a step stuck in one stage can be detected.
error_codetextnoMachine-readable code when the step fails, rolls back or needs attention.
error_messagetextnoHuman-readable failure text set alongside error_code.
detailjsonbnoSmall stage facts such as bytes fetched or an exit code; the orchestrator writes it, never a transcript.
started_attimestamp(3) with time zonenoWhen the step was first dispatched to its server; NULL until then.
finished_attimestamp(3) with time zonenoWhen the step reached a terminal status (done, skipped, failed, needs_attention); cleared when a retry reopens it.

upgrade

One instance-wide upgrade run, written by the upgrade orchestrator, with at most one pending or running row.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
started_byuuidnoUser who started a manual run; NULL for an automatic run and after that account is deleted.
statustextyesLifecycle pending, running, succeeded, partially_failed, failed or cancelled; the orchestrator advances it.
targetjsonbnoPins for daemon, instance and ui: version, commit, build id, built-at time and pinned manifest URL; NULL until resolved.
preflightjsonbnoChecks recorded before the first dispatch: blockers, version floors and which units this run will touch.
sourcetextyesWho started the run: manual from the panel, auto from the scheduler, or server for a single-host request.
channeltextyesUpdate channel the run follows (trunk, canary, rc or release), copied from the instance when the run is created.
phasetextnoCurrent wave colocated_daemon, control_plane or fleet; NULL until the orchestrator enters the first wave.
batch_policyjsonbnoSnapshot of upgrade settings (auto-update, batch size and maintenance window) taken when the run starts.
countsjsonbnoTerminal step totals written when the run finishes, so the summary remains after old steps are pruned.
errortextnoRun-level failure text when the status is failed or partially_failed; NULL on success.
started_attimestamp(3) with time zonenoWhen the orchestrator moved the run from pending to running.
finished_attimestamp(3) with time zonenoWhen the run reached a terminal status.
Edit on GitHub

Last updated on

On this page