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

fix: match routes on the priority properly #7597

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

smira
Copy link
Member

@smira smira commented Aug 9, 2023

Fixes #7592

The problem was a mismatch between a "primary key" (ID) of the RouteSpec and the way routes are looked up in the kernel - with two idential routes but different priority Talos would end up in an infinite loop fighting to remove and re-add back same route, as priority never matches.

@smira smira added this to the v1.6 milestone Aug 9, 2023
Copy link
Member

@DmitriyMV DmitriyMV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ only minor nit

Fixes siderolabs#7592

The problem was a mismatch between a "primary key" (ID) of the
`RouteSpec` and the way routes are looked up in the kernel - with two
idential routes but different priority Talos would end up in an infinite
loop fighting to remove and re-add back same route, as priority never
matches.

Signed-off-by: Andrey Smirnov <[email protected]>
@smira
Copy link
Member Author

smira commented Aug 10, 2023

/m

@talos-bot talos-bot merged commit ee6d639 into siderolabs:main Aug 10, 2023
4 checks passed
@smira smira mentioned this pull request Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backported
Development

Successfully merging this pull request may close these issues.

Infinite loop in the RouteSpecController causing a lot of CPU consumption
3 participants