=== juergh_ is now known as juergh [14:59] i'm probably reading this wrong, but if we have an exit hook for dhclient (https://git.launchpad.net/cloud-init/tree/tools/hook-dhclient) unless `cloud-init dhclient-hook` returns a non-zero return code then dhclient will never fail, right? [15:03] chillysurfer: That feels like a precursor to a real question. ;) What's prompting you to ask? [15:04] Odd_Bloke: haha the reason i'm asking is that we're seeing empty dhcp lease files and i'm following the trail back to this. i see in cloudinit.net.dhcp.dhcp_discovery that we would fail for a non-zero return code, and we are passing in the -1 opt to dhclient which would indicate it _would_ be a non-zero return code if dhclient fails, which had me scratching my head [15:04] and then i saw that we have this dhclient exit hook [15:05] and visually consuming it, it seems like this would hide a non-zero return code from dhclient main lease mechanism [15:06] unless ::is azure and cloud-init dhclient-hook fails:: in which case i think we would get nonzero rc [15:06] well... add the condition there that $reason is one of [BOUND, DOWN, RELEASE, REBOOT, STOP, EXPIRE] [15:09] OK, I don't really know enough about dhclient to answer this off-hand, and I'm about to head into a meeting. [15:11] chillysurfer: A bug report capturing the information you have might be the best next step, so that we aren't having to refer people to IRC backlog. [15:13] But I agree with your assessment, it looks like we would mask a failure. [15:13] Well, I'm not sure it's "masking", per se. [15:14] Because it daemonises, it's not clear that we have easy access to an indication that there was an error. [15:16] Odd_Bloke: totally agreed, and good point. i'll create a bug report! [15:18] Thanks! [15:30] rharper: Is there some specific reason we need a cloud-init FFe? Or is it just because we know we're going to want to continue snapshotting? [15:32] Odd_Bloke: my understanding was that while we have an SRU exception for bringing things back, we're still supposed to land features by freeze date and if aren't going to make freeze to do FFe [15:33] historically we've not been great on doing that; so attempting to rectify that; (assuming my understand is correct w.r.t the need for FFe) [15:39] oops [15:46] blackboxsw: I just commented on some weird indentation in https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/371546 and it looks like the autolander failed, so maybe we could fix that before it lands? [15:48] Odd_Bloke: will do [15:51] Thanks! [16:11] Odd_Bloke: rharper looks like auto-lander is failing due to slow git.launchpad response time [16:11] "ERROR: Timeout after 10 minutes" on git fetc [16:11] "ERROR: Timeout after 10 minutes" on git fetch [16:17] is there any official guide/doc on creating a custom cloud-init module? [16:18] i see cc_foo.py https://git.launchpad.net/cloud-init/tree/cloudinit/config/cc_foo.py but was wondering if there was anything beyond this sample module [16:19] I'm not aware of any. [16:20] seems straightforward to construct a module, but i'm more curious to the "install" process. i guess it's just cp'ing a module file into the python cloudinit dist in the cloudinit/config/ dir [16:21] chillysurfer: You'd also need to modify the /etc/cloud/... configuration to actually get the module to run. [16:21] (I think.) [16:22] Odd_Bloke: yeah that makes sense. need to add the module name to the respective config section [16:24] chillysurfer: You can also pass config modules in as user-data. [16:24] But that's about as much as I know about that. :p [16:24] Odd_Bloke: sounds like a good start to me :) [16:24] ok internal fixes on git.launchpad in progress. CI builds should come back out [16:26] Odd_Bloke: chillysurfer correct. drop-in custom config modules can just be added to the installed cloudinit/config directory and an addition in one of the modules sections in /etc/cloud/cloud.cfg [16:26] blackboxsw: awesome thanks! [16:26] cloudinit/stages does a find_modules lookup for any module that contains a 'handle' function [16:33] chillysurfer: if your config module solves a public early-config need, we'd also be interested helping you push that confent upstream [16:33] *public* or *more general* [16:40] blackboxsw: i don't think it'll be so helpful. i'm tossing around ideas to prevent userdata from overwriting vendordata. if the same config sections are present in both, vendordata is overwritten (never merged). i was thinking a possible solution to that is to create an "internal" module and use that to specify vendordata actions [16:48] blackboxsw: rharper: https://code.launchpad.net/~daniel-thewatkins/cloud-init/+git/cloud-init/+merge/371673 <-- this is the refactoring in preparation for the dracut stuff that I mentioned at stand-up [16:49] We don't necessarily need to land it as-is (though that will make the review of the dracut-specific stuff easier), but I would appreciate some review so that I can course-correct sooner rather than later. [16:49] (Ideally, I'd have this all done and landed by EOW, because I'm on vacation for the next 6 working days, hence pushing the review sooner than I might otherwise.) [16:49] But, to be clear, I think this is appropriate for inclusion in master, it shouldn't change any behaviour. [16:51] Odd_Bloke: cool [17:11] ok https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/371546 merged. I'm kicking off an eoan upload and then SRU [17:12] Odd_Bloke: will review that branch after eoan-proposal is syncd [17:12] eoan-upload rather. can always do another upload today if needed [17:25] rharper: Responded to your comments there, BTW. [17:32] thx [17:40] rharper: I sent triage question in email regarding whether there is something to do with IPv6MTUBytes now that Eoan has support [17:40] looking at it now [17:40] maybe it's a curtin action item, dunno [17:40] curtin handles this for xenial, it;s always been broken on networkd; we can re-run with those tests enabled to see what's been fixed. [17:42] btw: [ubuntu/eoan-proposed] cloud-init 19.2-21-ge6383719-0ubuntu1 (Accepted) [17:42] I'm queuing an SRU now [17:52] blackboxsw: yes, we'll need to update our renderer; the key name is now 'ipv6-mtu' [17:52] we're due for an update I think; in e, I think netplan there now will dump it's features and keys; so we'll want to start using that to control how we render things. [18:03] rharper: Responded again and pushed that doc change I mentioned. [18:03] great [18:04] * rharper waits for git to update [18:09] https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1841099 filed for cloud-init SRU [18:15] blackboxsw: Ryan is +1 on my dracut branch; are you happy for me to mark Approved, or do you want to review too? [18:45] What is the correct way to do dhcp4 and dhcp6 on a single interface in network config format 1? Do I need two subnet sections or do I list dhcp,dhcp6 on the same type line? [18:46] Or perhaps two type lines, one with dhcp and one with dhcp6? [18:57] Nick_A: you need to subnets, subnets: [{type: dhcp}, {type: dhcp6}] [18:58] thanks [18:58] What is the best way to insert a multi-line (3) cron file using cloud-init? I can use 3 runcmd lines but I'm guessing there is a better way? [18:58] write_files [18:59] thank you [18:59] you can use the | marker to emit multi-line content [18:59] if only one line is needed, is it better to use write_files or one runcmd echo? [19:00] write_files runs sooner ; but neither is better than the other [19:01] oh interesting. Is there a way to make write_files run later than run_cmd? [19:01] I guess it depends on what you need; write_files you can also set the mode/permissions/owners on the file [19:01] not easily, you have to specify all of the modules for a stage and update the order; [19:01] in /etc/cloud/cloud.cfg, the init_modules: list and config_modules: list [19:02] got it, thank you! [19:04] yw [19:05] SRU is queued for xenial. bionic disco https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/371685 https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/371686 https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/371687 Odd_Bloke rharper if you get a chance to review, we can push it up for SRU [19:05] wanted to ask if there was anything to disable in this SRU [19:05] blackboxsw: thanks [19:05] I'll check the changelog [19:46] blackboxsw: Odd_Bloke: is there a way to "shell" into one of our tox environments? I'm trying to debug a unittest failure under py3 only [19:48] rharper: Yep, you can just use it as a virtualenv; . .tox/py3/bin/activate [19:48] Odd_Bloke: excellent thanks [19:50] Odd_Bloke: rharper looks like we still need to enable exoscale in cloud-init.templates in each series [19:50] shall I add that to the SRU proposal now? [19:50] also, I'm on xenial, and my nosetest3 on the outside passes fine, but inside tox -e py3 it fails ... I dont think there are any package differences in that ; [19:50] I was expecting to see something like abe6bcdfacdf2f6745e3acf5c76b332380b9c493 [19:51] rharper: Odd_Bloke I think I'll add that to my current SRU proposal MPs now [19:51] just need to enable Exoscale [19:52] yes, I think that's right [19:54] rharper: did we intentionally not add Oracle to Xenial/bionic as a datasource option (in favor of retaining Openstack detection behavior?) [19:54] because I don't see it in debian/cloud-init.templates [19:54] blackboxsw: yes; we've work yet to do [19:55] Odd_Bloke: has to finish up the dracut parsing so the cmdline parameter to disable netconfig can be removed [19:55] ok, good that it wasn't omission [20:12] ok rharper xenial, bionic disco I just added Exoscale datasource and repushed my MP [20:12] letting CI get through it [20:17] Odd_Bloke: sorry, reviewing your branch nowhttps://code.launchpad.net/~daniel-thewatkins/cloud-init/+git/cloud-init/+merge/371673 [20:29] rharper: As I'm starting to write this config generation code, I'm wondering if we should actually move to v2 config for initramfs stuff first. [20:29] Otherwise I'm just writing techdebt. :p [20:29] hehe [20:29] well [20:29] control-manual [20:29] Ah, yeah. [20:29] Conscience salved, I will continue on. :p [20:30] oh, I think we can use critical: true on the iscsi connection [20:30] so while we don;t have a contro-manaual for leaving stuff _down_ [20:30] we do have a way to say, don't bring the dhcp lease on this connection down [20:31] Ah, right, yeah. [20:31] so restarts of networking won't break root [20:31] But changing the initramfs stuff means also changing the Oracle stuff, for which we _do_ want control-manual. [20:32] So I think I'm better off writing (not very much) code to produce v1, and then we can move everything up to v2 together once we're sure we're ready to do that. [20:33] rharper: Does that sound reasonable? [20:34] thanks Odd_Bloke approved https://code.launchpad.net/~daniel-thewatkins/cloud-init/+git/cloud-init/+merge/371673 [20:34] we can land that right ^? [20:35] Yep, just marked as Approved. [20:35] well, I don't think we did want control manual, but I think we agreed to start with that? ISTR that we could bring everything up given the "proper" parsing of the metadata and sorting out the first nic to provide a subnet would get a gateway [20:36] so I'm not sure if we're staging things; if we did all v2, and sorted the gateway logic on the secondary nics in one go, then we'd not need to emit v1 as there's no control manaul requirement if we know we're not breaking primary interface routing [20:36] rharper: Yeah, we did agree to start with that, but the criteria for _stopping_ doing that are not necessarily clear. [20:39] ok xenial, bionic and disco SRU MPs all passed CI [20:39] and have Exoscale enabled in debian/cloud-init.templates