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

=== r-daneel_ is now known as r-daneel
blackboxswhttps://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/34755915:09
blackboxswhttps://jenkins.ubuntu.com/server/view/cloud-init,%20curtin,%20streams/job/cloud-init-integration-lxd-a/373/console has a set of ntp/warning errors I hadn't looked at yet15:14
smoser1powersj: jenkins seems not to be working ?15:49
smoser1https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/34769815:49
smoser1oh wait. yes it is.15:50
=== smoser1 is now known as smoser
powersjsmoser: I believe the issue there is master was broken yesterday due to another pylxd issue with imports15:57
powersjblackboxsw put in a merge https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/34763715:57
blackboxswyeah, powersj looks like pylxd just posted an update to tip which may or may not have resolved that problem so we might be able to revert my changes now15:59
smoserpowersj: yeah, i was wrong.s orry. i thought it hant run.16:06
smoserblackboxsw: https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/347702 has the upstream change.16:07
blackboxswgood thx smoser will test and land it16:07
smoserblackboxsw: i'mve got a land in progress now for the subp change i had . so just make sure not to fight on that.16:11
=== r-daneel_ is now known as r-daneel
blackboxswsmoser: I'm awaiting a jenkins CI approve vore on your tox/lxd branch first. so should be about 15 mins until I kick something off. will check before I do16:13
smoserright16:13
blackboxsw... and review-mps should react appropriately now by stopping the land attempt :)16:13
blackboxswor failing locally rather, instead of updating the branch before trying to git push16:13
blackboxswor failing locally rather, instead of updating the *branch status in LP* before trying to git push16:13
smoserrharper: you can take a quick https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/347698 your comment is aresse there.16:23
rharpery16:23
blackboxswrharper: done with your mtu review comments sysconfig fixed (it never honored device-level mtu in the first place, only subnet-level). Added unit test validation of warning message emitted on sysconfig/eni/netplan rendering)17:51
blackboxswhttps://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/347559 should be clear17:51
rharperblackboxsw: ok; yes, sysconfig render path typically involves openstack which network_data.json always uses subnet config but thanks for adding18:32
blackboxswrharper: done; only warn on differing mtu @ device-level vs subnet-level19:05
rharpercool19:05
blackboxswI'll watch the branch for the approve or otherwise.19:06
rharperblackboxsw: did you add a test where we skip the warn (device and subnet mtu, both are the same value) ?19:08
blackboxswahh nope, will add a separate test19:09
smoserman19:59
blackboxswwas that a part-handler utf-8 man smoser?20:04
smoseryeah. i am lost20:05
blackboxswyeah isn't it crazy/weird. hard to get pdb's and log traces on it :/20:05
smoseri used to be able to do this.20:05
smoserto get a pdb from cloud-init20:05
blackboxswit's 'string' type in py3 both with and without utf-8 content... so I was unable to see simple type differences and log won't print out the utf-8 content/and traceback is swallowed there :/20:06
blackboxswanyway, /me is adding things a --preserve-instance option to ci tests so we avoid the teardown (to grab salt && chrony issues)20:07
smoserah. k20:07
blackboxswpowersj: smoser rharper https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/34771620:31
blackboxswminor tweaks that help be get ahold of an integration instance under test using out ci20:31
smoserok.20:31
smoserso the one thing i've found out here.20:31
smoserwell, two things.20:31
smosera.) man, what a mess.20:31
smoserb.) _CLOUD_INIT_SAVE_STDOUT=1 _CLOUD_INIT_SAVE_STDIN=1 cloud-init --debug init20:31
blackboxswleaves a message like:  2018-06-08 20:20:20,632 - tests.cloud_tests - INFO - Preserving test instance cloud-test-ubuntu-artful-modules-ntp-chrony-a6v27keuq27i794lru220:32
smoserthat will let pdb (or ipdb break in)20:32
blackboxswwow smoser, ok maybe we add that to hacking docs on rtd, or maybe just cloud-init docs in ubuntu-sru repo?20:33
smoser:)20:33
blackboxswyeah I've frequently tried/failed pdb using cloud-init's cli20:33
blackboxswdidn't spend enough time to unravel it20:33
blackboxswthat is a good tip that I'd like to reference in the future... .checking it now to hopefully commit it to muscle-memory (bashhistory memory)20:33
blackboxswor a gist :)20:34
blackboxswhrm I think our integration tests are seeing https://bugs.launchpad.net/ubuntu/+source/chrony/+bug/158978020:41
ubot5Ubuntu bug 1589780 in chrony (Ubuntu) "chrony.service doesn't start on LXD container" [High,Fix released]20:41
blackboxswon artful20:41
blackboxswdigging a bit more20:42
blackboxswbut generally chrony isn't starting up with something like chronyd[190]: Fatal error : adjtimex(0x8001) failed : Operation not permitted20:42
blackboxswwill have to talk to cpaelzer_ about this on Monday20:43
smoserthat is expected20:44
smoserblackboxsw: well that bug is not marked as fixed in artful20:44
blackboxswas a result maybe we just shouldn't be testing chrony cloud-config on artful right?20:44
blackboxswbecause it results in errors which we expect (chrony support bionic++ right?)20:44
smoserwell, it isnt expected to work20:45
blackboxswyeah, I'm going to disable that ntp_chrony test on artful then.20:45
blackboxswwanted to air that thought for objections20:45
smoserwell, in a container.20:47
smoseri guess.20:47
smoserit could/should run on ec2 ?20:47
smoseror non-lxd20:47
blackboxswwill verify. yeah I  think it's just a container where it fails20:48
=== blackboxsw changed the topic of #cloud-init to: Reviews: http://bit.ly/ci-reviews | Meeting minutes: https://goo.gl/mrHdaj | Next status meeting: Monday 6/18 16:00 UTC | cloud-init 18.2 released (03/28/2018)
smoserblackboxsw: wel...20:55
smoserwe lose the data when we call 'convert_string'20:55
smoserin UserDataProcessor:process20:55
blackboxswemail sent moving cloud-init status meeting one week20:58
blackboxswoooh :(20:58
smoserok... i have to leave for the night :-(21:01
smoserblackboxsw: so what happens is that when we're storing this to disk in the mime format21:01
smoserwe call21:02
smoserconvert_string(raw_data)21:02
smoserwhich raw_data is a bytes21:02
smoserthen util.decode_binary(blob) returns a string that includes utf-821:02
smoserthen we end up doing21:02
smoseremail.message_from_string(that_string)21:03
smoserso..21:03
smosermsg = email.message_from_string(b"echo hi \xc3\x84\n".decode('utf-8'))21:04
smosermsg.as_string()21:04
smoserworks, but21:04
smosermsg.as_bytes()21:05
smoserUnicodeEncodeError: 'ascii' codec can't encode character '\xc4' in position 8: ordinal not in range(128)21:05
smoserand then we read that with fully_decoded_payload21:06
smoserits somewhere in there.21:06
smoser... i'm sorry . i have to run for now.21:06
smoseri figured i could have solved this in the afternoon, which is why i took it.21:07
smoser:-(21:07
=== r-daneel_ is now known as r-daneel
blackboxswyeah it's nasty the # of conversions21:17
=== r-daneel_ is now known as r-daneel

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