/srv/irclogs.ubuntu.com/2015/09/16/#cloud-init.txt

=== JoshNang_ is now known as JoshNang
=== tmclaugh[work]_ is now known as tmclaugh[work]
=== devicenull_ is now known as devicenull
=== rcj` is now known as rcj
smoserhe all.14:03
smoserhey.14:03
smosertime for cloud-inti meeting.14:03
smoserclaudiupopa sends regrets as he's on a plane.14:04
jgrimmo/14:04
smoserwe've now got two smatzeks so that is good.14:04
Odd_Blokeo/14:04
smoserOdd_Bloke, ?14:04
smoserthere he is14:04
natoriouso/14:04
smoserhttp://bit.ly/cloudinit-reviews-public14:04
smoserwe'll run through there, then some open discussion14:05
smatzekyou can thank Windows7 ability to completely hide / lose track of running applications on sleep/awake for the dual smatzeks.14:05
smoserif only there were a high quality freely available desktop operating system that could handle such things.14:06
* smoser ducks14:06
Odd_Bloke<314:06
smatzek:)14:06
smoserah. have to read that spec some. please others take a look there too.14:06
smoserfor the next one .. that is Odd_Bloke 's  [WIP] TaskFlow for running shell commands14:07
smosercan you summarize what you're thinking there, Odd_Bloke14:07
smoser?14:07
smoseroh yeah... this was the 2.6 thing that i was supposed to think some on.14:07
* smoser terrible.14:07
Odd_BlokeSo taskflow is good at what it does.14:08
smoserok. i will take an action to look at options for non-2.6 python on older OSes.14:08
Odd_BlokeI've set up a simple graph of tasks, and it will execute those based on required dependencies etc.14:08
Odd_BlokeImportantly, we can save off the state of execution so that we don't have to execute everything all at once.14:09
smatzekI read the spec this morning. I agree with it but didn't +1 it.  I'm not sure if we should +1 / merge it or wait for the investigation into running datasource discovery in parallel with modules.  The spec calls out two ways to handle parallel data source discovery and parallel module running each with pros / cons.14:09
Odd_BlokeThis gives us the 'run everything' on Windows and 'run parts as they become sensible' on non-Windows OSes.14:10
Odd_BlokeIt could also enable us to do some more complex dependency stuff with config modules etc.14:10
Odd_BlokeSo say we have a module which puts SSH keys in place which needs users to have been created, we can just declare that dependency and taskflow will ensure they are executed in order.14:11
smoserOdd_Bloke, ok. so benefits are clear enough.14:11
smoserand 2.6 support in taskflow is not possible ?14:12
smoseri'm sorry that my memory is fuzzy14:12
Odd_BlokeIt's actually one of taskflow's dependencies that has been bumped.14:12
Odd_Blokenetworkx.14:12
Odd_Bloketaskflow may not need to depend on the newer version of networkx, but it started requiring it due to a general OpenStack requirements bump.14:13
smoserok. thanks.14:13
smoserlets do 'open discussion' now.14:13
Odd_BlokeAnd, of course, that's only viable as long as there isn't a bug in networkx that we need a fix for, or a new feature that taskflow starts depending on.14:14
Odd_BlokeSure.14:14
Odd_BlokeI don't have any open discussion topics.14:14
smoserand anyone listenting who has not read claudiu's spec for parallel discover, please do and ahave a think and add comments14:14
smosernatorious, you were looking for work last week, i think14:14
smoserand quite possibly i left you hanging ?14:14
smatzeknatorious: you were going to start work on the ConfigDrive datasource, right?14:15
natorioussmoser: I was.  I've been poking around with ConfigDrive.  Looking to support network json data14:15
smoserah. fun.14:15
smoserthats a key thing that we want.14:16
natoriousI'd imagine we'd need a spec on network config templates?14:16
smoserdo you want to chat some ? we can do so now or later. i have thoughts on this, and an idea of where i want to go.14:16
natoriousI can now, sure14:17
smosersome others on my team have recently been workign code in curtin ("ubuntu fast path installer"). that takes a network config format and renders it to the system14:18
smatzeknatorious: if you're starting with the 0.7 configdrive datasource as a base, can you ensure the calls to 'util.mount_cb' and the find_candidate_devs method are architected in such a way that its easy for non-Linux OSes to have their own impls?  Possily have the datasource call the OS distro class to do it?14:18
smoserthat happens in /etc/network/interfaces (ENI) format now.14:18
smosermy plan has been to mvoe that code into a library, and then use it from cloud-init.  cloud-init woudl read the network info from openstack, and then tell the library to render it to the system.14:19
natoriousso like in 0.7.7 I was using jinja or similar templates to translate net settings to config files to lay down.14:19
natorioussmatzek: for sure.  I've only been basing off the Openstack http source thats in 2.014:20
natoriousso far14:20
natorioussmoser: so like would we be able to contribute to this code library though still?14:20
natoriouswere doing ha bonding and would need to support that14:21
natoriouslike 802.3 etc14:21
smoserbonding for ubuntu is there now.14:21
smoserbut yes, code contirbution there would be appreciated14:21
smosercurrently its part of curtin, but he intent to pull it out14:22
smosernatorious, the supported config format right now looks like14:22
smoser http://bazaar.launchpad.net/~curtin-dev/curtin/trunk/view/head:/examples/network-all.yaml14:22
smoserthat is what maas declares.14:22
smoserinterneally, it reads that, comes up with a model and renders it to the system.14:22
smoserso we can also support the openstack networking definition model too14:23
smoserand then there is one from amazon that comes in the MD service that we'd also have to support reading14:23
smoserthat all make sense ?14:23
natoriousit does.  Not sure how well the yaml would translate ex - https://gist.github.com/naterh/a88646595ad94033a10014:24
smatzekI'd expect the library would have different impls of the interface for the various distros, so the network settings can get written to all the appropriate files on the OS such as route files, ifcfg files, hostname files, resolv.conf, etc on RedHat/SLES?14:24
smatzekand run commands to set networking vs writing files on non-Linux OSes?14:24
natoriousthat project is also currently deb based only right?  So like we'd need to come up w/ all the other os's config layouts14:24
smosersmatzek, right. thats the idea.14:25
smoserand then we have changes to the networking also14:25
smoserand ideally it can go from A to B with no bouncing or unnecessary down time14:25
natoriousthat gist was openstack's net json btw ^^14:26
smosernatorious, you're right. other than s/"deb based"/ENI rendering/14:26
smoserright.14:26
smoseressentially cloud-init (either through a library or not) needs to have a model of networking14:27
smoserand has to read from multiple different formats (maas, openstack, ec2) and "render" to multiple formats (ENI, sysconfig, networkd, 'ip', windows-whatever)14:27
natoriousso, I might handle that as a separate task and just get a base config drive source in place then?14:28
smoseryeah, i think that makes sense.14:28
smosernatorious, please feel free to ping me if you're looking for feedback. i do best wtih irc pings.14:29
smoserthe only other thing i had for this meeting would be to see what people might think of a meeting time change...14:29
natoriousI'd read thru claudio's parallel spec too.  Had some thoughts on capabilities too14:29
natorioussmoser: ty14:30
smoserbut since we have neither our furthest east member (claudio) nor our furthest west member (harlowja)... that seems not a useful conversation to have at the moment.14:30
smatzekwhat timezone is claudio in?14:30
Odd_BlokeCET, I think.14:35
Odd_BlokeWell, CEST ATM.14:35
smoserCET = +020014:36
smoseralso atm14:37
Odd_BlokeOh, actually, he's probably on Eastern European Time, which is +0200.14:37
Odd_Bloke(CEST is CET+1 for summer)14:38
Odd_BlokeUh, but maybe on Easter European Summer Time, which is UTC+3.14:38
natoriousis there a preferred template engine for this project?14:41
natoriousideally something windows compatible thoughI've no clue on how windows networking works14:43
* natorious finds jinja214:47
Odd_BlokeJinja2 would be my preference; don't know what dependencies etc. look like.14:47
smatzekthe library should probably hide the engine used. I like jinja2 as well. The 'apply network to OS' part will likely need to render files and run commands, possibly even on Linux.14:50
smoserharlowja, awake ?16:26
smoseror Odd_Bloke16:26
smoseras my resident python experts16:26
smosersomeone is using subprocess.check_call with timeout=16:27
smoserwhich ends up doing Popen.kill16:27
smoserwhich is SIGKILL16:27
smoserwhich is just not nice16:27
smoserany ideas on how to get a different signal sent or otherwise easily implement the same functionality as subprocess.check_call(timeout=)16:28
Odd_Blokesmoser: Just a heads-up, timeout= is Py3-only.16:33
smoseryeah16:33
Odd_Blokesmoser: So you may need to solve this problem anyway if this code needs to work on Python 2. :p16:34
smoseri think  https://gist.github.com/kirpit/130618816:34
smoserthis code didnt need to run py216:34
smoserother than the shlex bit, i think that is sane16:34
Odd_Blokesmoser: https://hg.python.org/cpython/file/tip/Lib/subprocess.py#l665 is what is called under the hood.16:35
Odd_Blokesmoser: So it doesn't look like there's any way to stop it being kill'd.16:36
harlowjasmoser suppp17:36
harlowjaprocess.kill() nice, ha17:37
harlowjau can use https://review.openstack.org/#/c/218597/ :-P17:37
harlowjaor at least '_try_term_then_kill' from that17:38
harlowjaha17:38
harlowjamy gift to u17:38
harlowjalol17:38
harlowjai personally like the psutil approach better17:42
harlowjabut up to u guys :-P17:42
stanguturiHi everyone, I am learning the 'cloud-init' stuff. Need some assistance with the initial dev environment setup. Where can I find the latest 2.0 / 2.x development code for cloud-init, github / https://launchpad.net/cloud-init19:36
harlowjahttps://github.com/stackforge/cloud-init/ stanguturi19:54
harlowja0.7.x is also a branch there (although not exactly in sync with the bzr one)19:55
harlowjasmoser how goes that bzr + git turning on ;)19:55
smoserharlowja, bah19:55
harlowjapress da button!!! :)19:55
harlowjapwease19:55
harlowjawith sugar19:55
smoserhey stanguturi19:56
smoserharlowja, i need some sort of workaline for revno19:57
smoserrevno sucks for all sorts of reasons19:57
smoserbut its so nice for many others.19:57
harlowjaworkaline?19:57
smosera single increasing number19:57
smoserworkalike19:57
harlowjaah19:57
harlowjaso that should already exist in 2.x since its using pbr19:57
smoser?19:57
harlowjait calculates versions from git commits19:58
harlowjahttp://docs.openstack.org/developer/pbr/#version19:58
harlowjait should already be increasing it afaik19:58
smoserwell that is neat.20:00
harlowjaand then when u make a tag, pbr should lock to that tag20:00
harlowjaand thats your version20:00
harlowja*signed tag20:00
harlowjasooo python setup.py --version should work as u would expect (increasing when on a branch, not increasing on a tag)20:00
harlowja...20:00
smoserso. that sonds really neat.20:01
smoserbut in 0.7 what i need is to replace 'bzr' from tools/*20:01
harlowjakeep 0.7 on bzr, let it still work there (just have git+bzr launchpad read-only mode enabled or something?)20:02
harlowjaand then i get openstack-infra people to drop 0.7.x on git/stackforge or something20:02
harlowja?20:02
harlowjaannnd win?20:03
harlowjalol20:03
harlowjaright now on git stackforge cloud-init head20:04
harlowja$ python setup.py --version20:04
harlowja1.9.0.dev17220:04
smoseri'm fine to swithc it really20:04
harlowjahmmm20:05
harlowjafor real?20:05
harlowjai wonder why pbr picked '1.9.0'20:05
harlowjalol20:05
harlowja$ git tag20:05
harlowja0.7.020:05
harlowja0.7.120:05
harlowja0.7.220:05
harlowja0.7.320:05
harlowja0.7.420:05
harlowja0.7.520:05
harlowja0.7.620:05
harlowja (the only tags)20:05
harlowjai can replace the tools/* stuff though if u are for real20:07
harlowjawith josh-awesome-sauce20:07
smoseri think i'm ok with that.20:11
harlowjak20:11
harlowjapinky swear?20:11
smoseryeah.20:12
smoserso the stuff in tools20:12
smoserand then http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/cloud-init/trusty/view/head:/debian/README.source20:12
smoser(New Snapshot) there.20:12
smoseri use that wheneer i upload to ubuntu20:12
smoserprobably you dont have to replace 'bzr' there.20:12
harlowjak20:12
harlowjai'll get openstack-infra to do the sync they said they would (one last final time)20:13
smoseras the packaging can still be bzr and the upstream as git20:13
harlowjasince confirmed pinky swear happened20:13
smoserwait...20:13
harlowjaoh20:13
harlowjak20:13
smoseri can't stop committing to bzr until i have those things fixed20:13
harlowjapinky swear still in progres20:13
harlowjaoh20:13
smoserthen i can20:13
harlowjakk20:13
harlowjau addicted to bzr20:14
harlowjaits a drug20:14
harlowjaget your fix man20:14
harlowjalol20:14
harlowjadetox...20:14
smoser6 years addicted.20:14
harlowjalol20:14
smoserbefore i was addicted to the git20:14
smoserand thought the bzr was silly20:14
harlowjabut then u got hooked20:14
smoserbut the addiction is there now. even if i still think silly.20:14
harlowjajust say no to drugs man20:14
harlowjadidn't u learn anything in school20:15
harlowjalol20:15
harlowjaok, so what needs to get into bzr first, lol20:15
* harlowja serious-mode-enabled20:15
smoseri guess just have it ready in git that we can test.20:18
harlowjahttp://paste.openstack.org/show/465192/ (the handy dandy resync script)20:19
harlowjabb, foods20:20
harlowjasmoser ok https://code.launchpad.net/~harlowja/cloud-init/cloud-init-git-tarball-make/+merge/271394 i think should be part of this21:53
harlowjaor maybe not, ha, let me know21:53
harlowjaseems to work with .git or .bzr21:54

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