Repository navigation
Conversation
scotwells
left a comment
There was a problem hiding this comment.
Please fail the lab test if it can’t restore a fabric link or the route doesn’t return before the timeout. restoreLinks currently ignores link errors and clears the node before checking recovery, so the test can report success with a gateway still disconnected and cleanup won’t retry. Keep the node marked for cleanup until recovery is confirmed.
|
Fixed in e63389b. The lab has not run the gateway-loss row at this head yet: the runs stopped earlier on a separate intermittent problem, the listener's backends flipping between serving and not serving with no fault injected. I'm investigating that separately. |
e63389b to
a01e0dc
Compare
copy_config ran docker cp onto an existing /galactic/config, which nests the new copy inside the old one, so deploy:system kept applying the CRDs the lab was first deployed with. A NetworkGateway status field added since then was pruned from every gateway's status. Remove the copy first, as copy_fabric_config does.
Nothing proved how an Edge public listener behaves when one of its backends goes away. TestListenerFailover (task verify:listener-failover) serves the MASQUE service through dfw's listener from two instances, one on each dfw edge node, with session affinity None. Each client connection uses its own connector and is attributed to the instance whose CONNECT-IP request counter moved, whatever it answered. A 503 counts as delivered, because it means the connector's route has not yet moved to the instance, not that the listener failed; only no answer at all is a failure. A connector is retried on 503 for up to 40 s. Each row restores both instances before it starts, skips an instance whose metrics cannot be read, and fails on its own terms: - unready: an instance whose pod is deleted, so its provider clears Ready, leaves every gateway's backend set and new connections reach the other. A replacement the provider starts counts as delivered. - drain: an instance core marks Draining keeps taking new connections until its deadline and none after it. The provider clears Ready as soon as it shuts down, so no pod event drains it while Ready: the row writes core's Draining condition and deadline as the cluster admin. After the deadline the drained attachment is deleted and every connection is answered. - lease: an instance cut off from the API leaves every gateway within 15.5 s of its lease's last renewal. - no-instances: with no instance left, every gateway withdraws the listener's advertisements and the client gets no answer. - gateway-loss: with client affinity, the client keeps its instance through the other gateway when the one it entered through loses its links. A connection that reuses a connector routed to the lost node's instance may be answered by the client's instance before the return route converges; the row counts it and records how many. Restoring the links returns an error if a link stays down or tr1's route does not return within two minutes, and the row and the test's cleanup fail on it. When the gateways lack the backends in time, waitBackends records the listener's conditions and backends, the services' conditions, the listener attachments, each gateway's rule_backends samples and each backend's binding health. Unanswered connections record the gateway and uSID datapath counters that rose on each dfw node. TestMASQUEPublicListener's setup takes extra overlay patches and nodes so both tests share it.
a01e0dc to
616f466
Compare
|
First pass: pr-adversary returned "VERDICT: merge" with no code defects found, go vet clean and CI green; the lab timings were not re-run, and the author accepts their own lab run. pr-conventions-reviewer returned "VERDICT: hold" over commit format. Its concerns about collisions with #1465 and #1549 were checked and no hunks overlap. Fixes applied: the history was rebased linear, then squashed to two commits, fix(lab) and test(edge). The copy_config comment was trimmed to one line, and the TestListenerFailover docstring no longer links out. No other content changed. Second pass: pr-rereviewer confirmed the subjects, the linear history, the unchanged content and go vet. pr-conventions-reviewer's squash and comment nits were applied afterwards. The author kept the PR ready and kept the Lab result section. The PR merges cleanly with main after #1465 (2d5d35b), and vet and lint on ./tests/edgeconformance/... pass on the merged tree. task verify:listener-failover is lab-only and not in CI. CI on 616f466: 26 checks passed, 2 skipped, none failed. Auto-merge is enabled with the merge method, the only one the main ruleset allows. The ruleset requires one approving review from a code owner, and the last push needs approval, so the PR waits for a human approval. |
Summary
Nothing proved how a public listener behaves when one of its backends goes away. This adds a lab test that serves the MASQUE service from two instances, one per dfw edge node, and checks each failover criterion of the issue from an off-fabric client. It also fixes the lab deploy, which kept a stale copy of the CRDs on a rerun. Fixes #1511.
Lab result
Test plan