-
-
Notifications
You must be signed in to change notification settings - Fork 261
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
Allow announcing extra routes through DHCPv4 #1734
base: main
Are you sure you want to change the base?
Conversation
test/suites/network_dhcp_routes.sh
Outdated
@@ -0,0 +1,32 @@ | |||
test_network() { |
Check failure
Code scanning / shellcheck
SC2148 Error test
024cd42
to
67a8054
Compare
something is wrong with the tests I wrote but I can't figure out how to run them locally to properly figure out the issue :/ |
I think it can probably just be |
That's fine, we don't pay for the Github runners ;) Just push some debug commits to dump the network config, instance config, full output of the routing table in the container, ... It may be as simple as the tiny busybox image on the Ubuntu 22.04 runners not supporting option 121. |
fdb4a59
to
c8dc273
Compare
I think we might not be running a dhcp4 client (or server?) at all in the tests, is that possible? I just did a run with default settings, and not only does the machine not have an ipv4 on its eth0, The only other test that looks at the leases is network.sh, and that one only tests static leases. I'm not sure if and how it is possible to test this in the github runners, and right now I'm having trouble testing it on my laptop because any bridge networks I create don't get dhcp at all for some reason (works fine on ovn though, so probably a dnsmasq issue) |
oh wait nvm the issue with my bridges locally is just firewall >.< |
looking into |
I now have the tests with bridge network passing. OCI get skipped because offline mode, and OVN isn't available on the test runners so I made them skip if the ovn network creation fails (I think we don't have a way of detecting if OVN is available). |
a29a1b3
to
85917ee
Compare
I think this probably needs an API extension as well, should I just add one? |
85917ee
to
722a2d4
Compare
I think there is still a bug with the ovn networks, it seems these routes now override the route to the uplink dns server, and I'm gonna have to dig a bit deeper to figure out what is going on there, and why we are routing the uplink DNS in the first place. Edit: nvm, we can ignore the route because it is caught by the default route anyways, and it's just added by some dhcp clients for some reason rather than actively being sent. I'm still trying to figure out why the uplink DNS server is used rather than the OVN one though. |
722a2d4
to
fddbb2d
Compare
Signed-off-by: Stéphane Graber <[email protected]>
Signed-off-by: Gwendolyn <[email protected]>
Signed-off-by: Gwendolyn <[email protected]>
Signed-off-by: Gwendolyn <[email protected]>
… dhcp client Signed-off-by: Gwendolyn <[email protected]>
Signed-off-by: Gwendolyn <[email protected]>
fddbb2d
to
c2e945f
Compare
Signed-off-by: Gwendolyn <[email protected]>
c2e945f
to
c17870e
Compare
This PR adds a new option
ipv4.dhcp.static-routes
for both bridge and ovn networks. The value of the option is directly passed through to dnsmasq and ovsdb respectively, to be used as DHCP option 121.