Skip to content

Add a custom playbook to fix OVN chassis priorities #661

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

Merged

Conversation

markgoddard
Copy link
Contributor

Sometimes, typically after restarting OVN services, the priorities of entries in the ha_chassis and gateway_chassis tables in the OVN northbound database can become misaligned. This results in broken routing for external (bare metal/SR-IOV) ports.

This playbook can be used to fix the issue by realigning the priorities of the table entries. It does so by assigning the highest priority to the "first" (sorted alphabetically) OVN NB DB host. This results in all gateways being scheduled to a single host, but is less complicated than trying to balance them (and it's also not clear to me how to map between individual ha_chassis and gateway_chassis entries).

The playbook can be run as follows:
kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/ovn-fix-chassis-priorities.yml

If the 'controllers' group does not align with the group used to deploy the OVN NB DB, this can be overridden by passing the following: '-e ovn_nb_db_group=some_other_group'

@markgoddard markgoddard requested a review from a team as a code owner September 22, 2023 08:49
@markgoddard markgoddard self-assigned this Sep 22, 2023
Sometimes, typically after restarting OVN services, the priorities of entries
in the ha_chassis and gateway_chassis tables in the OVN northbound database
can become misaligned. This results in broken routing for external (bare
metal/SR-IOV) ports.

This playbook can be used to fix the issue by realigning the priorities of
the table entries. It does so by assigning the highest priority to the
"first" (sorted alphabetically) OVN NB DB host. This results in all gateways
being scheduled to a single host, but is less complicated than trying to
balance them (and it's also not clear to me how to map between individual
ha_chassis and gateway_chassis entries).

The playbook can be run as follows:
kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/ovn-fix-chassis-priorities.yml

If the 'controllers' group does not align with the group used to deploy the
OVN NB DB, this can be overridden by passing the following:
'-e ovn_nb_db_group=some_other_group'
@markgoddard markgoddard force-pushed the wallaby-ovn-fix-chassis-priorities-playbook branch from 70721d5 to 3a4fa4c Compare September 22, 2023 08:52
@markgoddard markgoddard merged commit dae64dd into stackhpc/wallaby Sep 29, 2023
@markgoddard markgoddard deleted the wallaby-ovn-fix-chassis-priorities-playbook branch September 29, 2023 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants