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

smoserparllel data source discovery is not example of failurel there00:42
smoseras each would just append but never pop to stack00:43
smoserharlowja, Odd_Bloke thanks for thoughts.00:44
harlowjasureeee00:44
openstackgerritMerged stackforge/cloud-init: tests: use cloudinit.tests.TestCase everywhere  https://review.openstack.org/20668801:13
harlowja_still_asmoser,  i'm getting 'On 2015-07-31, 7 days from now, your membership05:15
harlowja_still_ain the cloud init development team (cloud-init-dev) Launchpad team' ohhhh my goodddddddd05:15
harlowja_still_aoops05:15
harlowja_still_a'On 2015-07-31, 7 days from now, your membership05:15
harlowja_still_ain the cloud init development team (cloud-init-dev) Launchpad team05:15
harlowja_still_ais due to expire.'05:15
harlowja_still_athat one, ha05:15
harlowja_still_ai don't wanna die05:15
harlowja_still_akeeps on sending that daily, lol05:16
=== natorious is now known as zz_natorious
Odd_Blokesmoser: Each DS would push on to the stack; you'd end up with .../ec2: started, .../ec2/openstack: started, etc.09:06
smoserOdd_Bloke, right.12:30
Odd_BlokeSo that would be a problem, no?12:33
smoserclaudiupopa, Odd_Bloke harlowja14:03
smoserlets do cloud-inti meeting here.14:03
smoserroadmap is https://trello.com/b/HoPNdiTI/cloud-init-development-roadmap14:04
claudiupopahey.14:04
claudiupopaIsn't the reporting merged?14:04
claudiupopaI saw a couple of patches getting it last night.14:05
smoserreviews can be seen at http://bit.ly/cloudinit-reviews-public14:05
smoserreporting is in-progress.14:05
smoserthe reporting infrastructure is there with a logging backend14:06
smoserbut we'll still need a webhook14:07
smoseri started looking at getting that back to cloud-init 0.7 yesterday as I actually need it there RSN14:07
Odd_BlokeI've moved the framework to done, and added a new card for the webhook.14:07
smoserOdd_Bloke, thanks14:07
Odd_Blokesmoser: I feel like we also talked about another thing that needed doing there last week, but I can't remember what it was.14:07
smosermy main remains in stub form https://review.openstack.org/#/c/202743/14:07
smosertoday i have to focus the 0.7 reporting stuff14:10
smoserclaudiupopa, if you want to take a look and thoughts on main, i'm happy to have input.14:10
claudiupopalooking right now.14:10
smoserthere s still a lot of infrasturcture thre that we need14:10
smoser * tie into reporting14:11
smoser * actually implement the search of datasources14:11
smoserclaudiupopa, that was the one thing i went looking for you on.14:11
smoserdidnt' really know how those should be loaded.14:12
smoserdidnt take a huge look, but you werent in14:12
claudiupoparight, I could write a patch for this.14:12
claudiupopabasically getting all the possible data sources and calling .load on them.14:13
claudiupopaIf it returns, that data source is good to go.14:14
smoserright. that'd be good.14:14
smoserwe can do serially loaded now14:14
claudiupopaProbably with some filters, since you will probably want only the net datasources.14:14
claudiupopaThe problem is how to discover them.14:14
claudiupopaI mean, where to look for the possible data sources cloud-init has.14:14
smoserok. so lets do 2 paths14:15
smoser a.) directory relative to __file__14:15
smoser b.) osys "plugins" path14:16
smoser under osys.plugin_path() we'd have a 'sources' dir.14:16
smoserwe would look i guess in 'b' first and then in 'a' ?14:16
claudiupopaosys.plugin_path() for returning the path of the data sources or the plugins (config modules)?14:17
claudiupopaSince the name seems to suggest the latter.14:17
Odd_BlokeWhat about using namespace packages?14:18
Odd_BlokeLet me rephrase that.14:19
Odd_Bloke(As everyone Googles namespace packages)14:19
Odd_Bloke:p14:19
openstackgerritScott Moser proposed stackforge/cloud-init: add cloud-init main  https://review.openstack.org/20274314:19
Odd_BlokeIf we are using a plugin mechanism, I don't think we should have data sources be importable via normal means at all.14:20
smoserclaudiupopa, i was saying the sources woudl be loaded from osys.plugin_path() + os.path.sep + "sources"14:20
smoserin one way or another.14:20
Odd_BlokeOr we need to ensure that they are _all_ importable via normal means; even those that we don't distribute with cloud-init itself.14:20
claudiupopaOdd_Bloke: makes sense.14:21
Odd_BlokeNamespace packages would be one way of doing the latter.14:21
Odd_BlokeThough they might be PITA on Python 2.6.14:21
smoserOdd_Bloke, for the very clueless (smoser) explain a bit more ?14:22
Odd_BlokeSo namespace packages basically let different Python "packages" distribute modules within a particular namespace.14:23
Odd_BlokeSo 'pip install cloud-init' could install cloudinit.sources.foo, and 'pip install cloud-init-obscure-cloud' could install cloudinit.sources.obscure_cloud.14:24
Odd_BlokePresumably downstream packagers have tooling to mirror this.14:24
Odd_Bloke(Certainly we do, I think oslo is distributed this way)14:24
claudiupopaOdd_Bloke: how does the discovery works in that case? Is there an api for retrieving the packages from a given root point?14:25
claudiupopaNot very familiar with them either ;-)14:25
Odd_BlokeWe would still need a discovery mechanism, I think.14:25
smoser:)14:25
smoserthanks for asking for  me, claudiupopa . i'm aware you're just trying to make me feel like less of an idiot14:25
Odd_BlokePossibly our best bet here is to describe what we want from a plugin-type system, and let claudiupopa go away and work something out.14:26
Odd_BlokeThen we can tell him he's wrong next week. ;)14:26
claudiupopa;-)14:26
Odd_BlokeBut I feel like if we're diving in to the paths that plugins will be loaded from, we may be dismissing other solutions.14:27
smoserok. claudiupopa you want to think about that a bit ? you can add a card there if you want.14:27
smoserOdd_Bloke, how so ?14:27
smoserOdd_Bloke, i very much want to be able to document "if you put sources in this static directory path, then cloud-init will find them"14:27
smoserand the same for config modules14:27
smoserand part handlers14:28
smoserand such14:28
Odd_BlokeYeah, absolutely.14:28
claudiupopayeah, I'll look into this, since it's something that I should do for cloudbase-init as well.14:28
smoseri dont care necessarily how we get there, but that is something i want.14:28
Odd_BlokeBut, for example, do we mean static, or do we mean static-relative-to-the-cloudinit-python-package?14:28
Odd_BlokeAnd if the former, where in the FHS should that live.14:29
Odd_Blokeetc.14:29
Odd_BlokeI'm on another call now, so I won't reply for a while.14:29
Odd_BlokeBut will catch up when I'm off.14:29
smoserOdd_Bloke, we mean both.14:30
smoser:)14:30
smoseras in ubuntu packages should be able to install sources alongside of cloudinit.<stuff>14:30
smoserand vendors or developers shoudl be able to put them in /var/lib/cloudinit/sources14:31
claudiupopasmoser: left a couple of comments on the main executable thing.14:38
smoserclaudiupopa, thank you!14:39
claudiupopayeah, the last comment does not make sense.14:41
claudiupopaOn the review I mean.14:41
smoserit confused me14:42
smoserYou mean val.get('opts', {})? Otherwise the unpacking will fail in the case opts does not exists.14:42
smoserisn't that what i have ?14:42
smoser(i was typing that there)14:42
claudiupopaYeah, I didn't notice that opts is already a tuple and for a, b in {} works, since it's empty.14:43
smoserok. i see. does *not* make sense.14:44
smoseri completely ignored the word 'not' above14:44
Odd_Blokesmoser: I haven't used it, but do you think it's worth having the meeting bot for these weekly meetings?14:57
smoseri'm not opposed to it.14:58
smoseri went asking for ubuntu logger bot the other day14:58
smoser*really* want that14:58
smoseri dont really care about the meeting bot so much14:59
smoserbut want logging and "bug links"14:59
Odd_BlokeBetter record an action with the meeting bot.14:59
Odd_Bloke;)14:59
=== zz_natorious is now known as natorious
=== natorious is now known as zz_natorious
harlowjasup17:20
harlowjau guys want to have meetings?17:20
harlowjalike via http://eavesdrop.openstack.org/ ?17:21
harlowja'Meeting schedule' there?17:21
smatzekI would be in favor of scheduled meetings to discuss design, direction, issues, etc.  I actually have to drop now so I can't chat more, just putting my 2 cents in.17:47
smoserharlowja, smatzek well, we kind of have a 10:00 US/Eastern meeting on Wednesdays17:58
smoserand you're both invited.17:58
harlowjaah17:58
harlowjadamn thats like super-early17:58
harlowjalol17:58
* smoser thinks that smaztek is less lazy than harlow and might be up then17:58
harlowjaha17:58
smoseryeah, 10:00 sure is early17:58
harlowja7am17:58
harlowja(my time)17:58
smoserrelocate to where the sun shines in proper hours17:58
harlowjalol17:58
smoserhey, you can probably help me17:59
harlowjawell i was gonna move into your basement17:59
smoserlooking at my main thingy17:59
harlowjabutttt u already occuping your basement17:59
smoserhttps://review.openstack.org/#/c/202743/517:59
harlowjau have killed it17:59
harlowjalol17:59
harlowja*killed jenkins, lol17:59
smoseri addressed / was addressing cladiu's request to not pass function names in but actually callables17:59
harlowjak17:59
smoserbut then my test started to fail because mock mocks "too late" I think18:00
smoserwhat is there + http://paste.ubuntu.com/11961057/18:00
smosershows the issue. mock doesnt realize that main_version got called18:00
smoserbut it very clearly does18:01
smoser http://paste.ubuntu.com/11961063/18:01
harlowjahmm18:01
harlowjaya, its probably all those functions getting captured into SUBCOMMANDS18:02
smoserright.18:02
smoserSUBCOMMANDS gets a reference18:02
smoserand mock doesnt patch that ref.18:02
harlowjaright18:02
harlowjaif its get_subcommands() that returns a dictionary, i wonder if it would work then18:02
harlowjalate binding them18:03
harlowja*could even return the same dictionary, but python binding i think will then happen when the dictionary is created, and therefore mock can affect things18:03
smoser:)18:03
smoseri think i'm gonna just drop the test as it doesn't actualy do anything that wasn't done other place.18:04
harlowjaor that18:04
smoseras i was testing hat main_version has expected output :)18:04
harlowjaya, those kind of tests i always wonder about18:04
harlowjaaka, sorta feel they are useless lol18:04
openstackgerritScott Moser proposed stackforge/cloud-init: add cloud-init main  https://review.openstack.org/20274318:07
=== zz_natorious is now known as natorious

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