Skip to content

Commit

Permalink
cms/openstack: Set route policy to '""' instead of not setting it.
Browse files Browse the repository at this point in the history
Having the transaction error in the run makes the run fail on
larger scale.

Signed-off-by: Frode Nordahl <frode.nordahl@canonical.com>
  • Loading branch information
fnordahl committed Oct 31, 2023
1 parent f1312a1 commit d4c9078
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ovn-tester/cms/openstack/openstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,8 @@ def connect_external_network_to_project(
self.external_port = lr_port
gw_net = DualStackSubnet(netaddr.IPNetwork("0.0.0.0/0"))

# XXX: ovsdbapp does not allow setting external IDs to static route
# XXX: Setting 'policy' to "" throws "constraint violation" error in
# logs because ovsdbapp does not allow not specifying policy.
# However, the route itself is created successfully with no
# policy, the same way Neutron does it.
self.nbctl.route_add(project.router, gw_net, lr_port.ip, "")
# NOTE(mkalcok): Neutron actually sets policy to '""'
self.nbctl.route_add(project.router, gw_net, lr_port.ip, '""')

gw_nodes = self._get_gateway_chassis(external_network.num_gw_nodes)
for index, chassis in enumerate(gw_nodes):
Expand Down

0 comments on commit d4c9078

Please sign in to comment.