Skip to content

Commit 6964ba4

Browse files
committed
Set public bridge up for v6 only configurations
A long time ago, Ironic's IPv6 only job started to fail working with errors indicated the host was unreacable. Turns out, this was because the $ext_gw_interface was not being set to up, and thus could be found in a Down state, and thus the kernel would not accept routes for it. Adds an explicit step to turn up the public bridge, much as done in the IPv4 router plugin code which would also be executed in 4+6. That being said, Ironic's CI jobs are very intentionally IPv6 only to ensure that we have no chances of v4 addressing getting used at any point in time. This should allow Ironic to return it's IPv6 only CI job back to the normal check queue, once a ironic plugin issue has been resolved which was introduced while it was removed. Change-Id: I121ec8a2e9640b21a7126f2eeb23da36b4aa95bf
1 parent 76c519b commit 6964ba4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • lib/neutron_plugins/services

lib/neutron_plugins/services/l3

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,10 @@ function _neutron_configure_router_v6 {
403403
ext_gw_interface=$(_neutron_get_ext_gw_interface)
404404
local ipv6_cidr_len=${IPV6_PUBLIC_RANGE#*/}
405405

406-
# Configure interface for public bridge
406+
# Configure interface for public bridge by setting the interface
407+
# to "up" in case the job is running entirely private network based
408+
# testing.
409+
sudo ip link set $ext_gw_interface up
407410
sudo ip -6 addr replace $ipv6_ext_gw_ip/$ipv6_cidr_len dev $ext_gw_interface
408411
# Any IPv6 private subnet that uses the default IPV6 subnet pool
409412
# and that is plugged into the default router (Q_ROUTER_NAME) will

0 commit comments

Comments
 (0)