[00:00] <RaginBajin> harmw: ping
[13:26] <nvucinic> hi guys, i still did not made nocloud to work 
[13:26] <nvucinic> do i need to specify somewhere to clod.cfg path to iso file 
[13:29] <nvucinic> this is what i have in logs
[13:29] <nvucinic> http://pastebin.com/CGmDzHBJ
[13:33] <harmw> RaginBajin: pong
[13:33] <RaginBajin> harmw: Hey, So I was running your build last night. 
[13:34] <harmw> ah great, enjoy me with al the bugs you encountered :p
[13:35] <RaginBajin> Well, I need to go back and create another image. We don't always use the Openstack Metadata service but use the configdrive. So I need to create an additional instance to test with Openstack metadata
[13:35] <harmw> did it work with the script from tools/?
[13:35] <harmw> ah ok, yea I havent looked at configdrive yet
[13:36] <RaginBajin> So, i downloaded the code, ran the python setup.py install but forgot to add --init-system.  We should change that error message to mention to use --init-system. 
[13:36] <RaginBajin> Everytime I need to go into the setup.py script and look at the stupid file to find out what the name of the argument is 
[13:36] <harmw> no no, what you should do is read/use the script in tools/ :)
[13:37] <RaginBajin> The build-on-freebsd? 
[13:37] <harmw> http://bazaar.launchpad.net/~harmw/cloud-init/freebsd/view/head:/tools/build-on-freebsd 
[13:37] <harmw> yep
[13:37] <RaginBajin> ahh 
[13:37] <harmw> I needed some way of easy testing, and keeping any neccessary hacks documented until there is a real freebsd pkg/port
[13:38] <harmw> a clean/fresh OZ image only needs bzr installed, from there on you can use bzr to grab my branch and this script will do the rest
[13:39] <RaginBajin> ahh ok. 
[13:39] <RaginBajin> Well let me try it that way then. 
[13:39] <harmw> you can see the required steps as well, regarding the --init-system
[13:40] <harmw> I'm working on building a real port btw, just need to make myself familiar with the freebsd tools for building such a thing first
[13:40] <RaginBajin> Yeah. I think the --init-system change is a good over-all change. If it's missing actually tell you what the argument to use. not just what options. 
[13:42] <RaginBajin> gotcha. I was looking at all the changes I needed to make for the configdrive to work. They are not many. Just a little specific type of things need to be changed when it's fbsd.  i.e  mounting a cdrom 
[13:42] <harmw> yea, it's probably a few details in terms of device naming and such
[13:43] <harmw> cloudinit already knows how to read from configdrives so that should be no problem
[13:49] <RaginBajin> yeah. The changes I made were all around mounting and finding the fbsd drive. So, I should clean those up and get them submitted up as well. But it would be good after your changes go in. that way it can be tested with your changes as well 
[13:50] <harmw> hm, perhaps you can branch me and commit to that :) I don't realy know if thats supported though, but it might just work
[13:51] <harmw> (Ill just asume that branch will be able to merge with both mine and trunk)
[14:17] <RaginBajin> harmw:  Just ran it. One error that I did get was in the growfs.  It seems that if your disk is already at the max size, it errors out with rc = 1 and the stderr of 'growfs: requested size 20GB is not larger than the current filesystem size 20GB\n' (20gb being my size of disk)
[14:17] <harmw> yea, I noticed that as well
[14:17] <harmw> handling that would be nice, someday
[14:19] <RaginBajin> yeah. It also looks like the ssh-key injection didn't work for that user beastie 
[14:19] <harmw> yea indeed
[14:19] <harmw> I didn't look into that just yet
[14:19] <harmw> I noticed for root they were added just fine
[14:20] <RaginBajin> but it worked before which is strange. I think it's becasue the user is created after the key injection
[14:20] <RaginBajin> it didn't create it for me on root either. 
[14:21] <harmw> hm hm, then it might've done something else since I've put a user-data upon creating an instance that also does atleast something with users
[14:21] <harmw> I'll have it fixed somewhere soon though :)
[14:22] <RaginBajin> also we can fix the update_etc_hosts as well 
[14:22] <RaginBajin> just need to add a template called hosts.freedbsd.tmpl
[14:22] <harmw> oh ok, sounds nice (though I have no idea what that function/module does)
[14:22] <RaginBajin> I just copied over one from hosts.debian.tmpl and renamed it and it works easily 
[14:37] <nvucinic> anyone has some more info about nocloud option ?
[14:38] <harmw> smoser: someone needs your help :)
[14:41] <smoser> nooo
[14:41] <smoser> nvucinic, whats up?
[14:41] <smoser> i suggest using cloud-localds from cloud-utils
[14:42] <RaginBajin> harmw:  Figured it out. We commented out the "ssh" part in the cloud.cfg. Once I added that back, all the keys were injected. 
[14:42] <harmw> you did that? or was it in my branch?
[14:43] <harmw> hm I did
[14:43] <harmw> lame
[14:44] <nvucinic> smoser: trying to get nocloud option to work but i belive that i missed some steps 
[14:44] <nvucinic> i have datasource_list: ['nocloud']
[14:44] <nvucinic> in cloud.cfg 
[14:44] <nvucinic> datasource_list: ['nocloud']
[14:45] <nvucinic> http://pastebin.com/CGmDzHBJ this are error that i get 
[14:45] <RaginBajin> harmw:  Yeah your branch.  No biggie. just feel better that it wasn't something super crazy 
[14:47] <harmw> I'll remove that # when I can :)
[14:47] <harmw> i'd like to see your configdrive code btw, despite the fact that I have no use for it yet
[14:47] <harmw> (so can't verify in-depth)
[14:50] <smoser> nvucinic, NoCloud
[14:50] <smoser> case sensitive as it is used for python import
[14:51] <smoser> nvucinic, if you're just randomoly using pastebin's , please use openstack or ubuntu.
[14:51] <smoser> those adds suck!
[14:52] <smoser> and along those same lines, 'pastebinit' is awesome.
[14:52] <smoser> (program that lets you : pastebinit foo
[14:52] <smoser>  or: foo | pastebinit 
[14:52] <smoser> )
[14:53] <nvucinic> smoser: wow, thx
[17:41] <pquerna> smoser: hey, have a question, I got a https://gist.github.com/pquerna/59a8671502dffc9d8843 status.json with "unhashable type", which sounds like an exception, but I can't find anything in the actual logs about the exception
[17:41] <smoser> hm..
[17:41] <smoser> where did you see that ?
[17:42] <smoser> oh. i see.
[17:43] <smoser> kind of sucks that i populated 'finished' and not 'end'
[17:43] <smoser> :-(
[17:44] <smoser> and that finished is not finish
[17:44] <pquerna> heh
[17:45] <smoser> i'm gonna change it to populate 'end' rather than 'finished'
[17:46] <smoser> na. i'm just going to drop end. thats the more grown up thing to do.
[17:49] <smoser> pquerna, can you recreate by just letting the error raise ?
[17:50] <smoser> in /usr/bin/cloud-init, just 
[17:50] <pquerna> if i nuke /var/lib/cloud, run cloud-init init, i get the same status.json every time
[17:50] <smoser>  except Exception as e:
[17:50] <smoser> raise
[17:50] <pquerna> ok
[17:50] <pquerna> thx
[17:51] <pquerna> smoser: yup, got an exception now. thanks.
[17:52] <pquerna> https://gist.github.com/pquerna/a8aed8f963663308af7a
[17:52] <pquerna> hmm
[17:54] <pquerna> smoser: so one thing i changed, heh, the version of openstack configdrive that read_configdrive was using, was before vendor_data.json was even added in openstack
[17:55] <pquerna> smoser: so it was always empty
[17:57] <smoser> oh. hm..
[17:58] <pquerna> yeah, so this is just vendordata_raw is actually parsed json
[17:58] <pquerna> this code is expecting a string blob of raw...
[17:59] <pquerna> right
[17:59] <smoser> yeah. :-(
[17:59] <pquerna> self.vendordata_raw = results.get('vendordata')
[17:59] <smoser> you want to open a bug and submit merge proposal ?
[17:59] <pquerna> in DataSourceConfigDrive.py...
[18:06] <pquerna> smoser: i guess my question is what is the intended operation, it seems the code wants to treat vendor_data.json like user_data and do all the various operations on it... so really its not the same thing. So seems fix is to keep vendordata_raw as a vendor_data file (that doesn't exist)
[18:06] <pquerna> smoser: and then put the vendor_data.json, which is more enviromental/etc as a thing to parse as json and use if needed for info.
[18:08] <smoser> so yeah, we want to do all the same things to vendor_data as we do to user_data.
[18:08] <pquerna> https://github.com/pquerna/cloud-init/commit/eec8a00a328b296711ca201f3facdc5910886094
[18:08] <pquerna> eg, something like that
[18:09] <smoser> hm.
[18:20] <smoser> ok. i undretsand more now.
[18:21] <smoser> you were expecting it to be a dict (loaded json).
[18:25] <smoser> and that does seem to make sense. 
[18:26] <smoser> pquerna, bah.
[18:26] <smoser> cloudinit/sources/DataSourceOpenStack.py does it right
[18:27] <pquerna> smoser: ah, i see
[18:27] <pquerna> smoser: ok
[18:28] <smoser> it looks like there might be other improvements there too :-(
[18:29] <smoser> sitl somewhat broken. but closer.
[21:43] <praneshp> hey smoser  you around?
[21:44] <praneshp> what’s the minimum user-data file I’d need to use to add users to an openstack vm when booting it up?