Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/publish-current-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,12 @@ jobs:
"$evidence/host-api-${HOST_API_VERSION}.tar.gz" |
tee "$evidence/host-api-package-check.txt"
fi
printf 'SERVER_CANDIDATE_SMOKE_OK release=%s first_attempts=%s restart_attempts=%s catalog_exact_api_reads_per_phase=8 first_contract_attempts=%s restart_contract_attempts=%s http=200 body=pong public_origin=https://stack.example.test private_api_cache=no-store\n' \
"$RELEASE_TAG" "$first_attempts" "$restart_attempts" \
catalog_api_reads="$(sed -n 's/^CATALOG_RELEASE_READY_OK commit=[0-9a-f]\{40\} exact_api_reads=\([1-9][0-9]*\)$/\1/p' "$evidence/catalog-first-start.txt")"
restart_catalog_api_reads="$(sed -n 's/^CATALOG_RELEASE_READY_OK commit=[0-9a-f]\{40\} exact_api_reads=\([1-9][0-9]*\)$/\1/p' "$evidence/catalog-restart.txt")"
[[ "$catalog_api_reads" =~ ^[1-9][0-9]*$ ]]
test "$catalog_api_reads" = "$restart_catalog_api_reads"
printf 'SERVER_CANDIDATE_SMOKE_OK release=%s first_attempts=%s restart_attempts=%s catalog_exact_api_reads_per_phase=%s first_contract_attempts=%s restart_contract_attempts=%s http=200 body=pong public_origin=https://stack.example.test private_api_cache=no-store\n' \
"$RELEASE_TAG" "$first_attempts" "$restart_attempts" "$catalog_api_reads" \
"$first_contract_attempts" "$restart_contract_attempts" |
tee "$evidence/candidate-smoke.txt"

Expand Down
13 changes: 13 additions & 0 deletions COMPATIBILITY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Compatibility Contract

## Server v1.6.604 candidate

The legacy read-only `library:infra*container-crontab` alias preserves the
namespace and exposes exact historical revision 3 and compatibility revision 4.
Normal Stack upgrade retains the `container-crontab` service key, `metrics` and
`debug` questions, metadata service-state checks, and stop-first activation. Finish and rollback retain
their existing native lifecycle. New installations use `container-schedule:4`.
Workload cron labels and `TZ` values are preserved; `cron.timezone` remains a
label without newly introduced timezone semantics.

Publication and affected deployment acceptance are pending. See the
[candidate release note](docs/releases/server-1.6.604.md).

## Server v1.6.603 published

Catalog Service **0.20.19** natively bootstraps the exact bundled default Catalog
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,20 @@ See the [release note](docs/releases/server-1.6.603.md),
[upgrade guide](docs/upgrades/README.md#bundled-default-catalog) and
[compatibility contract](COMPATIBILITY.md).

## Next source candidate

Server `v1.6.604` prepares an in-place migration for existing
`library:infra*container-crontab` Stacks and updates the managed load-balancer
default. Its [candidate release note](docs/releases/server-1.6.604.md) records
the component, validation and rollback boundaries. Publication and affected
deployment acceptance are pending.

A Server image update preserves an explicitly configured Catalog pin. Existing
installations that retain `CATTLE_CATALOG_URL` must select the reviewed v1.6.604
pin to load the new compatibility revisions; see the
[Catalog pin upgrade steps](docs/upgrades/README.md#legacy-container-crontab-migration).
A clean installation uses the new image's bundled defaults automatically.

## Component capabilities

Browser users can select an environment by name and review switching context or
Expand Down
3 changes: 3 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ operator deployment and business-workflow acceptance are recorded separately.
- [Current Server v1.6.603](releases/server-1.6.603.md) — Engine `0.183.395` /
Web Console `1.6.239` / optional Bridge `0.2.37`.

- [Server v1.6.604 candidate](releases/server-1.6.604.md) — legacy Container
Crontab migration and managed load-balancer update; publication pending.

- [Release archive](RELEASE-ARCHIVE.md) — historical published and candidate notes retain
their original evidence, acceptance limits and rollback context; these are not
the current installation guide.
Expand Down
106 changes: 106 additions & 0 deletions docs/releases/server-1.6.604.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# Server v1.6.604 candidate

## Candidate boundary

This source candidate prepares the legacy Container Crontab Catalog migration
and a new managed load-balancer default. Server build, publication and affected
deployment workflows remain pending. The published installation target remains
v1.6.603 until the release workflow produces the new immutable image.

## Verified component inputs

Engine v0.183.395, Web Console 1.6.239, Compose Executor 0.14.46 and the
new-registration Agent v1.2.36 retain their existing component identities.

Catalog Service [v0.20.20](https://github.com/PastureStack/catalog-service/releases/tag/v0.20.20)
is published from `bced4b96b0c6a0fe7d3db044f5c30a5b33d01172` by
[release run 45133228172](https://github.com/PastureStack/catalog-service/actions/runs/45133228172).
Its archive SHA-256 is
`6bce527300205aeb0d589b67f4b38e037be3bdb8e6da5ea04f7357d287eedf6d`;
the Catalog binary SHA-256 is
`acf89922925f62ce2ae9333636568f50c7fa6a2dee8b843e68dd8be43d8342b4`;
the SQLite helper SHA-256 is
`c7e6c53d2382d7955edaf8b77869d6df3aa9e7cab2b7bf7646080791b3169e16`.
The license SHA-256 remains
`0d542e0c8804e39aa7f37eb00da5a762149dc682d7829451287e11b938e94594`.

The complete default Catalog source is pinned to
`8c1c28318580d5ec18c14a13b224ce0e02e40bf8`. Its self-contained Git bundle
SHA-256 is `d9a678ef2c1dfd08a599b799cad57ac77cfc9b0f65a158ff1162702b571dccf5`.
The manifest requires seven exact template revisions. Publication readiness
reads eighteen canonical and legacy template/templateversion identities during
both first startup and restart; the smoke summary reports the counts read from
those native readiness receipts.

Load Balancer Service [v0.9.35](https://github.com/PastureStack/load-balancer-controller/releases/tag/v0.9.35)
is published from `9ea5bbf51cb54275331d37b1e241d78875a19ab8` by
[release run 45130590088](https://github.com/PastureStack/load-balancer-controller/actions/runs/45130590088).
The linux/amd64 image is
`ghcr.io/pasturestack/load-balancer-service:v0.9.35@sha256:9211b842f13e609950f495cac1717383fcbf647c471972f7a1836c13ee4c936b`.
It provides HAProxy 3.4.8 with AWS-LC 5.14.0 and Lua 5.4.8.

## Legacy Container Crontab migration

The complete bundled Catalog includes both historical
`container-crontab:3` and compatibility `container-crontab:4`, alongside the
canonical `container-schedule:4` template for new installations. The historical
revision retains the original compose bytes. Exact reads of
`library:infra*container-crontab:3` and `:4` preserve the library namespace;
the alias does not enable writes to that Catalog.

The image updates default coordinates, not an explicitly configured operator
pin. A clean installation loads these revisions from the matching new bundled
default. An existing Compose or container environment that retains
`CATTLE_CATALOG_URL` with the v1.6.603 pin must explicitly select this release's
reviewed Catalog pin before the new compatibility revision becomes available.
Change only that source entry's `pinnedCommit`, preserving its name, URL,
branch, all other sources and unrelated environment values. A deliberate custom
source or pin retains its existing policy and is never silently migrated.
Read back the effective `catalog.url`, indexed commit and exact revision APIs
before submitting a Stack upgrade. No startup worker or direct database pin
rewrite is part of this release.

An existing Stack upgrades in place through the normal Stack **Upgrade** action.
The compatibility revision retains the `container-crontab` service key and the
`metrics` and `debug` settings. The maintained `--metadata-mode` preserves the
legacy service-state checks. Its stop-first strategy stops the previous
scheduler before activating its replacement. Keep the replacement unconfirmed
until its scheduled jobs and retained configuration pass acceptance, then use
**Finish Upgrade** or **Rollback**. Creating another canonical scheduler on the
same Host is not the migration procedure.

Workload `cron.schedule`, `cron.action`, `cron.restart_timeout`, custom labels
and `TZ` settings retain their configured values. `cron.timezone` is preserved
as a label; this release does not introduce new timezone-label semantics or
cross-process leader election.

## Managed load balancer

New load-balancer creation and the packaged HA compose use v0.9.35 as the
component default. Existing load balancers retain their image until their own
normal service upgrade. Acceptance must check the actual HAProxy version,
HTTP routing and certificate-verified HTTPS before finishing, and check the
retained previous configuration through rollback.

Explicit settings retain precedence over the new image default. Inspect the
resolved `activeValue` and `source` for both `lb.instance.image` and
`lb.instance.image.uuid`; they must select the same component, with the UUID
using its `docker:` prefix. When advancing an existing database override, use
the standard settings interface or Setting API to update both keys and read
them back. The image replacement does not force a database rewrite. Similarly,
a stored Catalog `value` is not its effective source when an environment
override supplies the resolved `activeValue`.

## Validation and rollback boundary

The release must pass the existing source, artifact identity, security,
fresh-volume startup and restart gates. Exact Catalog readiness includes the
historical and current compatibility revisions and their legacy aliases.
Component publication does not establish Server deployment or workload
lifecycle acceptance.

Keep the previous Server container/image and all persistent volumes. Server
rollback does not reverse completed Stack upgrades; retain each Stack or
service rollback point until its affected behavior has passed. The old-runtime
QA substitution used to isolate metadata migration must be identified in any
acceptance report, rather than reported as an unchanged historical binary.
79 changes: 75 additions & 4 deletions docs/upgrades/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

## Bundled default Catalog

Server v1.6.603 includes the complete default Catalog Git source at its pinned
commit and Catalog Service v0.20.19. On startup and refresh, the service verifies
Server v1.6.604 candidate 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
Expand All @@ -13,20 +13,91 @@ For the bundled source, an empty cache, stale index, missing required revision o
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 four required system
template revisions; a nonempty list or healthy workload alone is insufficient.
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

The v1.6.604 source candidate 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.604
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.

## Managed load-balancer image settings

Server v1.6.604 selects Load Balancer Service v0.9.35 for new load balancers.
An explicit database or environment setting retains precedence over that image
default. Read the effective `activeValue` and `source` of both settings:

| Setting | Selected v1.6.604 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` |

The image and image UUID must identify the same selected component. If an
existing database setting is intentionally being advanced, explicitly update
both keys through the standard settings interface or Setting API and read back
their effective values and sources. Updating only `lb.instance.image` can leave
an older UUID active. Keep deliberate custom image selections unchanged.

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.

## Catalog infrastructure-stack upgrades

An available update is a Catalog candidate, not an upgrade already in progress.
Expand Down
Loading