Commit 25a63fa
system-tests: fix IPv6 DAD check order and error propagation (#1294)
Fix two related bugs in IPv6 Duplicate Address Detection (DAD) handling:
1. Check order bug: Functions checked for "tentative" state before
"dadfailed" state, preventing detection of permanent DAD failures
when both flags were present (e.g., "dadfailed tentative").
2. Error propagation bug: DAD failure errors were not propagated
correctly, causing tests to retry for 3 minutes instead of failing
immediately with clear error messages.
Changes:
- checkIPv6AddressState() and checkPodIPv6Ready(): Swap check order to
detect "dadfailed" before "tentative" (permanent before transient)
- whereabouts-statefulset.go (getPodWhereaboutsIPs):
* Change Eventually from func() bool to func() error pattern
* Use StopTrying() for DAD failures to abort Gomega Eventually immediately
* Return regular error for transient failures (exec/scanner errors) to retry
- sriov-pod-level-bond.go (inspectPodLevelBondedInterfaceConfig):
* Return error for DAD failures to abort k8s PollUntilContextTimeout immediately
* Return false, nil for transient failures (scanner errors) to continue polling
Impact: Tests with DAD failures now fail immediately (subsecond) with specific
"IPv6 DAD failed" errors instead of timing out after 3 minutes with generic
error messages.
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent a90dd96 commit 25a63fa
2 files changed
Lines changed: 51 additions & 28 deletions
File tree
- tests/system-tests/rdscore/internal/rdscorecommon
Lines changed: 20 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
667 | 667 | | |
668 | 668 | | |
669 | 669 | | |
670 | | - | |
671 | | - | |
672 | | - | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
673 | 673 | | |
674 | 674 | | |
675 | | - | |
| 675 | + | |
676 | 676 | | |
677 | 677 | | |
678 | | - | |
679 | | - | |
680 | | - | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
681 | 681 | | |
682 | 682 | | |
683 | | - | |
| 683 | + | |
684 | 684 | | |
685 | 685 | | |
686 | 686 | | |
| |||
704 | 704 | | |
705 | 705 | | |
706 | 706 | | |
707 | | - | |
| 707 | + | |
708 | 708 | | |
709 | 709 | | |
710 | 710 | | |
| |||
782 | 782 | | |
783 | 783 | | |
784 | 784 | | |
785 | | - | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
786 | 795 | | |
787 | 796 | | |
788 | | - | |
| 797 | + | |
789 | 798 | | |
790 | 799 | | |
791 | 800 | | |
| |||
Lines changed: 31 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
376 | 384 | | |
377 | 385 | | |
378 | 386 | | |
| |||
382 | 390 | | |
383 | 391 | | |
384 | 392 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
| 418 | + | |
| 419 | + | |
418 | 420 | | |
419 | 421 | | |
420 | 422 | | |
| |||
425 | 427 | | |
426 | 428 | | |
427 | 429 | | |
428 | | - | |
| 430 | + | |
429 | 431 | | |
430 | 432 | | |
431 | 433 | | |
| |||
434 | 436 | | |
435 | 437 | | |
436 | 438 | | |
437 | | - | |
| 439 | + | |
438 | 440 | | |
439 | 441 | | |
440 | 442 | | |
441 | 443 | | |
442 | 444 | | |
443 | 445 | | |
444 | | - | |
| 446 | + | |
445 | 447 | | |
446 | 448 | | |
447 | 449 | | |
| |||
451 | 453 | | |
452 | 454 | | |
453 | 455 | | |
454 | | - | |
| 456 | + | |
455 | 457 | | |
456 | 458 | | |
457 | 459 | | |
| |||
464 | 466 | | |
465 | 467 | | |
466 | 468 | | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
467 | 481 | | |
468 | | - | |
| 482 | + | |
469 | 483 | | |
470 | 484 | | |
471 | | - | |
| 485 | + | |
472 | 486 | | |
473 | 487 | | |
474 | 488 | | |
475 | 489 | | |
476 | 490 | | |
477 | 491 | | |
478 | 492 | | |
479 | | - | |
| 493 | + | |
480 | 494 | | |
481 | 495 | | |
482 | 496 | | |
| |||
487 | 501 | | |
488 | 502 | | |
489 | 503 | | |
490 | | - | |
491 | | - | |
| 504 | + | |
| 505 | + | |
492 | 506 | | |
493 | 507 | | |
494 | 508 | | |
| |||
0 commit comments