Commit e9e2ba9
fix(e2e): poll kernel ground truth in state-auto-resync 3-peer wait
state-auto-resync's local wait_uptodate_3 polled only status_disk_state,
which reads the CRD .status projection. On a busy CI stand that
projection lags tens of seconds behind the kernel, so the 240s wait
timed out while the post-fail drbdsetup dump showed all three peers
already UpToDate — the resource had converged, only the projection
hadn't surfaced. This is the recurring projection-lag flake class, not
the SkipInitialSync gate: the controller stamps SkipInitialSync in the
same allocation pass as the node-id/port (when the RD is observable, as
it is for a normal multi-replica deploy), and the satellite gate uses
the existing bounded 5s requeue, so the gate adds no minute-scale
latency.
Add kernel_all_uptodate (an N-peer generalisation of the existing
kernel_pair_uptodate) and accept it as an additional pass in
wait_uptodate_3, mirroring the kernel-fallback lib.sh's wait_uptodate
gained in c635627. It only ADDS an accept path: a genuinely
non-converged RD still reads non-UpToDate, and a lone node with no
peers can't falsely pass, so real failures are not masked.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>1 parent a535b8f commit e9e2ba9
2 files changed
Lines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
193 | 218 | | |
194 | 219 | | |
195 | 220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
120 | 133 | | |
121 | 134 | | |
122 | 135 | | |
| |||
130 | 143 | | |
131 | 144 | | |
132 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
133 | 152 | | |
134 | 153 | | |
135 | 154 | | |
| 155 | + | |
136 | 156 | | |
137 | 157 | | |
138 | 158 | | |
| |||
0 commit comments