forked from openvswitch/ovs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovn-controller: Fix chassisredirect port flapping when ovs-vswitchd c…
…rashes On a chassis when ovs-vswitchd crashes for some reason, the BFD status doesn't get updated in the ovs db. ovn-controller will be reading the old BFD status even though ovs-vswitchd is crashed. This results in the chassiredirect port claim flapping between the master chassis and the chasiss with the next higher priority if ovs-vswitchd crashes in the master chassis. All the other chassis notices the BFD status down with the master chassis and hence the next higher priority claims the port. But according to the master chassis, the BFD status is fine and it again claims back the chassisredirect port. And this results in flapping. The issue gets resolved when ovs-vswitchd comes back but until then it leads to lot of SB DB transactions and high CPU usage in ovn-controller's. This patch fixes the issue by checking the OF connection status of the ovn-controller with ovs-vswitchd and calculates the active bfd tunnels only if it's connected. Signed-off-by: Numan Siddique <nusiddiq@redhat.com> Signed-off-by: 0-day Robot <robot@bytheb.org>
- Loading branch information
1 parent
8411b6c
commit 1299480
Showing
4 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters