Supervise RedDwarf components and derive readiness from live checks #3
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/component-supervision-20261001"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
RedDwarf WI-2: 01a0f6e0-dc28-7072-8fc9-972d7beb2525
Stacked on #2.
Essential component errors, panics and unexpected exits now stop peers and fail the process. Readiness tracks initialized, successful and unexpired storage/controller/scheduler/heartbeat/DNS/node-health checks. Workers expose a separate private health listener. Agent startup validates configuration/TLS and reserves API/DNS listeners before ZFS initialization. Shutdown drains controllers before the API in bounded stages, preserves durable resource ownership, and cancels/kills direct command children. Failed or unknown cleanup retains the API tombstone and persistent IPAM owner instead of finalizing prematurely.
Validation at
de378a3264: 200 native workspace tests, binary build, fmt, strict all-targets Clippy, SMF validation/method syntax, API/TLS smoke, two-worker topology and lifecycle smoke passed on oibldofgate. Tests inject controller and drain errors, hung peers, expired/concurrent health updates, command timeout/cancellation and cleanup failure with database reopen; native process checks include occupied API/DNS listeners, malformed TLS/CA/configuration, readiness transitions, restart/outages and rejected registration. Local tests, lint, build and lifecycle smoke passed as well.Tests use explicit mock zones/storage/NAT on illumos and only task-owned loopback processes. This adds no binary target and activates no SMF service or real zone/network backend. Real image/zone/network/authentication acceptance remains in subsequent milestones. Anima CI is currently unconfigured; native SSH checks do not clear that gate.