/srv/irclogs.ubuntu.com/2018/02/27/#cloud-init.txt

blackboxswrharper: finally got to what you were saying in standup about UserDataProcessor for read_file_or_url17:16
rharpercool17:17
blackboxswyeah looks like we handle the exception without raising it17:17
blackboxswand log the warning anyway.17:17
blackboxswso it's a no fail attempt17:17
blackboxswwe either have processed user-data or not and log an error.17:17
blackboxswthis would be a problem if we created a semaphore for set_hostname module, but since we're calling it directly we don't have to worry ™17:18
rharperso, ideally we17:18
rharperd want to know in stages if we failed to process all user-data parts17:18
rharperand if so, call update a second time;17:19
rharperor, if we keep that inside the update() method (even in the userdata class, not sure about where we capture that knowledge)17:19
rharperbut a second call would do nothing if it already processed everything, vs a second call (after networking is up) and it would "finish" processing17:19
rharperblackboxsw: yeah; that does work well17:20
blackboxswright it feels like UserDataProcessor would need an instance attr that says "fail hard in error" or something.17:20
blackboxswso we could react to a failed #include17:20
blackboxswwill see where it makes sense17:20
blackboxswcan we have gzip'd #includes too?17:21
rharperI dunno17:21
blackboxswnope doesn't look like it gzip exploding happens after #include attempts17:21
blackboxswok I'll put something up and test it17:22
blackboxswthanks again gents17:22

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