/srv/irclogs.ubuntu.com/2015/04/03/#cloud-init.txt

=== harlowja is now known as harlowja_away
smoserharlowja_away, yeah.  a lot of it amounts to "i'll just build everything on my own, and then it will be done right." which is perfectly fine with me, if you want to do that. it turns out, though, its kind of expensive in the long run.13:12
tennishi.  I'm getting this on one of my aws instances, and I'm not sure where to begin to debug it.  Any ideas anyone? https://gist.github.com/anonymous/eb9fd02646e6a760ed3416:22
tennisFor some reason, the url_helper.py cannot find '169.254.169.254' for metadata.16:23
xerxashello everyone ! I'm using the chef module to install ... chef. I would like to use omnibus packages and specify the versions I want to install but can't find a way to do it. Any idea ? 16:49
=== harlowja_away is now known as harlowja
harlowjasmoser agreed17:05
kwapingwhen using an #include url, are there any variables available that can be used to identify the host that's phoning home?19:16
kwaping(hi harlowja)19:16
harlowjakwaping i assume u are oliver :-P19:16
harlowjaor something else, ha19:16
harlowjanot alien?19:16
kwapingoh, duh, yes19:16
harlowjahi oliver!19:16
harlowjai see u19:16
harlowjalol19:16
kwapingsorry, this is my obscure public name, long story19:17
harlowjasmoser just want to introduce u to another y! (oliver aka kwaping ) he's been doing some stuff with cloud-init on baremetal (simialr to maas i guess) annnnnd will be helping out :)19:17
harlowjasooo hiiii kwaping 19:17
harlowja:-P19:17
harlowjakwaping loves the baremetal19:17
harlowjalol19:17
kwapingI work with harlowja, don't hold that against me :P19:18
harlowjalol19:18
kwapinganyway, my ideal end goal is to include cloud-init in a ramdisk used for installing the final OS, and I want that ramdisk version to phone home and grab a dynamic config for disk setup (especially hardware RAID config), based on the individual host that's making the request19:19
harlowjasmoser that sounds similar to maas and maybe other stuff i think right :-P19:22
harlowjai guess the smartos folks are doing similar things, idk19:23
harlowjasooo kwaping  http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/cloudinit/user_data.py#L204 is the code that does all the include stuffs19:24
harlowjai didn't think the url has any params that get filed in19:24
harlowjaat least it doesn't right now19:24
kwapingok thanks, checking19:24
harlowjabasically the userdata gets read, and then out put as X mime segements19:24
harlowjathese mime (mail) segements are then later analyzed to do things19:25
harlowjahttp://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/cloudinit/user_data.py#L89 is where the fun begins19:25
harlowjablob there being the starting 'user data blob'19:25
kwapingfascinating that #include-once really means "fetch and cache"19:26
harlowjagotta do the 'once' part somehow :-P19:26
harlowjasince #include stuff is recurisvely expanadble19:26
harlowja#includes urls having content with #includes ....19:26
kwapingdoes it also get run only once, or is it "fetch once, run every time"? (still reading code)19:27
harlowjaso this is just the code that does that extraction; its typically called once19:27
harlowjabut depends on what u mean by 'run everytime'19:27
harlowjaall this does is download the userdata and such into a multipart mime message19:27
harlowjawhich then gets processed later19:27
kwapingah ok, so include-once can load files that are run once or run lots19:28
harlowjahow it gets processed later is dependent on what the processing is19:28
kwapingcontent and fetch method are decoupled19:28
harlowjaya19:28
harlowjathis is just the fetch19:28
kwapingcool thanks19:28
kwapingthat helps19:28
harlowjanp19:28
harlowjahttp://cloudinit.readthedocs.org/en/latest/topics/dir_layout.html is also useful to look at/understand kwaping 19:31
harlowjauser-data.txt.i (is the multipart pieces)...19:31
harlowja'user-data.txt' is the unprocessed/initial stuff19:31
kwapingyeah I've been all over that site lately, but still digesting contents19:32
harlowjak19:32
harlowjasmoser wanted to eventually i think destroy the usage of mime multipart stuff; maybe in the next version of cloud-init19:32
harlowjaits somewhat confusing to use mime messages for this, ha19:32
harlowjabut thats how it goes :-P19:32
kwapingyeah I was going to say something about that, but figured there was a good use case that I was missing19:33
kwapingconfig by email19:33
harlowjasmoser can explain, i forget the reason back in the day19:33
harlowjaprobably something along the line of 'python has real good mime support and such, lets use it'...19:33
harlowja^ predates me, ha19:33
kwapingfunny how major decisions get made for reasons like that :)19:33
harlowja:)19:34
kwapingok I'm going to head out since smoser is afk19:34
kwapingwe can continue the witty banter elsewhere19:34
harlowjaha19:34
harlowjaall we do here is witty banter :-P19:34
harlowjathats a major part of my day, lol19:34
harlowjahmmm, will have to get him to idle in here vs leave, will work on that, lol19:37
=== tennis is now known as gamename

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