Commit fa65a0a
Fix ProvisionServer port exhaustion in envtest functional tests
The functional tests were exhausting the OpenStackProvisionServer port
range (6190-6210) when running with parallel Ginkgo processes. envtest
does not run the Kubernetes garbage collector, so ProvisionServers
created as owned children of BaremetalSets were never cascade-deleted
when the parent was removed via DeferCleanup. Additionally, two webhook
tests created ProvisionServer resources without any cleanup. These
leaked resources accumulated across specs, consuming all 21 available
ports and causing later tests to fail.
Add a global DeferCleanup in the suite BeforeEach that explicitly
deletes all OpenStackProvisionServer resources after each spec, and fix
the webhook tests to properly clean up their resources.
Closes: OSPRH-30444
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 84aa9fe commit fa65a0a
2 files changed
Lines changed: 16 additions & 26 deletions
Lines changed: 2 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 49 | + | |
62 | 50 | | |
63 | 51 | | |
64 | 52 | | |
| |||
195 | 183 | | |
196 | 184 | | |
197 | 185 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
| 186 | + | |
211 | 187 | | |
212 | 188 | | |
213 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
203 | 217 | | |
204 | 218 | | |
205 | 219 | | |
| |||
0 commit comments