=== gjolly_ is now known as gjolly
=== jrm2 is now known as jrm
=== kenyon_ is now known as kenyon
=== yawkat` is now known as yawkat
caribouHello, I have a netplan renderer question for you : In  our Datasource, when trying to add a static IPv4 network with the following network_config :12:49
caribou{'version': 1, 12:49
caribou'config': [12:49
caribou{'type': 'physical',12:49
caribou'name': 'ens2', 12:49
caribou'subnets': [12:49
caribou{'type': 'static', 12:49
caribou'address': '195.154.xx.yyy', 12:49
caribou'mac_address': 'xx:00:00:00:00:xx', 12:49
caribou'routes': [12:49
caribou{'network': '', 12:49
caribou'prefix': 0, 12:49
caribou'gateway': ''}]}]}]}12:49
caribouThe netplan rendered file will not add the default route unless I manually add on-link: true to validate the fact that the gateway's subnet is not in the same subnet as the NIC12:49
caribouI don't see any way to add the on-link: true in the network_config structure so I suppose that there is another proper way of doing this in order to get the proper routing12:50
caribouThe generated netplan file is here : http://pastebin.fr/11281112:53
caribouweeelll, I don't now if will be your suggestion, but since switching to version 2 means that there is a one-to-one matching between the network_config structure and netplan, I can easily build the proper structure with on-link: True and it seems to work as I expect13:35
falcojrcaribou: I don't think cloud-init networking config has a way of accomplishing that other than the netplan passthrough as you mentioned. That's something we should probably add14:51
cariboufalcojr: well, using V2 seems to do the job, I just had to dig into the source to figure it out. Thanks for confirming that15:44
holmanbcaribou: This setup is unusual. What would be the use case for this?16:14
minimalI'd think it is more than just usual, how would the default route ever be usable as there is no machine interface on the same subnet as the gateway16:20
holmanbminimal: +1 to "more than unusual"16:21
holmanbI see examples of this being supported at https://netplan.io/examples16:22
minimalyou need a router on your local network so that you can send it packets for machines not on the same network. But if the router itself is not on the same network then you'd need another router on the same network as you to send the packets to for it to forward them to the 1st router ;-)16:23
minimalhmm, from "ip route" manpage: "pretend that the nexthop is directly attached to this link, even if it does not match any interface prefix."16:26
minimalconfused how this works at all as it goes against fundamental routing principles16:28
holmanbif arp returns a mac for that IP I assume this would work, despite how wrong it seems16:32
minimalunless it's supposed to act like "unnumbered links" which are sometimes used for PtP serial/leased-line connections (rather than broadcast networks like ethernet) where each router sees IP address(es) of the other non-PtP interfaces of the other router as being directly accessible16:33
minimalbjut that works with PtP networks as there is no broadcast "domain" in PtP links, unlike broadcast media such as ethernet, so packets sent can only possibly go to the machine/router at the other end16:35
caribouholmanb: tbh, I'm not behind the network setup of all this. maybe I can fetch more details16:38
caribouthat might also be an unusual configuration of our lab setup which may not reflect our "real world" network configuration. I'll check on that too16:41
holmanbcaribou: I think minimal and I are confused because however this "works" it violates a lot of typical network addressing expectations.16:44
holmanbcaribou: which would likely make it a pretty low priority for cloud-init support16:45
holmanbcaribou: If this is only for a lab where you need two devices to talk to each other, then adding support for an obscure networking feature to cloud-init seems like the "hard way" to accomplish whatever you're trying to do.16:45
holmanbcaribou: more details would help a lot - real world details especially so16:46
holmanbThanks :)16:46
caribouholmanb: yep; I'll get more details from my network engineers counterpart & let you know as soon as I know more16:48
holmanbcaribou: Thanks!16:49
meenacaribou, holmanb, minimal: I'm pretty, and sure, Hetzner has, or used to have a peet-to-peer setup your their IPv4 network 20:20
meenapeer-to-peer, even20:20
minimalmeena: over a broadcast (ethernet) media?20:24
meenasometimes i forget what an unholy mess Hetzner's network is20:28
meenaand this is waaaaaaay improved from what it used to be20:29
holmanbmeena: Why configure the interface to be in a different subnet than the gateway?21:30
minimalholmanb: I guess to save on public IPv4 address space, the vtnet0 IP is "global" but the gateway is private address space21:36
minimalif they didn't use this "trick" then they'd have to waste some public/global address space for gateway within their hosting environment21:37
minimalplus they're handling out/creating a /32 so what IP could a "local" gateway be on? lol21:42
minimalthe joys of VPS-type hosting providers wacky setups....21:43
minimalwas helping someone last night who's using cloud-init with OVH's Bare Metal service - it's Openstack-based and so ConfigDrive data source. He had a *large* number of IPv6 routes, turns out the network info passed via ConfigDrive has this in it so something must have gone wrong at OVH side - it defined IPv6 routes for a /32, a /33, a /34, a /35, etc all the way to a /128 ;-)21:46
minimalso the resultant e/n/i file (for the Debian deriivative he used) had all these interface "pre-up" entries per route21:47
holmanb> plus they're handling out/creating a /32 so what IP could a "local" gateway be on? lol21:48
holmanbI see the config meena shared has a /32, but I haven't even found anywhere in Hetzner's docs where static addressing recommends that.21:48
holmanbmost of their examples use hdpc21:48
holmanbahhh, found it21:49
minimalI definately heard of some VPS type providers using /3221:49
minimalholmanb: ah I see in that page their e/n/i example has "pointopoint" which goes back to my original comment about unnumbered PtP links21:51
minimalthat I think turns the interface effectively into no longer a broadcast media21:51
holmanb^^ that docs page also says to disable cloud-init, lol21:51
minimalwell it says to disable c-i network *changes*21:51
holmanb*cloud-init networking21:51
holmanbyeah, mistyped that21:51
minimalso it might do the original network config ok21:52
minimalsame with that guy last night and OVH Bare Metal, he was overriding the ConfigDrive network info as he was setting up a bridge to layer the ethernet on21:53
meenathis is funny to me, because we just merged a change to apply network changes to on every boot21:54
meenaanyway, we need a better way to set pointopoint routes in FreeBSD 21:57
* holmanb updates priors about cloud network design22:02

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!