Commit 29b961a
fix(controller): honour canonical DrbdOptions/auto-quorum key + quorum property semantics (corner B) (#97)
* fix(controller): honour canonical DrbdOptions/auto-quorum key
The auto-quorum opt-out gate (isAutoQuorumDisabled) read the camelCase
DrbdOptions/AutoQuorum property, which no production path ever writes.
The upstream CLI, seedAutoQuorumDefaults, and the PropsInfo catalogue
all use the kebab-case DrbdOptions/auto-quorum spelling, so a real
'set-property DrbdOptions/auto-quorum disabled' was silently ignored
and the reconciler kept clobbering the operator's manual quorum policy
on every pass (corner-case B1/B4).
Read the canonical kebab key first, keep the camelCase spelling as a
forward-compat fallback. The honours-disabled regression test drove the
gate with the dead camelCase key and so masked the bug; it now drives
with the canonical key and pins both spellings.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
* feat(rest): empty-value set-property deletes the key
Add a shared applyPropsModify property-bag core implementing the
upstream LINSTOR semantic: an override_props entry with an empty value
DELETES the key entirely rather than storing an empty string (UG9
auto-quorum NOTE: 'set-property KEY ""' = delete-property). Route the
resource-definition and resource-group modify handlers through it so a
'rg/rd set-property DrbdOptions/Resource/on-no-quorum' with no value
converges to key absence on both surfaces (corner-case B5 / I1).
The explicit delete_props path is preserved and now shares the same
core. Other GenericPropsModify sites still use the local pattern and
are flagged for a follow-up consolidation.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
* test(harness): prop_value await kind + auto-quorum replays (B1/B2/B5)
Add an additive prop_value assertion kind to the replay harness that
checks an RD/RG list-properties surface for a key being present with an
exact value, or ABSENT when expected is omitted (empty-value=delete).
Used to pin the auto-quorum property semantics at operator-CLI level.
Two L7 replays:
- auto-quorum-disabled-keeps-manual-quorum (B1/B4): disabling
auto-quorum stops the reconciler from reverting manual quorum=off;
the TieBreaker stays (gated on a separate prop).
- auto-quorum-empty-value-restores-automatism (B2/B5): TB created
despite auto-quorum=disabled before spawn; clearing the prop with
an empty value deletes the key and the automatism resumes.
HARNESS CHANGE (flagged): lib.sh gains the prop_value check_assertion
case; replay-runner.sh header documents it. Additive only — existing
await kinds untouched.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
* test(cli-matrix): auto-quorum disabled keeps manual quorum (B1/B4)
L6 operator-CLI cell pinning corner-case B1/B4: with auto-quorum
active the automatism overrides a manual quorum=off (B4); after
'set-property DrbdOptions/auto-quorum disabled' the operator's manual
quorum=off sticks across reconciles and the TieBreaker stays put (B1).
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
* test(rest): pin default quorum pair as deliberate delta (B6)
Corner-case B6: upstream auto-quorum default pair is quorum=majority +
on-no-quorum=io-error (UG9 TIP). blockstor deliberately seeds
on-no-quorum=suspend-io instead (Bug 297, P1 data-loss class). The
majority half matches upstream verbatim; the on-no-quorum value is a
documented divergence.
Add a guard test pinning the actual blockstor seed so a flip back to
io-error fails loudly, and record the divergence as known-delta row 60.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
* test(controller): auto-quorum=disabled stops on-no-quorum reseed (B5)
Stand regression (BS v0.1.9): with auto-quorum=disabled set via the
real CLI and on-no-quorum cleared (empty=delete), the reconciler
re-seeded on-no-quorum=suspend-io because the camelCase-key gate never
fired — so an operator could never clear the prop. The kebab-key fix
short-circuits ensureTiebreaker before setQuorum's companion seed.
Pin it: under auto-quorum=disabled, ensureTiebreaker must not re-stamp
quorum or re-seed on-no-quorum.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
* test(rest): quorum-minimum-redundancy passthrough as deliberate delta (B8)
Corner-case B8: upstream validates the quorum-minimum-redundancy value
and rejects bogus input (FAIL_INVLD_PROP, oracle-confirmed); blockstor
is permissive on DrbdOptions values (no per-key validator, drbdadm
rejects truly-invalid values at .res render time). Pin valid-value
passthrough and record the validation gap as known-delta row 61.
Refine row 60 (B6) with the oracle finding that upstream does not stamp
on-no-quorum at all.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
* test(harness): short rd names for auto-quorum replays
LINSTOR caps resource-definition names at 48 chars; the workflow names
alone overflow the default replay-<name>-<rand>. Pin short vars.rd.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
* docs(parity): record r-d quorum-prop auto-removal divergence (B3b)
Corner-case B3b: upstream removes quorum/on-no-quorum props + prints
INFO when r d drops a resource below quorum feasibility; blockstor
stamps quorum=off (Bug 309: satellite needs an explicit rendered value)
and prints no INFO. DRBD behaviour is equivalent; record as known delta.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
---------
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>1 parent e1ae265 commit 29b961a
12 files changed
Lines changed: 946 additions & 29 deletions
File tree
- docs
- internal/controller
- pkg/rest
- tests
- e2e/cli-matrix
- operator-harness
- replay
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
568 | 577 | | |
569 | 578 | | |
570 | 579 | | |
571 | 580 | | |
572 | | - | |
| 581 | + | |
573 | 582 | | |
574 | 583 | | |
575 | 584 | | |
| |||
613 | 622 | | |
614 | 623 | | |
615 | 624 | | |
616 | | - | |
617 | | - | |
| 625 | + | |
| 626 | + | |
618 | 627 | | |
619 | 628 | | |
620 | 629 | | |
621 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
622 | 711 | | |
623 | 712 | | |
624 | 713 | | |
| |||
645 | 734 | | |
646 | 735 | | |
647 | 736 | | |
648 | | - | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
649 | 760 | | |
650 | 761 | | |
651 | 762 | | |
| |||
654 | 765 | | |
655 | 766 | | |
656 | 767 | | |
657 | | - | |
| 768 | + | |
| 769 | + | |
658 | 770 | | |
659 | 771 | | |
660 | | - | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
661 | 776 | | |
662 | 777 | | |
663 | 778 | | |
| |||
666 | 781 | | |
667 | 782 | | |
668 | 783 | | |
669 | | - | |
| 784 | + | |
670 | 785 | | |
671 | 786 | | |
672 | 787 | | |
| |||
675 | 790 | | |
676 | 791 | | |
677 | 792 | | |
678 | | - | |
| 793 | + | |
679 | 794 | | |
680 | 795 | | |
681 | 796 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
499 | | - | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
500 | 520 | | |
501 | | - | |
| 521 | + | |
502 | 522 | | |
503 | 523 | | |
504 | 524 | | |
| |||
0 commit comments