Wednesday, 2014-06-25

*** bknudson has joined #openstack-sdks00:17
*** bknudson has left #openstack-sdks00:25
*** bknudson has joined #openstack-sdks00:34
jamielennoxAlex_Gaynor, terrylhowe: i created a replacement for httpretty i want to get used instead https://github.com/jamielennox/requests-mock do you guys want to have a look at it from a general python library perspective and the docs and tell me any problems you see before i try to get it used01:40
*** jamielennox is now known as jamielennox|away02:22
*** openstackgerrit has quit IRC02:31
*** samchoi has quit IRC02:42
*** deanchou has joined #openstack-sdks04:27
*** deanchou has left #openstack-sdks04:30
*** deanchou has joined #openstack-sdks04:32
*** deanchou has left #openstack-sdks04:32
*** deanchou has joined #openstack-sdks04:32
*** deanchou has quit IRC04:36
*** etoews has joined #openstack-sdks04:39
*** etoews has quit IRC04:44
*** deanchou has joined #openstack-sdks04:58
*** terrylhowe has quit IRC06:19
*** etoews has joined #openstack-sdks06:41
*** stevemar has quit IRC06:45
*** etoews has quit IRC06:47
*** etoews has joined #openstack-sdks07:44
*** etoews has quit IRC07:48
*** etoews has joined #openstack-sdks08:44
*** etoews has quit IRC08:49
*** openstackgerrit has joined #openstack-sdks08:53
*** mattyw has joined #openstack-sdks09:10
*** etoews has joined #openstack-sdks09:45
*** etoews has quit IRC09:50
*** deanchou has quit IRC10:05
*** terrylhowe has joined #openstack-sdks11:02
openstackgerritTerry Howe proposed a change to stackforge/python-openstacksdk: Make version parsing in examples more intelligent  https://review.openstack.org/10250311:56
openstackgerritTerry Howe proposed a change to stackforge/python-openstacksdk: Have exceptions print something by default  https://review.openstack.org/10250411:58
*** etoews has joined #openstack-sdks13:18
*** etoews has quit IRC14:14
*** stevemar has joined #openstack-sdks14:30
*** etoews has joined #openstack-sdks14:56
*** samchoi has joined #openstack-sdks15:16
*** mfer has joined #openstack-sdks15:27
mferopenstack-sdk-php meeting in 3 minutes in #openstack-meeting-315:27
openstackgerritTerry Howe proposed a change to stackforge/python-openstacksdk: Add --data option to debug curl logging  https://review.openstack.org/10256115:39
openstackgerritTerry Howe proposed a change to stackforge/python-openstacksdk: Have the service catalog ignore empty urls  https://review.openstack.org/10256415:43
*** etoews has quit IRC15:47
dtroyerterrylhowe: in transport.py, what is resp.is_redirect supposed to be?  I can't find that defined anywhere in requests or the SDK.   https://github.com/stackforge/python-openstacksdk/blob/master/openstack/transport.py#L15616:07
terrylhoweFrom requests dtroyer there might be other cases for that, not sure16:09
terrylhowehttps://github.com/kennethreitz/requests/blob/master/requests/models.py#L60716:09
dtroyerok…I see it now…lesson: update your repo before complaining about undefined attributes.16:10
terrylhoweI’m not entirely thrilled with that bit in transport, but it works16:10
dtroyerthis does imply we have a slightly higher minimum reuqests version than currently specified16:12
terrylhowedo you want me to update or are you?16:12
dtroyerI'll do it, I'm looking for the minimum rev with it16:12
dtroyerooohhh….it's brand-spanking new… 2.3.0?16:13
dtroyerI'm not sure I'd suggest we do that just yet16:14
dtroyeralthough that does finally address the redirect issues, we'll have to see if that is equivalent to Jamie's bits16:14
dtroyerso 2.3.0 isn't released yet, we need to handle resp.is_redirect not present in the current transport code16:15
dtroyerterrylhowe: So my question is now, why do we not want to do resp.body = resp.json() in the redirect case?16:19
terrylhowethe response isn’t valid json16:20
terrylhowelike empty, it was blowing up for me in those redirect cases16:20
dtroyeris it _always_ not valid JSON?16:20
terrylhoweI think so16:21
terrylhoweif it was valid, we wouldn’t care to parse it16:21
dtroyerI need to set this up to try it again.  What I see is that the response at that point is either an error caught by the exception immediately prior, or the result you wanted in the first place in which case it should be valid json.   What am I missing?16:23
terrylhowehmm16:25
terrylhoweIt may only be failing for tests where redirect is off16:26
terrylhowedtroyer: do you want to kill redirect disable?16:26
dtroyerunsure, I need to re-absorb this code, I've slept since I last looked at it16:27
*** etoews has joined #openstack-sdks16:29
dtroyerI'm looking at jamielennox|away's requests_mock and was going to change test_transport.py to use it rather than httpretty so I'm headed there anyway16:29
dtroyerI thnk there is a connection to changing fake_response to be JSON rather than just a string…we really should be testing both16:30
terrylhoweThe resource tests could probably just use a mock session instead of httpretty16:32
openstackgerritTerry Howe proposed a change to stackforge/python-openstacksdk: The resource repr method should print id  https://review.openstack.org/10257816:32
*** mattyw has quit IRC17:07
*** etoews_ has joined #openstack-sdks17:08
*** etoews has quit IRC17:11
*** jamiehannaford has joined #openstack-sdks17:20
openstackgerritTerry Howe proposed a change to stackforge/python-openstacksdk: Add common method to find a resource  https://review.openstack.org/10258717:23
openstackgerritA change was merged to openstack/python-openstackclient: Network CRUD  https://review.openstack.org/7331817:26
*** etoews has joined #openstack-sdks17:30
*** etoews__ has joined #openstack-sdks17:31
*** etoews_ has quit IRC17:32
*** etoews has quit IRC17:35
*** etoews__ has quit IRC17:36
*** samchoi has quit IRC17:37
*** jamiehannaford has quit IRC17:41
*** jamiehannaford has joined #openstack-sdks17:41
openstackgerritTerry Howe proposed a change to stackforge/python-openstacksdk: Example create command  https://review.openstack.org/10259017:45
openstackgerritTerry Howe proposed a change to stackforge/python-openstacksdk: Add example delete  https://review.openstack.org/10259117:54
openstackgerritTerry Howe proposed a change to stackforge/python-openstacksdk: Simple network resource  https://review.openstack.org/10259317:57
*** terrylhowe has quit IRC18:18
*** terrylhowe has joined #openstack-sdks18:19
*** samchoi has joined #openstack-sdks18:29
*** stevemar has quit IRC18:52
*** stevemar has joined #openstack-sdks18:52
*** stevemar has quit IRC18:56
*** stevemar has joined #openstack-sdks18:56
openstackgerritTerry Howe proposed a change to openstack/python-openstackclient: Use region instead of region_name  https://review.openstack.org/10260618:58
openstackgerritDean Troyer proposed a change to stackforge/python-openstacksdk: Change transport JSON handling  https://review.openstack.org/10260719:03
dtroyerterrylhowe: ^^^^ is what I think we can do to properly handle unexpected not-JSON responses, plus a bunch of redirect tests for both cases19:03
*** openstackgerrit has quit IRC19:04
*** openstackgerrit has joined #openstack-sdks19:06
*** jamiehannaford has quit IRC19:06
*** jamiehannaford has joined #openstack-sdks19:09
*** etoews has joined #openstack-sdks19:15
terrylhowedtroyer: are you going to revive the old api discovery stuff?19:20
dtroyermy plan is to do so, but it's low o the priority list atm19:21
terrylhowek19:21
dtroyerterrylhowe: re https://review.openstack.org/#/c/102607/, the two things I think we need to answer is what happens when a response is assumed to be JSON (via the accept=JSON default) but is not because it is either plain text or invalid in some other way.19:57
dtroyerI think the options are: a) resp.body not present; b) resp.body = None (or ""); c) resp.body = resp.text19:58
*** jamiehannaford has quit IRC20:00
*** openstackgerrit has quit IRC20:05
*** openstackgerrit has joined #openstack-sdks20:06
*** etoews_ has joined #openstack-sdks20:27
*** etoews has quit IRC20:28
*** stevemar has quit IRC20:45
*** mfer has quit IRC21:09
*** etoews_ has quit IRC21:18
*** HenryG has quit IRC21:23
*** jamiehannaford has joined #openstack-sdks21:54
*** openstackgerrit has quit IRC22:35
*** openstackgerrit has joined #openstack-sdks22:36
*** etoews has joined #openstack-sdks22:43
*** jdag has quit IRC22:45
*** jdag has joined #openstack-sdks22:48
*** jamiehannaford has quit IRC23:02
*** jamiehannaford has joined #openstack-sdks23:23

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