/srv/irclogs.ubuntu.com/2016/05/11/#cloud-init.txt

larskssmoser: that patch totally fixed the problem (w/ growpart).01:13
chucky_zhm, is there a 'correct' way to shim/bootstrap the hostname function?  i'd prefer to run my own little diy python script to set the hostname, but have it called through cloud-init03:26
larskschucky_z: you could use the write_file module to write the script to disk, and then run it via a runcmd. Or you could just deliver the script as your only user-data, making sure it starts with #!/usr/bin/python. Or you could bundle it up with a cloud-cfg file in a MIME archive and pass that as your user-data.04:36
=== rangerpbzzzz is now known as rangerpb
cpaelzersmoser: just FYI - really slow progress due to sick wife/kids and many external DPDK calls today - but the mock stuff worked fine13:30
smoser:-(13:32
smosercpaelzer, yeah, and feel free to re-organize code for easier testing.13:32
smoserlarsks, https://launchpad.net/cloud-utils/trunk/0.2814:16
larskssmoser: thanks!14:17
smoserthat was a long time coming. thank you for pushing14:17
harlowjasmoser rharper i'm also going to fix python2.6 in https://code.launchpad.net/~harlowja/cloud-init/cloud-init-net-refactor/+merge/293957 so expecct a few more changes17:08
* harlowja will also add a few more test cases to the net rendering pipeline17:11
harlowjasince it appears that 0.7.x at some point lost 2.6 support :-/17:44
harlowja(and ya, i know some people still use rhel6)17:45
chucky_zwhat user does cloud-init run as?  is that defined in the cloud.cfg?18:12
harlowjaroot18:13
chucky_zhm, ok18:13
chucky_zi wrote a script to be run by runcmd, placed it into /etc/cloud/cloud.cfg.d/, but it doesn't appear to be doing anything (the script has no output, it's an alternate hostname setting)18:15
harlowjaya, probably not the right place to put it18:28
chucky_zhm, couldn't get the runcmd to do anything, but placing the actual script under /var/lib/cloud/scripts/per-boot/ worked. :)18:58
smoserchucky_z, thats the right place to put it.19:52
smoser(/var/lib...)19:52
chucky_zif I understand correctly, a `runcmd` should go under /etc/cloud/cloud.cfg.d/ though?19:52
smoserno.19:56
smoseryou could put a file like:19:56
smoser/etc/cloud/cloud.cfg.d/my-runcommands.cfg19:56
smoserwith19:56
smoserruncmd:19:56
smoser - [sh, '-c', 'echo HI MOM']19:57
smoserbut then if you provide user-data that has runcmd in it it will override that.19:57
harlowjasmoser what can we do about not breaking py26 for 0.7.x20:40
harlowjapyserial seems to be dead on 2620:40
harlowjaand various other things in cloudinit20:40
smoserhm.20:51
harlowja:-P20:51
harlowjai fixing a bunch20:51
=== rangerpb is now known as rangerpbzzzz
smoserhas it broken recently ?20:51
harlowjaya20:51
smoser:-(20:51
harlowjafor a while i think, lol20:51
harlowjaanything using pyserial not work, lol20:51
smoserwell, anything using newer versions of pyserial.20:52
smoserright?20:52
smosersurely pyserial from rhel-of-years-ago works20:52
harlowjaya, i think 3.0+20:52
harlowjathose seemed to remove py2620:52
harlowjawould be nice to have even basic travis testing on cloudinit20:55
harlowjamaybe i'll setup something that can at leaset run nightly20:56
smoserwe do haev a system that we can run some c-i on20:59
smosercan you see https://server-team-jenkins.canonical.com/20:59
smoseri thin kthat is public20:59
harlowjano connecting20:59
harlowja:-P20:59
smoserhm..20:59
smosermy route there goes all internal.21:00
smoser:-(21:00
smoseryeah, we should really get something setup21:00
harlowjaya, i mean https://travis-ci.org/harlowja/cloud-init-1/ i can run if it will start up21:01
harlowjausing https://github.com/harlowja/cloud-init-1/blob/master/.travis.yml21:01
harlowjawhich is the mirror of a mirror of bzr21:01
harlowjalol21:01
harlowjalet's see if https://travis-ci.org/harlowja/cloud-init-1/builds/129542406 runs21:03
harlowjaat least i can force that hourly or something21:03
smoserok. so i want to get this going and get to git and such.21:03
harlowjaya21:03
harlowjahow about that :-P21:03
smoseri have a few bugs that i'm working on that need to be fixed in xenial21:03
smoserso they're high priority21:04
harlowjak21:04
harlowjafixhttps://travis-ci.org/harlowja/cloud-init-1/jobs/129542407 is the pyserial junk21:04
harlowja* https://travis-ci.org/harlowja/cloud-init-1/jobs/12954240721:04
smoserand then after i get that in i want to look at the nwere datasource model thing that i started.21:04
harlowjaafter we fix 2.621:04
harlowjalol21:04
smoserwell, yeah21:04
smoserthe big thing missing from datasources right now is the ability to find local information (such as a config drive)21:05
smoserbut not be "processed" (and have '#include http://' from user-data rendered) before networking is up.21:05
smoserie right now, for config drive you only get networking applied if your 'dsmode=local'21:05
smoserbut if you are dsmode=local, then you cant use '#include http'...21:05
harlowjawoot, https://travis-ci.org/harlowja/cloud-init-1/builds/129542406 worked21:06
smoserso. that needs badly fixing.21:06
harlowjaexcept for 2.621:06
harlowjapypy even works21:06
harlowjalol21:06
smoseri like the little baby penguins there21:06
smoserthey're so cute21:06
harlowja:-p21:06
* smoser has to go now21:06
smoserlater.21:06
harlowjapeace21:06
rharperharlowja: pypy? nice;  I was going to give that run, some folks on single-core arm have said "python is slow" and wanted to see what the speed-up might be using pypy21:18
harlowjawell it runs at least, at passes tests21:18
harlowjahttps://code.launchpad.net/~harlowja/cloud-init/cloud-init-net-refactor/+merge/293957 that should fix all the py26 stuff also21:19
harlowjamainly http://bazaar.launchpad.net/~harlowja/cloud-init/cloud-init-net-refactor/revision/122921:19
harlowjaprobably can be refined, but ya, at least it works now21:21
harlowjawhere works == passes tests21:21
rharperright21:21
rharperthat's what I was going to test first; step one done =)21:21
harlowja:-P21:21
rharperheh, the pypy run was slower than the others21:22
harlowjacool, wel there is my cloudinit changes for the day, back to openstack-land21:24
rharperta21:28

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