GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — server/docs/upgrades/README.md at main · PastureStack/server

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
267 lines (221 loc) · 14.3 KB
/

README.md

Copy path

File metadata and controls

267 lines (221 loc) · 14.3 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Upgrade and persisted-coordinate migration

Bundled default Catalog

Server v1.6.605 includes the complete default Catalog Git source at its pinned commit and Catalog Service v0.20.20. On startup and refresh, the service verifies the bundle SHA-256, complete Git objects and exact pinned commit before indexing it. This applies only when the configured source URL, branch and pinned commit match the bundled manifest. Explicit custom sources retain their source policy and network requirements; the service does not change a custom source or pin.

For the bundled source, an empty cache, stale index, missing required revision or modified cache is recovered from the image's verified source. A bad bundle or unparseable source preserves the existing index and reports a diagnostic error. Refresh operations are serialized, and external Git commands have a deadline. The native health check requires the pinned commit and all seven required template revisions, including both historical and current Container Crontab revisions. Release readiness also verifies their read-only library aliases; a nonempty list or healthy workload alone is insufficient.

After an image upgrade, verify the effective catalog.url source, its Catalog API commit, and both template and exact templateversion APIs for each deployed Stack externalId. They must agree. Once resolved, use the existing two-phase upgrade below. Recovering the index does not recreate healthy Stack containers or change their saved configuration. Image registries still need to be reachable. Read the Setting's resolved activeValue and source: a stored value can be older while an environment override supplies the effective Catalog source.

Keep the previous Server image and existing volumes for rollback. Returning to a release without bundled-source support restores that release's dependency on remote Git access; it does not undo completed Stack upgrades. Keep their own rollback points until their affected networking and health checks pass.

Legacy Container Crontab migration

Server v1.6.605 provides a read-only compatibility path for catalog://library:infra*container-crontab:3 to revision 4. Verify that both exact versions are readable before upgrading. The hidden compatibility template retains the existing container-crontab service key, the metrics and debug settings, and service-state checks through --metadata-mode; a new installation uses container-schedule:4 instead.

A clean installation using the new image defaults automatically selects the matching bundled source. Updating an existing Server image does not override an explicit Catalog source or pin. In particular, retaining the previous CATTLE_CATALOG_URL environment value also retains its old pinnedCommit and does not select the new compatibility revisions.

Before the Stack upgrade:

  1. Read the effective catalog.url and the Compose/container Catalog overrides, including CATTLE_CATALOG_URL and any RC16_CATALOG_URL. Keep deliberate custom sources and pins unchanged.
  2. For the built-in PastureStack source being advanced to this release, update only its pinnedCommit to the reviewed commit recorded in the v1.6.605 release note. Preserve the source name, URL, branch, all other Catalog entries and unrelated environment values. Recreate the Server with the same volumes and retained rollback container/image.
  3. Verify the effective source and Catalog API commit match the selected pin, then read both exact library:infra*container-crontab:3 and :4 identities. Continue only when both are available under the retained library namespace.

The Server does not run a worker or write the database to replace an operator's Catalog pin. Matching the new built-in pin to the bundled manifest is an explicit deployment configuration update.

Use the existing Stack Upgrade, verify the replacement scheduler and jobs, then choose Finish Upgrade or Rollback. The compatibility strategy stops the previous scheduler before starting its replacement. Do not create a second canonical scheduler on the same Host during this migration: the component does not provide cross-process leader election.

Preserve the workload's cron.schedule, cron.action, cron.restart_timeout, custom labels and TZ values. cron.timezone is retained as a label; the compatibility migration does not introduce new timezone-label behavior. Keep the previous scheduler configuration until actual scheduled execution and the retained settings pass. Finishing consumes the native rollback point.

The original rancher/container-crontab:v0.5.0 template fixes its Docker API version at 1.24. An unmodified historical-runtime test therefore needs a compatible legacy test baseline; Docker 29's default minimum API 1.40 rejects that old client. Do not lower a production daemon's API minimum merely to make a test pass. Record the actual source binary and test environment, retain the original settings during rollback, and verify the maintained target against the host's normal API configuration. A maintained 0.6.1 source fixture is not evidence of original 0.5.0 behavior. Timer pauses during stop-first handover are not a promise to replay missed historical ticks.

Managed load-balancer image settings

Server v1.6.606 selects Load Balancer Service v0.9.35 for new load balancers. Read settings with an authorized administrator, using the console's API View or the same authenticated Settings API. Keep each request's status and the fields actually returned (value, activeValue, inDb, and optional source).

Setting Selected component
lb.instance.image ghcr.io/pasturestack/load-balancer-service:v0.9.35
lb.instance.image.uuid docker:ghcr.io/pasturestack/load-balancer-service:v0.9.35

lb.instance.image is in the public-setting allowlist. The internal image UUID requires a policy allowed to list all settings; a System Service or scoped API key need not have that policy. Its 404 or omission from a collection does not prove that the internal value is missing or incorrect. A missing source field is unknown, not a database diagnosis. Do not add a database row, relax the allowlist or change permissions merely to make that read return 200.

The image and image UUID must resolve to the same selected component. Check explicit overrides separately from the image's DEFAULT_CATTLE_* values and the Engine's derived docker:${lb.instance.image} default. When defaults already resolve correctly and inDb is false, leave them inherited; no new database setting is needed. If a deliberately retained override is being advanced, preserve its original value/source and use the existing authorized Setting API PUT on its self link with {"value":"..."}. Read back the effective values afterward. An independent older UUID override must be handled explicitly; changing only the public image value does not remove it. Keep deliberate custom image selections unchanged.

Two separate setting updates are not an atomic transaction. If a required second update fails, restore the first through the same supported interface and verify the previous effective pair. Updating a setting and upgrading an already running service are separate operations; do not use direct SQL.

This setting change controls new creation; existing load-balancer services need their normal service upgrade, HTTP and certificate-verified HTTPS acceptance, then Finish Upgrade or Rollback. The Server does not force database setting changes when its image is replaced.

Native load-balancer upgrade and rollback

Server v1.6.606 packages Web Console 1.6.242 with the native load-balancer image-upgrade path. The UI submits the complete primary and secondary launch configurations through the service upgrade action, retaining their previous values until Finish Upgrade or Rollback. It does not first save the replacement image onto the active service.

Actual edits to service-level name, description, scale or the complete lbConfig are saved separately before the image upgrade. Those fields retain their existing metadata semantics; native image rollback does not promise to roll them back transactionally. In particular, this fix does not establish transactional rollback of changed port rules or certificates.

Before finishing, verify the actual replacement image and HAProxy version, HTTP routing, certificate-verified HTTPS, rules, certificates and backend health. Image rollback restores the retained primary/secondary launch configurations and previous image. Finish Upgrade consumes that rollback point. The corrected path does not recreate a previous launch configuration that an earlier UI operation already overwrote. Both Stack rows and service details expose the same explicit image candidate, including the old and new tags. The managed update entry preserves custom repositories/tags and explicit digest pins; a tag string alone cannot establish a digest identity. Ordinary editing does not select a different image. The direct image-update URL rechecks the resource action and candidate as well. See the release note for the exact publication identity and scoped acceptance status.

Catalog infrastructure-stack upgrades

An available update is a Catalog candidate, not an upgrade already in progress. Manual Catalog upgrades use two phases:

  1. Choose the candidate and submit Upgrade. Wait for the stack and its services to reach upgraded with no transition error.
  2. Verify the replacement containers and the plugin's readiness/network behavior. Upgraded: Finish Upgrade means confirmation is pending; stopped previous containers are retained for rollback and may be included in the displayed container count.
  3. Choose Finish Upgrade to commit, or Rollback to restore the previous configuration. Finishing consumes that rollback point. Wait for active and verify that the superseded container IDs have been removed.

Do not remove retained containers manually or disable the confirmation step to make a status badge disappear. Catalog template versions and component image versions are separate; a template-only upgrade may keep the same image.

Server v1.6.548 pins Catalog v0.3.16, whose Network Services revision 13 uses Network Plugin Manager v0.8.25 and Metadata Service v0.10.6. The manager reselects live, authorized CNI providers when an old driver stops or its replacement starts; Metadata preserves the engine's opaque change token so endpoint watchers observe new containers. Dependency removal remains with the Server lifecycle. Managers older than v0.8.24 retain their destructive Metadata/DNS reaper; upgrading only the Server image does not replace those already running services.

A successful Stack API response alone does not prove a healthy migration. Retain the rollback point and verify Metadata version changes, DNS, replacement CNI selection and the actual cross-host network path before finishing an upgrade. The 548 release note separates verified publication from its completed, scoped real-host acceptance. Those results do not replace verification of an operator's own upgrade and rollback points.

Persisted runtime coordinates

Server v1.6.548 retains Load Balancer Service v0.9.33 as the image default and in both HA Compose templates. Database settings and explicit operator overrides take precedence over the new image defaults. An existing persisted v0.9.27 pair therefore stays on v0.9.27; an administrator must explicitly update both lb.instance.image and lb.instance.image.uuid to select v0.9.33 for newly created load balancers. Preserve custom images and mixed settings for operator review.

Changing these defaults or settings does not replace existing Services or their containers. Upgrade only the selected load-balancer Service, verify its new containers, then explicitly finish or roll back the upgrade. Do not use a bulk environment upgrade for this change: it can also replace custom load-balancer images and finish their upgrades automatically.

The coordinate migration tool below retains its earlier reviewed targets. Its apply action overwrites allowlisted settings, including custom LB coordinates; it is not an automatic v0.9.27 to v0.9.33 upgrade path. Use its read-only audit to inspect persisted configuration before choosing a migration.

A new container image does not automatically replace values already stored in an existing control-plane database. Older installations can therefore continue to request a private registry, a temporary HTTP server, or an obsolete Catalog even when the new image contains correct defaults.

scripts/migrate-approved-runtime-coordinates.sh handles only this narrow, reviewed allowlist:

  • node registration and load-balancer images;
  • node-agent and host-API downloads;
  • the six user CLI and Compose downloads;
  • the commit-pinned PastureStack Catalog; and
  • four non-coordinate settings only when they contain a clearly invalid image reference.

The default action is a read-only audit. It does not print previous values, database passwords, credentials, registration commands, or API secrets:

scripts/migrate-approved-runtime-coordinates.sh audit \
  --container pasturestack-server

Public verification fetches the approved Catalog by its full content-addressed commit. It does not require the Catalog main branch to remain frozen after a Server release.

Run the audit and apply action against an isolated restore of the latest database first. apply requires an explicit confirmation flag and creates a mode-0600 rollback bundle before opening its database transaction:

scripts/migrate-approved-runtime-coordinates.sh apply \
  --container pasturestack-server \
  --backup-root /secure/operator-owned/path \
  --restart \
  --yes

The output reports the exact rollback-bundle directory. Keep it with the database and /var/lib/cattle backup made immediately before the upgrade. Rollback restores only the snapshotted allowlisted rows:

scripts/migrate-approved-runtime-coordinates.sh rollback \
  --container pasturestack-server \
  --backup-dir /secure/operator-owned/path/runtime-coordinate-YYYYMMDDTHHMMSSZ \
  --restart \
  --yes

The migration is not a substitute for a complete backup, an isolated restore, authenticated API and RBAC checks, host-agent checks, system-stack lifecycle checks, or a tested full rollback. Do not run it directly against the only copy of a production database.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.