18:00:23 #startmeeting trove-bp-review 18:00:24 Meeting started Mon Jul 14 18:00:23 2014 UTC and is due to finish in 60 minutes. The chair is SlickNik. Information about MeetBot at http://wiki.debian.org/MeetBot. 18:00:25 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 18:00:27 The meeting name has been set to 'trove_bp_review' 18:00:35 o/ 18:00:39 o/ 18:00:41 o/ 18:00:43 o/ 18:00:48 \o 18:00:59 o| 18:01:04 Agenda for the meeting at: 18:01:06 \o/ 18:01:06 #link https://wiki.openstack.org/wiki/Meetings/TroveBPMeeting 18:01:06 o/ 18:02:21 o/ 18:02:33 o/ 18:02:42 o/ 18:03:00 #topic New API call to get the default configuration values for a specific datastore version flavor without an instance 18:03:19 cp16net: around? 18:04:24 SlickNik: yeah 18:04:26 i'm here 18:04:28 o/ 18:04:40 * cp16net was off in lala land for a min :-P 18:05:02 So I had a couple of questions. 18:05:04 Is that the place Loney Tunes characters go when they say "ooh la la!" 18:05:05 ? 18:05:39 yeah so this was asked from some ui devs that wanted to present the defaults of a configuration that isnt attached to an instance 18:05:59 This is just a call to get the default config params per flavor, right — no tackling setting of defaults? 18:06:37 the idea i have is to read the template based on flavor/datastore version and present it to the user 18:07:04 SlickNik: so yeah just a simple GET call for these vaues 18:07:07 values* 18:08:08 any questions about the use case? 18:08:13 So i have 2 things about the proposal 18:08:27 1. i don't agree with the URL -- why do you have flavor_id as part of the URL 18:08:52 2. we call the defaults that ocme back on an instance 'parameters'.. should this be named similarly 18:09:03 i.e GET /instances/{instance_id}/parameters 18:09:15 1. so based on a template it could change per flavor size (memory settings) 18:09:39 2. i would agree with you on that. 18:09:50 cp16net vipul: regarding #1, would it be acceptable if it was in their but the path put flavor right after the dv_id? 18:09:59 so is there another way to specify flavor outside of the path? 18:10:02 So that would be /datastore/version/{dv_id}/{flavor_id}/parameters 18:10:37 grapex: that would be better.. configuration/{flavor_id} makes it seem like flavor_id should be the id of configuration 18:11:05 vipul: In many ways it is. Operators can already specify a configuration template using a flavor 18:11:09 What if in addition to that 18:11:10 grapex: brings up a point that i noticed for some calls like this one 18:11:37 we are not really following a RESTy call here 18:11:45 its more like a shim to get the data we need 18:12:21 yea.. ideally it would be a filter via query string 18:12:43 filters are just a pain in the arse with how they work today 18:12:52 vipul: I think there's some issues here though because an operator can create templates for each flavor. To me that means they deserve a complete REST path 18:13:01 cp16net: i just added a filter for clustering; there's a bit of a trick to it, i can give you some pointers 18:13:01 somethign like /datastore/version/{dv_id}/parameters may return something generic.. but /datastore/version/{dv_id}/parameters?flavor_id=xxx woudl return something specific to that flavor 18:13:24 amcrn: ok 18:13:46 vipul cp16net: So I'm curious why considering the pairing of a datastore version and a flavor in a rest url would be a bad thing. 18:14:32 do configuration groups belong to datastore_version + flavor, or do they belong to datastore versions 18:14:33 i dont think its a "bad thing" but just the relationship between the noun and ids dont match 18:14:46 vipul: They do both 18:14:56 ds_version and instance 18:15:18 rather and/or 18:15:26 cp16net: But you added code so an operator can uniquely identify a config via a ds_version and a flavor 18:15:37 grapex: correct 18:15:46 the fact that you can get defaults per flavor doesn't necessarily mean that they are full on resources that a flavor owns 18:16:15 like cp16net said, the full on resource actually belongs to an instance + datastore 18:16:38 #info https://github.com/openstack/trove/blob/master/trove/templates/mysql/config.template#L16 18:16:45 or i guess that shoul dhave been a link 18:16:51 #link https://github.com/openstack/trove/blob/master/trove/templates/mysql/config.template#L16 18:16:58 vipul: but we're not talking about instance + ds_version but the default templates which are grouped via ds_version and, optionally, flavors 18:17:19 so this default template has a different key_buffer_size per flavor 18:17:32 even tho the template is the "base" one 18:17:48 so you still need a flavor 18:18:12 Ok- so let's go with the query parameter. If you don't specify it, what would you see for "key_buffer_size"? 18:18:23 what about /datastore/version/{dv_id}/configuration/flavor/{flavor_id}? It is a bit verbose.. but more resty 18:18:27 In the call to get defaults from the API, what would that look like if a flavor wasn't specified? 18:18:31 an exception 18:19:02 (i assume) 18:19:07 robertmyers: might know better 18:19:18 Look at this: https://github.com/openstack/trove/blob/master/trove/common/template.py#L87 18:19:30 So apart from figuring out the right URI for this, are folks good with the BP? 18:19:53 cp16net: to go back to the purpose of this change, i'm not sure why this is necessary if the user can change the value after it's been deployed. if they know the available memory (via flavor), they can tweak the buffer_pool_size to their heart's content. 18:20:00 according to that logic, the three required parameters are the datastore version info, the flavor, and the server_id (which is just a unique id). So this command would need the first two as input and not the third 18:20:29 amcrn: the idea is to show a user from a ui what the "default" is 18:20:36 then they can tweak it all they want 18:20:48 so, other than that being a nicety, can you explain why showing the default will change user behavior? 18:20:56 think about it as fields you can change but the default is greyed out or something 18:21:06 because it feels it will drive up capacity usage because they think they can't change the value post-deployment. 18:21:22 grapex / cp16net: Can these defaults just as easily be part of the documentation? 18:21:28 amcrn: its really a niceity that was requested 18:21:39 cp16net: Is this so if someone changes their instance to some strange config values they can later view what the normal ones were 18:21:49 SlickNik: they could not be generated automatically 18:21:56 if they are tweaked in a template file 18:22:29 SlickNik: Sure, but these are values that might be tweaked more often that other deployment settings 18:22:30 +1 to grapex comment as well 18:22:43 the event of OH CRAP i screwed it up 18:23:00 revert and hopfully someone can fix it on their own 18:23:24 as a user, if see that configuration-parameter 'x' is defaulted to 'y' with a flavor, i'm going to naturally keep bumping the flavor until it meets my needs, unless the ui is very clear that i can change this configuration-parameters post-deployment. this situation might be good for deployers making money on larger flavors, but for internal deployments, it might be encouraging behavior that's unnecessary. 18:23:51 doesn't it also seem useful to know what values will be set if you don't have a config group or detach a config group? 18:23:56 so in short, i'd have to see mocks to be sure whether this is a good idea from a ui-perspective. 18:24:02 amcrn: ah 18:24:19 and my english is terrible this morning, apologies. 18:24:25 I don't think the intention is people look up what each flavor provides so much as, when they change config values on an instance in a UI, they can see what the default settings were 18:24:52 grapex: oh, so this is more for a configuration-group view vs. Launch Instance modal? 18:25:05 amcrn: I think so. cp16net is that correct? 18:25:13 yes this is for config-group 18:25:30 because you can create a config group without an instance 18:25:43 consider my concern squashed then, thanks for the clarification. 18:26:04 ok cool thanks grapex for helping clarify 18:26:04 cp16net / grapex: But you can get the defaults from the instance if one is already created today, right? 18:26:11 yes 18:26:32 I thought that this was for the scenario where an instance has *not* been created yet. 18:26:46 yes 18:27:11 Hmm... that seems like overkill to me, as there will be two paths to get the same data. cp16net there's only one path shown in the wiki 18:27:15 or maybe you dont want to create instance with 16GB just to find out what the memory settings are for mysql 18:27:29 thats another use case 18:27:49 grapex: the other path already exists 18:27:50 given that deployers can change these templates, i'd agree that having an api to return the default parameter values makes sense. 18:28:06 #link https://github.com/openstack/trove/blob/master/trove/common/api.py#L92 18:28:06 cp16net: Oh, sorry. :( 18:28:09 grapex: ^^ 18:28:16 yes thats correct this scenario is when no instance is tied to the configuration groups. This api call will allow users to see the defaults and the parameters that can be tweaked 18:28:36 yea, agree the use case seems valid.. 18:28:54 ok so everyone agrees with the use cases 18:28:58 did we agree on URI ? sorry was away for a bit 18:29:03 so the only issue we have is the URI 18:29:25 => /{tenant_id}/datastores/versions/{version}/parameters?flavor_id= and /{tenant_id}/datastores/versions/{version}/parameters/{name}?flavor_id= looks good to me. 18:29:44 +1 to query string approach 18:30:07 sorry.. on the use case, do you really want to pick a flavor and see the values or do you want to see the formula? 18:30:30 so 1 question... what happens when no query string is suppiled 18:30:34 So... I'm ok with the query string approach as I don't worship at the alter of REST. But I feel like I never got a good answer on what the result would look like if a flavor wasn't used. 18:30:36 i thik you can return the formula if there is no query string 18:30:37 glucas: What if there isn't a formula and it's hard coded per flavor? 18:30:51 vipul: As in return the non-interpolated jinja template values? 18:31:04 :) that's an option 18:31:19 Return "[!please use query string]" 18:31:20 SlickNik: Hm, OK. Didn't see that case in the example I was looking at. 18:31:25 grapex: not sure i understand the question, because both of those routes exist today 18:31:31 Okay, I think we've spent some time on this already. 18:31:37 And need to move on. 18:31:38 that could be gross 18:31:49 cp16net: I think all of us agree on the use-case. 18:32:02 And the requirements for the BP. 18:32:02 SlickNik: Ok. I'm satisfied either way so long as there's tests proving usage isn't crazy. 18:32:21 because the template file *can* be made many different ways 18:32:35 not just the formulas of the fields 18:32:55 So I think we're good approving it. I trust we can come up with the right URI as part of the follow-up, and code review. 18:32:58 Folks okay with that? 18:33:04 +1 18:33:04 SlickNik: +1 18:33:08 yep +1 18:33:11 +1 18:33:11 +1 18:33:14 +1 18:33:15 +1 18:33:19 +1 18:33:20 Okay, let's move on. 18:33:24 thanks 18:33:29 #topic configurable db plugins 18:34:02 boden: I agree with your assessment on this one 18:34:14 So we're talking about dropping it? 18:34:17 yes 18:34:23 #info (boden) Based on our previous discussion I propose we drop this BP as (a) no other projects expose this level of integration and (b) this couples consumers into an internal impl detail which is not guaranteed to be supported long term. 18:35:03 Anyone have anything to add for this one? 18:35:04 so is thre anything to review on this? 18:35:11 vipul -- no code 18:35:12 does that mean we vote -1 :) 18:35:21 dougshelley66: lol 18:35:21 Nope, I think boden was just closing the loop. 18:35:25 Thanks boden. 18:35:36 #topic multiple API extension paths 18:35:41 ok thanks for the follow up 18:35:48 #link https://blueprints.launchpad.net/trove/+spec/extensions-update 18:35:57 prelude -- this one may need a flished out BP in wiki, just wanting to get some initial thoughts 18:36:23 so right now the conf supports api_extensions_path to point to the API route extension classes 18:36:39 but it only supports a single path -- where the trove extensions already exist... 18:37:20 if as a consumer I want to add some custom extensions I have to copy them into the path where the trove extensions live... what I'm proposing is a comma list conf property to support multipel extension paths 18:37:59 again -- I will write this up more formally if folks think this is the proper approach 18:38:03 I don't think there will be any dissension on this one. Btw, are we still importing files based on the physical file path or did that get fixed so its using true Python imports now? I can't remember. 18:38:28 Seems like a reasonable approach to me. Would like to see it fleshed out. 18:38:32 grapex: still using a file path I believe 18:38:44 how about if we're doing this.. we migrate to stevedore 18:38:45 grapex: I believe we're still using file paths, not python modules. 18:39:00 This Steve Dore is a popular guy 18:39:07 SlickNik -- agreed... however do you agree this would be separate from the 'extensions update' BP? 18:39:10 yeah i was waiting for that... 18:39:11 :_P 18:39:23 haha yea.. he gets around 18:39:27 i vote we use steveholt 18:39:33 amcrn: +1000 18:39:39 Let's propose it for Oslo 18:39:55 lol 18:40:02 #link http://stevedore.readthedocs.org/en/latest/ 18:40:07 i think we should have that as a separate task 18:40:11 SlickNik vipul: Saying this should be with Steve Dore is close to saying the extension thing *can't* be fixed unless it changes entirely to stevedore 18:40:16 it's the way most of the porjects manage extension 18:40:32 boden: I think it would be different from that. 18:40:52 SlickNik -- I will write it up as a separate BP + wiki then 18:40:57 boden: but a lot of our extensions code is taken from old nova code, that needs a refresh. 18:40:57 boden: nice 18:41:01 grapex: yea maybe it's too much to require that.. it is a suggestion.. if it's simple to migrate to.. we should do it 18:41:01 I agree we should use it. Although the next thing I think is "great, this will screw up our deployments the moment it lands..." How easy would it be to add stevedore and keep backwards compatibility to avoid that? 18:41:07 i'm fine with doing it as a separete thing too 18:41:25 i'd agree to keep the two separate 18:41:32 ok 18:41:33 so i think its a quick win to change the option to a list_opt to support multiple paths for extentions 18:41:38 the more we specialize our extensions, the harder it becomes to migrate off 18:41:47 ... althoughi really hate the list_opt 18:41:53 I want to move to stevedore too btw, I know robertmyers would be happy. :) 18:42:47 boden: Can you look into doing this vs. updating the extensions to use stevedore to see how much more work it is, as you flesh out the bp? 18:42:59 SlickNik -- can / wikk do 18:43:04 *will* 18:43:25 boden: Then based on that we can decide if we want to tackle one vs. both, and the order of things. 18:43:28 boden: Thanks! 18:44:47 #topic Open Discussion 18:44:55 did folks have anything BP related? 18:45:59 Looks like not. 18:46:07 #endmeeting