Commit 4c464bd
committed
OCPBUGS-35852: capi: shutdown local controlplane as the last step
If OPENSHIFT_INSTALL_PRESERVE_BOOTSTRAP is set, we need to make sure the
local controlplane shutdown happens as the last step in the defer stack
chain, so previous steps that need to access it don't fail.
```
06-20 15:26:51.219 level=warning msg=OPENSHIFT_INSTALL_PRESERVE_BOOTSTRAP is set, shutting down local control plane.
06-20 15:26:51.219 level=info msg=Shutting down local Cluster API control plane...
06-20 15:26:51.473 level=info msg=Stopped controller: Cluster API
06-20 15:26:51.473 level=info msg=Stopped controller: aws infrastructure provider
06-20 15:26:52.830 level=info msg=Local Cluster API system has completed operations
06-20 15:26:52.830 level=debug msg=Collecting applied cluster api manifests...
06-20 15:26:52.831 level=error msg=failed to fetch Cluster: failed to generate asset "Cluster": failed to create cluster: [failed to get manifest openshift-cluster-api-guests: Get "https://127.0.0.1:46555/api/v1/namespaces/openshift-cluster-api-guests": dial tcp 127.0.0.1:46555: connect: connection refused[...]
```1 parent 251f3a2 commit 4c464bd
1 file changed
+10
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
141 | 151 | | |
142 | 152 | | |
143 | 153 | | |
| |||
347 | 357 | | |
348 | 358 | | |
349 | 359 | | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | 360 | | |
358 | 361 | | |
359 | 362 | | |
| |||
0 commit comments