/srv/irclogs.ubuntu.com/2014/09/15/#cloud-init.txt

=== mgagne is now known as Guest72739
=== praneshp_ is now known as praneshp
=== zz_gondoi is now known as gondoi
=== praneshp_ is now known as praneshp
=== praneshp_ is now known as praneshp
m01Hi people. Does someone know if cloud-init is supposed to be able to setup multiple network interfaces if I launch a VM with multiple network ports in OpenStack, EC2 etc?11:00
m01(I'm only seeing the first one being setup for DHCP)11:00
smoserm01, there are some bugs in that area. but current cloud-init should be able to set up networking for multiple interfaces if12:53
m01..if?12:53
smosera.) eth0 is configured in image to be dhcp (and can get a dchp address) or otherwise is correctly configured.12:54
smoserb.) no other network interfaces are configured in the image12:54
m01I think both of those conditions are fulfilled12:54
smoserc.) you use config drive12:54
m01ok12:54
smoserposisbly it would work with openstack metadata service12:54
smoseri'm not entirely sure. 12:54
smoserthe goal is to have these issues fixed so that reliably the networking that is presented would do the right thing12:55
m01Ok, excellent - so cloud-init is expected to do this12:55
smoserthere are definitely bugs12:56
m01do you happen to know if the ubuntu 14.04 cloud image should have a recent enough cloud-init for this to work?12:56
m01don't worry if you don't know of the top off your head, I'll go investigate12:56
smoser http://paste.ubuntu.com/8350293/12:56
smoser14.04 should be close. and the goal is to at some point have that functional in 14.04.12:56
m01excellent12:58
m01I'll make sure I enable the config-drive12:58
m01and then re-test12:58
m01thank you so much!12:59
=== harmw_ is now known as harmw
m01so I tried the ubuntu 14.04 image, with config drive (and eth0 working), and unfortunately eth1 isn't setup13:49
m01I don't think nova injects an /etc/network/interfaces (at least it's not on the config drive)13:51
m01the other interface is just connected to a dhcp network in openstack13:52
m01i've got Version: 0.7.5-0ubuntu113:54
m01that's the latest according to launchpad13:54
=== gondoi is now known as zz_gondoi
=== zz_gondoi is now known as gondoi
smoserm01, how did you attach ?15:03
smoseris /etc/network/interfaces correct?15:03
smoserbasically what should happen is that cloud-init should find the /etc/network/interfaces file that is provided to it on the config-drive and place that in /etc/network/interfaces. 15:04
smoserand 'ifup -a'15:04
=== gondoi is now known as zz_gondoi
m01/etc/network/interfaces just has the eth0 config15:19
m01ah15:19
m01that file isn't in the config drive15:19
m01I just mount /dev/sr0 test15:19
smoserm01, it should be somewherein there. 15:19
m01it wasn't.. I did a find, and an ls -lR15:20
smoserwhats in files/15:20
m011s15:20
m01well, I need to re-launch the instance actually15:21
m01I blew up the networks15:21
m01and re-configued my openstack setup15:21
m01*launching15:23
m01http://pastebin.com/p3PLXjvj15:26
m01here's the contents of my drive15:26
m01i don't have a files/ directory15:27
=== praneshp_ is now known as praneshp
=== zz_gondoi is now known as gondoi
harmwcirros-0.3.3-x86_64-initrd17:42
harmwcirros-0.3.3-arm-blank.img17:42
harmwcirros-0.3.3-arm-vmlinuz17:42
harmwcirros-0.3.3-arm-initrd17:42
harmwBuild step 'Execute shell' marked build as failure17:42
harmw[ssh-agent] Stopped.17:42
harmwFinished: FAILURE17:42
harmwhm, now why is Jenkins telling me that17:42
JayFexit code17:48
harmwyea, that was my first assumption as well :)17:48
JayFif your build script doesn't exit 0, it'll report failure17:48
* JayF not trying to snark17:48
harmwsnark? 17:48
JayFlike be sarcastic :)17:48
harmwwasn't that some bug in half-life :p17:48
JayFI was trying to actually be helpful17:48
JayFlol17:49
harmwoh np :)17:49
harmwit's bin/build-release that probably needs some love now17:49
* JayF has added ||true to the end of those things to make jenkins pass17:50
harmwtrue, but it looks like it just bails somewhere17:53
smoserits probably the stupid tag check17:54
smoserit doesn't really support building from trunk17:54
smoser but it shoud lhave been fairly straight forward in saying that17:55
harmwhehe17:55
harmwcan't you just fix that :p17:56
smoserwell, someone needs to . harmw you can just tag first before you build.18:02
harmwwouldn't that limit everything to just my branch?18:04
smoseri dont follow18:04
smoserbasically just do somethin glike:18:05
smosertag=harmw-$(date +%Y%m%d-%S)18:05
smoserbzr tag $tag18:05
smoser./bin/build-release $tag18:05
harmwuhm, yea ok18:05
harmwbut there should be a 0.3.3 tag, right?18:05
smoserthere should, yes. 18:06
harmwsince I'm currently running bin/build-release 0.3.318:06
smoserhttp://paste.ubuntu.com/8352141/18:08
smoseryour branch might not have that tag in it.18:09
harmwwll I should be building trunk here18:10
smoserwell, that shows that there *is* a 0.3.3 tag in trunk18:12
harmwindeed18:12
harmwJayF: you've used jenkins with the irc plugin?18:33
JayFYes18:33
harmwplease tell me where I can configure that darn thing :p18:33
harmwcan't seem to find it18:33
JayFum18:36
JayFalmost all of that kind of plugin setup18:36
JayFis shoved somewhere into global setup18:36
harmwI thought so, but I'm not seeing it18:36
=== gondoi is now known as zz_gondoi
=== shardy is now known as shardy_z
=== harlowja_ is now known as harlowja_away
=== zz_gondoi is now known as gondoi
JayFfound a gnarly little bug in cloud-init with noblock resizes21:15
JayFabout to push up a fix21:15
JayFsmoser: https://bugs.launchpad.net/cloud-init/+bug/1338614 I'm pushing a fix for this21:26
JayFsmoser: as I just fixed it locally21:27
JayFwhee21:27
JayFthe fun thing is21:30
JayFthe resize still happened21:30
JayFjust did it blocking in the fg21:30
JayFthen threw a fun exception21:30
JayFsmoser: harmw: harlowja_a*: https://code.launchpad.net/~jason-oldos/cloud-init/bug-1338614/+merge/234749 should fix 1338614. I was unable to run tests due to local enviornment problems but will run them as soon as my VM recovers :)21:43
JayFI've verified this code fixes the exception shown and makes the resize happen in the background21:43
JayFI think I may have broken the bzr22:14
=== gondoi is now known as zz_gondoi
=== harlowja_away is now known as harlowja_
harlowja_hmmm, lol, u broken the bzr!22:33
harlowja_ha22:33
JayFharlowja_: my working copy is an absolute mess22:33
JayFharlowja_: I want git reset --hard origin/master22:34
JayFexcept I don't know how to tell bzr to do that :x22:34
harlowja_ya, i only know the basics, smoser though probably knows it all22:34
harlowja_JayF did u read over all the taskflow stuff?22:38
harlowja_:-P22:38
JayFI read it, most of it sounded like anti-git propoganda22:39
JayFI think I want a direct mapping of commands22:39
JayFbut there is none22:39
harlowja_lol22:39
JayFwiki.bazaar.canonical.com/Workflows was not useful to me at all :(22:39
harlowja_i wonder how https://github.com/termie/git-bzr-ng works22:39
JayFI don't like not knowing things, I'd rather just know how to make this work :)22:40
harlowja_:)22:40
harlowja_i try to stay using git if i can :-P22:42
harlowja_smoser so when cloud-init movign to git ;)22:42
JayFif cloud-init moves to github, I'll even setup all the travis ci for it :P22:43
JayFand then eat my flip flop in surprise22:43
harlowja_nice22:44
harlowja_i'd pay to see that22:44
harlowja_JayF i think u missed the days when openstack was fully using bzr :-P22:47
harlowja_about 2.5 years ago22:47
harlowja_there was some fun mailing list threads about that one22:47
harlowja_https://lists.launchpad.net/openstack/msg01741.html22:48
harlowja_*and many followups*22:48
JayFjesus, that sounds awful22:54
harlowja_JayF :)23:16
harlowja_the good ole days23:16
harlowja_lol23:16
smoserharlowja_, JayF its not an impossibility23:55
smosermoving to git.23:55
JayFfor every minute I spend working on cloud-init code23:56
JayFI spend two figuring out bzr23:56
JayFand I'm sure I'll get off that hamster wheel one day, but for now it's annoying23:56
smoseri spent a good while today thinking about how networking should work23:57
JayFespecially seeing that I can't get my local to get up to whatever HEAD is now, I'm a few revisions behind :(23:57
smoserin a world where cloud-init boots, and gets networking information from a local source (ie , config drive). and also from a network source / hot plugged.23:58
JayFwe've been doing some thinking about the ongoing stuff as well23:58
JayFi.e. a customer calls an API to add a cloud network, how does that get configured?23:58
JayFon a hypervisor you can just drop in an interface23:58
JayFwithout a hypervisor you have to change something (like the metadata in an md service) and have something looking for changes there23:59
JayFbut we're borderline if it's in cloud-init scope at that point, right?23:59

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