Monday, 2015-11-09

*** oomichi has joined #openstack-api00:32
*** salv-orlando has joined #openstack-api05:47
*** alex_xu_ is now known as alex_xu06:14
*** salv-orlando has quit IRC06:39
*** oomichi has quit IRC06:42
*** oomichi has joined #openstack-api06:44
*** oomichi_ has joined #openstack-api07:33
*** oomichi has quit IRC07:35
*** salv-orlando has joined #openstack-api07:39
*** salv-orlando has quit IRC07:44
*** alex_klimov has joined #openstack-api08:12
*** alex_klimov has quit IRC08:28
*** salv-orlando has joined #openstack-api08:45
*** e0ne has joined #openstack-api08:46
*** cdent has joined #openstack-api08:48
*** fzdarsky_ has joined #openstack-api08:48
*** salv-orlando has quit IRC08:53
*** e0ne has quit IRC08:55
*** fzdarsky_ has quit IRC08:57
*** e0ne has joined #openstack-api08:57
*** fzdarsky has joined #openstack-api08:57
*** fzdarsky has quit IRC08:59
*** fzdarsky has joined #openstack-api08:59
*** openstack has joined #openstack-api09:19
*** alex_klimov has joined #openstack-api10:53
*** e0ne has quit IRC11:21
openstackgerritKen'ichi Ohmichi proposed openstack/api-wg: Add introduction for API microversion guideline  https://review.openstack.org/18711211:28
openstackgerritKen'ichi Ohmichi proposed openstack/api-wg: Add versioning guideline for API microversions  https://review.openstack.org/24304111:28
*** e0ne has joined #openstack-api11:30
*** jaypipes has joined #openstack-api11:41
*** cdent has quit IRC11:54
*** alex_klimov has quit IRC12:11
*** alex_klimov has joined #openstack-api12:12
*** ig0r__ has joined #openstack-api12:17
*** lucasagomes is now known as lucas-hungry12:49
*** salv-orlando has joined #openstack-api12:52
*** salv-orlando has quit IRC12:56
*** _elmiko is now known as elmiko13:20
*** e0ne has quit IRC13:23
*** e0ne has joined #openstack-api13:37
*** cdent has joined #openstack-api13:54
*** salv-orlando has joined #openstack-api13:58
*** lucas-hungry is now known as lucasagomes14:00
*** khazelton has joined #openstack-api14:26
*** khazelton has quit IRC14:37
*** annegentle has joined #openstack-api14:49
*** salv-orlando has quit IRC15:02
*** openstackgerrit has quit IRC15:17
*** openstackgerrit has joined #openstack-api15:17
*** vishwanathj has joined #openstack-api15:22
*** salv-orlando has joined #openstack-api15:27
*** salv-orlando has quit IRC15:28
*** krotscheck has joined #openstack-api16:06
*** woodster_ has joined #openstack-api16:07
*** salv-orlando has joined #openstack-api16:09
*** alex_klimov has quit IRC16:16
*** e0ne has quit IRC16:26
*** salv-orlando has quit IRC16:33
*** e0ne has joined #openstack-api16:34
*** cdent has quit IRC16:39
etoewsholla elmiko!16:56
etoewsi looked at the work you did on links https://wiki.openstack.org/wiki/API_Working_Group/Current_Design/Links16:57
elmikoetoews: cool, i think i could add a few more services16:58
etoewsseems the predominant style in openstack is the Link Description Object http://json-schema.org/latest/json-schema-hypermedia.html#anchor1716:58
etoewsi was going to go ahead and use that style for the errors guideline https://review.openstack.org/#/c/167793/16:59
elmiko+116:59
etoewscool.16:59
elmikoit seems like that is the main common denominator, although there are other custom uses16:59
elmikoetoews: did you happen to check out https://etherpad.openstack.org/p/mitaka-api-wg-session-plans ?17:02
elmikoi tried to capture some notes from the session we had17:02
etoewsi haven't yet. i'll give it a read today or tomorrow.17:05
elmikothanks, some food for thought for an upcoming meeting ;)17:05
*** e0ne has quit IRC17:09
*** krotscheck has quit IRC17:12
*** krotscheck has joined #openstack-api17:29
sdagueetoews: LDO doesn't seem to make anysense here17:30
sdaguebecause ref is mandatory17:30
sdagueLDO is about describing links to other resources in relation to this resource17:30
sdaguewe're not considering documentation in html to be a resource of the server, it's external17:31
elmikointeresting17:31
etoewssdague: indeed it's external but a resource that relates to this error resource nonetheless.17:33
sdaguethe error isn't a resource17:33
* etoews ponders17:34
sdaguewhat's the URL of the error on the server17:34
sdagueif it doesn't have one, it's not a resource17:34
etoewsthat's exactly where my mind jumped17:34
etoewsit's a sort of ephemeral resource17:35
sdagueI think that's really stretching the metaphor17:35
etoewswhich is why request_id makes more sense than id17:35
etoewsokay. so semantics aside. we want to provide a link as part of the error where the user can get help.17:36
sdagueetoews: yep, definitely want to provide a link17:36
sdaguethat link should be to docs.openstack.org in some standard way17:36
etoewsi simply lean towards that standard way being an already established standard way. i.e. LDO17:37
etoewswhy invent another linking structure?17:37
sdaguewhat is the rel=""17:38
etoewsrel="help"17:38
etoewshttp://www.iana.org/assignments/link-relations/link-relations.xhtml17:38
sdagueok, I guess I can get behind help17:39
sdagueI didn't realize that was an option here17:40
sdagueif rel="help", I'll drop my objections to LDO17:40
etoewscool. ya, i always intended it to be "help" but hadn't communicated that out yet.17:40
sdagueyeh, that's where I was stuck17:41
sdaguewe should also probably convince people that help is the right rel for version docs17:41
sdaguenova is currently using describedby, which isn't right for things that aren't a schema17:41
sdaguehttps://github.com/openstack/nova/blob/e52d236a3f1740997890cad9d4726df01d5a7e5d/nova/api/openstack/compute/versions.py#L43-L4917:42
etoewswere you still thinking links should be a required field?17:42
sdagueI do17:43
sdaguebecause I think that if you are going down this path to provide structured errors back, you better be user documenting them17:43
etoewsi'm just concerned about an OpenStack contributor needing to propagate an error out through the API but not having a helpful href on hand to include17:44
etoewsi suppose the fallbacks could be docs.openstack.org or ask.openstack.org17:44
etoewsif they don't have something that fits their error condition.17:45
sdagueso, the way I see this going down17:46
*** apoorvad has joined #openstack-api17:46
sdagueif a project wants to move to structured errors like this, they need to also have a docs tree that's publishing to docs.openstack.org with that info17:47
elmikothat would be awesome17:47
sdagueso a new error is added, and the commit adding the error to the code would also do so to the docs17:47
etoewssdague: that's definitely the ideal17:47
sdaguewhich would publish out on merge17:47
sdagueetoews: I think it's a fine bar to set here17:48
* etoews reigns in skepticism17:48
elmikohehe17:48
sdagueetoews: why are you skeptical?17:48
etoewsokay17:48
etoewssdague: do you envision the docs tree being in the same code base as the the code where the error is being propagated from?17:50
sdagueetoews: yes17:50
sdaguemuch like the api docs are all migrating back to the projects17:50
etoewsthat's mostly where my skepticism comes from17:51
sdagueetoews: that projects won't do that?17:51
etoewsif they were separate code bases, it's just much less likely to happen.17:51
sdagueright, I agree, this doesn't work if they are separate code bases17:52
sdaguebut, the way I'd imagine this structurally in the nova tree, every exception class gets an error code attached to it. We have a part of the docs tree that describes that in more in depth (or possibly docstrings on the exceptions)17:53
sdaguethen in the code it's one exception type per narrow error code17:53
sdagueand docs to publish at the same time17:53
etoewsthat seems like a reasonable path forward17:54
etoewsbut something i do *not* want this guideline to do is mandate the creation of those errors in a doc tree.17:54
etoewsthat's a per project thing or maybe even a cross-project thing17:54
elmikoetoews:17:55
elmiko+1, guideline should stick to api matters17:55
sdagueso, it seems a little pointless not to mandate that here, because without the context of how this is useful as a whole, I think it's impact is much less.17:59
sdaguethe point of having an API WG is to increase usability of the API across openstack17:59
sdagueif only the narrowest definition is embraced, then there are lots of gaps where someone assumes it's someone else's problem, but no one fills in18:00
*** lucasagomes is now known as lucas-afk18:01
elmikothe whole point about suggesting doc creation for the errors just seems a little out of scope for the api-wg18:02
elmikoi agree though that it does improve the openstack ecosystem if people follow that model though18:02
etoewsit also becomes a barrier to adopting the error guideline18:02
etoewsi'm all for the creation of such error docs18:02
sdagueetoews: yes, a barrier which we specifically want18:02
etoewsbut i think it's much more suited to a cross-project spec rather than a sentence or two in an api guideline.18:03
sdagueetoews: that seems like punting on the point of the working group. This is a cross project effort.18:04
sdagueI consider anyone adopting the error spec without the documentation and claiming victory as a failure of the spec. Without the documentation it's not a thing. It's just random strings people have to go read source code to figure out.18:05
etoewswe have an established scope for the api wg. this certainly seems to be outside of it. the scope of the cross project wg fits perfectly for this.18:06
sdaguethere is no cross project wg18:06
sdaguethat's not a thing18:06
sdaguethere are cross project working groups, like the api-wg18:06
etoewsremind me where the cross-project specs live?18:07
elmikobut if we advocate for the error doc changes, wouldn't we need to expand the guideline to cover how those docs should be created?18:07
sdagueelmiko: yes, which I think is critically important18:07
etoewshttp://specs.openstack.org/openstack/openstack-specs/18:07
sdaguebecause if that doesn't exist from day one, then this is going to be no less of a mess than the current one18:07
sdagueetoews: yes, which is the TC stamping things that need overall agreement and don't fit into existing cross project working groups that have been spun out18:08
elmikoi agree on principle, i'm just trying to wrap my head around the api-wg getting more into pusing the boundaries of doc stuff. i suppose we kinda do this with respect to how apis should be documented.18:08
sdagueyeh, and because from a standpoint of a more usable API, it's a huge part of the problem space18:09
etoewsah. given the title "OpenStack Cross-Project Specifications and Policies" i was under the impression that a wg was responsible for putting those together.18:10
sdagueno, that's kind of fallback of stuff that doesn't fit anywhere else18:10
sdagueanyway, need to grab lunch, but I really really think we should have the docs story part of the error spec, because it's important to get right, and if it's not in there, it's going to be done half a dozen different ways by projects, and the hoped for consistency will be lost18:12
elmikois it acceptable to specify that the error docs need to get published, but not get into the implementation details of how they should be published? (being a little more agnostic about the methodology)18:13
etoewssdague: okay. i simply don't have a good vision for how these errors docs will play out. would you be willing to add commits to the patch set or handle it in a follow on PR?18:14
etoewsit sounds like it would require extensive explanation and one or more sections in https://review.openstack.org/#/c/167793/7/guidelines/errors.rst18:15
*** alex_xu has quit IRC18:56
*** alex_xu has joined #openstack-api18:57
*** e0ne has joined #openstack-api19:00
*** e0ne has quit IRC19:10
*** yunpengli has joined #openstack-api19:10
*** e0ne has joined #openstack-api19:10
*** e0ne has quit IRC19:27
*** yunpengli has quit IRC19:43
*** annegentle has quit IRC19:45
*** annegentle has joined #openstack-api20:13
*** fzdarsky has quit IRC20:17
*** nikhil_k has quit IRC20:54
*** alex_klimov has joined #openstack-api20:56
*** subscope has joined #openstack-api21:16
*** jaypipes has quit IRC21:49
*** salv-orlando has joined #openstack-api21:51
*** salv-orlando has quit IRC22:05
*** nikhil has joined #openstack-api22:27
*** alex_klimov has quit IRC22:53
*** subscope has quit IRC23:26

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