[update] Fix floating IP leak in DPDK workload cleanup - #4127
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
PR Summary by QodoFix floating IP leak during DPDK workload teardown
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1. Stale vm_info.sh remains
|
When `workload_dpdk` is true, the `sanity_teardown` function only deletes the DPDK port but does not clean up the floating IP created by `set_vm_ip`. The VM is deleted (which disassociates the FIP) but the floating IP remains allocated, leaking one IP per update run. Over multiple runs this exhausts the access network's IP pool, causing subsequent tempest tests to fail with `IpAddressGenerationFailure: No more IP addresses available`. Add floating IP cleanup to the DPDK branch of `sanity_teardown`, matching the existing cleanup logic in the default (non-SRIOV, non-DPDK) branch. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Miguel Angel Nieto Jimenez <mnietoji@redhat.com>
e42e04d to
283a300
Compare
When
workload_dpdkis true, thesanity_teardownfunction only deletes the DPDK port but does not clean up the floating IP created byset_vm_ip. The VM is deleted (which disassociates the FIP) but the floating IP remains allocated, leaking one IP per update run.Over multiple runs this exhausts the access network's IP pool, causing subsequent tempest tests to fail with
IpAddressGenerationFailure: No more IP addresses available.Add floating IP cleanup to the DPDK branch of
sanity_teardown, matching the existing cleanup logic in the default (non-SRIOV, non-DPDK) branch.