/srv/irclogs.ubuntu.com/2017/12/20/#cloud-init.txt

powersjblackboxsw: if you are still around... in your review of the ec2 merge you asked me to add pyyaml to the tox ci env?00:33
smoserpowersj: i think i did auto-op you.02:40
smoservery confusing19:02
smoserhttp://boto3.readthedocs.io/en/latest/reference/services/ec2.html19:02
smoserlook for 'UserData' there19:02
smosershould you give that as base64 or not?19:02
powersjsmoser: I use https://boto3.readthedocs.io/en/latest/reference/services/ec2.html#EC2.ServiceResource.create_instances that function19:05
powersjwhich says UserData='string',19:05
powersjIf you are using a command line tool, base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide base64-encoded text.19:06
smoserand then in bold19:06
powersjand then right below..19:06
powersjyeah :)19:06
smoserwe should figure that out and pass None (or not pass the kwarg)19:12
smoserrather than b''19:12
blackboxswhrm not understanding why the diff isn't being created here https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/33546819:20
blackboxswmight resubmit a third time and avoid prerequisite branch on hogarth's branch as they don't really have to be dependent branches19:21
smoserno ifrs19:21
smoserno idea. maybe you have an oops in your inbox19:21
powersjsmoser: I'll look at the b'' shortly19:23
blackboxswok resubmitted the simple fix (not dependent on any branch)19:54
blackboxswhttps://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/33547019:54
powersjsmoser: https://paste.ubuntu.com/26223182/20:08
powersjwiht **args of course20:11
smoserpowersj: yeah20:12
smoseri just hit 'submit' on a review there.20:12
powersjheh I took the t2.micro comment from your last review20:12
smoserblackboxsw: responded20:15
blackboxswsmoser: sure on not even bouncing if ifupdown not present, though FreeBSD uses ifconfig down|up. Shall we also check for that ?20:19
blackboxswor alternately, if util.is_FreeBSD()?20:19
blackboxswit makes things simple to avoid combing through datasource.cfg['hostname_bounce']['command'] for ifdown references20:21
blackboxswthe only problem I see with not calling bounce_network_with_azure_hostname is that the bounce method actually might be the only thing calling set_hostname in the first place. Will check20:23
smoserblackboxsw: hm...20:34
blackboxswyep, the bounce_network_with_azure_hostname won't actually allow cloud-init to observer #cloud-config\nhostname: mynewname   declarations20:39
blackboxswon artful/bionic the vm is then left with the hostname it was originally created with in azure's UI/CLI20:40
blackboxswbecause no set-hostname is called20:40
smoser?20:41
smoserconfused.20:41
smoserand that code is confusing20:42
blackboxswcould show you in hangout. bionic vs xenial behavior, that bounce method is wrapped up in all the get/set_hostname from metadata/user-data calls in the temp_hostname context manager, if we skip it altogether we don't actualy 'see/observe' the user-data hostname provided20:42
blackboxswprobably best if we don't hangout if you value the rest of your work day ;)20:44
smoserblackboxsw: ok. hanoug20:52
blackboxswyeah, might be worth refactoring that code a bit since I'm touching it. Those two functions are tightly coupled and they probably shouldn't be.20:54
powersjhmmm console log output isn't always there21:01
blackboxswsmoser: Xmas list for me:21:23
blackboxsw - https://code.launchpad.net/~sw37th/cloud-init/+git/cloud-init/+merge/33521721:23
powersjpython3 only?21:23
blackboxsw - https://code.launchpad.net/~rjschwei/cloud-init/+git/cloud-init/+merge/333772  (land as-is and followup with separate refactor branch of yours)21:24
blackboxsw - and once I've updated this:    https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/33547021:25

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