/srv/irclogs.ubuntu.com/2020/03/13/#cloud-init.txt

blackboxswrharper: just pushed followup on https://github.com/canonical/cloud-init/pull/114 with doc updates and renamed ds config option to ``apply_network_config`` which aligns with both openstack and azure config option for getting stuff from imds18:17
blackboxsws/stuff/network config/18:17
blackboxswhttps://paste.ubuntu.com/p/DyvY7vjFyN/ is the successful network config for multi-nics + secondary-ips18:18
blackboxswsorry multi-nic only, will add secondary ips to that too (and some ipv6) for a more full success route test18:18
rharperblackboxsw: ok18:53
Odd_Blokerharper: blackboxsw: powersj: Just pushed up my revisions to the code review doc: https://github.com/canonical/cloud-init/pull/160/19:42
rharperk19:42
blackboxswsweet Odd_Bloke will grab that next. wrapping up two other cloud-init pr reviews19:43
blackboxswrharper: anything else in progress you are working related to initramfs ? https://github.com/canonical/cloud-init/pull/23819:43
blackboxswor is that branch ready for review19:43
rharperwhat's 238 ?19:43
rharpersorry19:44
rharperheads down in reviewing your 11419:44
rharperthe initramfs.netplan one needs review from xnox/vorlon before we move forward19:44
blackboxswnp just wondering if you are expecting more work on your #238 (I'll not review it until I get through OddBloke's 160)19:44
blackboxswok thanks rharper19:44
rharperblackboxsw: ok, finished review 11419:45
powersjOdd_Bloke, approved19:59
Odd_BlokeThanks!20:00
blackboxswonto 160 now. closed out https://github.com/canonical/cloud-init/pull/7520:01
blackboxswupdated FFe bug with secondary nic & secondary ip address context https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/186693020:02
ubot5Ubuntu bug 1866930 in cloud-init (Ubuntu) "[FFe] ec2 add support for configuring secondary NICs and secondary ipv4 and ipv6 addresses" [High,In progress]20:02
blackboxswOdd_Bloke: approved with nits https://github.com/canonical/cloud-init/pull/160#pullrequestreview-37460112520:28
blackboxswif you want the nits take 'em otherwise merge at will20:28
Odd_Blokeblackboxsw: Well, I'm going to want to ping community folks for feedback, just giving core folks a head start. :)20:36
powersjblackboxsw, did you get another review on ec2 branch?20:37
blackboxswpowersj: rharper: said he's heads down on it20:37
blackboxswright now20:37
rharperblackboxsw: I finished up 30 minutes ago .. .did you push up again ?20:37
rharperI left like 20 comments20:37
blackboxswpowersj: rharper I also validated upgrade path + reboot doesn't rewrite network config with multiple nics if former net config only had eth0 rendered.20:38
blackboxswrharper: no didn't see what reviewing OddBloke's but done there.20:38
blackboxswwill address comments20:38
powersjrharper, thanks20:38
rharpernp20:38
blackboxswrharper: so primary interface discovery on ec2 is really related to find_fallback_nic_on_linux() not truly what ec2 mentioned as device-number: 0 https://github.com/canonical/cloud-init/pull/114/files#r39243030721:19
blackboxswas in, there is nothing currently in ec2 net config that truly checks device-number. but I guess you were saying we should document this correlation21:21
blackboxswultimately rharper do you think the route-metric should be set to 100 * nic_metadata['device-number'] +1 and we could drop the nic_idx counter variable?21:24
rharperblackboxsw: I would be shocked if those don't align21:24
blackboxswrharper: I'm almost positive they align, but the code itself doesn't *do* that is what I was raising21:24
blackboxswbut maybe it should :)21:24
rharperI feel like it should too, but I'm somewhat worried...21:25
rharperlet me reread the ec2 docs21:25
rharperblackboxsw: it says, device-index number corresponds to eth<number>   ;   I wonder if that matches 'ifindex' value21:30
blackboxswrharper: ssh ubuntu@18.191.148.25421:31
blackboxswhas 2 nics21:31
rharperhrm, I wonder why they're called ethX instead of en (predictable names)21:32
rharperno, ifindex does not relate21:32
rharperthat's xen, I wonder what nitro ones look like21:33
rharperblackboxsw: well, maybe we can do work on device-id later then21:34
rharperI'd rather be sure than change it now21:34
blackboxswrharper: +121:35
blackboxswwaiting on that.21:35
blackboxswrharper: clarification for you  https://github.com/canonical/cloud-init/pull/114/files#r39249389521:36
blackboxswif we are doing primary nic, it can have secondary addrs so we still need the apply_network_config check before adding secondary ips21:36
blackboxswsound ok? (that's current behavior of cloud-init everywhere anyway) primary nic, no secondary ips21:37
blackboxswahh interesting. and I think I have something to fix then21:39
blackboxswhttps://github.com/canonical/cloud-init/pull/114/files#r39241996321:39
blackboxswok I saw our unittest which showed rendered v2 routes that were not under the specific address.21:39
rharperroutes are per interface in v221:40
rharperthere is no top-level routes in v221:41
rharperthat will not validate via netplan generate21:41
rharperblackboxsw: on apply_network_config;  if False, primary gets dhcp4 only, no secondary ; and dhcp6 instead of dhcp4 if ipv6s is non-empty, Yes?  do we do dual-stack v4 + v6 (dhcp4/dhcp6) as well (and all of this is with apply_network_config: False)21:42
rharperif apply_network_config=True ;; then all of the things everywhere21:42
blackboxsw1.  on apply_network_config;  if False, primary gets dhcp4 only, no secondary ; YES21:44
blackboxsw2.  and dhcp6 instead of dhcp4 if ipv6s is non-empty, Yes?       No. it gets both dhcp4 and dhcp621:44
blackboxswwe bring up dhcp4 always on primary because it is needed anyway to talk to the imds21:45
blackboxswso we know it works because we couldn't have getting IMDS networkconfig otherwise21:45
blackboxsw3. do we do dual stack ipv4/v6 when apply_network_config == false : YES21:46
blackboxswjust no secondary ips in that case (or secondary nics)21:46
blackboxswrharper: ^ sorry forgot to address me response21:47
blackboxsw*my821:47
rharperok, on False, agreed, forgot about v4 for imds21:47
blackboxswjust pushed all I have. scrubbing rharper's review comments to make sure I addressed them all21:50
blackboxswahh right subnet route ordering is wonky https://github.com/canonical/cloud-init/pull/114/files#r39241996321:51
rharperblackboxsw: one more suggestion22:03
rharperin convert, I  think if we separate out the logic into two parts,  apply_network_config==False (this is the primary nic dhcp4 + optionally v6, no additional ips) ; and then apply_network_config==True, and this just configures *all* the nics with all features per metadata22:04
rharperit's easier to see the path that older relases will take, and only the apply_network_config==True path will loop over all interfaces and enable all of the things.22:05
blackboxswahh rharper no prob. that makes sense and simplifies the for loop for all22:06
blackboxswadding now22:08
blackboxswrharper: just pushed that separation of logic22:29
blackboxsw1f35018da2abd253561da82bdc7f577eb1058cb222:29
blackboxswI know we're running out of daylight22:29
blackboxsw:/22:29

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