IP is not released after deleting IPClaim #694
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/accepted
Indicates an issue is ready to be actively worked on.
Milestone
What steps did you take and what happened:
Create an IPClaim and then delete it immediately. It may happen that the IPClaim is deleted, but the IPAddress associated with the IPClaim still exists.
Here is IPAM logs:
What did you expect to happen:
The IP should be released after deleting IPClaim, otherwise the IP resources will be leaked.
Anything else you would like to add:
I found that createAddress first sets IPClaimFinalizer for IPClaim in the same reconcile, then creates IPAddress, and finally saves IPClaimFinalizer. So if IPClaim is deleted before saving IPClaimFinalizer, there should be a situation where IPAddress is not deleted in cascade.
There are two possible solutions:
Environment:
kubectl version
): v1.25.6/kind bug
The text was updated successfully, but these errors were encountered: