Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libnetwork/netavark: remove ipam bucket on network rm #1946

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

Luap99
Copy link
Member

@Luap99 Luap99 commented Apr 3, 2024

This is good to prevent any leaks but more important here there is a bug because we cache the last assigned ip. However when a network is removed the recreated with a different LeaseRange that ip might be very well outside the expected range and the logic seems to handle this correctly. I could fix it there but deleting the full bucket seems best as it avoid other issues and leaking the bucket forever.

Fixes containers/podman#22034

This is good to prevent any leaks but more important here there is a
bug because we cache the last assigned ip. However when a network is
removed the recreated with a different LeaseRange that ip might be very
well outside the expected range and the logic seems to handle this
correctly. I could fix it there but deleting the full bucket seems best
as it avoid other issues and leaking the bucket forever.

Fixes containers/podman#22034

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Copy link
Contributor

openshift-ci bot commented Apr 3, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Apr 3, 2024
@baude
Copy link
Member

baude commented Apr 3, 2024

LGTM

@rhatdan
Copy link
Member

rhatdan commented Apr 4, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Apr 4, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 22bc268 into containers:main Apr 4, 2024
7 checks passed
@Luap99 Luap99 deleted the nv-ipam branch April 12, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using ip-range On Network ignored until restart
3 participants