/srv/irclogs.ubuntu.com/2013/12/18/#cloud-init.txt

=== harlowja is now known as harlowja_away
=== helgi- is now known as helgi
=== shardy_afk is now known as shardy
slaglei'm using the ubuntu cloud image (saucy) with cloud-init.  for some reason, the cloud-init final module is not getting run on boot16:04
slaglean OpenStack Config Drive is my only data source, with a user-data file supplied that runs some commands16:05
slagleafter boot, if i run "cloud-init modules --mode=final" from the command line, i see that those commands from user-data are executed16:05
slaglebut for some reason, that's not happen automatically16:05
slagleit's like the upstart job /etc/init/cloud-final.conf never gets executed16:06
smoserslagle, you have 'upgrade' on ?16:07
smoserbecausae it sounds like you're hitting16:07
smoserhttps://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/112438416:07
slaglesmoser: can you elaborate? not sure what you mean?16:08
* slagle looks16:08
smoserbut that *should* be fixed.16:08
smoserie, 'apt_upgrade' in config or something.16:08
smoser2 things.16:08
smoserit sounds like you dont.16:08
smoserso i'm kind of confused as to what would be the issue here.16:08
* smoser really wishes 'cloud-localds' supported configdrive output so i could easily test this locally.16:09
slaglei don't have apt_upgrade specified in /etc/cloud/cloud.cfg16:11
smoserslagle, woudl you be able to give me the config drive ? just to  make this easier for me?16:11
smoserto try to reproduce ?16:11
smoseror just a tarball of the contents filtered for whatever you dont want to share is fine.16:12
slaglesmoser: sure, let me upload it somewhere16:12
slaglesmoser: https://s3.amazonaws.com/slagle-tripleo/openstack-config-drive.iso16:24
slaglei have cloud-init version 0.7.3-0ubuntu216:26
slaglei have this as well on the image, not sure if it's needed or not:16:27
slagleroot@undercloud:/etc/cloud/cloud.cfg.d# cat /etc/cloud/cloud.cfg.d/90_dpkg.cfg 16:27
slagle# to update this file, run dpkg-reconfigure cloud-init16:27
slagledatasource_list: [ ConfigDrive ]16:27
smoserthanks. i'll take a look.16:28
smoserslagle. using the latest 'release' image http://cloud-images.ubuntu.com/releases/saucy/release-20131215/17:32
smoseri got your iso and booted in kvm with that attached.17:32
smoseruser-data script does get executed, but fails due to lack of some state i'm guessing is on the machine17:33
smoser (ie, no /var/lib/heat-cfntools/cfn-init-data file)17:33
smoserfwiw, i always recommend17:33
smoseroutput: {all: '| tee -a /var/log/cloud-init-output.log'}17:33
smoserso that output of that runcommand would go into that file.17:34
smoser(in addition to the consoel)17:34
slaglesmoser: hmm, ok, let me try that17:36
smoserslagle, i also patched the image before booting it like this17:40
smosersudo mount-image-callback -v disk1.img -- sh -c './backdoor-image/backdoor-image --password=passw0rd $MOUNTPOINT && echo "output: {all: \"| tee -a /var/log/cloud-init-output.log\"}" >> $MOUNTPOINT/etc/cloud/cloud.cfg.d/output.cfg'17:40
smosermount-image-callback is from cloud-utils, its simliar to guestfs-mount or something.17:40
smoserbackdoor-image is lp:~smoser/+junk/backdoor-image (just a tool for inserting a user in)17:41
smoserheres cloud-init-output.log17:43
smoserhttp://paste.ubuntu.com/6595411/17:43
slaglesmoser: ok, it's working for me now too. i believe it was user error on my part17:52
slaglesmoser: sorry for wasting time17:52
slaglei had an old /var/lib/cloud/seed directory that i think was throwing it off17:53
smoserslagle, yeah. it might hvae read that. you should see in /var/lib/cloud-init.log a message to that affect. 17:57
smosersomething like:17:57
smoserDec 17 21:35:32 test1 [CLOUDINIT] util.py[DEBUG]: Cloud-init v. 0.7.5 finished at Tue, 117:57
smoser7 Dec 2013 21:35:32 +0000. Datasource DataSourceNoCloudNet [seed=/var/lib/cloud/seed/noc17:57
smoserloud-net][dsmode=net].  Up 345444.06 seconds17:57
smoserwithout the bad line breakage17:57
=== harlowja_away is now known as harlowja
smoserharmw, around ?18:21
smoserharmw, i had 2 things for you.18:23
smosera.) i just kicked off a cirros build that i hope to push as 0.3.2~pre2.18:23
smoserb.) questions about bsd cloud-init work18:23
kwadronautawwww i got a fan here 'grmbl i'm gonna purge cloud-init everywhere'18:32
smoser?18:40
harlowjakwadronaut don't do it!18:44
harlowjaha18:44
harlowjanot much of a fan if said person wants to purge cloud-init18:45
harlowja*anti-fan?18:45
kwadronautwell, not my problem ;-) 18:52
kwadronautit's more of a config problem of him, i presumed.18:53
harmwsmoser: shoot19:08
smoserah. good.19:09
smoserwere you planning on doing any work on tha t?19:09
smoseri told harlow he could look at pulling it19:10
harmwfbsd? ofcourse19:10
smoserdo you think its in a reasonable state to be at least somewhat useful at the moment ?19:10
harmw'at least somewhat useful' pretty decent description :)19:11
harmwi pushed some changes some days ago19:11
harmwhow nice, the mergerequest also shows all additional commits from the latest push19:15
harmw(im still fairly new to launchpad/bzr)19:15
smoserharlowja, so if you want to give that a review and ideally a quick spin, i'm happy to take it. especially with the promise of more maintenance there (loose promise)19:17
harlowjaah, quick spin, thats gonna be harder :-P19:17
* harlowja doesn't have freebsd on hand, haha19:17
harmwharlowja: you could use oz to create an image19:18
harlowjaharmw ya, there is a freebsd guy here that has an image19:18
harlowjalet me see if i can locate that19:19
harmwhttps://github.com/clalancette/oz/blob/master/oz/FreeBSD.py19:19
harmwhm, I should probably give that some love aswell sometime soon19:19
harlowjaya, let me see if i can get the image, then i'll bug u about how to package this and get it into the image :-P19:20
harmwhehe19:20
harlowjak, email sent, i downloaded the thing he produced once, just can't remember where it is now19:21
harmwok19:21
harmwfbsd comes with all required dependencies, except jsonpatch19:21
harlowjaeven boto?19:22
* harlowja not sure how many dependencies he has in this image, will see19:23
harlowjahmmm, then the question becomes at y! is do we want to allow people to use more freebsd, ha19:24
harlowjacertain projects are addicted to it19:24
harmwpkg install python27 py27-yaml py27-requests py27-prettytable py27-cheetah py27-boto dmidecode e2fsprogs gpart sudo19:24
harmwthat does it, plus manually setup.py-ing jsonpatch19:25
harmw(hm, why did i put sudo in that list again..)19:25
harlowjak19:26
* harlowja so apparently his is close to stable/1019:26
harmwyea19:27
harmwim still running my stuff on rc3, and just now noticed it's at rc2 already19:27
harlowjahehe, i wonder if i can get the freebsd guy to do this work for me, lol19:27
harlowjahttp://people.freebsd.org/~sbruno/ :-P19:28
harlowjaalthough i tried to get him to help with cloud-init before, don't think he ever got time19:28
harmwthats 'the other guy'? 19:28
harlowjaya19:28
harmwhaha 19:28
harmwnice19:28
harlowjahe's like a clone of bill murray (not kidding)19:29
harmw:)19:30
harmwreminds me of ghostbusters :)19:30
harlowjaha19:31
smoserharlowja, we should ditch the boto i think.19:36
smoserand go back to crawling ourselves.19:36
smoseri like being fickle.19:36
harlowjasweet, harmw smoser  he is going to help me do this so 'Want me to do that in19:40
harlowjaa test image for you so it doesn't make you want to kill kittens?'19:40
harlowjahahahaha19:40
harlowjabruno is pretty funny and nice guy, ha19:41
harmwhehe19:44
smoserexcept for the slaughtering of cute little kittens.19:44
harmwharlowja: can he also give some pointers on where to go to have jsonpatch added in the repo?19:45
harmwand ofcourse cloud-init19:45
harlowjaharmw sure19:45
harlowjathe repo i am assuming being upstream freebsd ?19:45
harmwyes19:45
harlowjak19:46
harmwmy /usr/local/etc/pkg.conf:19:46
harmwPACKAGESITE         : pkg+http://pkgbeta.freebsd.org/${ABI}/latest19:46
harlowjak, gonna see if i can get him to jump on here19:47
harlowjainstead of josh-proxy, lol19:47
smoserthanks harlowja and harmw 19:48
smoserany doc on this that can/should go into cloud-init would be great.19:48
harlowjaagreed19:48
harmwdefinately19:48
harmwspeaking of which, some more docs inside cloud-init's code would be nice aswell :p19:48
harlowja:)19:49
smoserbooo19:49
harlowjatears of happiness from smoser 19:52
harlowjalol19:52
harlowjaharmw lets see if bruno gets in here, then we can all bug him, haha19:53
harmw:)19:53
harlowja*save the kittens!19:54
=== ctracey|away is now known as ctracey
=== ctracey is now known as ctracey|away
smoserharmw, ok. 0.3.2~pre2 is "officially" released.22:13
harmwnice job22:14
smoseryeah. pita.22:14
smoseri dont have much automation around the publishing. i had to re-figure out how i did a mirror to cloud files.22:14
harlowjahmmm, where's bruno, arg22:15
harmwno tiny little deploy.sh?22:15
smoseri'd only done the push to clodu files once.22:15
smoserand the tools for signing and producing the simplestreams i'd not documented for myself either.22:16
smoser:)22:16

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