16:00:45 #startmeeting api-wg 16:00:46 Meeting started Thu Oct 13 16:00:45 2016 UTC and is due to finish in 60 minutes. The chair is cdent. Information about MeetBot at http://wiki.debian.org/MeetBot. 16:00:47 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 16:00:50 The meeting name has been set to 'api_wg' 16:00:54 #chair etoews elmiko 16:00:54 Current chairs: cdent elmiko etoews 16:00:57 \o 16:00:57 hi 16:01:01 o/ 16:01:05 \o 16:01:05 #link agenda: https://wiki.openstack.org/wiki/Meetings/API-WG#Agenda 16:01:06 o/ 16:01:18 wow. big crowd. 16:01:42 seriously =) 16:01:46 I understood that there would be punch and pie 16:01:52 hehe 16:01:58 just as a point of order before we get rolling, I'm pretty heavily invested in at least one of these agenda items, so I'd like to recuse myself from writing the newsletter this time. otherwise i'm likely to over-editorialize 16:02:11 ack 16:02:34 you have got me curious what all the hub-bub is about 16:02:41 that out of the way: 16:02:49 #topic action items from last meeting 16:03:16 I was going to follow up on the bof at summit. I found it, i was just never informed that it was accepted 16:03:46 #link https://www.openstack.org/summit/barcelona-2016/summit-schedule/events/16817/api-working-group-meetup 16:04:30 that moves us directly into the first topic on open mic 16:04:33 #topic open mic 16:04:38 which is summit update 16:05:16 I had been under the impression that the idea for there being api usability tests at the summit had died down, but that's not the case, it was another communication drop 16:05:34 There will be api related tests monday morning. When I'm not there. 16:05:35 api usability tests? 16:05:49 yeah, I'm not sure how that works either, but that's part of the plan 16:05:52 * cdent locates links 16:05:55 interesting 16:06:08 #link 16:06:12 #undo 16:06:12 Removing item from minutes: 16:06:20 #link api usability: https://wiki.openstack.org/wiki/UX#Participate_in_a_usability_study_being_conducted_at_the_Barcelona_Summit.21 16:06:51 * elmiko looks 16:07:07 There's been a lack of written information so it has failed to progress with any real substance, as of yet 16:07:22 sounds cool, i'm surprised there hasn't been more noise of collaboration with us 16:07:34 there was an email thread... 16:07:34 yeah, didn't see anything about APIs there 16:07:43 etoews: ahh, gotcha. thanks 16:08:02 elmiko: I've made several efforts with the organizers to get them to send more email about it 16:08:04 over and over 16:08:08 and failed every single time 16:08:24 that's a bummer 16:08:29 #link https://etherpad.openstack.org/p/osux-api-oct2016 16:09:00 both in the sense of "send email to the list" and "send me email about this, if you can't do that, because I can't schedule a webex with my current schedule, but would love to talk more" 16:09:03 oh yeah, this does job my memory 16:09:21 s/job/jog/ 16:10:12 I have response pending to again redirect to the public list, at which point I think we have to say "we tried" 16:10:14 dimes to dollars sez all of the feedback will be about the documentation (which is fair) and not about the actual api (which is unfortunate) 16:10:51 that seems highly likely etoews 16:11:16 etoews: yup 16:12:05 the orchestrator is piet kruithof at intel, if anyone has contact with him, there's probably an opportunity to help shape things 16:12:43 shall we move on? 16:12:48 piet_: ^^ 16:13:10 etoews Hiya 16:13:47 Ohhhh API folks? Want to chat about the study? 16:14:06 piet_: have you read the scrollback? 16:15:05 Just got out of another meeting 16:16:09 Reading now 16:16:28 can we return to this at the end if there is time? I'd like to make sure we take advantage of ediardo while he's here (and vice versa) 16:16:36 cdent: yep. let's move on. 16:16:39 Sure 16:16:57 hi 16:17:07 so next topic is that ediardo has some ideas that might be useful for enhancing the links in errors response 16:17:16 * ediardo grabs the mic 16:17:23 #link error knowledge base proposal: https://docs.google.com/document/d/1fdRuPsIenaulxjXGgEK35UeWORiwOPpdX7OxL6E-ICw/edit 16:17:31 * cdent cedes the floor 16:17:56 Eddie Ramirez here, working at intel. There's this tiny demo we did and we believe you folks should see it :) 16:18:08 #link same doc but on etherpad https://etherpad.openstack.org/p/api-error-messages ;) 16:18:30 So, we did a script that pulls http status codes and explanation messages from 4 core projects 16:18:42 #link And made this website http://172.99.106.155/exceptions/ 16:19:06 nifty 16:19:15 The idea is to concentrate all API errors into a single place and create a new website under the .openstack.org domain 16:19:28 very cool 16:19:35 we managed to collect ~800 error messages from keystone, nova, cinder and glance, 16:19:51 ediardo: this sounds like it's a perfect fit for this http://specs.openstack.org/openstack/api-wg/guidelines/errors.html#errors-documentation 16:19:59 etoews: yup exactly 16:20:09 This thing still needs more work, of course, but I want to hear from you guys and know what other similar efforts have been started 16:20:25 Yes 16:20:30 none that i'm aware 16:20:32 of 16:20:36 I find that example very useful 16:20:44 ediardo: just scanned it briefly - is there anything that points out inconsistencies? 16:21:24 not sure how to answer that question, could you explain a little bit more? 16:21:27 * cdent just noticed he's in the land of nicks that start with 'e' 16:21:28 ediardo: you might want to ping sdague about similar efforts but i expect yours is the best going 16:22:01 cdent: you're outnumbered 16:22:10 rather 16:23:09 ediardo: is there a next step that you're hoping to get from api-wg or is more of a matter of us all nodding and saying "cool"? :) 16:23:38 Those error messages were pulled from the exceptions.py file, some services don't have ALL of the exceptions in this file that's one thing that would require a tedious work 16:23:53 Yes 16:23:58 cool 16:24:03 * elmiko nods 16:24:05 cool 16:24:09 I would like to get more direction and people 16:24:27 * etoews something we all want ;) 16:24:30 looks like working with the person you said is the next step 16:25:02 ediardo: sorry, didn't see your question 16:25:21 ediardo: I meant, did you do any comparison of these error messages across projects? 16:25:32 Not yet edleage 16:25:50 ediardo: in the sense of, given a similar exception, projects do/don't handle it the same. 16:26:17 that sounds like it might be a step for further down the road 16:26:22 wehaven't done that yet 16:26:37 ok, cool - just wondering where you were with this 16:26:43 ediardo: what's the next step you want to take and can we help or have we already done it? 16:26:48 some many stuff could be done once all your base belong to us 16:26:57 sorry, all the api errors belong to us 16:27:32 Should I propose a patch and start the conversation ? 16:27:40 how's the process here? 16:28:07 ediardo: it depends on what you're proposing to patch? 16:28:26 A patch with detailed information about this project, how projects would facilitate the collection of api error messages, etc 16:28:37 The JSON Example... 16:29:07 You knoe, come up with a clear vision of where this goes... 16:30:17 any direction will be appreciated 16:30:24 ediardo: do you envision this as a "top-level" openstack project? 16:30:29 ediardo: I think the project and the plan is a good idea, but it is not something we'd want to hook into the api-wg guidelines until it was further down the road 16:30:47 so I'd say that the thing the immediate next steps are: 16:31:01 talk to sdague to see if he knows of other things like it 16:31:19 post to the os-dev list describing what you're doing and seeking feedback 16:32:07 got it 16:32:27 i think this is probably something worthy of being in the big tent at the top-level. considering it seems like it's going to be a running service, questions of care and feeding of said service will come up sooner than later so be prepared to answer those. 16:32:41 I suspect that more ideas will come out of the feedback on list 16:33:00 ediardo: please prefix the email subject with [api] 16:33:11 etoews: I'll do 16:33:36 ediardo: this is good stuff. i look forward to seeing where it goes! 16:33:42 yeah, me too 16:33:53 etoews: +1 re: big tent 16:34:10 Thank you guys 16:34:21 We appreciate your feedback 16:35:13 cool 16:35:14 * cdent nods 16:35:15 :) 16:35:31 lol 16:35:34 let's skip the porcelain thing, as it will keep 16:35:35 and leap forward to 16:35:41 #topic GET with request body vs. querystring vs. POST (edleafe) 16:35:55 #link came up in review https://review.openstack.org/#/c/300178/ 16:35:55 oh boy oh oboy oh boy 16:36:08 #link with commentary on https://review.openstack.org/#/c/385618/1/specs/ocata/approved/resource-providers-get-by-request.rst 16:36:26 #link and references in http://stackoverflow.com/questions/978061/http-get-with-request-body 16:36:46 So one thing we want to establish guidelines first, and then follow them in Nova 16:37:01 Rather than the other way around, which has been the historical pattern 16:37:09 +1 16:37:43 The question is how to best represent a filter to a GET-like request 16:37:55 traditionally one would use a query string 16:38:06 but some feel that the string could be long and ugly 16:38:24 I'm not very concerned about ugly - after all, it's for computers, not people 16:39:05 Length limits are an issue, but apache can take a string over 8000 chars 16:39:13 I don't see us hitting that 16:39:38 The alternative would be to GET with a body 16:39:47 Although the support for that is very iffy 16:40:14 specifically, caches and proxies are not supposed to support bodies in GETs 16:40:20 i thought there was some question if all the http middleware/frameworks we use support body for GETs 16:40:24 (that apache limit isn't a uri limit, it's for "field", and we're not actually sure what that is, the uri limit is longer) 16:40:29 So we are also considering a POST with a body 16:40:45 But many object on the grounds that POST feels like it should be creating resources 16:40:48 note also that this etherpad is currently active: 16:40:53 even though the docs say otherwise 16:40:58 #link etherpad discussing other proposals: https://etherpad.openstack.org/p/placement-request-providers 16:41:20 cdent: I ran some tests on qs length. Results are in the same etherpad 16:41:47 oh cool, thanks edleafe 16:41:56 so anyway, there are two issues here: 16:42:08 elmiko: exactly, which is why we've been pushing back on the GET+body approach 16:42:12 one is resolving the problem in a correct way and making a guideline for this kind of thing 16:42:48 hmm 16:42:50 two is dealing with projects that express unwillingness to be concerned with standards and guidelines 16:43:05 nothing about this changes that stance though 16:43:13 cdent: well, we obviously need #1 first 16:43:52 edleafe: I'm not certain about that ordering: the api-wg has alreayd said: if all else follow the rfcs 16:44:01 we need consensus on a guideline before we can criticize some group for not following it :) 16:44:02 the rfcs don't like get with a body 16:44:20 cdent: but they don't prohibit it, either 16:44:28 they prohibit it meaning anything 16:44:31 cdent: and it will work (most of the time) 16:45:31 So does anyone else have any opinions on this? 16:46:03 in general, i think i lean towards the request params side of the force for shaping a GET 16:46:22 seems easy, but i understand the reasons why ppl may not like it 16:46:34 agreed 16:46:46 (sorry my internet connection dropped there for a bit) 16:47:07 the "the URL is ugly" argument is silly 16:47:45 if the URL length limit argument turns out to be valid then other options could be considered 16:48:54 +1 16:49:27 OK, it seems that there is no significant disagreement 16:49:37 I think it is important to be able to articulate why this is the better way to go and what a second option should be 16:49:45 How about I write up a proposed guideline? 16:49:47 (I think the second option is POST with a body) 16:49:49 edleafe++ 16:49:53 +1 16:50:03 ++ 16:50:24 #action: edleafe will write up proposed guideline for complex queries 16:50:32 cool 16:50:37 agreed that we should be well rationed about this, but it is one of those gray areas that can descend into religious holy wars 16:50:49 the thing that actually enrages me most about this process is people insisting that POST means a write 16:51:00 elmiko: that's exactly why we should have a guideline for that 16:51:09 edleafe: agreed 16:51:25 cdent: in 99% of the cases that's true 16:51:38 cdent: yeah, i mean you could take an extreme position and say that the POST is creating an ephemeral resource which only exists for the lifetime of the request ;) 16:51:41 not really, if you consider forms 16:51:58 POST has no built in semantics 16:52:11 web form post is a complex query 16:52:16 that's a side discussion 16:52:24 true, but don't we start to travel a winding road back to "why can't i have action endpoints with POST?" 16:52:36 elmiko: do you mind taking the newsletter? i have another meeting after this. 16:52:41 etoews: I think it's germane because not understanding what the methods mean is part of what has made these discussions so long 16:52:57 etoews: sure, might take me a few, i have a couple meetings as well 16:52:59 :/ 16:53:12 elmiko: action endpoints has come up in this discussion too 16:53:21 gotcha 16:53:34 cdent: I see stuff like this all the time explaining REST and HTTP verbs: https://www.ibm.com/developerworks/webservices/library/ws-restful/ 16:53:51 They map the verbs to CRUD operations 16:53:59 sure and that's bogus 16:54:10 of course 16:54:14 but it's out there 16:54:24 and if you read it on the internet, it has to be true 16:54:43 * cdent is not sure what we're discussing :) 16:54:50 anyway we are quickly running out of time 16:54:52 and we should hit 16:55:11 #topic null/special case in time intervals: https://review.openstack.org/#/c/383862/8 16:55:45 cdent: looks like you can workflow+1 https://review.openstack.org/#/c/364460/ 16:56:04 i'll get this newsletter out by eob today 16:56:06 done 16:56:38 i reckonthis can be merged too: https://review.openstack.org/#/c/385128/ 16:57:30 done 16:57:37 rad 16:59:09 I reckon that's end of time then 16:59:12 any last words? 16:59:19 #action elmiko make the newsletter go 16:59:24 good day to you fine sirs 16:59:35 later 16:59:36 cdent: end of time? Heavy. 16:59:51 * cdent is catastrophic 17:00:05 thanks everyone, we'll have some leftovers for next time 17:00:07 #endmeeting