Friday, 2016-11-11

*** VW has joined #craton00:05
*** VW has quit IRC00:50
*** VW has joined #craton01:11
*** VW has quit IRC01:49
*** VW has joined #craton01:52
*** syed__ has quit IRC01:55
*** Mudpuppy has quit IRC02:17
*** jovon has quit IRC02:17
*** Mudpuppy has joined #craton02:47
*** Mudpuppy has quit IRC02:52
*** VW has quit IRC03:15
*** harlowja has quit IRC03:33
*** tojuvone has quit IRC03:44
*** valw has joined #craton03:49
*** valw_ has joined #craton04:02
*** valw has quit IRC04:04
*** VW has joined #craton04:12
*** tojuvone has joined #craton04:16
*** tojuvone_ has joined #craton04:16
*** tojuvone has quit IRC04:17
*** tojuvone_ has quit IRC04:17
*** harlowja has joined #craton04:38
*** VW has quit IRC04:40
*** valw_ has quit IRC05:17
*** valw has joined #craton05:18
*** VW has joined #craton05:33
*** VW has quit IRC05:38
*** harlowja has quit IRC05:51
*** harlowja has joined #craton05:52
*** VW has joined #craton07:35
*** VW has quit IRC07:40
*** valw has quit IRC07:47
*** valw has joined #craton07:56
*** harlowja has quit IRC08:03
*** VW has joined #craton09:38
*** VW has quit IRC09:43
*** VW has joined #craton10:40
*** VW has quit IRC10:46
*** Mudpuppy has joined #craton10:51
*** Mudpuppy has quit IRC10:56
-openstackstatus- NOTICE: Our OpenStack CI systems are stuck and no new jobs are submitted. Please do not recheck - and do not approve changes until this is fixed.11:59
*** Mudpuppy has joined #craton12:48
-openstackstatus- NOTICE: Our OpenStack CI system is coming back online again. Thanks for your patience.12:58
*** VW has joined #craton13:16
*** VW has quit IRC13:21
*** VW has joined #craton13:28
*** VW has quit IRC13:30
*** Mudpuppy has quit IRC13:43
*** valw has quit IRC14:12
*** syed__ has joined #craton14:23
*** VW has joined #craton14:33
*** VW has quit IRC14:37
*** Mudpuppy has joined #craton14:57
*** valw has joined #craton15:02
*** valw has quit IRC15:10
*** jovon has joined #craton15:10
*** valw has joined #craton15:23
*** valw has quit IRC15:35
*** valw has joined #craton15:37
sigmavirusSo, I haven't tested this at all, but https://review.openstack.org/396678 is the start to the caching work on cratonclient15:46
sigmavirusIt *might* Just Work™15:46
sigmavirus^ jimbaker sulo palendae odyssey4me15:46
*** valw has quit IRC15:55
*** valw has joined #craton16:02
jovonit was brought to my attention that flask-autodoc is a better solution to generate docs because it automatically creates documentation for your endpoints based on the routes, function arguments and docstrings. Should the manual efforts here: https://review.openstack.org/#/c/390386/ be ditched in favor of this method?16:02
sigmavirusjovon: so, all of the big tent projects document their APIs manually16:09
sigmavirusAnd none of them use flask16:09
sigmavirusI suspect we should move on with manually documenting our API because otherwise we're going to be too tightly tied to flask16:10
jovonI see your point. I'll continue on then.16:11
*** VW has joined #craton16:11
jovonthank you16:11
git-harrysigmavirus: I wouldn't describe it as being tied. All the docs would be in the method doc strings. Manual seems like wasted effort but if going that way it would probably make sense to use https://github.com/openstack/os-api-ref16:12
sigmavirusgit-harry: os-api-ref was going to be a suggestion, but I think we've had jovon stuck with this work quite a while16:14
jovoni don't mind. i just want this to be done correctly and efficiently16:16
git-harrysigmavirus: if the rest of OpenStack isn't using flask, why was it chosen for this project?16:17
sigmavirusgit-harry: there are non-big tent projects that use it and it's good for rapid prototyping16:18
*** valw has quit IRC16:53
*** valw has joined #craton16:55
*** david-lyle has quit IRC16:58
*** tojuvone has joined #craton17:06
*** tojuvone_ has joined #craton17:06
*** tojuvone_ has quit IRC17:07
sulosigmavirus: can you give your thoughts on https://review.openstack.org/#/c/360605 as well17:26
suloi want to make sure i capture eveyones view before making more changes17:26
sigmavirussure, will be right back and then give thoughts17:27
*** valw has quit IRC17:49
*** valw has joined #craton17:55
*** david-lyle has joined #craton17:58
*** valw has quit IRC17:59
*** david-lyle has quit IRC18:03
jimbakergit-harry, flask is used iirc by designate18:07
jimbakerand is in global requirements18:08
jimbakermore importantly, we didn't see a need for building out code unnecessarily with async approaches. all interaction with the db is sync, which means that complex models in sqlalchemy work without bugs (very important!)18:09
*** valw has joined #craton18:09
jimbakerand taskflow can do things independently in a worker pool18:09
jimbakersulo, re http://specs.openstack.org/openstack/api-wg/guidelines/pagination_filter_sort.html#filtering and https://review.openstack.org/#/c/360605/18:11
jimbakerhow about this approach18:11
jimbaker?vars=x:in:baz, etc18:12
jimbakerthis means that if the value we are matching against has an embedded colon, it needs to be urlencode18:13
jimbakerd18:13
jimbakerbut that might be reasonable for supporting this for vars18:13
*** VW has quit IRC18:13
jimbakeralso we can do the same operators for well-known reserved keys18:13
*** valw has quit IRC18:13
jimbakeranyway, i will discuss more on the change proposal18:14
*** VW has joined #craton18:22
*** VW has quit IRC18:26
sigmavirusgit-harry: that was a great review btw18:27
suloyes, +118:32
suloone other feedback i got was  is that other project like nova, are removing this type of filtering since it causes problems with the db and acts like a Ddos vector. So I am now thinking this would be more of a problem with us as the data grows.18:33
suloso another view here is not to allow this type of query at all18:33
suloso no filter when its un indexed18:34
*** valw has joined #craton18:36
*** david-lyle has joined #craton18:36
sigmavirushm18:37
sigmavirussulo: so maybe, but nova and craton have fundamentally different user-bases and expected sizes of users, no?18:38
sigmavirusI'm not saying we should do it, but I would expect that craton's not going to have that kind of trouble18:38
suloperhaps, but the problem is still the same, more true for us than nova i would think18:38
suloi expect the data part to be the most bulky info for each resource18:39
sulobut either ways .. i think we have a good path forward .. either not allow, but if allow .. do ?vars=x:y18:40
sulowe should probably  not worry about operator filtering .. cuz that even crazier query18:40
*** valw has quit IRC18:41
*** VW has joined #craton18:49
*** VW has quit IRC18:54
*** harlowja has joined #craton18:55
jimbakersulo, agreed with deferring on operator filtering for now18:57
jimbakersimplifies the change18:57
jimbakerre user base: yeah, i don't think we are ever going to be public facing with these APIs, but a badly implemented worker could still do a DOS :)18:58
jimbakerand sounds good about ?vars=x:y  - this makes me happy18:58
sulojimbaker: yeah, well i have quite  a few experience in public cloud where its easy to kinda dos .. take one of the bigger regions18:59
suloso i do think its kinda important to keep this in mind18:59
*** VW has joined #craton19:00
suloi tihnk once we have the feature .. its harder to stop bad usage i guess19:00
*** valw has joined #craton19:00
sulothe good thing is this discussion is making us think about all this19:01
syed__sigmavirus: a quick question. https://github.com/openstack/python-cratonclient/blob/master/cratonclient/v1/regions.py#L3219:01
syed__Is this populated from schema ..19:01
sigmavirussyed__: I would ask chrisspencer how he decided what should be in that (and the other similar dictionaries)19:02
syed__sigmavirus: Cool, yeah will do that, thanks19:03
sigmavirussyed__: please do let me know when you've found out :)19:03
syed__sigmavirus: sure19:03
*** klindgren__ is now known as klindgren19:03
chrisspencersyed__ sigmavirus those were created from the original class UML diagrams (not sure where they ended up after we moved to openstack infra)19:08
syed__cool, thanks chrisspencer19:12
jimbakergit-harry, good catch on that review - nothing like demonstrating a problem!19:12
syed__sigmavirus: should i just go and fix that in regions, cells, hosts etc19:12
jimbakeranyway, by pulling operator support out, we will have something more manageable for that review - and hopefully a better query mechanism in the future. i think we will want operators at some point19:14
jimbakerbut one concern: we will want the operators to be json aware19:14
*** valw has quit IRC19:14
jimbakersome variant on jsonpath? probably a good idea19:14
sigmavirusjimbaker: jsonpatch you mean?19:18
sigmavirussyed__: go for it19:19
syed__sigmavirus: cool, on it19:19
*** valw has joined #craton19:22
*** valw has quit IRC19:26
*** valw has joined #craton19:36
*** valw has quit IRC19:59
*** valw has joined #craton20:04
sigmaviruspalendae: dogpile has file backends and that review includes one way of using a filebackend20:20
palendaeOh, I missed on_disk20:21
palendaeThanks20:21
sigmaviruspalendae: happy to help :)20:26
sigmavirusjust updated that patch too with tests20:26
*** valw has quit IRC20:28
*** valw has joined #craton20:35
*** valw has quit IRC20:51
*** valw has joined #craton20:52
syed__sigmavirus: Just for my knowledge, https://github.com/openstack/python-cratonclient/blob/7562ab3e3a13f9e463123deeed05ab994bc12363/cratonclient/tests/unit/shell/v1/test_hosts_shell.py#L25721:02
syed__sigmavirus: What is access_secret_id for ? If we go by schema then there shouldn't be any such thing too. Just double checking21:02
sigmavirussyed__: I didn't write the shell. I wrote tests so refactoring the code would be doable21:05
syed__sigmavirus: cool21:05
sigmavirussyed__: if --access-secret-id is no longer a thing tear out the stuff related to that if you must21:05
sigmavirusI'd ask jimbaker and sulo though whether there were plans to add that21:05
syed__sigmavirus: okay, thank you21:06
chrisspencersyed__ sigmavirus before removing all of those, verify with jimbaker and sulo to make sure those items will not be part of implementation going forward.  I had added those based off of their initial docs21:13
syed__chrisspencer: cool, thanks21:13
sigmavirussyed__: if they're going to be there, we can comment them out for now21:15
sigmavirusAnyway, I'm off for the day. See y'all Monday21:15
syed__sigmavirus: thanks, have a great weekend21:16
*** valw has quit IRC21:29
*** Mudpuppy_ has joined #craton21:30
*** harlowja has quit IRC21:32
*** Mudpuppy has quit IRC21:33
*** Mudpuppy_ has quit IRC21:34
jimbakersigmavirus, no, jsonpath for query filters21:51
jimbakersyed__, access_secret is not yet a thing, but we will be supporting in the future21:52
jimbakerbasically it's what we need for a worker to connect to a target device21:52
syed__jimbaker: cool, will comment that out then so in case when we do need in future will pick up from there21:52
jimbakersyed__, it's fine to do that, i don't believe it's exposed by the REST API21:53
syed__cool.21:53
*** VW has quit IRC22:12
*** VW has joined #craton22:12
*** VW has quit IRC22:16
*** VW has joined #craton22:36
*** VW has quit IRC22:40
*** harlowja has joined #craton23:01
*** VW has joined #craton23:03
*** VW has quit IRC23:08
*** VW has joined #craton23:30
*** VW has quit IRC23:34
*** VW has joined #craton23:37
*** VW_ has joined #craton23:39
*** VW has quit IRC23:42
*** VW_ has quit IRC23:44

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