Commit 46d6a07
committed
Fix SSL cert mismatch when re-running install_stack
When install_stack is re-run on an already-deployed system, the simpleca
role generates a new CA in a temp directory (always fresh), and the new
CA cert overwrites /etc/pki/ca-trust/source/anchors/simpleca.crt. But
the TripleO deploy is skipped (clouds.yaml already exists), so the
running services still serve the old server cert signed by the old CA.
This breaks all openstack CLI calls with CERTIFICATE_VERIFY_FAILED.
Fix by moving the tripleo_deployed check before the SSL generation
blocks and guarding them with 'not tripleo_deployed.stat.exists', so
we only generate and install new certs when actually deploying.1 parent af575ad commit 46d6a07
1 file changed
Lines changed: 15 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
65 | 72 | | |
66 | 73 | | |
67 | 74 | | |
| |||
75 | 82 | | |
76 | 83 | | |
77 | 84 | | |
78 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
79 | 88 | | |
80 | 89 | | |
81 | 90 | | |
| |||
96 | 105 | | |
97 | 106 | | |
98 | 107 | | |
99 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
100 | 111 | | |
101 | 112 | | |
102 | 113 | | |
| |||
307 | 318 | | |
308 | 319 | | |
309 | 320 | | |
| 321 | + | |
310 | 322 | | |
311 | 323 | | |
312 | 324 | | |
| |||
506 | 518 | | |
507 | 519 | | |
508 | 520 | | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | 521 | | |
517 | 522 | | |
518 | 523 | | |
| |||
530 | 535 | | |
531 | 536 | | |
532 | 537 | | |
| 538 | + | |
533 | 539 | | |
534 | 540 | | |
535 | 541 | | |
| |||
0 commit comments