This content is available in English.
Upgrade and recover application state
Use a coordinated application release with its matching images, schema and configuration. A fresh-install migration is not an upgrade. Never point a new API at an important existing database before reviewing the migration and recovery plan for that exact version transition.
6.0.81 Community candidate
Qualify the first Community kit on an empty disposable installation. Its schema
head remains backup_admission_pause. The registration advisory reads existing
accepted generations, inventory and the installed organization. It introduces
no migration. Historical procedures below apply to their named versions.
An existing site needs a tested transition for its current images, schema,
operating profile, journal and key custody before using this candidate.
6.0.80: clock ordering and pristine closeout
This correction retains the backup_admission_pause schema. An installation
already at that head uses the normal reviewed API/UI/agent image rollout and
preserves all request receipts, held attempts, keys and original safety records;
do not replay a migration merely because the runtime version changed. Earlier
heads follow the migration table below. Keep new admission paused during the
reviewed rollout, and confirm the agent is actually running the corrected image
before starting another attempt. Existing stopped attempts stay stopped.
Require the exact delivered 6.0.80 artifacts and handoff; this source procedure alone is not release acceptance. Verify current service/workload health and retained custody after rollout. Review older unreserved Pending requests through the supported closeout action. Retained reservations follow their existing recovery procedure. Reassess usable scratch and original duration estimates before the next qualified campaign.
Earlier heads to 6.0.80: admission pause and compatible readers
This transition preserves the admission-pause schema introduced in 78 and retained in 79 and 80. Use it with exact reviewed 6.0.80 artifacts and the installation's authorized maintenance window. Historical 77 instructions below retain their original target and are not the current upgrade recipe.
The 6.0.80 target schema is backup_admission_pause, following
operator_requests. Inspect the actual installed head before selecting a path:
| Observed schema | Path to 6.0.80 |
|---|---|
operator_requests |
Run the owner upgrade stage with stopped writers; this is no longer a same-schema image rollout. |
verification_budget, storage_upload_progress or backup_verification |
The owner upgrade applies the intervening migrations and pause guard; retain the exact observed predecessor for rollback review. |
backup_admission_pause |
Inspect any prior Job/result and retained recovery state; a successful current head does not require replaying the migration. |
| Any other head | Obtain its separately reviewed transition. |
Preserve database/key/configuration/journal recovery material and all held
capacity. Disable new scheduling and automatic cleanup, settle admitted producers
under their existing safety policy, fence reconciliation and stop API/agent
writers before schema work. On an earlier installation, the checkbox labelled
Pause new backups still writes capacity maintenance and revokes continuation;
do not use it as a harmless drain switch for active work. A query timeout is an
unknown observation, not confirmed producer failure or permission to release.
Retain the accepted site configuration and exact prior rendered targets. In the
new site copy, set rollback_schema_revision explicitly to the observed
predecessor, including operator_requests; the default is not a substitute for
that observation. Render separate upgrade, rollback-schema, api and agent
stages with the matching 6.0.80 renderer. Customized GitOps installations
carry the reviewed image/configuration delta through their existing GitOps flow,
preserving custom names, Secrets, agent identity, source scopes and scratch
overrides. Do not replace customized resources with a stock render.
The owner-only upgrade command remains --upgrade-operation-safety; require
successful Schema ready: backup_admission_pause before starting matching
writers. Preserve failed/uncertain Job evidence and inspect current state before
any retry. The migration patches the existing capacity owner/policy functions;
it does not rewrite backup rows, release holds, create another slot or replay
held work. Confirm exact image/configuration identities and preserved database,
VM, agent and journal custody. Qualify disposable full/incremental, fresh restore,
source availability and English/Hebrew UI behavior before deliberate admission.
No customer qualification follows from the migration or source tests alone.
After upgrading, backup.admission_pause is a separate strict object with integer
schema: 1, positive signed-bigint revision and boolean paused. Absence reads
as null and means unpaused; invalid stored state refuses new work. Pause writes
serialize with fresh reservations. Use paused: true to stop fresh reservations
while already-admitted work drains. The original four-field capacity policy stays
unchanged: maintenance: true remains the emergency continuation fence. Review
and restore the intended values independently. Scheduled pause refusal leaves
the original queue available after unpause; it does not permanently hold it.
Reviewed rollback to operator_requests is supported with writers stopped.
After settling producers, retain capacity maintenance: true as the admission
fence. Before stopping the API, explicitly set the separate pause to false with
a higher revision and confirm its persisted value, then stop API/agent writers.
The migration refuses active or malformed pause state; rollback removes
the pause setting as the owner and restores the prior function bodies. It never
silently unpauses a site. Rollback farther to one of the three older heads still
crosses the operator-request migration and retains its empty-ledger requirement;
do not discard receipts or restore an old dump to bypass it.
Schema rollback does not convert persisted schema-2 source plans. A held or
accepted schema-2 transaction still requires compatible API/agent readers,
including during recovery, restore and retirement. Confirm the chosen rollback
images can read all retained representations before switching them; merely
reaching operator_requests does not establish that compatibility. Preserve
compatible readers and keep writers fenced if no accepted predecessor can read
the retained custody.
Nullable backup safety_diagnostic gives bounded retained predicates, counts and
deadlines for review; it grants no replay, cleanup or release. The
modern held-review procedure
remains conditional on exact independently reviewed producer, journal, chain and
object evidence. Missing VMB/export objects, empty listings, zero acknowledgements
or native_absent_unproven alone do not qualify retirement. Preserve all holds
until an eligible exact owner review and authenticated journal retirement have
been separately authorized and completed.
6.0.57–6.0.76 → 6.0.77: dependency notices and retained recovery
The coordinated 6.0.77-install12 kit requires operator_requests.
The 6.0.75/6.0.76 → 6.0.77 transition completes dependency notices and retains
the 6.0.76 API descriptions, without a database or backup-protocol change.
Existing ledger/current-head sites use the same-schema
image rollout and preserve all request identities, credentials and holds.
Use only its accepted exact artifacts and evidence. 6.0.73-install9 is
withheld: its backend cannot start. It is neither an accepted installation nor
a rollback binary baseline. The 6.0.74 package is withheld after its installed
backup canary exposed a native finalization race. An existing 6.0.74 installation
uses the operator_requests row below, preserving every held attempt and its
original journal. Inspect the actual schema before selecting a path:
| Observed schema | Path to 6.0.77 |
|---|---|
operator_requests already applied, including 6.0.76/6.0.75/6.0.74 |
Review the existing recovery state, retain every ledger row, then use accepted 6.0.77 images without repeating a schema/fresh Job. A partial failed 6.0.73 rollout is recovery, not proof of a usable 6.0.73 baseline. |
verification_budget (normally 6.0.68–72) |
Apply the operator-request migration with stopped writers. |
storage_upload_progress (normally 6.0.62–67) |
Apply the verification-budget and operator-request migrations with stopped writers. |
backup_verification (normally 6.0.57–61) |
Apply the nullable-column and later migrations with stopped writers. |
| Any other head | Stop and obtain its separately reviewed transition. |
Verify/import the exact kit, pause admission, schedules and cleanup, settle producers and preserve consistent database/key/journal/configuration recovery material. Retain the accepted site configuration, database endpoint, installed namespaces/prefixes, URLs, TLS, credentials, appearance, agent identity and all held custody. A delivery-profile selection does not migrate the database, re-enroll an agent or reclassify earlier supplied software. Existing database operation and patching responsibilities remain recorded for its actual origin.
For the customer-provided profile, first complete its database prerequisite checks, including verified TLS and separate owner/migrator/runtime roles. Do not substitute an S2-provided image or change an accepted database endpoint to make a profile check pass. The full profile continues to carry its separately inventoried PostgreSQL image.
Copy the site configuration to a fresh private file and replace only the matching application image references and deliberately selected profile inputs. For example, render reviewed API/UI and agent resources from the verified kit:
SITE_NEXT=/private/vesta/site.6.0.77.json
UPGRADE_DIR=/private/vesta/upgrade77
mkdir -m 700 "$UPGRADE_DIR"
python3 install/render.py --config "$SITE_NEXT" --stage api --output-dir "$UPGRADE_DIR/api"
python3 install/render.py --config "$SITE_NEXT" --stage agent --output-dir "$UPGRADE_DIR/agent"
When the observed head is one of the three older heads in the table, also set
rollback_schema_revision to that exact recorded head and render the owner-only
stages before stopping writers:
python3 install/render.py --config "$SITE_NEXT" --stage upgrade --output-dir "$UPGRADE_DIR/schema"
python3 install/render.py --config "$SITE_NEXT" --stage rollback-schema --output-dir "$UPGRADE_DIR/rollback-schema"
Review resources and server dry-runs. Fence reconciliation and stop API/agent
writers. Apply a schema Job only for the older-head path, requiring successful
Schema ready: operator_requests; never resubmit a failed or uncertain Job
without inspecting its result and current head. Then use the existing deployment
workflow to activate the matching images. Existing operator_requests sites
skip the schema step entirely. Require exact image readiness, CURRENT mounted
inputs, preserved catalog/credentials/request identities, fresh authenticated
agent heartbeat and disposable backup/fresh-restore acceptance before admission.
Include EN/HE/narrow UI, offline API docs and report checks for this release.
Rollback must use a saved accepted, compatible predecessor, never the
withheld 6.0.73 images. For an upgrade from 6.0.72/verification_budget (or another
reviewed older head), stop all writers and use the separately prepared
rollback-schema stage to that exact recorded head only while all operator
ledgers are empty, then restore the matching accepted predecessor images.
The guard refuses once request/dispatch/rotation custody exists. Never remove
receipts or restore a pre-request dump to bypass it. Retain a compatible accepted
operator_requests binary when those rows exist; if none is available, keep
writers fenced and obtain a reviewed recovery path instead of discarding custody.
Old unfinished work retains its original identities and safety windows.
The owner upgrade applies the intervening migrations and classified runtime
grants in one transaction. Its Job name remains
<installed-prefix>-upgrade-operation-safety; retain old Job evidence and use a
fresh reviewed execution handle rather than blindly resubmitting an uncertain
operation. rollback_schema_revision must be the observed predecessor:
backup_verification, storage_upload_progress or verification_budget.
The optional agent_key_rotation_ttl_hours accepts 1–168 (default 24) for future
staged candidates; no upgrade rotates an existing key or resends an old request.
For acceptance, inspect operator capabilities, submit a disposable operation with a saved UUID, recover its receipt with GET, then repeat identical POST with the original UUID to verify unchanged identity. Exercise candidate staging, metadata lookup and explicit cancellation on a disposable agent. Actual credential activation follows the saved-file procedure. Keep normal backup/fresh-restore and English/Hebrew UI checks. These admitted acceptance requests intentionally make ledger-discarding schema rollback unavailable; qualify empty-ledger rollback in a separate disposable fixture first.
The following sections retain their accepted 6.0.72 and earlier historical kit procedures. Do not substitute their expected heads/images for the current 6.0.77 transition.
6.0.68–6.0.71 → 6.0.72: same-schema correction
Verify the actual head is verification_budget before choosing this path.
The coordinated 6.0.72-install8 kit corrects a preparation race: KubeVirt
could attach the original backup's utility volume between two source reads,
causing a valid transition to be reported as a permanent mapping change.
Admission now evaluates that projection and mapping from the same observation;
each subsequent boundary still reads the current source and rejects drift.
Verify and import the kit, pause admission/schedules/cleanup, settle producers,
and retain a consistent database/key/journal/configuration recovery copy. Preserve
the accepted site file, PostgreSQL, identities, scopes, scratch mappings and
held attempts. Fence GitOps reconciliation, stop API/agent writers, then deploy
the matching API/UI and agent images using the existing configuration workflow.
No schema Job is required. Require exact image readiness, CURRENT inputs and
fresh disposable-workload acceptance before restoring admission and schedules.
An existing refusal keeps its original status, deadline, native identities,
scratch Lease and catalog custody; upgrading does not retry or release it.
Rollback within this schema uses the saved compatible application targets and retained journals. Returning to an older schema requires the separately reviewed schema rollback procedure below; never guess the original head.
6.0.57–6.0.67 → 6.0.72: operation safety
Use the coordinated 6.0.72-install8 kit and its matching backend/frontend/agent
digests. This upgrade adds nullable verification-admission custody and, when
starting at 6.0.57–61, the earlier upload-observation column. The resulting schema
is verification_budget. Read backup safety before admitting
new work; old unfinished attempts do not receive an invented safety budget.
- Verify the kit with
python3 install/kit.py verify --source ., then import its images into the site's registry. Preserve the accepted site file, original API/agent targets and a consistent private DB/key/journal recovery set. - Pause new admission, schedules and cleanup. Settle active producers. Fence GitOps reconciliation for the ordered transition and stop API/agent writers. Keep the existing PostgreSQL, namespaces, prefixes, credentials, identities, source/restore scopes, appearance and accepted ancestors.
- Copy the accepted site file to a new
site.6.0.72.json; replace its three application image digests. Review the new optionaloperation_budgetandsource_health_probessettings. Keep one active source and API QPS/burst 50/100 for initial qualification. Review actual scratch free space and certificate coverage; larger deadlines do not make undersized scratch safe. - Record the previous schema. Set
rollback_schema_revisionin the site copy tobackup_verificationfor 6.0.57–61, orstorage_upload_progressfor 6.0.62–67. The default is the latter; do not guess the installed revision. - Render
upgrade,rollback-schema,apiandagentinto separate new directories. Review their contents and server dry-run before applying.
SITE_NEXT=/private/vesta/site.6.0.72.json
UPGRADE_DIR=/private/vesta/upgrade72
mkdir -m 700 "$UPGRADE_DIR"
python3 install/render.py --config "$SITE_NEXT" --stage upgrade --output-dir "$UPGRADE_DIR/schema"
python3 install/render.py --config "$SITE_NEXT" --stage rollback-schema --output-dir "$UPGRADE_DIR/rollback-schema"
python3 install/render.py --config "$SITE_NEXT" --stage api --output-dir "$UPGRADE_DIR/api"
python3 install/render.py --config "$SITE_NEXT" --stage agent --output-dir "$UPGRADE_DIR/agent"
Derive the application namespace and resource prefix from the preserved site file, as in the earlier transition below. With writers confirmed stopped, deploy the generated owner-only schema Job through the installation's normal workflow. For manual application:
oc apply -k "$UPGRADE_DIR/schema"
oc -n "$APP_NAMESPACE" wait --for=condition=Complete --timeout=600s job/"$RESOURCE_PREFIX-upgrade-operation-safety"
oc -n "$APP_NAMESPACE" logs job/"$RESOURCE_PREFIX-upgrade-operation-safety"
Require Schema ready: verification_budget. The command accepts only the two
reviewed prior heads, uses a transaction, and refuses a duplicate upgrade.
Lock waits are bounded to 30s and statements to 5m. Preserve failed Job evidence
and inspect the actual head before retrying. Never substitute the fresh migrate
or restore-grants stage for this transition.
Deploy the reviewed API/UI and then agent targets. Require exact image readiness
and CURRENT input reconciliation. Check preserved catalog, keys, installation
identity, hosts and scopes, and the new namespaced Pod/log/Lease permissions.
Qualify new disposable work and fault handling before restoring real schedules.
No rollout step replays, extends, deletes or releases held attempts.
If rollback is required, stop the new writers and preserve their new journals
and verification rows. Apply the already-reviewed rollback-schema target and
require the recorded previous schema head. Its Job is named
$RESOURCE_PREFIX-rollback-operation-safety. Only then restore the saved previous
API/agent targets. Older binaries do not understand the new operation journals;
retain any new unfinished attempts for explicit review instead of replaying them
under an older agent. Reconcile GitOps before re-enabling it.
The following versioned sections describe their matching older kits.
6.0.62–6.0.66 → 6.0.67: versioned transfer profile
This is a coordinated application-image upgrade with the same
storage_upload_progress database schema. No schema Job, fresh migration,
password bootstrap, registration or PostgreSQL replacement is required.
New KubeVirt attempts negotiate the 32 MiB transfer profile.
The 6.0.67 reader fully consumes each bounded source response before upload,
with one additional source buffer of at most 32 MiB. This avoids leaving a routed
source response idle during a slow upload; see the transfer guide for total
memory considerations.
The pinned native lifetime and exporter checks from
6.0.64 remain, with the same 10h default. Keep QPS/burst at 50/100 initially.
Existing two-hour and held attempts are preserved; installing the new version
is not authority to extend, replay, retire or release them.
- Verify the exact 6.0.67-install7 kit and import its images with
python3 install/kit.py verify --source .andpython3 install/kit.py import-images --source images --registry onsite.example.org/vesta. - Pause new admission, disable schedules/cleanup and settle active work. Preserve a consistent private database/key/configuration/journal recovery set and the accepted API/agent targets. For GitOps, fence reconciliation during the ordered rollout so it cannot restart an old writer unexpectedly.
- Copy the accepted site file to a new private
site.6.0.67.json. Replace only the backend/frontend/agent image digests with this kit's imported digests and review the optional transfer-profile/API-budget fields and explicitly review the native TTL/transaction-timeout settings against the installed certificate policy using the lifetime procedure. Use the new 36000-second default unless a different window is qualified; copying an explicit 64800-second value from 6.0.63 keeps that longer setting. Preserve all installed names, namespaces, Secrets, identities, sources, PostgreSQL and data. - From the new kit, render
--stage apiand--stage agentinto separate new directories withpython3 install/render.py --config /private/vesta/site.6.0.67.json. Review the resulting resources and server dry-run using each declared apply mode. Stop API/agent writers, then deploy the new API/UI followed by the agent through the installation's normal deployment workflow. - Require exact image readiness and
CURRENTfrom each workload'sinstall/reconcile_inputs.py check. Verify unchanged schema, runtime-role restrictions, catalog/users/keys, PostgreSQL pod, agent/PVC identities and scope. Restore reconciliation only after the accepted manifests are active. - Perform a fresh bounded backup/progress/publication and restore check. The separate long Ceph/Block acceptance is performed by the customer. Restore admission/schedules deliberately after the required local acceptance and retain the evidence and recovery set.
If activation fails before creating new work, keep writers/admission stopped and
restore the saved prior API/agent targets; the schema stays storage_upload_progress.
A new-profile plan requires a 6.0.65+ reader for journal recovery and restore,
even after the backup completes. A legacy preference cannot convert it. Earlier
extended native-lifetime journals require 6.0.63+. Retain the required new images
and custody; do not edit plans/journals or downgrade their recovery readers. A downgrade below 6.0.62 additionally needs the
schema rollback described in the next section.
6.0.57–6.0.61 → 6.0.67: upload progress and pacing
This transition adds the nullable backups.storage_progress telemetry column,
changing schema head backup_verification to storage_upload_progress. It does
not change backup ownership, encryption, catalog identity, publication or capacity
records. Kubernetes clients use a shared 50 QPS / burst 100 budget and healthy
new attempts use the bounded lifetime described above. Existing attempts retain
their original native deadline. See the timing metrics
and installation-owned limits in operations.
Use the exact 6.0.67 kit and digest-pinned backend/frontend/KubeVirt agent images. Preserve existing namespaces, prefixes, keys, agent identity, source selection, Secrets and PostgreSQL image. Do not use a fresh-install example over the site. Pause new admissions, disable schedules/cleanup, settle existing work, and retain the consistent private database/key/configuration/journal recovery set. The customer's decision to replace an attempt does not itself clear held custody.
From the extracted 6.0.67-install7 root, verify the received release manifest
and import images into the onsite registry. Use Python 3.11 or newer, authenticated
oc and skopeo; registry credentials stay in its auth file:
python3 install/kit.py verify --source .
python3 install/kit.py import-images --source images --registry onsite.example.org/vesta
Keep the accepted site file and exact previously applied API/agent targets, including their bases. Set the following paths to private locations for this installation. The new site and upgrade directory must not already exist:
umask 077
ACCEPTED_SITE=/private/vesta/site.accepted.json
PREVIOUS_API=/private/vesta/accepted-api
PREVIOUS_AGENT=/private/vesta/accepted-agent
SITE_NEXT=/private/vesta/site.6.0.67.json
UPGRADE_DIR=/private/vesta/upgrade67
mkdir -m 700 "$UPGRADE_DIR"
test ! -e "$SITE_NEXT" && cp "$ACCEPTED_SITE" "$SITE_NEXT"
cp -a "$PREVIOUS_API" "$UPGRADE_DIR/previous-api"
cp -a "$PREVIOUS_AGENT" "$UPGRADE_DIR/previous-agent"
Stop on any command failure. In the new site copy, replace only images.backend,
images.frontend and images.agent with the matching imported 6.0.67 digests.
Keep the installed PostgreSQL image, edition/authentication/module profile,
appearance, license trust, hosts/aliases, Secret references, TLS and resources.
Preserve installed namespace/prefix values, including omissions, and agent
identity, source/restore scopes, acknowledged namespace selection, journal and
scratch placement, storage classes/sizes/modes and concurrency. Fresh examples
use Vesta names; an upgrade retains the installation's existing names. Customer
MSP/Enterprise installations require matching commercial artifacts.
Derive the variables from that preserved configuration:
APP_NAMESPACE=$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))["namespace"])' "$SITE_NEXT")
AGENT_NAMESPACE=$(python3 -c 'import json,sys; c=json.load(open(sys.argv[1])); print(c.get("agent_namespace", c["vm_namespace"]))' "$SITE_NEXT")
RESOURCE_PREFIX=$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1])).get("resource_prefix", "vnbui"))' "$SITE_NEXT")
Render and review these stages from the new kit:
python3 install/render.py --config "$SITE_NEXT" --stage upgrade --output-dir "$UPGRADE_DIR/schema"
python3 install/render.py --config "$SITE_NEXT" --stage rollback-schema --output-dir "$UPGRADE_DIR/rollback-schema"
python3 install/render.py --config "$SITE_NEXT" --stage api --output-dir "$UPGRADE_DIR/api"
python3 install/render.py --config "$SITE_NEXT" --stage agent --output-dir "$UPGRADE_DIR/agent"
The schema and rollback targets are distinct one-shot Jobs using the existing
migration-owner Secret and the new backend image. Neither starts application
servers or changes runtime grants. Review oc kustomize and server dry-run for
each intended target. Keep the rollback target unapplied unless needed. Stop the
API and agent writers while applying this transition; leave PostgreSQL running:
oc -n "$APP_NAMESPACE" scale deployment/"$RESOURCE_PREFIX-backend" --replicas=0
oc -n "$AGENT_NAMESPACE" scale deployment/"$RESOURCE_PREFIX-agent" --replicas=0
# Confirm both Deployments have zero running Pods before proceeding.
oc apply -k "$UPGRADE_DIR/schema"
oc -n "$APP_NAMESPACE" wait --for=condition=Complete --timeout=600s job/"$RESOURCE_PREFIX-upgrade-upload-progress"
oc -n "$APP_NAMESPACE" logs job/"$RESOURCE_PREFIX-upgrade-upload-progress"
Require Schema ready: storage_upload_progress and a successful Job. The command
refuses every other source revision, including an already-applied upgrade, and
rolls back the entire transaction on failure. It bounds lock waiting to 30 seconds
and statements to five minutes. Inspect a failed Job and the actual schema before
any retry; do not blindly delete/recreate it. Do not run migrate, restore-grants,
PostgreSQL setup, password bootstrap or agent enrollment.
Apply the reviewed API target, wait for backend/frontend readiness, then apply the agent target and wait for readiness:
oc apply -k "$UPGRADE_DIR/api"
oc -n "$APP_NAMESPACE" rollout status "deployment/${RESOURCE_PREFIX}-backend" --timeout=10m
oc -n "$APP_NAMESPACE" rollout status "deployment/${RESOURCE_PREFIX}-frontend" --timeout=10m
oc apply -k "$UPGRADE_DIR/agent"
oc -n "$AGENT_NAMESPACE" rollout status "deployment/${RESOURCE_PREFIX}-agent" --timeout=10m
python3 install/reconcile_inputs.py reconcile --namespace "$APP_NAMESPACE" --deployment "${RESOURCE_PREFIX}-backend" --quiesced --timeout=10m
python3 install/reconcile_inputs.py reconcile --namespace "$APP_NAMESPACE" --deployment "${RESOURCE_PREFIX}-frontend" --quiesced --timeout=10m
python3 install/reconcile_inputs.py reconcile --namespace "$AGENT_NAMESPACE" --deployment "${RESOURCE_PREFIX}-agent" --quiesced --timeout=10m
Require all three input checks to report CURRENT. Verify runtime role restrictions,
unchanged catalog/key/agent and PostgreSQL pod identities, namespace scope and
mounted inputs. A fresh bounded backup must show acknowledged payload bytes and
then reach completion through normal publication. Compare timing metrics over the
same active interval; never infer throughput from pod readiness. Restore admission
and schedule settings deliberately only after acceptance.
For GitOps, perform the stop, schema Job and image rollout as ordered reconciled changes. Ensure automated reconciliation cannot restart the old writers while the schema Job runs. Preserve the custom installation's names, mounts and resources.
For a failed activation before admitting new work, rollback also requires paused
admission and stopped API/agent writers. Apply the
retained 6.0.67 rollback-schema target and require its Job to complete with
Schema ready: backup_verification:
oc apply -k "$UPGRADE_DIR/rollback-schema"
oc -n "$APP_NAMESPACE" wait --for=condition=Complete --timeout=600s job/"$RESOURCE_PREFIX-rollback-upload-progress"
oc -n "$APP_NAMESPACE" logs job/"$RESOURCE_PREFIX-rollback-upload-progress"
After that confirmation, apply "$UPGRADE_DIR/previous-api", wait for both old
API/UI Deployments, then apply "$UPGRADE_DIR/previous-agent" and wait for the old
agent. Repeat the mounted-input and identity checks above before restoring the
intended admission state. This downgrade
discards only transfer telemetry. Existing backup, publication, capacity and key
custody remain. Older images enforce exact schema parity, so an image-only rollback
would fail startup while the added column remains. Keep PostgreSQL and identities;
do not restore a database dump over the live database for this column rollback.
If backups or restores have run on the new version, preserve their resulting custody and use a reviewed recovery procedure that confirms the prior binaries can read their journals. A successful schema downgrade alone does not establish that compatibility. Do not delete or rewrite journals to force an older agent to start.
6.0.57, 6.0.58 or 6.0.59 → 6.0.61: application-only upgrade
Use the 6.0.61-install4 kit and its tools. This transition changes the three
application images and rendered configuration, with no database schema change.
Keep PostgreSQL running and retain its image, database, users, Secrets, keys,
backup catalog, held records and agent journals. Do not run PostgreSQL setup,
migrate, restore-grants, password bootstrap or agent re-enrollment. No source
VM, libvirt, node or unrelated workload restart belongs in this upgrade.
The commands below apply to installations managed by the stock renderer.
Customized GitOps installations must carry the same reviewed image/configuration
delta through their own GitOps flow, preserving custom names and site-added
S3/OIDC/JWT/TLS inputs. Do not apply a stock target over customized resources.
Application image changes use separately rendered stages; reconfigure.py
intentionally rejects them.
Prepare and preserve the accepted installation
Coordinate the maintenance window with other operators. In Settings → Backup → Backup admission, select Pause new backups, click Apply admission policy, refresh and confirm the persisted paused revision. Disable schedules and keep automatic cleanup off. Review active and uncertain backup, queue, restore and verification work and wait until it is settled. A paused policy does not stop an already running producer. Record the intended admission, schedule and cleanup state for deliberate restoration after acceptance.
Keep the accepted old site file and exact previously applied API/agent Kustomize targets, including their bases. Retain consistent private database/configuration, application encryption/key/PKI and journal recovery custody. Record the existing schema head, catalog/user/key IDs, default organization, namespace policy and acknowledged selection, agent identity, PostgreSQL pod UID, node boot IDs and VM/VMI/PVC identities for comparison. Do not reset identities to create a window. If the accepted configuration or prior targets are unavailable, obtain a reviewed reconstruction before applying a new render.
From the extracted 6.0.61-install4 release root, verify against the release
manifest received through the trusted delivery channel, then import locally:
python3 install/kit.py verify --source .
python3 install/kit.py import-images --source images --registry onsite.example.org/vnbui
Use Python 3.11 or newer, an authenticated oc context and skopeo with access
to the onsite registry. Registry credentials stay in its auth file. Check runtime
version/source and installer revision/source separately against the delivery
receipt. Retain the printed digest-pinned references. Leave the installed
PostgreSQL image unchanged even if the import prints a PostgreSQL reference.
Set these paths to the installation's actual retained files, outside the verified kit. The upgrade directory and new site file must not already exist:
umask 077
ACCEPTED_SITE=/private/vnbui/site.accepted.json
PREVIOUS_API=/private/vnbui/accepted-api
PREVIOUS_AGENT=/private/vnbui/accepted-agent
UPGRADE61=/private/vnbui/upgrade61
SITE61=/private/vnbui/site.6.0.61.json
mkdir -m 700 "$UPGRADE61"
test ! -e "$SITE61" && cp "$ACCEPTED_SITE" "$SITE61"
cp -a "$PREVIOUS_API" "$UPGRADE61/previous-api"
cp -a "$PREVIOUS_AGENT" "$UPGRADE61/previous-agent"
Stop on any command failure. Edit only the new site copy:
- Replace
images.backend,images.frontendandimages.agentwith the matching imported 6.0.61 digests. The rendered restore-worker image must match the new agent image. - Explicitly record the same installed edition/authentication/module profile.
Community uses
edition: "community"andoperating_profile: {"auth_mode":"single_organization","enabled_modules":[]}. An existing commercial installation needs matching commercial artifacts and its actual existing auth mode/modules; do not infer them from a license or use this Community kit to replace commercial code. See installed profiles. - Preserve the accepted
resource_prefixexactly, including omission. Omitted means legacyvnbui, even with this new kit. Do not copy the fresh example (vesta) or rename installed namespaces, resources, PVCs or identities. - Preserve
vm_namespace, any explicitagent_id, and existing agent namespace and journal placement. Ifagent_namespacewas omitted, leave it omitted: its legacy home remainsvm_namespace. Preservesource_namespaces,selected_namespaces,restore_namespaces, concurrency, scratch PVC mapping, storage classes/sizes/mode, Secret references, TLS/mTLS, hosts/aliases and resources. Keep the administrator's current acknowledged source selection, including[]; do not reapply example defaults or introduce the older 6.0.55 source-policy initialization. - Preserve any existing appearance projection. Schema-1 packs remain supported with safe dark defaults. Optional 1.2.0 appearance adoption is a separate reviewed projection change; never rewrite immutable 1.1.0 packs. The new licensing trust projection is optional and omitted by default. Upgrade creates no production signing key or trusted issuer.
Derive namespace and resource-name variables from that preserved configuration:
APP_NAMESPACE=$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))["namespace"])' "$SITE61")
AGENT_NAMESPACE=$(python3 -c 'import json,sys; c=json.load(open(sys.argv[1])); print(c.get("agent_namespace", c["vm_namespace"]))' "$SITE61")
RESOURCE_PREFIX=$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1])).get("resource_prefix", "vnbui"))' "$SITE61")
Render, review and roll out
Render new targets using this kit's renderer, then review the complete difference against the retained targets and live installation:
python3 install/render.py --config "$SITE61" --stage api --output-dir "$UPGRADE61/api"
python3 install/render.py --config "$SITE61" --stage agent --output-dir "$UPGRADE61/agent"
oc kustomize "$UPGRADE61/api"
oc kustomize "$UPGRADE61/agent"
oc diff -k "$UPGRADE61/api"
oc diff -k "$UPGRADE61/agent"
oc diff exit 1 means differences to review, not an apply; other errors must be
resolved first. Expect the three images, explicit profile env and updated
frontend nginx/site-config. Apply those frontend inputs as well as its image to
receive the routing/static-404 corrections. Existing TLS, namespace permissions,
identity, PVCs and journals must remain correct. Offline API documentation assets
are already inside the new backend image and need no added mount or CDN.
Apply API/UI first and wait for both, then the agent. A single-replica Recreate application restart is expected. Reconcile mounted input revisions after apply:
oc apply -k "$UPGRADE61/api"
oc -n "$APP_NAMESPACE" rollout status "deployment/${RESOURCE_PREFIX}-backend" --timeout=10m
oc -n "$APP_NAMESPACE" rollout status "deployment/${RESOURCE_PREFIX}-frontend" --timeout=10m
oc apply -k "$UPGRADE61/agent"
oc -n "$AGENT_NAMESPACE" rollout status "deployment/${RESOURCE_PREFIX}-agent" --timeout=10m
python3 install/reconcile_inputs.py reconcile --namespace "$APP_NAMESPACE" --deployment "${RESOURCE_PREFIX}-backend" --quiesced --timeout=10m
python3 install/reconcile_inputs.py reconcile --namespace "$APP_NAMESPACE" --deployment "${RESOURCE_PREFIX}-frontend" --quiesced --timeout=10m
python3 install/reconcile_inputs.py reconcile --namespace "$AGENT_NAMESPACE" --deployment "${RESOURCE_PREFIX}-agent" --quiesced --timeout=10m
Require CURRENT for all three. This compares the actual Secret/ConfigMap
UID/resourceVersion inputs and rollout state; an annotation's presence or a
ConfigMap apply alone does not prove startup/subPath inputs were reloaded.
Accept before resuming work
Confirm exact Ready 6.0.61 image digests, original administrator password/SSO login and organization, unchanged catalog/users/keys/schema and PostgreSQL pod, preserved VM/VMI/PVC/node identities, the same agent identity with fresh heartbeat/inventory, verified backend-to-agent TLS, installed namespace ceiling, acknowledged selection and restore destinations. Native agents are a separate host/package rollout; this OKD procedure does not require touching them.
Reload old browser tabs. Verify that a new password sign-in starts realtime
updates without a second reload and that an interrupted WebSocket falls back to
HTTP polling. Check EN/HE desktop/mobile light/dark login and shell,
search/inventory and help. RAM is KiB, disk capacity is bytes, unavailable
observations stay unknown and CBT shows its observed VM/VMI state. These
observations do not alter Enabled-only admission. New backup/schedule requests
must omit workers or send null; non-null overrides now return actionable 422
before allocation. Existing stored schedule values/grants are preserved during
unrelated edits.
On the API host, open /docs and /redoc with external requests blocked and
verify that operations render from local /openapi.json and /docs-assets.
A 200 HTML response alone is insufficient. No browser CDN/font access is needed.
The read-only Licensing summary must preserve installed auth/modules:
certificates are advisory for all installed functions. Community with no
certificate and unconfigured usage thresholds reports not_required. Importing
or expiring a certificate cannot switch organization mode or disable functions.
The 6.0.80 target predates the local Community usage advisory introduced in 6.0.81.
Keep admission, schedules and cleanup paused until these checks pass. Restore the intended admission policy through Apply admission policy with a fresh revision, confirm it persisted, then deliberately restore only the approved schedule/cleanup state. Retain prior targets and recovery custody.
Roll back before admitting new work
If rollout or acceptance fails while no new work has been admitted, keep the installation paused. Restore the retained agent and API/UI targets, including matching configuration, and reconcile their input revisions:
oc apply -k "$UPGRADE61/previous-agent"
oc -n "$AGENT_NAMESPACE" rollout status "deployment/${RESOURCE_PREFIX}-agent" --timeout=10m
oc apply -k "$UPGRADE61/previous-api"
oc -n "$APP_NAMESPACE" rollout status "deployment/${RESOURCE_PREFIX}-backend" --timeout=10m
oc -n "$APP_NAMESPACE" rollout status "deployment/${RESOURCE_PREFIX}-frontend" --timeout=10m
python3 install/reconcile_inputs.py reconcile --namespace "$APP_NAMESPACE" --deployment "${RESOURCE_PREFIX}-backend" --quiesced --timeout=10m
python3 install/reconcile_inputs.py reconcile --namespace "$APP_NAMESPACE" --deployment "${RESOURCE_PREFIX}-frontend" --quiesced --timeout=10m
python3 install/reconcile_inputs.py reconcile --namespace "$AGENT_NAMESPACE" --deployment "${RESOURCE_PREFIX}-agent" --quiesced --timeout=10m
Require CURRENT, prior-version login, the same agent and preserved custody
before deliberately restoring admission. Do not prune PVCs, journals, Secrets or
unrelated resources. No database/schema rollback belongs in this transition.
Once new work has been admitted, preserve its resulting custody and use the
reviewed recovery procedure instead of assuming an image-only rollback suffices.
6.0.55 or 6.0.56 → 6.0.57: application-only upgrade
Use the 6.0.57-install3 kit for either of these transitions; acceptance requires
the post-upgrade checks below. It changes application images and agent configuration,
with no schema change. Do not run
PostgreSQL setup, migrate, restore-grants, password bootstrap or agent
re-enrollment. No database clone or database restart is required for this
transition. Keep the existing database, users, Secrets, keys and agent journal.
The schema-changing recovery guidance later in this guide is separate.
For a stock kit installation:
- In Settings → Backup → Backup admission, select Pause new backups and click Apply admission policy; this is separate from Save Settings. Refresh and confirm the saved paused policy. Disable schedules and keep automatic cleanup off. Inspect active/uncertain backup, restore and verification work; wait until it is settled before restarting application pods. Pausing admission does not terminate existing work.
- Retain the accepted current-version
site.json, its digest-pinned images and exact previously appliedapi/agentKustomize targets privately as/private/upgrade57/previous-apiand/private/upgrade57/previous-agent. Preserve the existing recovery custody and journal; do not reset credentials or make a new identity. For 6.0.56, record the installed namespace policy and current acknowledged source selection before rollout; the UI selection can differ from the install-time default. Verify/import the 6.0.57 kit:
bash
python3 install/kit.py verify --source .
python3 install/kit.py import-images --source images --registry onsite.example.org/vnbui
Start site.6.0.57.json from the accepted old site, not the new example.
Replace only the images.backend, images.frontend and images.agent image
references with the new exact import receipts. Leave PostgreSQL unchanged,
even if the kit import also prints a PostgreSQL reference. Retain all Secret
names, TLS inputs, storage classes/sizes/mode and restore destinations.
3. Preserve vm_namespace, any explicit stable agent_id, and the existing
agent application/journal namespace. If agent_namespace was omitted, leave
it omitted: its legacy home remains vm_namespace. Do not move its PVC or
replace its technical identity with the friendly display name.
From 6.0.55: introduce source_namespaces and selected_namespaces as
the singleton containing the existing vm_namespace; keep
restore_namespaces unchanged and set max_concurrent_backups to 1.
This introduces the installed policy without expanding namespace authority
or requiring a new registration key.
From 6.0.56: retain the installed source_namespaces ceiling,
selected_namespaces default, restore_namespaces, per-source
scratch PVCs, rendered policy scratch_pvcs mapping and concurrency unchanged.
Retain the administrator's current acknowledged source selection in the
backend/agent, including an intentionally empty selection. Do not reset either selection to a singleton
or reapply example defaults. Preserve existing hostname aliases, appearance
projection, grants, agent namespace and journal placement.
Leave hostname, appearance and scope changes for a separate supported
reconfiguration after upgrade acceptance.
4. Render the two stages separately into new private directories. Review/diff
them against the retained targets. Image changes are expected; only the
6.0.55 path introduces the source-policy ConfigMap, policy env/mounts and
concurrency setting. The 6.0.56 path retains its accepted policy and mounted
inputs. Identity, Secret references, journal/PVC and existing RoleBindings
must remain correct. AGENT_NAMESPACE below means the existing agent
namespace (vm_namespace when agent_namespace is omitted).
bash
python3 install/render.py --config /private/site.6.0.57.json --stage api --output-dir /private/upgrade57/api
python3 install/render.py --config /private/site.6.0.57.json --stage agent --output-dir /private/upgrade57/agent
oc kustomize /private/upgrade57/api
oc kustomize /private/upgrade57/agent
oc diff -k /private/upgrade57/api
oc diff -k /private/upgrade57/agent
oc diff exit1 means differences to review, not an apply. Apply API/UI first,
wait for both, then apply the agent. A single-replica Recreate restart is
expected; no node, source VM or PostgreSQL restart belongs in this procedure.
bash
oc apply -k /private/upgrade57/api
oc -n APP_NAMESPACE rollout status deployment/vnbui-backend --timeout=10m
oc -n APP_NAMESPACE rollout status deployment/vnbui-frontend --timeout=10m
oc apply -k /private/upgrade57/agent
oc -n AGENT_NAMESPACE rollout status deployment/vnbui-agent --timeout=10m
python3 install/reconcile_inputs.py reconcile --namespace APP_NAMESPACE --deployment vnbui-backend --quiesced --timeout=10m
python3 install/reconcile_inputs.py reconcile --namespace APP_NAMESPACE --deployment vnbui-frontend --quiesced --timeout=10m
python3 install/reconcile_inputs.py reconcile --namespace AGENT_NAMESPACE --deployment vnbui-agent --quiesced --timeout=10m
Require CURRENT from all input checks: ConfigMap/Secret apply alone does not
reload subPath or startup inputs. Check existing-admin login, UI/API TLS and
readiness, exact 6.0.57 image references, original agent identity with fresh
authenticated heartbeat, backend-to-agent TLS readiness, unchanged catalog/
user/key counts, installed namespace ceiling, acknowledged selected inventory
(including an empty selection) and restore destinations. For a 6.0.56
upgrade, compare these with the retained pre-upgrade policy and selection.
Remain paused until these checks pass; then restore the intended admission
and schedule state deliberately. No new backup is needed merely to prove
that an image/config rollout retained its identities.
Customized GitOps installations: make this same bounded image delta (plus the initial policy only when upgrading from 6.0.55) in their existing GitOps resources, preserving all site-added S3/OIDC/JWT env, Secret references, Route names, stable agent identity and journal mounts. Review and apply through that installation's GitOps flow; do not blindly apply a stock render over custom resources. Complete the same post-upgrade checks before resuming work. Agent source selection in the UI remains inside the installed ceiling; UI edits do not create Kubernetes RBAC grants.
Rollback before new work: if rollout/config checks fail while admission and
schedules are still paused, restore the retained prior-version previous-agent and
previous-api targets as a coordinated image/config rollback, wait for each
Deployment, then run the same reconcile_inputs.py reconcile checks:
oc apply -k /private/upgrade57/previous-agent
oc -n AGENT_NAMESPACE rollout status deployment/vnbui-agent --timeout=10m
oc apply -k /private/upgrade57/previous-api
oc -n APP_NAMESPACE rollout status deployment/vnbui-backend --timeout=10m
oc -n APP_NAMESPACE rollout status deployment/vnbui-frontend --timeout=10m
Keep the previous RBAC baseline; do not prune PVCs, the journal or unrelated resources. Recheck old-version login, catalog/keys and the same agent identity before resuming. There is no schema rollback or database restore for this transition. Once new work has been admitted, preserve its resulting custody and use a reviewed recovery path rather than blindly reverting it.
Before a schema-changing upgrade or recovery
Pause scheduled/new admissions, then inspect active and uncertain attempts. Preserve producer journals and all required source/key/storage custody. A paused scheduler does not prove an already-started producer stopped. Do not restart a VM, libvirt, PostgreSQL or a node to create an upgrade window.
Retain the current digest-pinned images, rendered configuration, database dump, application encryption settings, PKI/identity material, exported KEKs and agent journals in private off-pod recovery storage. Capture them at a consistent, quiesced point. An encrypted key export without its password, or a database dump without application/key/journal custody, is not a complete recovery set.
Verify a restore rehearsal into an isolated database/resources before applying an important migration. A reviewed forward migration uses owner authority only for that operation; normal API processes keep the restricted runtime login. Never enable SUPERUSER/BYPASSRLS on the API or disable isolation to make it start.
Apply and check
Use the approved transition's ordered migration/grant/rollout steps and exact image digests. Inspect readiness, runtime database identity, agent enrollment, existing catalog/key counts and the first bounded operation. Changing an image tag or seeing Ready pods is not proof that data and authorization were preserved. Retain the previous recovery set until the new release has been accepted.
If the exact transition has no supported migration/recovery procedure, stop and obtain one. Do not adapt a fresh-install Job, delete old rows or improvise SQL against the running installation. Collect diagnostics instead.
Rollback and control plane recovery
Schema changes may prevent image-only rollback. Fence new work and restore the consistent database/configuration/key/journal set into isolated targets first. Use the matching previous images and runtime grants, then validate catalog and key custody before resuming dispatch. Do not overwrite an active database or merge competing journal identities. Keep uncertain producer state fenced until its original ownership and termination have been established.
For an already restored exact-schema database, the install renderer's
restore-grants stage applies restricted runtime grants; it does not restore data
or run an upgrade. Never combine it with the migrate fresh-install stage.
Before pg_restore, prepare private defaults in the new, empty target database
under the actual replacement owner that will create restored objects. Defaults
are local to each database and creating role; copying a source role's default ACL
or applying defaults after restore does not protect newly created functions.
PostgreSQL otherwise gives PUBLIC EXECUTE on new functions, including when
--no-owner maps them to a replacement owner or --no-acl skips archive ACLs.
Use the separately mounted owner connection with verified TLS. Confirm
current_database() and current_user match the reviewed target and replacement
owner, confirm the public schema contains no relations or routines, then execute
in that database as that same owner, before restoring any object:
BEGIN;
-- GLOBAL is deliberate: an IN SCHEMA revoke cannot remove global defaults.
ALTER DEFAULT PRIVILEGES REVOKE ALL ON FUNCTIONS FROM PUBLIC;
COMMIT;
Establish the remaining reviewed owner/runtime defaults before restore as well;
the shared core.runtime_grants.apply_default_runtime_grants routine clears
PUBLIC and runtime defaults for tables, sequences and functions under its actual
current user. A login migrator using SET ROLE must select the same replacement
owner for this preparation and pg_restore --role. Do not set defaults only for
the login identity. Never perform this preparation against an existing target as
an improvised repair.
Keep the dump and its ACL inventory. If retaining archive ACLs, precreate only
reviewed inert source-owner identities and restricted ACL recipients as required;
--no-owner does not remap ACL role names. If the reviewed procedure uses
--no-acl, run the matching restore-grants stage afterward. In either case,
compare effective table, sequence and routine privileges with the accepted source
before starting writers. Require zero unexpected differences. A default-ACL
preparation performed too late needs a fresh isolated restore; do not waive the
difference or apply blanket post-restore grants/revokes to hide it.
The optional install/kit.py seal-control-plane command encrypts a PostgreSQL
dump and a prepared private custody snapshot using age. It requires a libpq
service and recipients file, explicit --quiesced, and a new destination.
For a customer-postgresql release, also pass --pg-host (explicit TCP server
certificate identity) and --pg-ca-file (existing private CA file). The bundled
profile is inherited, or source tools may select it with --config/--profile;
a contradictory site profile is refused. Explicit verify-full/CA/TCP/GSS-disabled
parameters override weaker service/environment settings. See
customer PostgreSQL capture for the complete command. It
does not itself pause dispatch, stop producers, capture live journal consistency
or copy S3 payloads. Use --help for the installed command; pass no credentials
in URLs or shell arguments. Verify the archive and retain its decryption identity
separately. S3 data and its exact versions need their own retention/recovery plan.
A same-cluster restore exercise demonstrates only that environment. Independent site recovery requires separate storage and key custody and its own rehearsal; do not report it as passed on the strength of a local application reinstall.