64 lines
3.9 KiB
Markdown
64 lines
3.9 KiB
Markdown
# CMS r41: scoped, immutable base discovery
|
|
|
|
On 2026-11-05 the operator verified installed runner SHA
|
|
`73938104fcd004f028a52f5c4f46bf68af0712e25a828f014cb141af93745d26`.
|
|
Canonical plan for r41 stopped with
|
|
`CMS local base image inventory is invalid or outside bounds`.
|
|
The old guard combined empty inventory, more than 2048 unique IDs and invalid
|
|
ID formatting into that message. The actual NAS inventory was not captured;
|
|
there is no claim that a particular count or malformed line caused the failure.
|
|
The prior controller status also recorded TimeoutExpired, without its source.
|
|
|
|
r41 source is `4369f0a0cb813075e10ac917da62529420559f69`, Gitea run 41/number 3.
|
|
Artifact `nodedc-dc-cms-release-v1-r41-4369f0a0cb813075e10ac917da62529420559f69.tgz`
|
|
is 99102 bytes, SHA-256
|
|
`576fd0c07fb35a1803a56e665b25b06628ce41137bc2ac954a0c801179f57a77`.
|
|
Qualification passed and all payload bytes match the committed source.
|
|
The lifecycle inspector still reports staged, no applied/failed record or
|
|
backup, matching SHA, no warnings. r41 has not entered application apply.
|
|
|
|
The global inventory is removed. The new resolver first follows immutable
|
|
Parent IDs from the accepted CMS image, including untagged legacy ancestors.
|
|
Every edge must retain platform and a root-filesystem layer prefix; metadata
|
|
steps with equal layers are allowed. Invalid IDs, cycles, inconsistent layers
|
|
or platform, and depth beyond 128 edges stop safely. The nearest proven Node
|
|
base must pass all existing configuration and filesystem checks; a Parent
|
|
pointer alone is insufficient.
|
|
|
|
For images without a usable Parent chain, the fallback lists only local Node
|
|
repository references (`node:*`, `docker.io/library/node:*`), using explicit
|
|
`{{json .ID}}` formatting and full IDs. At most 256 rows are admitted. Each
|
|
candidate is inspected by immutable ID and re-proved against the accepted CMS
|
|
image; exactly one match is required. Tags are discovery hints, not authority.
|
|
A base absent from both paths fails before mutation. No global inventory,
|
|
prune, pull, base reconstruction or use of the old full application as a base.
|
|
|
|
CMS base-discovery reads have 30-second subprocess timeouts and an 8 MiB output
|
|
ceiling. Failures expose only allowlisted `cms-base-*` reason codes in the
|
|
public controller projection. Docker stderr, environment values, command
|
|
arguments and arbitrary DeployError messages are not copied into that status.
|
|
Runtime comparison, service scope, release identity, rollback, queue ordering,
|
|
source qualification, Device Core and the build recipe remain unchanged.
|
|
|
|
Validation: 93 CMS tests and 95 Device Core regression tests passed. Tests
|
|
cover untagged parent ancestry without listing, metadata steps, cycles, depth,
|
|
platform/layer mismatch, mutable tag drift, absent/ambiguous fallback, invalid
|
|
IDs, inventory bounds, timeouts and redacted status. A real local Docker
|
|
integration exercised the Parent chain and explicit JSON Node-only filter
|
|
(an inspect fixture cleared Parent to model that path), then built from the
|
|
same proved base. Exact inherited configuration and clean exported layers
|
|
passed. Only isolated local test tags were created and removed; no NAS or
|
|
workload containers were used. This does not prove NAS base availability.
|
|
|
|
After atomic root runner promotion and verify-install, the existing controller
|
|
performs a fresh canonical plan and apply for the queued r41. The corrected
|
|
runner is a relevant external-state change; no application artifact is changed
|
|
or restaged. r39/r40 and bootstrap/reconciliation remain terminal and must not
|
|
be replayed. An actual canonical application receipt is still required before
|
|
multisite migration and public-site publication.
|
|
|
|
Post-promotion evidence: the operator verified aa507dc and the controller reached
|
|
`cms-base-missing` at 06:29:54 UTC. The lookup worked but no candidate passed the
|
|
predicate. A reproducible Compose-label ownership error and the corrected
|
|
build model are documented in [the follow-up](R41_COMPOSE_LABELS.md).
|