16:00:09 #startmeeting craton 16:00:09 #chair sigmavirus sulo jimbaker thomasem 16:00:09 #link https://etherpad.openstack.org/p/craton-meetings 16:00:09 Meeting started Thu Mar 23 16:00:09 2017 UTC and is due to finish in 60 minutes. The chair is thomasem. Information about MeetBot at http://wiki.debian.org/MeetBot. 16:00:10 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 16:00:11 #topic Roll Call 16:00:13 The meeting name has been set to 'craton' 16:00:14 Current chairs: jimbaker sigmavirus sulo thomasem 16:00:19 o/ 16:00:33 o/ 16:02:24 jimbaker: sigmavirus:? 16:02:30 o/ 16:02:34 git-harry: ? 16:02:36 o/ 16:02:40 o/ 16:03:01 hi 16:03:10 tojuvone: ? 16:03:15 hi 16:03:36 #topic Stand Up 16:03:43 #info each team member briefly describes what they are working on this week, and describes blockers (if there are any) 16:03:51 #topic Stand Up :: thomasem 16:04:36 Working on JSON Path some more. Really far along, I'm keeping it up-to-date here: https://review.openstack.org/#/c/443941/. I see git-harry reviews and appreciate his comments (and agree, I was on the fence anyway about the JSON approximation) 16:05:20 Adding handling for invalid JSON path expressions so we're not returning 500s over it and finishing up testing. Looking into the bug that git-harry found in that patch, too. 16:06:10 done 16:06:17 #topic Stand Up :: anonymike 16:06:39 Working on setting up my environment and getting familiar with the code. I've submitted a few updates to the installation docs and I'm currently working on touching up the "wrapper functions" script to quick launch craton and easily hit the api. 16:06:42 done 16:06:54 #topic Stand Up :: sigmavirus 16:07:29 Wrapping up cratonclient docs/betamax work for tomorrow (which is my last day) 16:07:33 Trying to do reviews for others 16:07:37 16:07:43 :'( 16:07:51 we will miss sigmavirus 16:07:57 nah, I'm a pain in the toe 16:08:00 indeed 16:08:07 :( 16:08:08 thanks for taking my side thomasem 16:08:09 =P 16:08:17 minor pain, still can run with that pain in toe 16:08:18 sigmavirus: see, it could be an answer to both. 16:08:27 :P 16:08:37 #topic Stand Up :: jimbaker 16:08:38 :/ 16:08:47 clever 16:08:49 reviews, trying to understand betamax 16:09:09 (and why it's failing for me - sigmavirus and i were just going through a debug on that) 16:09:22 need to finish up alembic 16:09:25 done 16:09:39 #topic Stand Up :: fsaad 16:10:20 'grats on yesterday's demo I think it went well regardless of what it seemed like :) 16:10:32 +1 16:10:42 :) Thank you! 16:10:45 I'll be poking support for that subset of variables that would be useful to have in the host show 16:11:01 fsaad: I didn't attend that, are there any action items from it? 16:11:02 and also procuring hardware for the craton server today 16:11:08 done 16:11:17 git-harry: I think so, we can chat after standup! 16:11:23 #topic Stand Up :: git-harry 16:12:00 Mostly review related stuff. 16:12:01 done 16:12:15 #topic Stand Up :: tojuvone 16:12:21 OPNFV summit CFP and Nova side of the planned host maintenance. 16:12:28 done 16:12:34 #topic Stand Up :: antonym 16:13:42 did some doc work and working on getting my provisioning env with craton set up in physical server lab (has graduated from running on fusion), also thought about putting together some docs with ansible use cases like using the uri module with craton for people to have some examples to start from 16:13:55 done 16:14:03 +1! 16:14:36 #topic git-harrry's question regarding action items from demo yesterday 16:14:49 Wow, Harry, you got an extra "r" on the house. 16:15:14 blame autorepeat setting... 16:15:19 I bet harry thought to himself, "arrrrrr matey" 16:15:23 I have mine set pretty high. 16:15:34 or low... as the case may be. 16:15:44 just giving you cover that's all 16:15:55 Anyway, the question was "11:11 git-harry: fsaad: I didn't attend that, are there any action items from it?" 16:15:59 Thanks jimbaker! :P 16:16:20 so two items 16:16:39 1. get the exact data loaded that support requested 16:16:54 2. be able to show a subset of variables 16:17:30 it also prompted some side conversations i had with thomasem re possibility of adding elasticsearch support to craton earlier than later 16:18:05 I thought we'd already sourced the right data, what was wrong with it this time? 16:18:10 I'd say we focus on #2 16:18:16 can work with Tim on #1 16:18:38 git-harry: it was missing, like, package information, iirc. 16:18:43 right, the craton's team focus is on #2 16:18:45 but if one of you feel like working on data loading while he's out, his script is publicly accessible too 16:18:50 yeah 16:19:26 there were are also some other questions raised by tim - such as how to work with large result sets in the client 16:19:27 I'm glad we're at the point where we recognize this isn't craton's problem per-say 16:19:35 basically he was using --limit, but not --marker 16:19:45 sigmavirus: which part? 16:20:08 jimbaker: I think he was expecting it to just paginate automatically to the specified limit. 16:20:17 thomasem, exactly 16:20:26 thomasem: the part of loading in package info 16:20:31 which the client could readily do if we wanted to have that support 16:20:36 cratonclient's shell can autopaginate if we want 16:20:42 given underlying generator 16:20:44 that's like a 1 line change 16:21:00 yeah, sounds about right 16:21:02 or maybe 5 (one for each -list command, idk) 16:21:16 #link https://github.com/pwnall1337/ops-generic/tree/master/osops_common 16:21:38 He also ran into some bug with --limit when it was kind of low? I don't know what the boundaries there are, but he was getting 400s all of a sudden. 16:21:49 I don't think he filed a bug about it yet, though? 16:21:56 no bug 16:22:01 Like --limit 2 was giving 400s? 16:22:13 right, that's a real bug 16:22:28 given --limit passes straight through 16:22:32 No, I think the schema enforces a minimum 16:22:34 Yeah, it was weird. 16:23:00 ahh, good point git-harry. still might be worth having limit have a min of say 1 16:23:05 Yeah, minimum is 10 16:23:05 Then we need better messaging around that, or to remove the minimum... why have a minimum? 16:23:08 Ahhhh 16:23:18 that's a useful limit 16:23:25 The client doesn't expose error messages 16:23:27 min of 1 is, yes. 16:23:33 i just want ONE item 16:23:35 min of 10 I'm not sure I understand. 16:23:51 so two bugs here, plus a feature change 16:23:59 or something like that 16:24:05 lol 16:24:47 1. client should report errors precisely from api server; 2. limit of 1 is fine; 3. limit of anything is also fine, and should use underlying autopaginate 16:26:42 so that will fix up some usability issues 16:26:53 For the issue with -show: https://bugs.launchpad.net/python-cratonclient/+bug/1675410 and I'll be creating another (or adding to this one) regarding affording for specifying variables to extract, and possibly RegEx support later on. 16:26:53 Launchpad bug 1675410 in Craton's Python Client "Add fields selector to -show commands" [Undecided,New] 16:27:13 thomasem, +1, this is the big ask from support 16:27:30 and easy enough to support 16:28:08 Alright. Any other questions on that topic? 16:28:11 i should mention that one more thing that came up related to variables is that loading from ansible is not always going to produce highly useful things to search against 16:28:15 or comments/concerns 16:28:53 i forget the exact one, but this was with respect to a list of processor strings. or was it even a list - could have been one big string 16:28:57 And, not sure about what the environment looked like, but the search was pretty slow over a really small amount of data with the nested var search. 16:29:37 jimbaker: that sounds like a user problem 16:29:39 Would be good to figure out JSON column indexing and how that might help us. Again, this is where I think Elasticsearch would outshine our nested var searching. 16:29:45 thomasem, yeah, because we have no indexing on that json stuff. it's even worse because the alembic change i have under review did add a useful index for k/v search 16:29:58 to at least make that part work better 16:30:19 so must get alembic change in, even subsetting with respect to keys would be far better 16:30:32 I still think at some point we're going to have to set some defined boundaries on what this nested stuff can do and say that for everything else, we need to use ES. 16:30:37 Gotcha 16:30:39 thomasem, agreed about elasticsearch 16:30:55 i think we could readily do the following for craton 16:31:03 elasticsearch + kibana 16:31:09 as a dashboard 16:31:48 just requires a small amount of work to aggregate docs into elasticsearch 16:32:15 there are some issues here, such as how do we integrate our security model with elasticsearch 16:32:25 but it would demo well before we get to that point 16:32:38 +1 16:33:07 but it would be a fairly simple matter of programming to iterate over resources; dump into elasticsearch with the python interface it supports (use bulk mode) 16:33:36 i bet anonymike could get this going in an afternoon... 16:33:40 :) 16:33:43 ;) 16:33:50 Yeah, we can address the "how" more when we get someone dedicated to getting that running and documenting it. 16:34:08 i suggest we just do a little skunkworks to try out something 16:34:13 Okay 16:34:17 then we can go back & figure out proper integration 16:34:44 given we know that elasticsearch has everything we need for security integration, plus keeping stuff live via its replication model 16:35:04 jimbaker: I believe git-harry mentioned that the variable bloat from loading useless things from Ansible was a user concern. 16:35:20 thomasem, but that's more of a question of filtering i think 16:35:58 nothing i have seen is even close to something that would be expensive to manage in a database, assuming proper indexing 16:36:12 but it's super painful right now from the CLI 16:36:56 The comment was specifically about loading variables from Ansible, though. "related to variables is that loading from ansible is not always going to produce highly useful things to search against" 16:36:58 it only takes a few kilobytes to be too much on the CLI. but megabytes... mysql has no problem 16:37:12 thomasem, agreed. lots of chaff 16:37:16 Which I believe is where git-harry's comment came from. Basically: Cool, don't load variables you don't care about. 16:37:34 got distracted, fwiw, the pagination minimum amount was agreed upon in the specification 16:37:46 right. and at least know what you want to filter on/search for/and be reasonable about you organize 16:37:50 sigmavirus: interesting. I'll have to go look and see the rationale. 16:37:51 so y'all need to update the spec in addition to updating the code =) 16:38:14 thomasem, and it could be more of the CLI should just the smart thing 16:38:32 jimbaker: showing better messages from the CLI is absolutely a good goal too =) 16:38:33 you want --limit=1 - fine, i will just give you the first item 16:38:40 But yeah, I think ES is also necessary for everything we're talking about 16:39:09 also, I wanted to do the limitations on 'limit' in a pre-processing function instead of the schema but was directed to use the schema 16:39:18 doing it in code would have allowed us to just return 10 instead of returning a 400 16:39:47 yep, so anonymike, sound like a fun task for you? seems like right up your alley 16:39:53 in terms of elasticsearch 16:40:01 jimbaker: elasticsearch? 16:40:04 yezzir 16:40:09 Excellent! 16:40:10 awesome 16:40:22 anonymike++ 16:40:23 new guy, gets to work on fun stuff. what can be better? :) 16:40:31 :D 16:40:54 seriously, it's pretty good, because we need more eyeballs on that python client 16:41:09 and this is a good place to try it out 16:41:42 and if by chance we have something to demo next week, well i would never complain about that... 16:42:15 Okay, cool. So, we have some bugs to write, it sounds like. 16:42:18 I better get started :) haha 16:42:20 And BPs 16:42:26 * sigmavirus nods 16:42:36 yep 16:42:40 might be worth updating the spec template to include a place to log updates 16:42:59 except for you anonymike - you can just figure stuff out, and report back to us 16:43:00 some amendments section 16:43:02 (since it sounds like you'll be updating the pagination-spec and something like that might be useful to track the documents changes for people without their hands on the git repo) 16:43:21 thomasem: exactly 16:43:33 jimbaker: sure, sounds good 16:45:36 jimbaker: you want to take the BP for ES/Kibana and feature change for "limit", and I'll take writing up the client bugs? 16:45:38 anonymike, at some point, we will also want to look here - https://github.com/noplay/python-mysql-replication 16:45:52 thomasem, no BP yet for ES/kibaba 16:45:57 kk 16:46:06 we are going to skunkworks this first, just to get an understanding of what's there 16:46:46 Lol, okay. It's either/or, to me. I just wanted something to communicate what anonymike is working on, is all, and a place to put notes and such for what's found. 16:47:12 Anyway, however we wish to run this deal. 16:47:19 jimbaker: something like this? https://github.com/scharron/elasticsearch-river-mysql 16:47:46 anonymike, it is, but rivers are now deprecated in ES 16:48:03 ha yeah, last update 5 yrs 16:48:20 in general, we have to do this at a higher level 16:48:35 the notification can say - the underlying doc needs to be updated 16:48:45 but it has to understand the model of the system 16:48:55 vs just raw table stuff 16:49:34 so i think this starts getting more into blueprint level considerations - and why pushing this aspect out a bit 16:49:56 Alright, we're coming up on 10 minutes left. Any other topics folks want to bring up before we run out of time? 16:50:01 but a huge advantage of ES/kibana is we see changes over time 16:50:08 thomasem, i'm good 16:50:41 #topic Open Discussion 16:51:20 Alright. Sounds like we've got a plan and a lot of good ideas came out of the demo. 16:51:36 yep 16:52:22 Priorities are modifying the loading script and affording for the client to configure `--fields` with some variable selection, too? 16:52:45 Once existing priorities are sorted, of course, being the Alembic stuff, nested var search, and... 16:53:08 +1 16:53:12 I think that's it that's remaining? 16:53:21 From Monday's meeting. 16:53:34 So let's finish it up. 16:53:41 And move on to the priorities from our demo 16:53:56 thomasem / all: so does https://bugs.launchpad.net/python-cratonclient/+bug/1675410 mean we don't need to wait for support to provide a list of default fields to show in host-list ? 16:53:56 Launchpad bug 1675410 in Craton's Python Client "Add fields selector to -show commands" [Undecided,New] 16:53:58 right such as fix client up with respect to --limit=1 to whatever - no change needed in rest api 16:53:59 or still would be nice to have ? 16:54:25 fsaad, i think we can skip that for the moment 16:54:34 fsaad: it'd be nice to have, but I'm hoping it'll make it so they can get whatever variables they care about themselves. 16:54:47 whatever fields/variables 16:54:49 thomasem and i were discussing that this gets into a more general conf system 16:54:57 for client expectations 16:55:10 otherwise it feels sort of ad hoc 16:55:53 Imagine how bad --details will look in a host-list, though? 16:56:02 assuming that causes it to include the variables... 16:56:07 thomasem, indeed, megabytes! 16:56:20 looks great with --format=json 16:56:24 however 16:56:25 Haha, right 16:56:30 tabled, though... ouch 16:56:57 there is no good answer here. but again i think the idea you proposed of putting stuff in columns by --field is a great one 16:57:03 cool 16:57:05 (does it imply details btw) 16:57:29 I suppose... but isn't all that --details does is include variables? 16:57:33 for now 16:57:36 Gotcha 16:57:37 Okay 16:57:40 it should also include labels etc 16:57:47 Ahhh right 16:57:48 okay 16:58:00 the underlying thing is ?details=all - with the implication that it could be mean less 16:58:07 Wells, I'll finish fleshing out the bug(s) and we can discuss from there 16:58:10 or some interesting subset 16:58:21 what are my role assignments? etc etc 16:58:45 --fields id, name, roles, var:host_facts.os 16:58:48 children... 16:58:55 lots of possible stuff to show 16:59:10 anyway, probably wrap up. not going to do all that today 16:59:15 Alright, coming up on close of meeting. 16:59:27 3... 16:59:29 2... 16:59:34 1... 16:59:37 #endmeeting