Commit e7532be
committed
test(gateway): make the certbot phase survive the locks it races
Two things a current-only cluster hits that an upgraded one never does.
`max_dns_wait: 0` is rejected by current code at credential creation --
an issuance that never waits for propagation cannot succeed against a
real provider -- and only 0.5.8 ever accepted it. The upgrade phase
configures the cluster while the nodes still run 0.5.8, so the value
survives into current code as stored state and the validation is never
reached. One second is as good as none against a Pebble configured to
validate unconditionally.
Adding a ZT domain starts an issuance, and on a fresh cluster that
issuance registers the shared ACME account -- so an operator's SetCaa,
issued right after, races it for the cluster-wide lock and is refused.
That refusal is deliberate and says to retry after the holder finishes,
which is seconds for a registration. So retry, the way this suite
already retries the per-domain certificate lock. Any other error still
fails immediately.1 parent 0fedbb8 commit e7532be
1 file changed
Lines changed: 26 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
438 | 442 | | |
439 | 443 | | |
440 | 444 | | |
441 | 445 | | |
442 | 446 | | |
443 | 447 | | |
444 | 448 | | |
445 | | - | |
| 449 | + | |
446 | 450 | | |
447 | 451 | | |
448 | 452 | | |
| |||
626 | 630 | | |
627 | 631 | | |
628 | 632 | | |
629 | | - | |
| 633 | + | |
630 | 634 | | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
635 | 655 | | |
636 | 656 | | |
637 | 657 | | |
| |||
0 commit comments