Files
cozystack/hack
Andrei Kvapil cf7bd11eeb test(e2e): prepare and check the backend the install deploys
The e2e scripts assumed LINSTOR throughout: the prep created pools
through linstor-controller and the replicated suite's pool guard read
them from it. COZY_STORAGE_BACKEND is now set once by the install step
and reaches the platform values, the prep and the Chainsaw suites
alike. The prep refuses a missing or unknown value instead of guessing,
which would race the install and fail open to linstor.

Under blockstor the prep waits for blockstor's own Deployments and for
every LinstorSatellite to apply, registers a Node per Kubernetes node at
its InternalIP, creates the data zpool and its StoragePool on each
satellite, and waits until every satellite has reported its pool, since
placement does not count a pool before that. The pool guard reads
StoragePool objects and lists datasets through blockstor-satellite.

The backend is validated before the guard starts polling. Inside the
loop every failed read is retried: the remote jq exits 2 on the output
a restarting controller can print, so no read status can mean "give
up".

blockstor needs DRBD and the QEMU lane's private disk, so the pair with
COZY_LINSTOR_DRBD_ENABLED=false is refused rather than installed into a
prep that cannot finish. No CI lane sets the variable, so the default
runs are unchanged.

Assisted-by: LLM
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2026-11-29 13:45:11 +01:00
..