*** slaweq has joined #openstack-sdks | 00:11 | |
*** slaweq has quit IRC | 00:15 | |
*** d0ugal has quit IRC | 00:15 | |
*** d0ugal has joined #openstack-sdks | 00:27 | |
*** chenyb4 has joined #openstack-sdks | 00:50 | |
*** dave-mccowan has joined #openstack-sdks | 01:07 | |
*** edmondsw has joined #openstack-sdks | 01:21 | |
*** edmondsw has quit IRC | 01:26 | |
*** chenyb4_ has joined #openstack-sdks | 01:36 | |
*** chenyb4 has quit IRC | 01:39 | |
openstackgerrit | Michael Johnson proposed openstack/python-openstacksdk master: Add an octavia functional test gate https://review.openstack.org/531514 | 01:44 |
---|---|---|
*** annp has joined #openstack-sdks | 01:54 | |
*** chenyb4_ is now known as chenyb4 | 02:11 | |
*** chenyb4_ has joined #openstack-sdks | 02:30 | |
*** chenyb4 has quit IRC | 02:33 | |
openstackgerrit | Bar Elharar proposed openstack/osc-lib master: Suppress subTest() expected errors https://review.openstack.org/531025 | 02:43 |
openstackgerrit | Bar Elharar proposed openstack/osc-lib master: Suppress subTest() expected errors https://review.openstack.org/531025 | 02:56 |
*** dave-mccowan has quit IRC | 03:09 | |
*** edmondsw has joined #openstack-sdks | 03:09 | |
*** edmondsw has quit IRC | 03:14 | |
*** chenyb4 has joined #openstack-sdks | 03:28 | |
*** chenyb4_ has quit IRC | 03:31 | |
*** ldl has joined #openstack-sdks | 03:58 | |
*** chenyb4_ has joined #openstack-sdks | 04:03 | |
*** chenyb4 has quit IRC | 04:05 | |
*** pooja_jadhav has joined #openstack-sdks | 04:11 | |
*** chenyb4_ has quit IRC | 04:13 | |
*** rate has joined #openstack-sdks | 04:26 | |
*** rate is now known as chenyb4 | 04:27 | |
*** chenyb4_ has joined #openstack-sdks | 04:51 | |
*** chenyb4 has quit IRC | 04:54 | |
*** edmondsw has joined #openstack-sdks | 04:58 | |
*** edmondsw has quit IRC | 05:02 | |
*** pooja_jadhav has quit IRC | 05:15 | |
*** chenyb4 has joined #openstack-sdks | 05:20 | |
*** chenyb4_ has quit IRC | 05:24 | |
*** pooja_jadhav has joined #openstack-sdks | 05:25 | |
*** chenyb4_ has joined #openstack-sdks | 05:54 | |
*** chenyb4 has quit IRC | 05:57 | |
*** ldl has quit IRC | 06:16 | |
openstackgerrit | Merged openstack/python-openstacksdk master: Updated from global requirements https://review.openstack.org/525689 | 06:20 |
*** chenyb4 has joined #openstack-sdks | 06:29 | |
*** chenyb4_ has quit IRC | 06:33 | |
*** edmondsw has joined #openstack-sdks | 06:46 | |
*** chenyb4 has quit IRC | 06:50 | |
*** edmondsw has quit IRC | 06:50 | |
*** liuyulong has joined #openstack-sdks | 06:55 | |
*** reedip has quit IRC | 06:55 | |
*** rate has joined #openstack-sdks | 07:02 | |
*** reedip has joined #openstack-sdks | 07:07 | |
*** Kevin_Zheng has quit IRC | 07:13 | |
*** Shrews has quit IRC | 07:13 | |
*** knikolla has quit IRC | 07:13 | |
*** knikolla has joined #openstack-sdks | 07:13 | |
*** Shrews has joined #openstack-sdks | 07:14 | |
*** Kevin_Zheng has joined #openstack-sdks | 07:16 | |
*** rate has quit IRC | 07:18 | |
*** rate has joined #openstack-sdks | 07:24 | |
*** ldl has joined #openstack-sdks | 07:26 | |
*** slaweq has joined #openstack-sdks | 07:30 | |
*** rabel_b1 has joined #openstack-sdks | 07:46 | |
*** rate is now known as chenyb4 | 07:47 | |
*** chenyb4_ has joined #openstack-sdks | 07:50 | |
*** chenyb4 has quit IRC | 07:53 | |
*** chenyb4 has joined #openstack-sdks | 08:00 | |
*** chenyb4_ has quit IRC | 08:04 | |
*** ralonsoh has joined #openstack-sdks | 08:09 | |
*** fzdarsky has joined #openstack-sdks | 08:17 | |
*** chenyb4 has quit IRC | 08:18 | |
*** chenyb4 has joined #openstack-sdks | 08:19 | |
*** honza has quit IRC | 08:20 | |
*** honza has joined #openstack-sdks | 08:20 | |
*** honza is now known as Guest14500 | 08:20 | |
*** rabel__b1 has joined #openstack-sdks | 08:23 | |
*** rabel_b1 has quit IRC | 08:26 | |
*** edmondsw has joined #openstack-sdks | 08:34 | |
*** edmondsw has quit IRC | 08:39 | |
*** rabel_b1 has joined #openstack-sdks | 08:53 | |
*** rabel__b1 has quit IRC | 08:55 | |
*** jpich has joined #openstack-sdks | 09:08 | |
*** Guest14500 is now known as honza | 09:14 | |
*** finucannot is now known as stephenfin | 09:16 | |
*** thrash|g0ne has quit IRC | 09:19 | |
*** thrash has joined #openstack-sdks | 09:21 | |
*** thrash has joined #openstack-sdks | 09:21 | |
*** e0ne has joined #openstack-sdks | 09:33 | |
*** fzdarsky has quit IRC | 09:39 | |
*** e0ne has quit IRC | 09:47 | |
*** rabel_b1 has quit IRC | 09:51 | |
*** rabel_b1 has joined #openstack-sdks | 09:51 | |
*** chenyb4 has quit IRC | 10:12 | |
*** cdent has joined #openstack-sdks | 10:13 | |
*** edmondsw has joined #openstack-sdks | 10:22 | |
-openstackstatus- NOTICE: zuul has been restarted, all queues have been reset. please recheck your patches when appropriate | 10:26 | |
*** edmondsw has quit IRC | 10:27 | |
*** annp has quit IRC | 10:32 | |
*** cdent has quit IRC | 11:31 | |
*** rcarrill1 has joined #openstack-sdks | 11:32 | |
*** rcarrillocruz has quit IRC | 11:35 | |
*** fzdarsky has joined #openstack-sdks | 11:36 | |
*** jkilpatr has quit IRC | 11:50 | |
*** sdague has joined #openstack-sdks | 12:00 | |
*** zhongjun has quit IRC | 12:06 | |
*** cdent has joined #openstack-sdks | 12:09 | |
*** dave-mccowan has joined #openstack-sdks | 12:10 | |
*** edmondsw has joined #openstack-sdks | 12:10 | |
*** edmondsw has quit IRC | 12:15 | |
*** jkilpatr has joined #openstack-sdks | 12:22 | |
*** liuyulong has quit IRC | 12:24 | |
*** rcarrill1 is now known as rcarrillocruz | 12:24 | |
*** chenyb4 has joined #openstack-sdks | 12:30 | |
*** ldl has quit IRC | 12:32 | |
*** ldl has joined #openstack-sdks | 12:32 | |
*** ldl has quit IRC | 12:36 | |
*** dave-mccowan has quit IRC | 12:47 | |
*** dave-mccowan has joined #openstack-sdks | 12:49 | |
*** cdent has quit IRC | 13:01 | |
*** cdent has joined #openstack-sdks | 13:09 | |
*** cleong has joined #openstack-sdks | 13:28 | |
*** jkilpatr has quit IRC | 13:31 | |
*** gkadam has joined #openstack-sdks | 13:33 | |
*** jkilpatr has joined #openstack-sdks | 13:44 | |
*** edmondsw has joined #openstack-sdks | 13:51 | |
*** ldl has joined #openstack-sdks | 13:58 | |
*** nokes has joined #openstack-sdks | 13:58 | |
*** noshankus has quit IRC | 13:58 | |
*** nokes_ has joined #openstack-sdks | 13:59 | |
*** nokes_ is now known as noshankus | 13:59 | |
*** nokes has quit IRC | 14:02 | |
*** ldl has quit IRC | 14:02 | |
*** dayou has joined #openstack-sdks | 14:03 | |
*** dayou has joined #openstack-sdks | 14:03 | |
openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Rename CloudConfig to CloudRegion https://review.openstack.org/531611 | 14:25 |
mordred | Shrews: if you have a sec, https://review.openstack.org/#/c/530978 and https://review.openstack.org/#/c/531267 are both super simple/mechanical | 14:26 |
*** chenyb4 has quit IRC | 14:27 | |
Shrews | mordred: YOU'RE super simple/mechanical | 14:28 |
*** dayou has quit IRC | 14:28 | |
*** chenyb4 has joined #openstack-sdks | 14:35 | |
*** e0ne has joined #openstack-sdks | 14:37 | |
* cdent automates mordred | 14:51 | |
*** dayou has joined #openstack-sdks | 14:55 | |
*** fzdarsky has quit IRC | 15:03 | |
*** fzdarsky has joined #openstack-sdks | 15:03 | |
*** sdague has quit IRC | 15:04 | |
*** cdent has quit IRC | 15:20 | |
*** chenyb4 has quit IRC | 15:24 | |
openstackgerrit | Merged openstack/python-openstacksdk master: Update for new docs PTI https://review.openstack.org/530978 | 15:28 |
*** e0ne has quit IRC | 15:28 | |
*** SamYaple_ has quit IRC | 15:30 | |
*** SamYaple has joined #openstack-sdks | 15:30 | |
*** nokes has joined #openstack-sdks | 15:33 | |
*** noshankus has quit IRC | 15:36 | |
*** nokes is now known as noshankus | 15:36 | |
*** bobh has joined #openstack-sdks | 15:42 | |
openstackgerrit | Merged openstack/python-openstacksdk master: Remove name from zuul project stanza https://review.openstack.org/531267 | 15:45 |
*** SamYaple has quit IRC | 15:57 | |
*** slaweq has quit IRC | 15:57 | |
*** SamYaple has joined #openstack-sdks | 15:57 | |
*** slaweq has joined #openstack-sdks | 15:58 | |
*** SamYaple has quit IRC | 15:58 | |
*** SamYaple has joined #openstack-sdks | 15:58 | |
*** e0ne has joined #openstack-sdks | 15:58 | |
*** nokes has joined #openstack-sdks | 16:01 | |
*** slaweq has quit IRC | 16:02 | |
*** noshankus has quit IRC | 16:04 | |
*** nokes is now known as noshankus | 16:04 | |
*** cdent has joined #openstack-sdks | 16:09 | |
*** e0ne has quit IRC | 16:24 | |
*** kmy has quit IRC | 16:28 | |
*** kmy has joined #openstack-sdks | 16:29 | |
*** slaweq has joined #openstack-sdks | 16:32 | |
*** d0ugal has quit IRC | 16:35 | |
*** cdent has quit IRC | 16:35 | |
*** slaweq has quit IRC | 16:37 | |
*** kmalloc has joined #openstack-sdks | 16:38 | |
*** jkilpatr has quit IRC | 16:44 | |
*** e0ne has joined #openstack-sdks | 16:53 | |
*** d0ugal has joined #openstack-sdks | 17:00 | |
*** jkilpatr has joined #openstack-sdks | 17:00 | |
*** slaweq has joined #openstack-sdks | 17:00 | |
mordred | briancurtin: responded to your note on the dict patch - thanks for the background! I've got one more thing to try, will ping you when its up- might be tomorrow | 17:04 |
mordred | briancurtin: however, it's also entirely possible the results here will be "unpossible/bad idea" | 17:04 |
*** slaweq has quit IRC | 17:11 | |
*** d0ugal has quit IRC | 17:11 | |
*** fzdarsky is now known as fzdarsky|afk | 17:28 | |
*** jpich has quit IRC | 17:33 | |
briancurtin | mordred: ok cool, sounds good | 17:48 |
mordred | edleafe, elmiko: was just chatting with notmyname verifying that I was understanding swift pagingation correctly | 17:49 |
mordred | edleafe, elmiko: and in doing so I discovered that requests parses rfc5988 headers automatically: http://docs.python-requests.org/en/master/user/advanced/#link-headers | 17:50 |
mordred | edleafe, elmiko: given the variation in how pagination links are returned today, and how unlikely it is that we'd be able to get all the services aligned on one approach - since backwards compat would make it living hell ... | 17:50 |
mordred | what if we changed the recommendation to start publishing rfc5988 compliant links headers - the data is the same as what peopel are already putting in links bodies (slightly different format, but whatever) | 17:51 |
mordred | since it's a standard header that's intended to be used for that, it shouldn't be a backwards compat issue - and clients could easily consume Links headers if they exist, and otherwise fallback to existing "look for resp.json()['links'] or resp.json['{resource}_links'] or resp.json()['next'] or an object count in resp.headers" | 17:53 |
edleafe | mordred: so if I understand you correctly, projects could leave their assorted formats in the response body alone, and just add the necessary headers? | 17:55 |
edleafe | mordred: and then clients could just check for the next/prev link from the headers? | 17:55 |
*** e0ne has quit IRC | 17:55 | |
*** rabel_b1 has quit IRC | 17:58 | |
*** slaweq has joined #openstack-sdks | 18:05 | |
*** ralonsoh has quit IRC | 18:05 | |
*** cdent has joined #openstack-sdks | 18:08 | |
*** slaweq has quit IRC | 18:17 | |
*** jkilpatr has quit IRC | 18:19 | |
*** dtantsur is now known as dtantsur|afk | 18:20 | |
*** slaweq has joined #openstack-sdks | 18:21 | |
elmiko | mordred: assuming what edleafe says is accurate, that makes entirely too much sense ;) | 18:27 |
*** slaweq has quit IRC | 18:31 | |
*** jkilpatr has joined #openstack-sdks | 18:33 | |
*** slaweq has joined #openstack-sdks | 18:34 | |
mordred | elmiko, edleafe: yes! | 18:37 |
mordred | cdent: also ... ^^ | 18:38 |
cdent | mordred: yeah, was just reading through that | 18:38 |
mordred | cdent: http://eavesdrop.openstack.org/irclogs/%23openstack-sdks/%23openstack-sdks.2018-01-08.log.html#t2018-01-08T17:49:23 | 18:38 |
mordred | oh - good | 18:38 |
cdent | I've never been a huge fan of link headers, but it does provide a nice solution in this case | 18:39 |
*** corey_ has joined #openstack-sdks | 18:39 | |
mordred | in an uncommon fit of things being nice - it's an update that would work for swift as well (GET on a container just returns a list in swift, it does not return a top-level dict, so there is no entity to which a links entity could be added) | 18:39 |
cdent | mostly because it means the representation needs to carry around the headers with itself to be "complete" | 18:40 |
elmiko | i don't have a strong opinion about using the headers, but agree this could be a really nice way to solve the issue for consistency's sake | 18:40 |
elmiko | mordred: ooh a unicorn! | 18:40 |
mordred | cdent: yah | 18:40 |
*** cleong has quit IRC | 18:40 | |
elmiko | cdent: ah, good point, i hadn't considered that angle | 18:41 |
mordred | it should also be REALLY easy for people to implement, I'd think - anyone who has a links dict already has the hard bits done, just encoding it and ading it to the headers should be like an afternoon task for an intern | 18:41 |
cdent | i don't think it being headers is a blocker, just violates my picky aesthetics | 18:41 |
edleafe | cdent: not sure I agree. If the representation is complete now, adding a header will just add a redundancy for compatibility across projects | 18:41 |
cdent | frequently the representation is not complete | 18:42 |
cdent | or at least not consistent, which is how we ended up looking for a different solution | 18:42 |
edleafe | cdent: sure, but how does adding a header change that? | 18:42 |
edleafe | ah, the consistent part is the holy grail | 18:42 |
cdent | it means we aren't "forcing" the representations to cohere | 18:42 |
mordred | aren't pagination links temporal in nature anyway? or were you thinking about it in the more general case of links headers for things like a 'server' | 18:42 |
edleafe | cdent: we can't | 18:42 |
cdent | thus the quotes | 18:43 |
cdent | like I said, I'm okay with it. | 18:43 |
edleafe | OK, new APIs: follow our guides. Existing, non-conformant APIs: add the headers | 18:43 |
elmiko | seems like pagination in specific is in a little bit of a grey area for the headers/representation issue | 18:44 |
edleafe | I'm not sure where you see the problem | 18:44 |
cdent | mordred: I was thinking about the representation passing through various code boundaries, but still being the "now" representation | 18:44 |
cdent | edleafe: what I just said to mordred: if next is only the headers and not in the json, when it passes from library X to thing Y... | 18:44 |
cdent | which maybe is not something we care about | 18:44 |
cdent | and is certainly not something worth stopping this good idea over | 18:45 |
cdent | (merely something to be aware of) | 18:45 |
edleafe | cdent: if it's not in the json, then a project has a choice: change the API, or add a header | 18:46 |
edleafe | the header thing is a workaround only | 18:46 |
cdent | right, and if they add the header, then when the client gets a representation the body will, in a sense, be incomplete after it passes away from the part of the system paying attention to headers | 18:47 |
cdent | which may not matter | 18:47 |
mordred | yah - I mean, the header is a nice thing to add since it's a known thing and even already parsed by things like requests - and is usable for corner cases like listing the objects in a swift container | 18:48 |
mordred | but having the links in the json body for new apis is the recommendation for well formed json | 18:48 |
edleafe | I guess I'm understanding it in reverse. Client checks the body and either a) there are no links or b) the links do not follow the standard. Then, as a last resort, it checks the headers | 18:48 |
cdent | I gotta go, will check the logs for more, if it happens, but overall, seems a good thing. | 18:49 |
*** cdent has quit IRC | 18:49 | |
mordred | oh - I was thinking look for the headers first, since it's an rfc 'standard' thing, and if there are no links there, then look for content in body - at least for things like following pagination | 18:50 |
mordred | BUT | 18:50 |
mordred | for the love of all that is holy, we should DEFINITELY not be ok with the links headers and links in the body being out of sync | 18:50 |
mordred | so a client could also totally implement it in either direction and be accurate | 18:50 |
edleafe | mordred: from an API-SIG POV, we want to encourage projects to form pagination links correctly in the body | 18:50 |
mordred | yah | 18:51 |
elmiko | +1 | 18:51 |
mordred | I tihnk we always want links in the body | 18:51 |
elmiko | the dual header/body issue seems like it could be a total pita if someone try to implement both or gets caught between the two | 18:51 |
edleafe | if they are there but in the wrong format, they should update it to be correct, but that requires an API break (or microversion) | 18:51 |
elmiko | but, i like the idea of recommending the rfc for older projects to gain some sort of consistency | 18:51 |
edleafe | elmiko: yeah, which is why I saw things happening in the order I mentioned | 18:52 |
elmiko | plus, it seems to me that header addition can be done on minor version bump, so it doesn't need to upset the whole apple cart. is that an accurate asessment? | 18:52 |
elmiko | edleafe: ack | 18:52 |
mordred | I don't think the header addition needs a version bump | 18:52 |
elmiko | well, it should carry a minor version bump to denote the change though, shouldn't it? | 18:53 |
mordred | there is NO WAY clients are consuming headers strictly | 18:53 |
mordred | no - because clients have to account for proxies/api gateways/whatever in between | 18:53 |
mordred | so there's always the possibilities of more keys being in the header tahn theAPI says will be there | 18:53 |
elmiko | true that | 18:54 |
mordred | so, I mean, people could bump a min, but I don't think it would be valuable to anyone - nor do I think doing a microversion dance to know if you can request a microversion that adds links headers would benefit anyone, since the consumption is "if 'links' in response.headers:" | 18:55 |
elmiko | that makes sense | 18:56 |
elmiko | i guess, i tend to think about bumping the version to represent changes. but i think you're absolutely correct about not needing to do the "dance" for this type of feature | 18:56 |
*** slaweq has quit IRC | 19:01 | |
*** slaweq has joined #openstack-sdks | 19:02 | |
*** slaweq has quit IRC | 19:06 | |
*** slaweq has joined #openstack-sdks | 19:09 | |
*** slaweq has quit IRC | 19:19 | |
*** e0ne has joined #openstack-sdks | 19:22 | |
*** slaweq has joined #openstack-sdks | 19:28 | |
*** rabel_b1 has joined #openstack-sdks | 19:31 | |
*** rabel__b1 has joined #openstack-sdks | 19:32 | |
*** jkilpatr has quit IRC | 19:33 | |
openstackgerrit | Michael Johnson proposed openstack/python-openstacksdk master: Add an octavia functional test gate https://review.openstack.org/531514 | 19:34 |
openstackgerrit | Michael Johnson proposed openstack/python-openstacksdk master: Add an octavia functional test gate https://review.openstack.org/531514 | 19:35 |
*** rabel_b1 has quit IRC | 19:36 | |
openstackgerrit | Michael Johnson proposed openstack/python-openstacksdk master: Add an octavia functional test gate https://review.openstack.org/531514 | 19:37 |
*** e0ne has quit IRC | 19:40 | |
*** fzdarsky|afk has quit IRC | 20:00 | |
*** sdague has joined #openstack-sdks | 20:00 | |
*** jkilpatr has joined #openstack-sdks | 20:11 | |
*** edmondsw has quit IRC | 20:26 | |
*** openstack has quit IRC | 20:38 | |
*** openstack has joined #openstack-sdks | 20:42 | |
*** ChanServ sets mode: +o openstack | 20:42 | |
*** openstackgerrit has quit IRC | 21:03 | |
*** corey_ has quit IRC | 21:25 | |
*** Anticimex has joined #openstack-sdks | 21:27 | |
*** rabel__b1 has quit IRC | 21:28 | |
*** rabel_b1 has joined #openstack-sdks | 21:28 | |
*** rabel_b1 has quit IRC | 21:37 | |
mordred | elmiko, edleafe: the existing guideline actually already references rfc5988 | 21:38 |
edleafe | mordred: well, waddya know - guess I should have reviewed that before discussion :) | 21:44 |
edleafe | So no change to the guideline is needed for this. Easy! | 21:46 |
edleafe | cdent: elmiko: ^^^ | 21:46 |
mordred | edleafe: :) | 21:46 |
mordred | edleafe: I'm adding a little text and a sub-heading so that it's easy to deep-link to real quick | 21:47 |
*** slaweq has quit IRC | 21:50 | |
elmiko | mordred: sweet! thanks for doing all the leg work =) | 21:51 |
edleafe | mordred: yeah, what elmiko said. I'm heads down in other stuff right now | 21:52 |
*** openstackgerrit has joined #openstack-sdks | 21:53 | |
openstackgerrit | Monty Taylor proposed openstack/api-wg master: Expand note about rfc5988 link header https://review.openstack.org/531914 | 21:53 |
*** e0ne has joined #openstack-sdks | 22:28 | |
openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Add function to make CloudRegion from session https://review.openstack.org/531612 | 22:30 |
openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Port wait_for_ methods to use iterate_timeout https://review.openstack.org/531268 | 22:30 |
openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Prefer links dicts for pagination https://review.openstack.org/530769 | 22:30 |
openstackgerrit | Michael Johnson proposed openstack/python-openstacksdk master: Add an octavia functional test gate https://review.openstack.org/531514 | 22:36 |
*** dave-mccowan has quit IRC | 22:37 | |
openstackgerrit | Monty Taylor proposed openstack-infra/shade master: List ansible/ansible in required-projects https://review.openstack.org/531919 | 22:46 |
*** e0ne has quit IRC | 22:49 | |
*** slaweq has joined #openstack-sdks | 22:58 | |
*** slaweq has quit IRC | 23:00 | |
openstackgerrit | Michael Johnson proposed openstack/python-openstacksdk master: Add an octavia functional test gate https://review.openstack.org/531514 | 23:05 |
*** bobh has quit IRC | 23:09 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!