Commit 1b1771f
Fix cert-manager CA rotation race in TLS cert rotation KUTTL test
The ctlplane-tls-cert-rotation KUTTL test fails intermittently because
the custom_duration patch changes both CA and leaf cert durations
simultaneously. cert-manager processes Certificate resources in
parallel, so leaf certs can be re-issued before the CA itself is
re-issued, resulting in some certs signed by the old CA and others by
the new CA. This causes cross-service SSL verification failures (e.g.
neutron cannot connect to OVN NB due to CA mismatch).
Fix by removing CA duration changes from the patch so only leaf cert
durations change, preventing the CA key from rotating. Also add
cert-manager re-issuance waits and control plane stability checks in
step 03, and add retry logic to the non-API service cert check in
step 04.
Ref: https://redhat.atlassian.net/browse/OSPRH-32142
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 0c84958 commit 1b1771f
3 files changed
Lines changed: 41 additions & 16 deletions
File tree
- config/samples/tls/custom_duration
- test/kuttl/tests/ctlplane-tls-cert-rotation
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
14 | | - | |
15 | | - | |
16 | 12 | | |
17 | 13 | | |
18 | 14 | | |
19 | | - | |
20 | | - | |
21 | 15 | | |
22 | 16 | | |
23 | 17 | | |
24 | | - | |
25 | | - | |
26 | 18 | | |
27 | 19 | | |
Lines changed: 28 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
22 | 50 | | |
23 | 51 | | |
24 | 52 | | |
| |||
196 | 224 | | |
197 | 225 | | |
198 | 226 | | |
199 | | - | |
200 | | - | |
201 | 227 | | |
202 | 228 | | |
203 | 229 | | |
204 | 230 | | |
205 | 231 | | |
206 | | - | |
207 | | - | |
208 | 232 | | |
209 | 233 | | |
210 | 234 | | |
211 | | - | |
212 | | - | |
213 | 235 | | |
214 | 236 | | |
215 | 237 | | |
216 | | - | |
217 | | - | |
218 | 238 | | |
219 | 239 | | |
220 | 240 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
7 | 20 | | |
8 | 21 | | |
9 | 22 | | |
| |||
0 commit comments