[Bug 2101860] Re: Different networking behavior with 2nd IP on 2nd NIC

2025-03-11 Thread James Falcon
networkctl output: root@ip-192-168-11-242:/home/ubuntu# networkctl status ● Interfaces: 1, 2, 3 State: routable Online state: online Address: 192.168.11.242 on ens5 192.168.12.6 on ens6

[Bug 2101860] Re: Different networking behavior with 2nd IP on 2nd NIC

2025-03-11 Thread James Falcon
** Description changed: This integration test is currently failing on plucky: https://github.com/canonical/cloud-init/blob/a136a979dd5a5084f71f5def5abf6d80d7cc263a/tests/integration_tests/test_networking.py#L313 This test will launch an ec2 instance, attach a 2nd NIC, and then assign t

[Bug 2101860] Re: Different networking behavior with 2nd IP on 2nd NIC

2025-03-11 Thread James Falcon
networkd debug logs attached from after reboot on plucky ** Attachment added: "networkd_debug_plucky" https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2101860/+attachment/5864048/+files/networkd_debug_plucky -- You received this bug notification because you are a member of Ubuntu Bu

[Bug 2101860] Re: Different networking behavior with 2nd IP on 2nd NIC

2025-03-11 Thread James Falcon
Also adding netplan and systemd here as the rendered networkd config doesn't change, and the netplan apply call is racy. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2101860 Title: Different networ

[Bug 2101860] Re: Different networking behavior with 2nd IP on 2nd NIC

2025-03-11 Thread James Falcon
networkd debug logs attached from after reboot on oracular ** Attachment added: "networkd_debug_oracular" https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2101860/+attachment/5864049/+files/networkd_debug_oracular ** Also affects: systemd (Ubuntu) Importance: Undecided Stat

[Bug 2101860] Re: Different networking behavior with 2nd IP on 2nd NIC

2025-03-11 Thread James Falcon
It appears Plucky is missing the proper rule: root@ip-192-168-11-242:~# ip rule 0: from all lookup local 32765: from 192.168.15.230 lookup 101 proto static 32766: from all lookup main 32767: from all lookup default Compared to Oracular: root@ip-192-168-1-227:/usr/lib/systemd/network# ip ru

[Bug 2101860] Re: Different networking behavior with 2nd IP on 2nd NIC

2025-03-11 Thread James Falcon
> When removing the "use-routes" dhcp-overrides for ens6 and running "netplan apply" it seems to be working. The default for this is true, so unless the documentation is wrong, I don't think that changing this is actually doing anything. There is certainly some racy behavior though. Using a scrip

[Bug 2101860] Re: Different networking behavior with 2nd IP on 2nd NIC

2025-03-11 Thread Lukas Märdian
Good find in comment #3. Adding this policy-based routing (PBR) rule manually seems to fix the issue: # ip rule add from 192.168.12.6 lookup 101 proto static But it's defined in Netplan config: """ routing-policy: - table: 101 from: "192.168.12.6" """ And rendered to systemd

[Bug 2101860] Re: Different networking behavior with 2nd IP on 2nd NIC

2025-03-10 Thread James Falcon
Plucky routes: ubuntu@ip-192-168-11-242:~$ ip route default via 192.168.0.1 dev ens5 proto dhcp src 192.168.11.242 metric 100 default via 192.168.0.1 dev ens6 proto dhcp src 192.168.12.6 metric 1003 mtu 9001 192.168.0.0/20 dev ens5 proto kernel scope link src 192.168.11.242 metric 100 192.168.0