/srv/irclogs.ubuntu.com/2014/07/30/#cloud-init.txt

=== harlowja is now known as harlowja_away
=== evilissimo|afk is now known as evilissimo
harmwill have a look, thanks08:35
harmwhm, annoying09:13
harmwthre is a wrapper to figure what/how to start udhcpc, and then a default.script gets run to actually -do- stuff09:14
harmwhm, it would be sexy if udhcpc could use the wrapper script itself as a default.script, to keep everything in 1 place (in case we want to add support for another option sometime in the future)09:26
harmwuhm, that quilt thing isn't able to patch busybox - atleast it doesn't look like it09:48
harmwsmoser: https://code.launchpad.net/~harmw/cirros/udhcpc-wrapper 11:26
fifthechoHas anyone used fpm to build cloud-init?12:47
fifthechoBecause I'm trying to build current cloud-init packages for older distros (Debian 6, Centos 5) to use on a CloudStack cloud and it's proving quite frustrating.12:51
smoserfifthecho, no. i dont know fpm.  if you're interested in pursuing that, patches to make it work would be accepted.13:07
smoseralso, there is ./packages/brpm13:07
smoserbut maybe you knew that13:07
=== alexpilotti_ is now known as alexpilotti
fifthechoOr, is there some repo out there for cloud-init 0.7.5 for older distros?13:35
smoserwhat is not functional for older distros? just deps ?13:41
harmwfifthecho: is there a sane reason to start supporting centos 5 these days?13:42
harmwgiven 7 is out13:43
smoserharmw, so i would have just patched the string 'udhcpc' to invoke udhcpc.cirros instead of udhcpc.13:43
fifthechosmoser: Older distros have older packages that don't have the CloudStack provider.13:43
smoseras you have it i think it is a bit recursive13:43
fifthechosmoser: Unfortunately we have customers who are stuck on old releases.13:43
smoserfifthecho, right. but why does 0.7.5 not work on older distros. that was the question.13:44
fifthechosmoser: It should, but there's no packages I can find and I'm having difficulties building RPMs and DEBs as there's no real instructions on how cloud-init builds their packages.13:44
smoserharmw, ie, i was just oging to do this: http://paste.ubuntu.com/7904991/13:45
smoserfifthecho, ah. so i'd start either with trunk, using ./packages/brpm13:45
smoseror updating something in epel or something.13:45
harmwwell, we could've just move /sbin/udhcpc to somewhere else and replace it with the wrapper :p13:46
smosercorrect.13:48
smoserbut i didnt want to do that.13:48
smoserbecause then /sbin/udchpc would be the wrapper13:48
harmwbtw your patch keeps feeding udhcpc.cirros with options, wich is not needed anymore either13:48
harmwyea13:48
smoserso then when a user invoked udhcpc "manually", they'd get our wrapper. and the wrapper wouldn't know if it was invoked via ifupdown or "upser"13:49
smosers/upser/user/13:49
harmwuhu13:49
smoserso yeah, if you want you can copy the stanza there13:49
smoserwe can set the options to ""13:49
harmwwell, if were going to patch busybox anyway I'd opt for adding my patch and keep it nice&tidy13:50
harmwinstead of ultimatly defacing udhcpc :p13:50
harmw(in ifupdown.c that is)13:50
smoserthats fine.13:50
smoserbut call udhcpc, not 'ifupdown'13:50
smoserbecause calling 'ifupdown' is going to call udchpc13:51
smoserwhich is going to call ifupdwon13:51
harmwI dont think I'm following that one, my patch adds a call to /sbin/ifupdown for busybox to execute - that script in turn runs udhcpc, which is calling the same script yet again though with the renew|bound|whatever args13:53
smoserharmw, you added a entry to ext_dhcp_clients which is part of FEATURE_IFUPDOWN_EXTERNAL_DHCPC13:57
smoseri had assumed that what that means is that when the user types:13:58
smoser ifup13:58
smoserand the network is ocnfigured for dhcp13:58
smoserthat 'ifup' would then call udhcp (in the current path)13:58
smoserand instead, your patch is making it call13:58
smoser ifupdown up13:58
smoserwhich i assumed was basically the same as calling ifup13:59
smoserwhich would then run that code again ...13:59
harmwah like that, deadlocking13:59
smoserright. thats how i read it. i could be wrong.14:00
smoserhow does it select an entry to run ?14:00
harmweither way, there is no ifupdown binary currently - so that atleast shouldn't hurt14:01
harmwit tries each entry14:01
smoserah. based on executable_exists14:01
harmwindeed14:01
harmwwhich is why I just prepended my code to the struct14:01
smoserah. ok. so now it makes more sense. i'd leave more of it intact though.14:02
smoserbut you were right in your assesement, that we could just replace /sbin/udhcpc (other than we'd be changing the behavior of that binary by wrapping it)14:03
smoserharmw, thank you for humoring me.14:04
harmwhumoring? realy14:04
smosernow i understand much more of your patch14:06
smoserand it makes a fair amount of sense.14:06
smoserother than i dont like the name "ifupdown"14:06
harmwbut...14:06
smosercirros-dhcp ?14:07
harmw+c14:07
harmwor: cirros-dhclient14:07
harmwanyway14:07
harmwIll think of something14:07
smoseryeah.14:07
harmwyou read the commitmsg btw?14:07
smoser:)14:08
smoserno.14:08
smosersorry.14:08
harmwlol14:08
smosermaybe that would have saved all this, eh?14:08
harmwonly one way to find out14:08
smoserwhat about the '-h hostname' -i vendor -I client -l leastime stuff ?14:08
smoseris that useful to us ?14:09
harmwhavent given that a thought just yet14:09
smoseri'd think hostname probably is14:09
harmwmy focus was on putting something out there to aid in future enahncements14:09
harmwto be able to add things like hostname, indeed14:09
smoserand have no idea what: [[ -h %hostname%]]14:10
smosermeans14:10
harmw(which is quite sane, for areas without clouds)14:10
harmw*environments14:10
harmwanyway, my commitmsg contains a note about beeing able to apply the patch to busybox :p14:11
harmwwhich is why I asked if you read it, realy14:11
harmw:)14:11
=== gondoi is now known as zz_gondoi
=== evilissimo is now known as evilissimo|afk
smoserah. harmw there are ways in buildroot to apply patches14:57
smoserhttp://buildroot.uclibc.org/downloads/manual/manual.html#_providing_patches14:58
=== zz_gondoi is now known as gondoi
=== xmltok_ is now known as xmltok
=== SpamapS_ is now known as SpamapS
=== gondoi is now known as zz_gondoi
=== harlowja_away is now known as harlowja
harmwhaha, not looking into the obvious :p19:04
harmwoh no wait, my trouble was with busybox19:09
harmwhm, lets see19:09
anetoHello, I am currently having trouble trying to get mounts to work in EC2 with cloud-init 0.7.4 installed from repl my config and logs are https://gist.github.com/anthony-neto/1c522c14ef286646cc9a I having being trying to use a bashton AMI that has a working cloud-init as an example but its a old version of cloud-init, I am going crazy19:10
anetoIf anyone in here is using cloud-init in ec2 with centos, and could gist my a mininmal config to test the mounts I would appreciate it =)19:16
=== zz_gondoi is now known as gondoi
smoseraneto, so what is that ?19:42
smoseryou want to test mounts. how?19:42
anetothat gist is what I have been trying, including the log from cloud init, I just want to see cloud-init mount the ephemeral mounts ec2 assigns.19:43
anetoI have gotten userdata to work, but for the life of me cannot get the swap or ephemeral mounts to work19:44
anetoI see this in the log, Attempting to determine the real name of ephemeral0 | Mapped metadata name ephemeral0 to /dev/sda2 | did not find entry for sda2 in /sys/block | Ignoring nonexistant default named mount ephemeral019:54
anetosmoser, I just want to get the default mounts working for ephemeral0 and swap20:06
smoserwell, built in "should" work.20:08
smoserit should behave properly with no additional config.20:08
anetosmoser, if cloud-init doesn't find an entry in /sys/block it ignores the mount?21:01
smoseri think it does.21:02
smosermaybe you can say "put it there nayway"21:02
smoserwell, no. it says:21:03
smoser http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/doc/examples/cloud-config.txt21:03
smoserline 18521:03
smoserbut i think for 'ephemeral0' it has to exist21:03
smoserand swap too probably21:03
anetohmm has this always been the case? I installed an older version of cloud-init and got the mounts to work, however the /sys/block looks exactly the same as the problematic ami21:05
smoseri dont know . i dont remember to have changed it.21:05
=== gondoi is now known as zz_gondoi

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