fix(neutron): handle centralized and distributed router ports properly - #2171
Merged
Conversation
link_vxlan_network_ha_chassis_group anchored the internal router-interface Logical_Router_Port to the network's unified HA_Chassis_Group. Every vxlan gateway router is centralized (options:chassis set), and anchoring one of its ports as a distributed gateway port makes ovn-northd log "Bad configuration: distributed gateway port configured on port ... on L3 gateway router" and ignore the setting anyway. Skip that anchor whenever the owning router is centralized; the network HCG population (the part that actually fixes external/baremetal port routing) is untouched. Also fix scripts/cleanup_dead_ovn_ha_chassis.py to match: - Drop the now-invalid LRP anchor from Phase 2's repopulation action. - Phase 2 previously derived the gateway chassis solely from the router's own per-router HA_Chassis_Group (neutron-<router_id>). That group is only ever created once, at gateway-port-creation time, and nothing recreates it if deleted -- several routers in the fleet had options:chassis set but no such group, so Phase 2 skipped them forever. Now reads Logical_Router.options.chassis directly as the primary, always-reliable source, falling back to the per-router HCG only when the router isn't centralized.
We need the fix in https://review.opendev.org/c/openstack/neutron/+/998088 to ensure that our router ports get properly scheduled and not incorrectly pinned which breaks their traffic. Plus this backports https://review.opendev.org/c/openstack/neutron/+/999158 which at this time is proposed upstream.
cardoe
force-pushed
the
skip-hcg-router-ports
branch
from
July 29, 2026 16:33
d69ed37 to
36e972c
Compare
haseebsyed12
force-pushed
the
skip-hcg-router-ports
branch
from
July 29, 2026 18:02
36e972c to
94b68d7
Compare
cardoe
force-pushed
the
skip-hcg-router-ports
branch
from
July 29, 2026 18:26
94b68d7 to
575418c
Compare
cardoe
enabled auto-merge
July 29, 2026 20:08
haseebsyed12
approved these changes
Jul 30, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rebased our understack/2026.1 on top of the latest stable/2026.1 so that we pull in https://review.opendev.org/c/openstack/neutron/+/998088 which is needed to ensure Neutron does not incorrectly pin ports. At the same time update our HCG workaround to avoid setting it on ports that are centralized.