Commit 6452867
[update] Add optional cleanup of OpenStack resources
The update role creates test workloads (ping test VM, ports) on
OpenStack during the update procedure but never cleans them up.
This leaves ports allocated on the external network, which blocks
subsequent test jobs from recreating subnets.
Add a cleanup step at the end of the update role that runs the
workload_launch.sh script in cleanup mode to delete the test VM
and associated ports. The cleanup runs by default and can be
disabled with cifmw_update_dont_cleanup for debugging.
Based on the work from #3335 by Sofer Athlan-Guyot which was
closed by the stale bot before merging.
Related-Issue: #OSPRH-20307
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Miguel Angel Nieto Jimenez <mnietoji@redhat.com>1 parent 4f7c3cd commit 6452867
5 files changed
Lines changed: 26 additions & 3 deletions
File tree
- roles/update
- defaults
- tasks
- templates
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
635 | 635 | | |
636 | 636 | | |
637 | 637 | | |
| 638 | + | |
638 | 639 | | |
639 | 640 | | |
640 | 641 | | |
| |||
0 commit comments