/srv/irclogs.ubuntu.com/2018/06/07/#cloud-init.txt

=== thnee1 is now known as thnee
blackboxsw https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/167195115:14
ubot5Ubuntu bug 1671951 in systemd (Ubuntu) "networkd should allow configuring IPV6 MTU" [Medium,Confirmed]15:14
blackboxswrharper: per your review coments on my mtu branch (in _extract_addresses) what's our desired behavior if config represents on mtu key at the physical device level and one in an ipv4 subnet?16:54
blackboxswas it is currently, the subnet mtu would be overwritten by the top-level mtu16:54
blackboxswI could change your review comment to only honor device-level mtu setting if an mtu(ipv4-specific subnet setting) doesn't already exist16:59
=== Rolf is now known as Guest91333
Guest91333Hi, I am trying to write a part-handler, version2, but even a simple import os will make the part-handler stop working. No printout in the logfiles from code after the import os. Any pointers what might be wrong ?17:03
Guest91333I am using cloud-init 0.7.517:05
smoser1Guest91333: 0.7.5 is very old. i'd suggest first seeing if you can get something working with more recent.17:06
smoser1either way though, a fix to 0.7.5 is not really l ikely17:07
rharperblackboxsw: hrm, not sure; there can be only one v4 mtu (aka, device level) it's not clear to me which one we should respect;  I think I'd like to  log that we found conflicting values and pick one17:07
Guest91333upgrading the cloud-init version is difficult, as the image is given to us. Anyone has an example except the one in the docs ?17:07
blackboxswif on redhat/centos :    https://copr.fedorainfracloud.org/coprs/g/cloud-init/el-testing/builds/ has our builds17:09
blackboxswhrm Guest91333, if you are adding a part-handler to an image you don't control content on, I'm having a hard time seeing how that part-handler will be executed as cloud-init will only run on initial clean boot in that environment.17:12
blackboxswunless you are running a script after the fact I guess17:13
Guest91333mime type part-handler - oh, you call more than one thing a part-handler ? Sorry forthe confusion then !17:14
Guest91333my code is based on this https://github.com/cloud-init/cloud-init/blob/master/doc/examples/part-handler-v2.txt17:16
blackboxswohh gotcha, ok so you are generating a text/part-handler mime part. ok. now I'm with you, yet I haven't walked through this before. And yes, there have been significant changes since 0.7.5 that may have impacted the mime handling. :/17:22
blackboxswIf there was some issue importing modules in your mime part-handler part I'd expect to see some error log along the lines of "Failed at registering python file:"  with the mime filename you supplied.  Also there could be stderr over in /var/log/cloud-init-output.log that could help17:23
blackboxsw"Failed at registerting python file .* \(part handler\).*  looks like. Anyway that's about as deep as I go on that issue at the moment17:25
blackboxsw:/17:25
Guest91333I didn't see any errors in /var/log/cloud-init-output.log - just missing output from printouts after the e.g. import os. Also other logs in /var/log didn't show anything suspicious. Checking if we can update our image now.17:25
blackboxswpowersj: ci fixes for pylxd ... needed serially installed  before installing pylxd as latest urllib3 that came out 2 days ago results is a contextualdependency conflict when installing pylxd's sub-deps19:16
blackboxswhttps://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/34763719:16
blackboxswthis broke all ci runs on cloud-init with the following: https://jenkins.ubuntu.com/server/job/cloud-init-ci/53/console19:17
* blackboxsw shoots to get rid of at least one red status ball on jenkins today19:17
powersjugh19:18
blackboxswpowersj: I just reviewed https://github.com/lxc/pylxd/pull/309#pullrequestreview-126924422 I'm not sure that tip of pylxd has the fix right. though I'm not positive what the fix should be19:28
blackboxswthx for the review powersj , it should fix a couple of jenkins jobs (like cloud-init-integration-nocloud-kvm-x) too20:19
blackboxswjust kicked it off to confirm20:19
powersjblackboxsw: thanks! yeah we have a few more red dots to take care ;)20:22
=== Rolf is now known as Guest91018
Guest91018got disconnected - sorry if this is posted again. Short update from the mime-type part-handler. Seems it was a problem with the logging. The example uses print, which seems to be swallowed after so many bytes. Switching to loggers helped. Would be nice if the example in https://github.com/cloud-init/cloud-init/blob/master/doc/examples/part-handler-v2.txt could be updated to use loggers. Thanks !20:45
smoser1Guest91018: well merge proposals are welcome for doc for sure21:06
=== r is now known as Guest32630
Guest32630another update from mime-type part-handler: it wasn't the logging, it was me testing with os.getlogin() which threw an exception. print works fine. Sorry for the noise. After reading explanation on stackoverflow, all makes sense now22:07

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