Wednesday, 2015-02-25

*** kgriffs|afk is now known as kgriffs00:35
*** kgriffs is now known as kgriffs|afk00:46
*** malini has quit IRC00:48
*** achanda has quit IRC01:10
*** openstack has joined #openstack-zaqar01:12
*** achanda has joined #openstack-zaqar01:13
*** dmitryme2 has joined #openstack-zaqar01:23
*** dmitryme has quit IRC01:24
*** dmitryme2 is now known as dmitryme01:24
*** ekarlso has quit IRC01:35
*** vkmc has quit IRC01:35
*** flaper87 has quit IRC01:35
*** ekarlso has joined #openstack-zaqar01:39
*** vkmc has joined #openstack-zaqar01:39
*** flaper87 has joined #openstack-zaqar01:39
*** ekarlso has quit IRC01:40
*** vkmc has quit IRC01:40
*** flaper87 has quit IRC01:40
*** ekarlso has joined #openstack-zaqar01:41
*** vkmc has joined #openstack-zaqar01:41
*** flaper87 has joined #openstack-zaqar01:41
*** achanda has quit IRC01:51
*** achanda has joined #openstack-zaqar01:53
*** mpanetta has joined #openstack-zaqar01:56
*** mpanetta has quit IRC02:04
*** reed has quit IRC02:30
*** reed_ has joined #openstack-zaqar02:30
*** achanda has quit IRC02:44
*** reed_ is now known as reed02:48
*** reed has quit IRC02:48
*** reed has joined #openstack-zaqar02:48
*** achanda has joined #openstack-zaqar03:03
*** achanda has quit IRC03:41
*** achanda has joined #openstack-zaqar03:42
*** flwang1 has quit IRC03:51
*** reed has quit IRC03:55
*** achanda has quit IRC03:57
*** achanda has joined #openstack-zaqar04:02
*** achanda has quit IRC04:04
*** achanda has joined #openstack-zaqar04:12
*** malini has joined #openstack-zaqar04:18
*** malini has quit IRC04:27
*** kgriffs|afk is now known as kgriffs04:54
*** achanda has quit IRC05:12
*** chandankumar has joined #openstack-zaqar05:26
*** achanda has joined #openstack-zaqar05:35
*** chandankumar has quit IRC05:50
*** exploreshaifali has joined #openstack-zaqar05:51
*** chandankumar has joined #openstack-zaqar06:20
flaper87flwang: debugging the gate issue07:11
exploreshaifaligooooooooooood morning :D07:33
flaper87flwang: https://review.openstack.org/#/c/159027/07:39
flaper87exploreshaifali: goooooooooooooooooooooooooooooooood morning07:39
*** ekarlso has quit IRC07:48
exploreshaifaliflaper87: I am inspecting how 'self.driver' in inititalized in QueueController08:08
exploreshaifaliso this is done somewhere in parent class of QueueControlller https://github.com/openstack/zaqar/blob/master/zaqar/storage/mongodb/queues.py#L8708:08
exploreshaifaliQueueController passes 2 arguments to its parent class' __init__()08:09
flaper87exploreshaifali: yes, look at the parent clases and how that controller is initialized08:09
exploreshaifaliQueueController's parent is base.Queue08:09
exploreshaifaliwhich does not define __init__()08:09
flaper87exploreshaifali: https://github.com/openstack/zaqar/blob/master/zaqar/bootstrap.py#L104-L11608:09
exploreshaifaliso base.Queue's parent is base.ControllerBase08:10
exploreshaifaliflaper87: but base.ControllerBase's __init__() accept only 1 parameter08:12
flaper87exploreshaifali: https://github.com/openstack/zaqar/blob/master/zaqar/storage/mongodb/driver.py#L189-L19008:12
flaper87that's what you need08:12
exploreshaifaliflaper87: okay, but for a while lets leave what I need, I want to understand how it is working08:14
exploreshaifaliproblem is - QueueController passes 2 arguments to its parent class' __init__()08:15
exploreshaifalithat does to base.ControllerBase's __init__() that accept only one argument08:15
exploreshaifalihow this can work?08:15
exploreshaifalisurely I am missing something in between08:16
flaper87exploreshaifali: you're right. Lets clear how it works08:16
flaper87so, the way it works is08:16
flaper87The bootstrap class creates an instance of a storage driver08:16
flaper87which you find in `driver.py`08:16
exploreshaifaliokay08:17
flaper87Then to access the different controllers, you'd access them through the storage driver08:17
flaper87and depending on the driver you'll be able to access "data controllers" or "control controllers"08:17
flaper87so, this thing you've created, should behave like the other controllers do08:17
exploreshaifaliso the 'self.driver' that we need is this driver only to access controllers08:17
flaper87therefore I think it should receive an instance of the driver08:17
flaper87instead of receiving all the other things08:18
flaper87lemme og and read your implementation again08:18
exploreshaifaliflaper87: in my implementation we have decided MessageQueueHandler will not inherit any class08:19
flaper87exploreshaifali: yeah, you will need the data driver08:20
flaper87yes08:20
flaper87that's correct08:20
flaper87do you understand why is that?08:20
exploreshaifaliyes I will need a data driver08:20
exploreshaifaliflaper87: you mean, why we don't need to inherit any class?08:20
flaper87yeah08:21
exploreshaifalifirst reason they are not needed, and also to reduce extra overhead of overrding abstract methods08:21
*** achanda has quit IRC08:22
exploreshaifaliflaper87: ^^08:22
flaper87exploreshaifali: yeah, that's correct08:22
flaper87cool08:22
flaper87so, now08:22
*** achanda has joined #openstack-zaqar08:22
flaper87mmh, I was looking for the function in your patch08:23
flaper87anyway, in your function, you'll have to pass the driver in the invoke_args instead of the conf08:23
flaper87the conf object is accessible through the driver08:23
flaper87self.driver.conf08:23
exploreshaifaliflaper87: sorry I should have updated patch08:24
flaper87no worries08:24
exploreshaifaliflaper87: okay, so will pass driver object08:24
flaper87coolio08:24
flaper87lemme know08:24
exploreshaifaliflaper87: all above stuff is okay, but where does QueueController's call to superclass go then ? https://github.com/openstack/zaqar/blob/master/zaqar/storage/mongodb/queues.py#L8708:25
exploreshaifalias per I understand it is going to base.ControllerBase's __init__() https://github.com/openstack/zaqar/blob/master/zaqar/storage/base.py#L27608:26
flaper87exploreshaifali: ah it doesn't go anywhere, you need to add self.driver = driver yourself08:51
flaper87:)08:51
flaper87since you're not using any superclass08:51
exploreshaifaliflaper87: yea I got what is needed in current situation :) Thanks!08:52
*** ekarlso has joined #openstack-zaqar08:53
*** dynarro has joined #openstack-zaqar08:55
flaper87exploreshaifali: awesome, let me know :)08:56
exploreshaifaliflaper87: okay :D08:56
flaper87exploreshaifali: we're almost there08:56
flaper87there are many subtles things but you're keeping up with the fight08:56
flaper87keep doing so08:56
exploreshaifaliflaper87: its because I got surper awesome Mentor :P08:57
* flaper87 looks around trying to find that super awesome mentor08:58
flaper87:P08:58
exploreshaifalilol09:00
exploreshaifalidoes flaper87 need one?09:00
flaper87exploreshaifali: we all need one :)09:00
exploreshaifaliyea yea.... I am luck I got one ;)09:01
*** achanda has quit IRC09:02
exploreshaifalilucky*09:04
*** achanda has joined #openstack-zaqar09:04
exploreshaifalibrb lunch09:08
*** achanda has quit IRC09:08
flaper87exploreshaifali: enjoy your meal09:10
*** exploreshaifali has quit IRC09:12
*** dynarro has quit IRC09:47
*** kgriffs is now known as kgriffs|afk09:49
*** malini has joined #openstack-zaqar10:22
*** kgriffs|afk is now known as kgriffs10:51
*** kgriffs is now known as kgriffs|afk11:01
*** exploreshaifali has joined #openstack-zaqar11:46
*** kgriffs|afk is now known as kgriffs12:40
*** kgriffs is now known as kgriffs|afk12:50
*** diga has quit IRC13:37
*** dynarro has joined #openstack-zaqar14:01
openstackgerritShaifali Agrawal proposed openstack/zaqar: Removing QueueController from data to control plane  https://review.openstack.org/14434014:01
*** malini has quit IRC14:20
*** kgriffs|afk is now known as kgriffs14:26
*** kgriffs is now known as kgriffs|afk14:36
*** csoukup has joined #openstack-zaqar14:52
*** malini has joined #openstack-zaqar14:55
*** ametts has joined #openstack-zaqar14:58
*** openstackgerrit has quit IRC15:08
*** openstackgerrit has joined #openstack-zaqar15:08
*** cpallares has joined #openstack-zaqar15:13
openstackgerritShaifali Agrawal proposed openstack/zaqar: Removing QueueController from data to control plane  https://review.openstack.org/14434015:19
*** dynarro has quit IRC15:20
openstackgerritShaifali Agrawal proposed openstack/zaqar: Removing QueueController from data to control plane  https://review.openstack.org/14434015:26
*** exploreshaifali has quit IRC15:27
*** kgriffs|afk is now known as kgriffs15:37
*** kgriffs is now known as kgriffs|afk15:46
*** chandankumar has quit IRC15:47
*** kgriffs|afk is now known as kgriffs15:50
*** kgriffs is now known as kgriffs|afk15:51
*** chandankumar has joined #openstack-zaqar15:53
*** exploreshaifali has joined #openstack-zaqar16:01
exploreshaifaliflaper87, https://review.openstack.org/#/c/144340/16:03
*** dynarro has joined #openstack-zaqar16:04
*** malini has quit IRC16:05
*** malini has joined #openstack-zaqar16:05
*** malini has quit IRC16:07
*** exploreshaifali has quit IRC16:16
*** achanda has joined #openstack-zaqar16:24
*** kgriffs|afk is now known as kgriffs16:25
*** kgriffs is now known as kgriffs|afk16:27
*** exploreshaifali has joined #openstack-zaqar16:33
*** achanda has quit IRC16:36
*** reed has joined #openstack-zaqar16:38
exploreshaifaliflaper87, https://review.openstack.org/#/c/144340/20/zaqar/storage/pipeline.py L126 I passed just self, as there we don't have access to queue_controller()16:40
flaper87exploreshaifali: lemme check16:42
exploreshaifaliI know that won't be correct but atm thought to do that for the sake of patch update16:42
*** openstackstatus has joined #openstack-zaqar16:43
*** ChanServ sets mode: +v openstackstatus16:43
flaper87exploreshaifali: mmh16:54
flaper87mmh16:54
flaper87thinking16:54
flaper87mhh16:54
flaper87I think what you want to do there is to pass self._storage16:54
flaper87which is the *actual* driver16:54
exploreshaifaliflaper87, okay!16:54
flaper87`self` is a driver but it's the pipeline data driver16:54
exploreshaifaliflaper87, ok, also please can you tell me from where *@_exists.purges* is coming in https://review.openstack.org/#/c/144340/20/zaqar/storage/mongodb/messages.py L87716:56
exploreshaifaliflaper87, I am getting *./zaqar/storage/mongodb/messages.py:877:6: F821 undefined name '_exists'* for it16:57
flaper87exploreshaifali: that's literally kgriffs|afk fault17:01
flaper87:P17:01
flaper87exploreshaifali: _exists is the cache17:01
exploreshaifalilol17:01
flaper87wait17:01
flaper87lemme point you to some code17:01
exploreshaifalikgriffs|afk,  :D17:01
exploreshaifaliok17:01
vkmcits always he's fault17:02
flaper87https://github.com/openstack/zaqar/blob/master/zaqar/storage/mongodb/queues.py#L257-L26417:02
vkmchis*17:02
flaper87kgriffs|afk: dude, really... come back. We'll soon run out of excuses to blame you17:02
flaper87mmh17:02
flaper87actually, that won't ever happen17:02
flaper87but we miss oyu here17:02
vkmckgriffs|afk, yeah, we promise we will behave17:03
vkmckgriffs|afk, now come back17:03
*** malini has joined #openstack-zaqar17:05
*** chandankumar has quit IRC17:11
*** malini has quit IRC17:11
flaper87flwang: so, I gave your patch a try in a local vm17:12
flaper87guess what?17:12
flaper87it worked17:12
flaper87vkmc: exploreshaifali and others https://review.openstack.org/#/c/159027/ (FYI)17:12
* vkmc checks17:13
* exploreshaifali clicks17:13
*** dynarro has quit IRC17:25
*** exploreshaifali has quit IRC17:32
*** kgriffs|afk is now known as kgriffs17:37
*** kgriffs is now known as kgriffs|afk17:47
*** achanda has joined #openstack-zaqar18:47
*** kgriffs|afk is now known as kgriffs19:05
* kgriffs misses everyone19:05
*** malini has joined #openstack-zaqar19:07
* kgriffs even if they do blame him for All the Thingsā„¢19:07
*** malini has quit IRC19:08
*** malini has joined #openstack-zaqar19:09
*** kgriffs is now known as kgriffs|afk19:24
*** reed has quit IRC19:25
*** achanda has quit IRC19:27
*** achanda has joined #openstack-zaqar19:27
*** exploreshaifali has joined #openstack-zaqar19:27
*** reed has joined #openstack-zaqar19:28
*** chandankumar has joined #openstack-zaqar19:50
*** flwang1 has joined #openstack-zaqar19:56
*** achanda has quit IRC20:00
*** achanda has joined #openstack-zaqar20:08
flwangflaper87: ping20:20
flwangflaper87: it should work :)20:20
*** kgriffs|afk is now known as kgriffs20:25
*** exploreshaifali has quit IRC20:27
*** cpallares has quit IRC20:32
*** cpallares has joined #openstack-zaqar20:32
*** kgriffs is now known as kgriffs|afk20:35
*** ametts has quit IRC20:41
*** achanda has quit IRC20:47
*** achanda has joined #openstack-zaqar20:47
*** malini has quit IRC20:55
*** chandankumar has quit IRC21:01
*** echevemaster has joined #openstack-zaqar22:20
*** csoukup has quit IRC22:35
*** malini has joined #openstack-zaqar22:38
*** malini has quit IRC22:44
*** reed has quit IRC23:13
*** achanda has quit IRC23:26
*** achanda has joined #openstack-zaqar23:36

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