/srv/irclogs.ubuntu.com/2014/08/01/#cloud-init.txt

msitarzHi06:03
msitarzcould somebody tell me how does cloud-init decide which network interface to configure?06:04
=== evilissimo|afk is now known as evilissimo
harmwsmoser: ifup $interface07:36
harmwdamn07:36
harmwok, Ill make some adjustments07:36
harmwudhcpc will put the interface where it's gotten an address on in the environment, yes, as $interface07:37
harmwand disabling would be done in /etc/networking/interfaces, so no need for a DISABLED (which Ill remove)07:38
msitarzharmw: is that related to my question ?08:29
harmwhaha no, sorry :)08:32
harmwI should've bzr copied the default.script btw, since now it looks like cirros-dhcpc is completely new - which it obviously isn't08:56
harmwanyway, smoser , the merge request is updated08:57
smosermsitarz, it doesn't. 12:46
smosersystem configuration tells it.12:46
smoseron ubuntu, it blocks on anything 'auto' in /etc/network/interfaces.12:47
msitarzsmoser: so cloud-init does not setup the network13:17
msitarzbut the default OS configuration is just setup to use DHCP , that's why I get IP on eth0 ?13:17
smoserright.13:18
smoserthats how i would think things should work13:18
smosereth0 should be expected to come up on dhcp and give route to network13:18
smosernow...13:18
smoserthat is being fixedui do want to fix that htough13:18
smoserso that ocnfig drive can correctly insert networking13:18
=== evilissimo is now known as evilissimo|afk
harlowja_at_homesmoser, btw, i'm in NY for a couple week, so will be on/off (forgot if i told u :-P)16:21
smoserharlowja_at_home, sure. just make sure you vote for my talk. :)16:24
harlowja_at_home??16:24
harlowja_at_homewhere's that16:25
smoserhttp://www.openstack.org/vote-paris/Presentation/ecure-containers-in-openstack-using-lxc-and-user-namespaces16:25
smoserand while you're there, you should vote for this one too16:25
smoserhttps://www.openstack.org/vote-paris/Presentation/astrologer16:25
harlowja_at_homecool16:26
harlowja_at_homewill do, will get some others to vote for that also :-P16:26
smoserothers by canonical at http://insights.ubuntu.com/2014/07/31/voting-begins-for-openstack-summit-sessions-in-paris/16:26
smoserlook at that second link :)16:26
smoserif you have links to yours, i'll + them to16:26
harlowja_at_home"highly effective astrological love problem solutions are good enough to solve all your problems - See more at: https://www.openstack.org/vote-paris/Presentation/astrologer#sthash.Gu4vFXan.dpuf"?16:26
harlowja_at_homewhat the16:26
harlowja_at_homei didn't put any up this time :-P16:27
harlowja_at_homesmoser, astrogger even put it under the networking category +1, ha16:49
harlowja_at_homedifferent type of networking, ha16:49
harmwsmoser: ready to accept my merge request? :P18:35
smoserlet me look. i think we were closer.18:36
smoserso the patch to busybox18:37
smoseryou patch in a patch. is that right ?18:37
smoseris thats what happening there?18:37
smoserwhere does leasetime come from, do you know ?18:37
smoserie, is it of any use for us to get that passed in from ifup ?18:37
smoseri dont know where it would get it from18:37
smoserharmw, do you mind if i bikeshed on some things?18:40
smoseri dont want to put you off, and i thikn its probably good enough.18:40
smoserbut a few things. 18:40
smoserhere. i'll just make some changes here18:42
smoserand then propose for merge into your branch18:42
smoserthen you sanity check18:42
harmwleasetime comes from the dhcpservice, we don't do anything with it18:46
smoserhm..18:46
smoseri'd have thoguht so18:46
smoserbut why does ifup have '%leastime%' ?18:46
smosersee line 37 of your MP.18:47
harmwhm, it does?18:47
smosersee how it can call dhcpcd with '-l %leasetime'18:47
smoserit seems odd18:47
smoserbut i didn't understand. so asking you18:47
smoser:)18:47
harmwhmk, well, not all clients are using the same options though18:47
harmwin ifupdown.c 18:47
harmwand yes, its a patch that creates a new (patch) file that will add the new dhcp client directive to that struct in ifupdown.c18:49
harmwwhats so wrong with my stuff for you to b wanting to bikeshed? :p18:49
smosergive me 10 minutes. i'll push up a branch.18:51
harmwmeh18:51
smoserjust making stuff more localized and such.18:52
smoseri'll show18:52
smosernothing big18:52
smoseryou really did good.18:52
smoserthank you!18:52
harmwyea right, well obviously not good enough 18:52
harmw:p18:52
smoserharmw, what is -x18:55
harmwas in the udhcpc parameter ?18:56
smoseryeah18:56
harmwasking for options18:56
harmwno18:56
harmw'include option OPT in set packets'18:56
smoserok. so if hostname is empty18:56
smoserthen we dont want the -x either18:56
smoserright ?18:56
harmwdamn, well... isn't hostname defaulting to cirros?18:57
smoserprobably. but just in case.18:57
harmwgod I hate you for that :p18:57
smoseri told you bike shed18:57
harmwyou're probably right18:57
smoseri've got it thoguh18:57
harmwprobably something like: [ -z `hostname` ] && OPT=bla18:58
harmwyou should merge the updated buildroot as well, someday19:01
smoseryes.19:01
smoseri will merge that for sure.19:01
harmwbut lets finish this udhcpc branch first, then you're all set on the buildroot, and then its time to drink beers and enjoy the weekend :>19:02
smoserharmw, so every time something ifup dhcps19:15
smoserit will kill resolv.conf19:15
smoserie, last one wins19:15
harmwbut thats not any different from the current situation, right?19:16
smoseri dont know.19:16
smoserproblby not19:16
smoserjust found it interesting19:16
smoserand odd19:16
smoseri'm gonna make it only do that if19:16
smoserdomain or dns is set.19:16
harmwthat part was already in default.script, which is called at ifup19:16
smoseralright.19:16
smoseri'll lave it as it is19:16
harmwprobably wouln't hurt, no19:16
smoserwe could potentially make that work19:16
smosermake it configurable19:17
smoserwe could19:17
harmwi'd opt for first bringing in the major changes, and then perhaps clean this little issue :)19:18
harmw*fix19:18
harmwgrrr, why doesn't centos7 ship with cloud-init19:25
harmwI thought RH had added that to RHEL19:25
harmwand while the releasenotes of centos7 mention there are cloud images underway, they have yet to arrive19:25
smoserharmw, lp:~smoser/cirros/udhcpc-wrapper19:29
smoseri'll be back in a bit19:29
harmwok, ill have a look at merging that with my branch19:29
harmwdone, pushed19:43
harmwok, I'm building a new image now19:45
harmwhm, I dont see any reason for it to fail on the current buildroot - but I'm using my 2014 buildroot to testdrive this thing... (since that builds on centos)19:46
harmwill check back in an hour :)19:46
harmwand another hour :p20:35
harmwso, busybox 1.20.1 in buildroot 2014 :| damn20:35
smoseryeah. thats kindof annoying.20:35
smoserlets get to a new buildroot20:36
harmwhaha cool20:36
harmwmake it happen20:36
harmw:)20:36
smoseri dont have an easy answer for that patch having to have the busybox verison in it20:36
smoser(that is annoying)20:36
harmwI had the exact same objection to it20:36
harmwbut went for it nonetheless20:36
harmwanyway, ill be back in 60 minutes20:37
smoserk20:37
smoserso lets shoot to merge to your 2014.0220:37
smoserand then merge to 2014.520:37
harmw(and lets not forget udhcpc)20:37
smoserright.20:38
smoserholy moley. theres a bunch there.20:41
smoserharmw, ok. i hope id ont break anything. but heres my plan.20:54
smoser a.) take the udhcp sutff without the patch disabled in the series file20:54
smoserso that it will still build fine, but will be inert20:55
smoserb.) get us merged to a newer version and address that later.20:55
smoserharmw, ok. pulled iwthout patch.21:03
harmwuhm, then you shouldn't have deleted default.script right?21:25
harmwsince now we're not applying the patch to bb (to make it default to using cirros-dhcpc) it'll start udhcpc just like it always did21:26
harmwand that will be done with -s /usr/share/udhcpc/default.script21:27
harmwwhich doesn't exists21:27
harmwso please revert that file untill we will use the patch21:27
harmwthanks for merging though :)21:27
harmwbe sure to update the chngelog btw21:28

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