Commit 92030f3
fix(e2e): unbreak LUKS cli-matrix cells — stdin to cryptsetup, diskful-only replica count (BUG-039) (#152)
* fix(e2e): forward stdin to cryptsetup in LUKS passphrase assert (BUG-039)
assert_luks_passphrase_opens piped the master passphrase into
on_node, but on_node runs kubectl exec without -i, so the pipe was
never forwarded and cryptsetup read an empty key-file ("Nothing to
read on input."). Every kernel-level passphrase assertion therefore
failed on every stand — reported as BUG-039 'LUKS data-plane broken'
— while the satellite had in fact formatted the backing device with
the correct master passphrase (verified live: the operator passphrase
opens the LUKS header once stdin is forwarded).
Add an on_node_stdin helper (kubectl exec -i, same Running-pod
selection) and route the assert through it. Keep cryptsetup stderr
and print it on the failure path — the old 2>/dev/null swallowed the
'Nothing to read on input' tell and masked the root cause.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
* fix(e2e): count diskful replicas only in LUKS clone/resize/snap-restore cells (BUG-039)
The three data-bearing LUKS cells waited for exactly 2 Resource CRDs
after --auto-place=2, but on a 3-worker stand the controller adds
(and flaps) a DISKLESS TIE_BREAKER witness, so the all-CRD count
oscillates 2-3-2 and the equality check times out spuriously with
'did not autoplace 2 replicas'. Count diskful replicas via
linstor_diskful_nodes instead — the convention the sibling
encryption-passphrase-luks-rd and luks-rd-create cells already use.
With the counting fixed, luks-resize-encrypted goes green on a live
stand; luks-clone-encrypted and luks-snapshot-restore-encrypted now
surface the real blocker (cross-node snapshot ship fails in the
clone/restore engine), which is tracked separately as BUG-038.
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 7389580 commit 92030f3
5 files changed
Lines changed: 60 additions & 23 deletions
File tree
- tests/e2e
- cli-matrix
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
442 | 449 | | |
443 | 450 | | |
444 | | - | |
| 451 | + | |
445 | 452 | | |
446 | 453 | | |
447 | 454 | | |
448 | | - | |
449 | | - | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
450 | 458 | | |
| 459 | + | |
451 | 460 | | |
452 | 461 | | |
453 | 462 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
| 121 | + | |
123 | 122 | | |
124 | 123 | | |
125 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| |||
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| 143 | + | |
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
| 147 | + | |
149 | 148 | | |
150 | 149 | | |
151 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
112 | 141 | | |
113 | 142 | | |
114 | 143 | | |
| |||
0 commit comments