-
Notifications
You must be signed in to change notification settings - Fork 23
Fix OVN leader detection in chassis priority fix #1970
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 OVN leader detection in chassis priority fix #1970
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request addresses a bug in OVN leader detection within the chassis priority fix playbook. The previous method, which relied on the exit code of ovn-nbctl get-connection, became unreliable after a related change, leading to multiple nodes being identified as leaders. The fix replaces this with a more robust method using ovs-appctl cluster/status and checking the output for the node's role. This change is correct and effectively resolves the issue. I have one minor suggestion to improve the code's readability and maintainability.
690bc72 to
3d14a1d
Compare
After kolla-ansible patch [1] ovn commands can run on all nodes. Changing method of getting the leader. [1] https://review.opendev.org/c/openstack/kolla-ansible/+/963412 Signed-off-by: Bartosz Bezak <bartosz@stackhpc.com>
3d14a1d to
2e5720f
Compare
After kolla-ansible patch [1] ovn commands can run on all nodes. Changing method of getting the leader.
[1] https://review.opendev.org/c/openstack/kolla-ansible/+/963412
error in previous method - multiple "leaders":