/srv/irclogs.ubuntu.com/2021/01/11/#cloud-init.txt

=== cpaelzer__ is now known as cpaelzer
smoserbeantaxi: it woudlnt be a new stage14:23
smoserbut the _default_handlers is how all the types of handlers are registereed14:27
smoserand yeah... the sub_handlers bit isn't clear14:29
smoserbut i think you should add your types to that list.14:30
smosergit blame shows c7555762f3a30190ce7726b4d013bc3e83c7e4b614:30
smoserindicatting that the sub_handler bit is what allows jinja rendering also. and i think we would want that.14:31
beantaxismoser: Interesting ... from the code, the Jinja handler is actually added to def_handlers not sub_handlers. There appear to be 3 styles of adding a handler in stages.py:_default_handlers: 1. Instantiate the handler, assign to a variable, then add the variable to def_handles 2. Instantiate & assign to handler 'inline' 3. Add to sub_handlers. cloud_config & shellscript are #1 and #3, boothook and16:04
beantaxiupstart are #2, and then jinja is #1 but it comes after everything else.16:04
beantaxiAlso the function is preceded by a comment that says '# TODO(harlowja) Hmmm, should we dynamically import these??' So I wonder if this is a decent time to make them a bit more consistent, possibly sort out sub_handlers, and make the whole thing dynamic if deiresd. (Let me know if I'm overstepping)16:06
smoserbeantaxi: i think you understand...17:19
smoseryes.. i was wondering why all the handlers didn't get that17:20
=== vrubiolo1 is now known as vrubiolo
=== ijohnson is now known as ijohnson|lunch
smoseri think they problably should have17:55
beantaxismoser: It also maybe looks like the point is to create all the handlers except Jinja with **opts ... and then to add a sub_handlers collection to **opts, add all the handlers to sub_handlers, and instantiate the Jinja handler with the new **opts that has the list of subhandlers17:59
beantaxismoser: Perhaps this is because the Jinja handler is user to handle user-data scripts, so it needs to be a handler, and cloud config files, so it needs access to all the other handlers18:02
beantaxiiow it's a bit of a hybrid18:05
smoserbeantaxi: i think you're down the right path.18:23
smoserthe point i was trying to mnake in the review was that if we want people to be able to use this, then we should just add it to cloud-init "proper" like the other handlers.18:24
beantaxismoser: That makes sense. In my own bumbling way, I was starting out by not wanting to touch any existing code if I could avoid it (which I did! go me), and to be happy to go in and modify existing code but only if recommended.19:22
beantaxismoser: I think that's plenty for me to go on. I'll drop off irssi for now, and put any other questions/comments on my next commits. Thanks!19:42
=== ijohnson|lunch is now known as ijohnson
Odd_Blokefalcojr: blackboxsw: https://github.com/canonical/cloud-init/pull/761 <-- PR for a test for today's hot issue21:46
blackboxswOdd_Bloke: approved https://github.com/canonical/cloud-init/pull/762/files22:04
blackboxsw@Odd_Bloke will you be dputing this PR via build-and-push then? or your own mechanisms to dput and git push ubuntu/devel22:06
blackboxswOdd_Bloke: +1 on groovy22:33
blackboxswhttps://github.com/canonical/cloud-init/pull/763/files22:33
blackboxswand good thinking including the LP bug in debian/changelog22:35
Odd_BlokeWe need to for SRU process, so glad I caught that before upload!22:37
blackboxswhttps://github.com/canonical/cloud-init/pull/76422:40
blackboxswfocal approved22:40
blackboxswbionic approved https://github.com/canonical/cloud-init/pull/765#pullrequestreview-56579922922:46
blackboxswXenial approved https://github.com/canonical/cloud-init/pull/767#pullrequestreview-56580289822:53
Odd_BlokeThanks; all uploaded and pushed.22:55
Odd_BlokeAnd I've dropped a message in #ubuntu-release to ask for them to be accepted to -proposed.22:55
blackboxswOdd_Bloke: and AnhVoMSFT  our uploads are queued into (xenial|bionic|focal|groovy)-proposed pockets and should be in cloud-images tomorrow for our testing23:45

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