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

Automated cherry pick of #6898: Ensure that promote_secondaries is set on IPAssigner #6900: Ensure correct sysctl values if VLAN iface exists in #6910

Conversation

antoninbas
Copy link
Contributor

Cherry pick of #6898 #6900 on release-2.1.

#6898: Ensure that promote_secondaries is set on IPAssigner
#6900: Ensure correct sysctl values if VLAN iface exists in

For details on the cherry pick process, see the cherry pick requests page.

…ea-io#6898)

The IPAssigner should ensure that the promote_secondaries sysctl
variable is always set when creating an interface. This ensures that
When the primary IP address is removed from the interface, a secondary
IP address is promoted, instead of removing all the corresponding
secondary IP addresses. Otherwise, the deletion of one IP address can
trigger the automatic removal of all other IP addresses in the same
subnet, if the deleted IP happens to be the primary (first one assigned
chronologically). For example, this can affect the Egress feature (when
EgressSeparateSubnet is used).

Fixes antrea-io#6890

Signed-off-by: Antonin Bas <[email protected]>
…ea-io#6900)

If the VLAN interface already exixts (e.g., in case of an Agent
restart), we should still ensure that the necessary systcl variables are
set correctly.

Signed-off-by: Antonin Bas <[email protected]>
@antoninbas antoninbas added the kind/cherry-pick Categorizes issue or PR as related to the cherry-pick of a bug fix from the main branch to a release label Jan 8, 2025
@antoninbas antoninbas requested a review from tnqn January 8, 2025 19:27
@antoninbas antoninbas merged commit 85bd92a into antrea-io:release-2.1 Jan 10, 2025
44 of 54 checks passed
@antoninbas antoninbas deleted the automated-cherry-pick-of-#6898-#6900-upstream-release-2.1 branch January 10, 2025 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cherry-pick Categorizes issue or PR as related to the cherry-pick of a bug fix from the main branch to a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants