/srv/irclogs.ubuntu.com/2014/03/19/#cloud-init.txt

jcmckenhi all -- quick question, when anyone gets a minute00:11
jcmckenis there a native way to specify that cloud-init configuration baked into an image can override configuration passed as user data?00:12
=== harlowja is now known as harlowja_away
harmwsmoser: I'm feeding the raw image to glance, which hands it over to my Ceph backend08:09
harmwcome to think of it, isn't Glance able to convert images on the fly these days..?08:09
harmwanyway, supplying a vhd to serve Hyper-V would be nice 08:10
smoserharmw, glance doesn't (or shouldn't) do it.13:06
smosergenerally thats the philosophy with glance.13:06
smoserits just a registry.13:06
smoserhypervisors need to just deal with it.13:07
smoserand i guess then that that means where nova provisions something "to volume" that it needs to do it too.13:07
smoserid' happily cahnge to some other format if that format was as easily consumable and producable as qcow and was also sparse and compressed.13:08
smoserespecially if it streamed.  wget | convert-to-raw | dd of=block-devic13:08
smoserthat is ideal. i guess s/wget/curl/13:08
harmwah, well13:09
smoser(so yeah, you touched on somewhat a religous topic for me)13:09
harmwhaha :)13:09
smoserit is absolutely absurd to expect "image producers" (or appliance producers or whatever)13:09
smoserto have to offer the same bits in 6 different formats.13:10
smoserand you (as the user) to have to know which one to get.13:10
harmwtrue, though it is conveniant13:10
smoserthe unfair benefit for me of qcow is that it "just works" with kvm.13:10
harmwwhich was what I'm after :)13:10
smoserso that is me being biased a bit.13:10
smoserharlowja_away, please ping me when in.13:17
smoseri really need to call 0.7.5 by like end of tomorrow13:17
smoserso if there is stuff that you think is or should get in, please let me know.13:17
smoserharmw, same for you above13:17
smoseror anyone else.13:17
harmwhm? ah, cloud-init?13:18
smoseryeah :)13:18
smoserwe also talk about cloud-init here sometimes13:18
harmwhehe13:18
harmwwell the fbsd stuff is in, and I've not worked on that for quite a while now13:19
harmwmostly waiting for it to arrive in ports13:19
harmwand to busy with cirros :p13:19
smoseragain, thanks for your help with that.13:20
harmwsure np13:20
harmwhttps://git.openstack.org/cgit/openstack/cinder/commit/?id=e066158b5235a3879fe90fa3bd813fc3363c01f5 that looks like Glance auto-converting any image type to raw volume13:23
harmwor it converts the image to raw, making cow volumes possible13:24
harmw(meh, Ill just have to read the source at some point time)13:24
harmwsmoser: just have Canonical donate me a nice HP Gen8 Microserver and we'll be another step closer to world domination :>13:27
smoserharmw, NUCs are the new hotness.13:28
smosermicroservers crap13:28
harmwI'm in for one of those as well :)13:29
smosernucs are really neat actually. they also have 'eamt' which gets you vnc to the system and remote power control an dsuch.13:30
smoserbut to our experiments no serial over lan13:30
harmwso they include some kind of bmc?13:31
smoseressentially.13:31
smoserits consumer grade13:31
smoserbut pretty neat.13:31
harmwsweet, didn't know that 13:31
smoserit shares 1 NIC with the host13:31
harmway13:31
smoserits actually available on lots of system syou probably didn't know about13:31
smoserie, if you have a thinkpad of < 2 years old they all have it.13:31
harmwI haven't bought hardware in ages, so... :)13:31
smoseryeah, my thinkpad is 4 years old. it missed the eamt by 1 generation13:32
smoser:)13:32
harmwand all servers we have have here come with idrac/ilom or whatever decent thing they have13:32
harmw*installed13:32
smosereamt is really kindofo hookey, but neat.  the vnc works by taking the hosts port 590013:32
harmwwtf13:32
smoserie, you cannot get to that host's IP address on 5900. 13:32
smoserit shares the IP13:32
harmwaargh13:33
harmwthats just sux13:33
smoserwell, consumer13:33
smoser:)13:33
harmwtrue :)13:33
smoserwhat do you want for $300 in a hocky puck sized server13:33
harmwhehe13:33
harmw2nd nic and 2nd 2.5" hdd :)13:33
harmwideal compute nodes13:33
harmwatleast in a homelab13:34
smoseryeah. they're really neat.13:34
smoserfor the money i think they beat the pants off of hp microservers13:34
smoserat least the onest that we had some of.13:34
harmwofc, but the new Gen8 microservers are way better compared to the first 3 generations13:35
harmwbut enough about that :) back to world domination13:35
harmwwhen you're gonna branch cirros 0.4?13:36
harmwbtw smoser, how about a little tool in bin/ to change to root password when building from source?13:46
smoserbooooooooo13:47
smoserthis year is our year (cubs)13:47
harmwperhaps, but here we are rather clueless on just wtf the cubs are and why they should win :>13:47
smoseras above where i like to selfishly inflict my preferences of kvm on the world, i also like making people type "cubswin:)"13:48
smosersomeone disappointed that "cubswin:)" doesn't show anything about cirros in google13:48
harmwhehe13:49
harmwif I created such a tool, would you merge it?13:49
smoseractually... i've dreamt of "cirros-tools" 13:50
smoseras a package13:50
smosererr... a separate project.13:50
smoserfine to start in cirros13:50
harmwhmk? 13:50
smoserbut that do things like:13:50
smoser  cirros-util start lxc13:50
smoser cirros-util download 13:50
smoser...13:50
smoser  cirros-util set-passwd cubs-lose13:51
smoserit'd make testing things easier too.13:51
harmwhm hm, interesting13:51
smoserfor lxc, though, its in lxc now. 'lxc create -t cirros' (although that there needs a feature to add user-data/meta-data)13:51
smoseractually... i wonder how close 'backdoor-image' would come to working on cirros.13:52
smoseri might have even tested it at one point 13:52
smoser(it has code that changes passwords)13:52
smoserhttps://code.launchpad.net/~smoser/+junk/backdoor-image13:52
smoserso that might actually work as it is. 13:53
smoserbackdoor-iamge --user cirros cirros-image.img 13:53
kwadronaut(typo)13:54
smoserwhat is 'sl' ?13:54
harmwisn't that the steamlocomotive?13:54
smoseroh. funny.13:54
smoser:)13:54
harmwubuntu ships with it iirc13:54
smoser26k though installed.13:55
smoserwonder if there is a trim version :)13:55
harmw:)13:55
smoserdid you ever see the "wheres chuck" meme ?13:56
smoserhttp://www.jonobacon.org/2011/11/16/wheres-chuck/13:56
smoseri had a ascii art version. that i was going to shove into cirros13:56
smoserand have it show it if you did the konami code on the console13:57
smoseri'd love to have some easter egg like that13:57
harmwdamn right :)13:57
harmwI don't know this specific meme though13:57
harmwbut we have similar memes here :p13:57
smoserhttps://launchpad.net/cirros14:08
smoserharmw, you have almost as many points as i do!14:08
smoser:)14:09
harmwhehe cool14:09
smoseri just branched 0.3. so now there is lp:~cirros-dev/cirros/0.314:09
smoserand lp:~cirros-dev/cirros/trunk14:09
harmwah yes, I see14:09
smoserthe second is the target of the ilnk 'lp:cirros'14:09
harmwand the latest version got updated :)14:09
smoserand your name is in the changelog14:10
smoserfame and fortune will come your way soon14:10
harmwo m g14:10
harmwyour telling ppl to just build the image themselves?14:10
smoserno.14:10
smoseri jsut don't knwo what to do.14:10
smoseras i really dont want to amnually upload stuff to launchpad14:11
smoserand download.cirros-cloud.net is actually akami CDN'd so it would be faster anyway14:11
smoser*and* i can more easily get logs of those downloads.14:11
smoserso i really don't want people looking at launchpad, basically.14:11
harmwok, well a link from the source page or something would be nice so ppl know where to look for prebuilt images14:12
smoserthis is true.14:13
smoser:)14:13
harmwhttp://bazaar.launchpad.net/~cirros-dev/cirros/trunk/view/head:/ChangeLog14:13
smoserespecially since cirros-cloud.net redirects you to launchpad14:13
harmwmost epic changelog ever14:13
harmwhaving some decent html on cirros-cloud.net would be nice btw, instead of merely redirecting14:14
smosermy wife suzanne has promised a cirros logo14:14
smoserand i've wanted to have a shirt for ODS14:14
harmwlol nice14:14
smoseri agree on all of this.14:14
harmwis this your 'whatever, I'm down with everything'-day?14:15
smoser:)14:16
smoserhttps://launchpad.net/cirros14:16
smoserthat should look better now.14:16
smoser2 links to download.cirros-cloud.net14:16
harmwlol14:16
smoserdid you see this:14:21
smoserhttps://bugs.launchpad.net/cirros/+bug/127315914:21
smoserobviously you did14:21
smoserbut is this right:14:21
smoser This can be worked around by adding this line to the eth0 stanza of /etc/network/interfaces14:21
smoser?14:21
smoseri can't see how it is14:21
smoserbut maybe14:23
smoserhttps://www.mail-archive.com/busybox@busybox.net/msg03985.html14:23
harmwhm, if thats right it would require the addition of -O staticroutes to go in there as well14:25
smoseryeah.14:25
harmwcan't verify that right now though14:25
smoserwell, source code makes it seem unlikel14:25
smoser$ grep -r nodefaultopts .14:25
smosershows nothing14:26
smoserin busybox git14:26
harmwhm, I believe I've seen that -o somewhere though14:26
harmwto not ask for default options14:26
harmwplus, it's no_default_options14:27
smoserwrt the retries.... on the metadata service14:30
smoserthere were issues on ec2 14:30
smoserwhere the metadata servie woudn't come up right away.14:30
smosercrazy stupid.14:30
harmwhmk14:30
smoserbut when our ubuntu images first got there we were booting and hitting it before it was up14:31
smoserand we'd just say "nothing there!"14:31
smoserso ... poll and retry :-(14:31
harmwhmk, so 20 retries made sense?14:31
smoseri think they're probably much better now.14:31
smoserwell, 20 retries covers i think 60 seconds?14:31
smosersomethin glike that. i think.14:31
smoserah. itmeout is 10 seconds . on the curl request14:34
smoserso it could be up to 20*10 + 20*2 (the nap length)14:34
harmwyea well, it's a pita having to wait 5 minutes because it takes to long to acquire an ip and trying to contact a non-existant ec2 api :p14:35
smoserthat is kind of silly. we can probably make it do max of 60 seconds.14:37
smoserit is unreasonable in the first place for the MD to not be there.14:37
harmwdepends on the env, when I'm testing cirros I certainly don't do that in my openstack setup14:38
harmwbut just with qemu, or hyper-v 14:38
harmwno ec2 api's on either of those14:39
smoserright. that is reasonable.14:53
smoserso i'd like to have a (non-root) way to boot the instance with metadata14:53
smoserie, like ubuntu  images do (http://ubuntu-smoser.blogspot.com/2013/02/using-ubuntu-cloud-images-without-cloud.html)14:54
harmwok, so when there is no ec2 available it firesup a local ds and uses that15:03
harmwwell, fires up.. it just reads in the user-data file which was already there15:05
harmwperhaps the existence of such a file could (should?) make it skip contacting ec2 in the first place15:05
smoseryeah, thats what it does harm.15:06
smoserand you can do that with 0.3.2.15:06
smoserif you seed those directorries, then it will read from them.15:06
harmwcool15:07
harmwthen we realy need a proper seed-tool :)15:07
smoseragreed.15:10
smoserthe thing that sucks is root15:10
smoseroh. actually, kyou could still attach a config-drive disk.15:10
smoserand that should work.15:10
smoserand maybe i did it to allow a "nocloud"15:10
smosermaybe15:10
smoseryeah, actually it should15:11
smoserharmw, you can just attach a nocloud disk. 15:11
harmwto much hassle :>15:12
smoserto avoid root15:12
smoserits worth it. :)15:12
harmwhehe ,well, I'm cool with using sudo to manipulate images... but yes, have a root-less solution is cool as well15:13
smoserone other thing you could do in a raw image is have some place in the disk that a tool could just edit straight away15:13
smoserbu that doesn't work with qcow or any other format15:13
harmwhehe, raw +1 :>15:13
smoserand you probably only get like 512 bytes there (this is how grub does things for its 'environment' file)15:13
smoserwell, it knows how to read extX filessystem, but then to just write into those places.15:14
harmwmight be just enough for nocloud15:14
smoserwll, i dont know. limits user-data.15:14
smoserone thing that is very useful, and tests a lot of it is just lxc15:14
harmwtrue, but normal users probably have ec2 for that15:14
smoserand with 14.04 you can use lxc without root15:14
smoserbut we'd need to make cirros work well there.15:15
harmwfair enough15:15
smoserits not too much hassle to attach a disk. really.15:15
smoserand if you have:15:15
harmwno ofc not :)15:15
smoser cirros boot kvm --user-data=foo15:15
smoserthen, you dont know of such hassle.15:15
harmwso true15:15
harmwbut what if I'm testdriving in a hyper-v vm15:15
harmwwhich is kind of a pain already15:15
smoserwell, then yo uhave to download the install shield installer 15:16
smoserand click yes-i-accept15:16
smoserand then get some DLLs from google some where15:16
smoserand then reboot15:16
smoserand *then* you can do it.15:16
harmwah yes, the one that requires .net4.5 and which isn't supported on a hyper-v server running Windows Server Core15:16
harmwfunny you15:16
harmwcirros.msi :>15:16
smoserwindows is *so* well designed for automation15:17
harmwspare me...15:17
* harmw manages several dozens of Windows systems15:17
smosersomeone pointed me at this a few days ago.15:17
smoserhaven't read it all15:17
smoserhttp://www.thoughtworks.com/insights/blog/cloud-based-devops-possible-windows15:17
harmw"However, it isn’t all sunshine and lollipops. WinRM is actually pretty painful and fiddly to use and PowerShell is an ugly and procedural language."15:20
harmwso true15:20
=== harlowja_away is now known as harlowja
harlowjasmoser hey, just got in17:12
smoserlazy west coast people17:12
smoserutlemming, did you see  my comments ?17:12
harlowjahaha17:12
harlowjasmoser one that would be nice @ https://code.launchpad.net/~harlowja/cloud-init/local-before-net/+merge/21178317:13
harlowjato fix the issue where cloud-init-local starts after networking17:14
smoserugh.17:14
smoserwell, that only fixes in sysvinit17:14
smoser(not rhel6, right?)17:14
smoser*and* that would then differ from other distros17:14
harlowjasure, idk the ordering of other distros, since systemd and ordering isn't so easy to figure out17:15
smoserright. i dont think its guanrteed17:16
harlowjasure, so don't the other files also need to have this start before networking?17:18
harlowja*this == cloud-init-local17:18
smoserharlowja, ?17:21
smoseri dont understand17:21
harlowjaguess the question is should the other files be adjusted also?17:22
smoserharlowja, theres no way to do it in ubuntu.17:23
smoseri dont think17:23
smoserwell, at least not more invasive than i'd lke to go at this point.17:23
harlowjak, so i guess then maybe systemd needs to be adjusted, in the rhel5/6 that i'm y! using we are using those sysvinit scripts17:25
harlowjabrb17:26
harlowjaok back17:36
* harlowja had to do apple security update crap17:38
harlowjaanyways smoser we can debate that later, i'm fine with the next release afaik17:38
harlowjabe nice to have sean here push the freesbsd stuff, but i can't seem to find him17:39
harlowjaoh, i found him online 17:39
harlowjalol17:39
harlowjabut he's not responding, sad face17:44
harlowjalol17:44
harlowjaharmw so sean is currently sucked back into the mail vortex :(17:58
harmwhaha lol17:58
harlowjamaybe more blackhole17:58
harlowjaharmw bugging him about maybe when he'll have some time free from mail18:05
harlowjahe says maybe end of this week :-/18:13
harmwok :)18:15
=== harlowja is now known as harlowja_away
=== harlowja_away is now known as harlowja
=== harlowja is now known as harlowja_away
=== harlowja_away is now known as harlowja

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