Wednesday, 2014-11-05

*** openstack has joined #openstack-zaqar08:56
*** tmu has joined #openstack-zaqar08:56
*** openstackstatus has joined #openstack-zaqar08:57
*** ChanServ sets mode: +v openstackstatus08:57
*** jeffrey4l has joined #openstack-zaqar09:09
*** openstack has joined #openstack-zaqar09:11
*** openstackstatus has joined #openstack-zaqar09:12
*** ChanServ sets mode: +v openstackstatus09:12
*** openstackgerrit has joined #openstack-zaqar09:15
openstackgerritJeffrey Zhang proposed a change to openstack/zaqar: Capture the stdout and stderr based on environment  https://review.openstack.org/12427309:18
*** openstackgerrit has quit IRC09:34
*** openstackgerrit has joined #openstack-zaqar09:35
*** exploreshaifali has joined #openstack-zaqar09:38
exploreshaifalihello jeffrey4l, please can you help me in understanding bug https://bugs.launchpad.net/python-zaqarclient/+bug/135888909:49
jeffrey4lexploreshaifali, sure.09:50
jeffrey4li noticed this bug before.09:50
exploreshaifalijeffrey4l, bug is talking about file https://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/transport/response.py09:51
jeffrey4lthe root cause is that the server return a not valid json object( may be a standard html file), but the client does not validate it and call `json.loads` directly09:52
jeffrey4lyep09:52
exploreshaifalijeffrey4l, I am a bit new to openstack, want to contribute and thought here I will be needed to handle an excelption09:54
jeffrey4lthe right direction should be, checking the http status code and the Content Type in the header before using `json.loads` method.09:54
jeffrey4lI don't think so.09:54
exploreshaifalijeffrey4l, but in that file I am not getting where should I put try except block09:54
jeffrey4ljust handle the exception is not a good solution.09:55
jeffrey4lthe right direction should be, checking the http status code and the Content Type in the header before using `json.loads` method.09:55
jeffrey4lif the status code != 200 or content-type != application/json , then raise exception.09:56
exploreshaifaliamm okay but ypu mentioned before using json.load, where it is used?09:57
jeffrey4lu means the `json.loads` method? OR?09:58
exploreshaifaliyes `json.load` method09:58
jeffrey4lhttps://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/transport/response.py#L4609:59
jeffrey4lat line 4610:00
exploreshaifaliokay10:00
exploreshaifaliso that method call should be in try block?10:01
jeffrey4lno.10:01
exploreshaifalijeffrey4l, is this is the wiki page for zaqar client https://wiki.openstack.org/wiki/Python_Client_Library_%28Marconi%2910:03
jeffrey4lexploreshaifali, the right way should be like http://paste.openstack.org/show/129547/10:03
jeffrey4lgtg, brb10:03
exploreshaifalijeffrey4l, ok Thanks :)10:04
*** jeffrey4l has quit IRC10:08
*** jeffrey4l has joined #openstack-zaqar10:13
*** exploreshaifali has quit IRC10:15
*** exploreshaifali has joined #openstack-zaqar10:41
*** jeffrey4l has quit IRC11:04
*** exploreshaifali has quit IRC11:39
*** openstackgerrit has quit IRC11:47
*** boris-42_ has joined #openstack-zaqar12:01
*** boris-42_ has quit IRC12:08
*** exploreshaifali has joined #openstack-zaqar12:12
*** jeffrey4l has joined #openstack-zaqar12:14
*** boris-42_ has joined #openstack-zaqar12:56
*** boris-42_ has quit IRC13:30
*** boris-42_ has joined #openstack-zaqar13:56
*** sriram has joined #openstack-zaqar14:00
*** jchai has joined #openstack-zaqar14:08
*** mpanetta has joined #openstack-zaqar14:21
*** exploreshaifali has quit IRC14:25
*** mpanetta_ has joined #openstack-zaqar14:33
*** mpanetta has quit IRC14:33
*** mpanetta_ is now known as mpanetta14:52
*** boris-42_ has quit IRC14:53
*** malini|afk is now known as malini_znc15:02
*** malini_znc has left #openstack-zaqar15:03
*** malini_znc has joined #openstack-zaqar15:03
*** malini_znc is now known as malini|afk15:04
*** malini has joined #openstack-zaqar15:04
*** boris-42_ has joined #openstack-zaqar15:10
*** boris-42_ has quit IRC15:21
riveterin queues/storage/base.py, is there a reason that Queue.{get,set}_metadata are not marked as abstract methods?15:47
*** malini has quit IRC15:50
*** malini has joined #openstack-zaqar15:51
*** malini has quit IRC15:53
*** malini has joined #openstack-zaqar15:57
*** jchai has quit IRC16:29
*** jeffrey4l has quit IRC16:31
*** jeffrey4l has joined #openstack-zaqar16:34
*** exploreshaifali has joined #openstack-zaqar16:38
*** boris-42_ has joined #openstack-zaqar16:44
*** boris-42_ has quit IRC16:47
*** boris-42_ has joined #openstack-zaqar17:05
*** boris-42_ has quit IRC17:23
*** mpanetta_ has joined #openstack-zaqar18:41
*** mpanetta has quit IRC18:42
*** mpanetta_ has quit IRC18:45
*** mpanetta has joined #openstack-zaqar18:45
*** malini1 has joined #openstack-zaqar19:08
*** malini has quit IRC19:09
*** ametts has joined #openstack-zaqar19:20
riveterkgriffs, flaper87: https://review.openstack.org/#/c/132907/20:21
*** malini1 has quit IRC21:02
exploreshaifalijeffrey4l, I want to play with zaqarclient following wiki https://wiki.openstack.org/wiki/Python_Client_Library_%28Marconi%29#Workflow21:12
exploreshaifaliI have installed zaqarclient with command `pip install --upgrade python-zaqarclient`21:13
exploreshaifalijeffrey4l, now when I try to import zaqarclient.connection in python command promt it gives *Import error*21:14
exploreshaifalino module named connection21:14
exploreshaifaliplease can you provide any guidence on how will I able to play wiht zaqrclient21:15
*** exploreshaifali has quit IRC21:24
*** echevemaster has joined #openstack-zaqar22:13
*** echevemaster has quit IRC22:13
*** echevemaster has joined #openstack-zaqar22:13
*** sriram has quit IRC22:17
*** mpanetta has quit IRC22:37
*** yfujioka has joined #openstack-zaqar23:26

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