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

ovs: fix waiting flows in underlay networking #1983

Merged
merged 1 commit into from
Oct 22, 2022

Conversation

zhangzujian
Copy link
Member

What type of this PR

  • Bug fixes

Which issue(s) this PR fixes:

Fixes #1964

@zhangzujian zhangzujian added bug Something isn't working need backport labels Oct 21, 2022
@zhangzujian
Copy link
Member Author

zhangzujian commented Oct 21, 2022

When a network link is configured to be used in underlay networking while the link is holding the route(s) needed by ovn-controller to connect to OVN SB servers, ovs-ovn will be stuck waiting for the flows ready after a system reboot:

 * ovn-controller is not running
 * Starting ovn-controller
1 flows now, waiting for ovs-vswitchd flow ready
1 flows now, waiting for ovs-vswitchd flow ready
1 flows now, waiting for ovs-vswitchd flow ready

This PR fixes the issue by:

  1. Find out the link(s) needed by ovn-controller;
  2. If the link(s) is used in underlay networking and has not been attached to the OVS bridge(s), do not wait for ovn-controller to update flows.

@zhangzujian zhangzujian marked this pull request as ready for review October 21, 2022 13:50
@zhangzujian zhangzujian merged commit 87996f7 into kubeovn:master Oct 22, 2022
@zhangzujian zhangzujian deleted the fix-wait-flows branch October 22, 2022 02:27
shane965 pushed a commit to shane965/kube-ovn that referenced this pull request Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need backport
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Underlay/Overlay 混合网络的集群,机器重启后kube-ovn启动异常
2 participants