Commit e6b14a8
fix(dispatcher): peer endpoint lookup falls through NetInterfaces
The .res-file renderer relies on lookupEndpoint to translate each
peer Node CRD into an `address` for the `on <node> { address ... }`
block. The function only inspected `Spec.SatelliteEndpoint` and the
legacy `Spec.Props["SatelliteEndpoint"]`, so any Node CRD that
declared its address via the typed `Spec.NetInterfaces` slice (the
upstream-LINSTOR convention; piraeus-operator emits this shape)
fell through to the empty string and `peerAddress` returned the
`0.0.0.0` placeholder — drbdadm then refused the .res:
drbdadm adjust e2e-auto-diskful: ipv4:0.0.0.0:7000 is used for
both endpoints: exit status 10
…and no multi-replica scenario could reach UpToDate.
Add `Spec.NetInterfaces[0].Address` as the third fallback. First
interface wins, mirroring the LINSTOR doc comment on
`NodeNetInterface`.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>1 parent 5cce3d8 commit e6b14a8
1 file changed
Lines changed: 21 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
363 | 369 | | |
364 | 370 | | |
365 | 371 | | |
| |||
370 | 376 | | |
371 | 377 | | |
372 | 378 | | |
373 | | - | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
374 | 388 | | |
375 | 389 | | |
376 | 390 | | |
| |||
0 commit comments