/srv/irclogs.ubuntu.com/2015/10/07/#cloud-init.txt

natoriousmorning13:49
smosergood morning sir.13:51
natoriousI'd noticed the decorator properties in the http ds are not in the parent class.  Is that intentional?13:51
natoriousalso noticed what you were referring to w/ network config returning and I'll fix that in the existing merge req13:53
natoriousre prop decorator, I was thinking that would change the method signature and therfore not inherit/override13:54
smoserok.14:03
smosercloud-init meeting14:03
claudiupopahi.14:03
smoserhello natorious smoser claudiupopa14:03
smoserjgrimm,14:03
smoserOdd_Bloke,14:03
jgrimmo/14:03
natorious\o14:03
smosermy bit.ly url for cloudinit-reviews somehow busted. :-(14:04
smoserso14:04
smoserhttp://bit.ly/cloudinit-reviews-public14:05
smoseri finally got around to reading claudiupopa's proposal at https://review.openstack.org/#/c/220095/ yesterday14:05
smosertalked with him a bit.  i think we agree that openstack's config-drive and MD are odd fellows.14:06
smosernatorious, wonder if you have thoughts on that.14:06
smoserwould xenstore on rackspace still be a possible datasource ?14:06
natoriousyea, I don't see why not14:06
natoriousthe image would have to have some baked in deps to be able to access it like a store14:07
natoriousbut thats essentially how the openstack guest agents use it today14:07
smoserit woudl be the preferred one there ?14:07
smoseror do they now have openstack MD everywhere.14:08
natoriouslikely, yeah.  Citrix makes it dead easy as a preferred14:08
natoriouswere doing http and configdrive too14:08
smosercitrix ?14:08
natoriousXenServer14:08
smoserok.14:09
smoserok. so... how about this.14:09
smoserthe one topic we have from last week was python2.6 .14:09
smoserand Odd_Bloke quickly pointed out that there are official python2.7 sources for centos and for redhat14:09
smoserin 'SCL's14:10
smoserthat still leaves me sles to look at, but i went and built some images last week and have them in a local cloud so i can easily poke around.14:11
smoserso i think we can say 2.714:12
smoserthen i guess move on./14:12
natoriousum14:12
smoserum ?14:13
smoseras in you dont like that?14:13
natoriousto clarify, the products I'm currently working on dont use xenstore14:13
natoriousat all14:13
natoriousdunno the full context14:13
smoserdoes rackspace have any that to do your knowledge?14:13
natoriousyea, their public cloud14:14
natoriousthis is how they mine that source too14:14
natorioushttps://github.com/rackerlabs/openstack-guest-agents-unix14:14
natoriousso right now to get cloud-init to work w/ this guest agent14:15
natoriousyou have to tweak the boot order and deps14:15
natoriousbc cloud-init pretty much requires networking to function properly and unless the guest agent has configured it, it wouldn't work14:16
smoserright. 0.7.x definitely does.14:17
natoriouswe were managing that ordering outside of the pkgs though14:17
smoserthat is a primary goal to be addressed.14:17
natoriousk, cool14:17
smoseri kind of talked a bit to the plan for that in my response to claudio14:18
smoseron boot, we have something that goes looking for "network config sources"14:18
smoserthat thing blocks boot until it decides how your networking shoudl be configured.14:19
smoserit configures it, and then lets boot continue.14:19
smoserlater in boot (when network comes up)14:19
smosercloud-init again goes looking for a datasource for user-data, meta-data ... other things.14:19
natoriousmakes sense14:20
smoseri'll start trying to write this better into a spec14:20
smoserit is tricky14:20
smoserbecause figuring out what networking is supposed to be is not easy14:20
smoserand figuring out if this is config you've found should be applied (and possibly overwrite the user's config) is not easy either. ie, if this was a reboot.14:21
smoserhonestly, ditching the "snapshot without clean" thing... woudl make things so much easier.14:21
smosernatorious, i'll look back above at your questions here in a minute.14:25
smoserand will try to write down my theory on boot order for cloud-init into a spec for review.14:25
natoriousty14:26
natoriousI'd like to get this WIP configdrive merge request in today and have a few low fruit hangers left14:35
natoriousor we still waiting for discussion?14:36
smosernatorious, i think we're done with meeting14:37
smoserok... so wht do you want me to look at14:37
natoriousoh, lol14:37
natoriousso is the taskflow bit a + now that 2.7 works?14:37
natoriousI'm finishing load and _get_data for the cd ds and I'll submit it as a WIP.   There were some properties defined in the http ds that were not defined as properties in the base14:38
natoriouswasn't sure if that was intentional14:39
smoserwrt taskflow, i dont know. still need to lok at that. it has quite a dependency chain.14:40
natoriousalso was hoping to chat a bit about BaseOpenStackSource.network_config14:40
smoserand my virutal-env pip install of taskflow jsut failed here... doign a c compile14:41
smoseri'll see if we can't strike that ctaskflow conversation up with Odd_Bloke later. who appears non-present.14:42
smoserok. your questions. you want to go down the list of what you wrote before meeting ?14:42
natoriousreally its just _is_password_set in the  http ds is set as a property but the BaseDataSource._is_password_set is not14:42
jgrimmsmoser, are you cancelling next week meeting?  or still planning to have while you are travelling?14:43
smoserwell, yeah, i'm not going to be there.14:44
smoserbut willsend mail to that affect and say that it can occur in my absense.14:44
jgrimmk14:45
natoriousand the network_config bit which w/ network_json being its own format, should we still plan on returning the json data in those cases and the file content in the other?14:46
natoriouslike type check on the receiving end whatnot?14:46
smoseri think it shoudl be a property in the base class.14:47
smoseras we use it as one in the tests14:47
natoriousah right, I'll include that change in here then too14:48
smosernatorious and "file_content" ? you mean /etc/network/itnerfaces file ?14:48
natoriousyea14:48
natoriousthe projects I'm working on are moving away from that to using network json but the way the ds classes are modeled would mean network_config could then return either or14:50
natoriousjust want to make sure that was acceptable14:50
smoserthe end goal in my head is for cloud-init to read that network_json from its "network config source" (which here is an http source... see the tricky-ness of network config sources ? )14:50
smoserand then turn that into an interneal representation of networking configuration and then render it.14:51
natoriousright, so dhcp to static14:51
smosersince we have multiple different formats we're going to have to read.14:51
smosernetwork_json, /etc/network/interfaces, ec2 metadata format ..14:52
natoriousif the ds class is to process each, its going to take me a bit longer on this14:52
smoserwell, dont worry about "rendering" the network config for now.14:53
natoriousk, so I'll just return it as is and look at either processing it outside of the ds or add to it when I get there14:54
smoserjust have the datasource fetch it. have it available. and some future "render networking" thing will take that as input and do its job.14:54
smoseryeah. i think so.14:55
natoriousfor the configdrive ds there were a few base methods that didn't make sense too. Like post_password and is_password_changed14:55
natoriousthe base doesn't raise an exc so there could be unexpected results down the road14:55
smoseri think NotImplementedError makes sense at least initially14:56
natoriousand thats all I got for now.  Will try and get this w/ some tests in today sometime.  I'll look at some network config bits after this too.  Hopefully get something to test w/ :)14:57
natoriousk14:57
natoriouswhere are you traveling to?14:58
smoserseattle next week.14:58
natoriousah sweet.  If you all end up going to the Austin, TX OpenStack Summit 2016, we should get up for sure15:00
natoriousI live an hour away from Austin15:00
smoserclaudiupopa, what would you use to render your specs/<spec>.rst  ?18:20
harlowjasmoser https://pypi.python.org/pypi/restview18:25
harlowjawhat i do is18:25
harlowjarestview -l :5000 specs/18:25
harlowjathe open a webbrowsr @ localhost:500018:26
harlowjaand bam18:26
harlowja'Every time you reload the page, restview will reload the document from disk and render it. This is very convenient for previewing a document while you’re editing it.' is nice18:26
smoserthanks harlowja18:27
harlowjanp18:27
claudiupopaAaa, cool, didn't know about that, thanks.18:36
harlowjaits pretty nice18:36
harlowjawhat i use for all my rst specs stuffs18:36
smoseri'm guessing there are other tools that do this, and you will just laugh at me, but i had 'venv' to do things like this.19:12
smoserhttps://gist.github.com/smoser/2d4100a6a5d230ca937f19:12
smoserthen i just have a 'restview' file in my ~/bin/19:12
smoser#!/bin/sh19:12
smoserexec venv restview restview "$@"19:12
harlowjasmoser cool, no idea, i have a tool that looks for a .venv on every 'cd' and tries to source it, and on leaving that directory exits the venv21:07
harlowjathat way i can have each repo i work on have a different venv, and just cd .. and all that will enter/exit it21:07
harlowjahttps://gist.github.com/garyjohnson/394c58e22a2adfa103e2 and similar21:08
harlowjavarious ones of those around21:08
=== Guest62625 is now known as mfisch
=== mfisch is now known as Guest49167
=== Guest49167 is now known as mfisch

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