Wednesday, 2015-01-21

*** amitgandhinz has joined #openstack-zaqar00:01
*** amitgandhinz has quit IRC00:05
*** davideagnello has quit IRC00:23
*** davideagnello has joined #openstack-zaqar00:24
*** davideagnello has quit IRC00:35
*** davideagnello has joined #openstack-zaqar00:36
*** kgriffs is now known as kgriffs|afk00:38
*** jasondotstar has quit IRC00:53
*** davideagnello has quit IRC01:16
*** davideagnello has joined #openstack-zaqar01:17
*** davideagnello has quit IRC01:19
*** davideagnello has joined #openstack-zaqar01:21
*** davideagnello has quit IRC01:30
*** davideagnello has joined #openstack-zaqar01:31
*** achanda_ has joined #openstack-zaqar01:34
*** achanda has quit IRC01:34
*** achanda_ has quit IRC01:38
*** achanda has joined #openstack-zaqar01:38
*** achanda has quit IRC03:21
*** echevemaster has joined #openstack-zaqar03:39
*** amalagon has quit IRC03:39
*** diga has joined #openstack-zaqar04:07
*** flwang1 has quit IRC04:31
*** amalagon has joined #openstack-zaqar04:31
*** echevemaster has quit IRC05:18
*** achanda has joined #openstack-zaqar05:25
*** exploreshaifali has joined #openstack-zaqar06:22
openstackgerritShaifali Agrawal proposed openstack/zaqar: Removing QueueController from data to control plane  https://review.openstack.org/14434007:14
exploreshaifaliflaper87, around?07:24
exploreshaifaligood mooooooorning!! :)07:24
flaper87exploreshaifali: hey07:25
flaper87good morning07:25
flaper87yes07:25
exploreshaifalithoughts for error *TypeError: __init__() takes exactly 4 arguments (3 given)* in http://logs.openstack.org/40/144340/11/check/gate-zaqar-python27/8e4847d/console.html07:25
exploreshaifaliflaper87, ^07:25
flaper87exploreshaifali: did you update the pooling DataDriver and added the new argument to the constructor ?07:26
exploreshaifaliflaper87, yes07:27
exploreshaifalialso I have updated pipline DataDriver07:27
flaper87exploreshaifali: I think you now need to update the tests' base classes07:31
flaper87zaqar/tests/unit/base.py07:31
flaper87There you'll have to pass the control to the DataDriver instances07:31
exploreshaifaliflaper87, okay, one more thing07:32
exploreshaifaliflaper87, we can remove queue_controller from DataDriver as in https://review.openstack.org/#/c/144340/12/zaqar/storage/base.py07:33
flaper87err07:34
flaper87ops07:34
flaper87err07:34
flaper87damnit07:34
flaper87anyway07:34
flaper87so yeah, we could remove it but you need to access: self.control_driver.queue_controller07:34
exploreshaifaliinstead of using self.queue_controller.create we can directly call self.control_driver.queue_controller.create07:34
exploreshaifaliyes yes07:34
flaper87exploreshaifali: ok, you'll need to fix that patch then :D07:36
exploreshaifaliyup :D07:37
flaper87exploreshaifali: great work there, btw!07:37
exploreshaifaliflaper87, all thanks to you and vkmc :D07:43
*** achanda has quit IRC07:54
*** exploreshaifali has quit IRC08:29
*** exploreshaifali has joined #openstack-zaqar08:32
*** boris-42 has quit IRC08:33
*** flwang1 has joined #openstack-zaqar09:12
*** flwang2 has joined #openstack-zaqar09:31
*** flwang1 has quit IRC09:32
exploreshaifaliflaper87, we connot remove queue_controller from DataDriver classes and also from DataDriverBase because pipeline and pooling have their own queue_controller09:48
exploreshaifalihttps://github.com/openstack/zaqar/blob/master/zaqar/storage/pipeline.py#L10909:48
exploreshaifaliflaper87, also where is test case defined for DataDriver09:49
flaper87exploreshaifali: mmh, good point. lets keep it in the DataDriver for now then09:49
exploreshaifaliI am looking for it, but not getting09:49
flaper87exploreshaifali: zaqar/tests/unit/base.py09:49
flaper87That's were the base class is defined09:49
flaper87there's no specific test for DataDriver but for the impls themselves09:50
flaper87however, I think the base class is the only thing you need to update09:50
exploreshaifaliflaper87, there is no base.py file  inside tests/unit folder09:51
exploreshaifaliat other places I can find base.py file but they does not contain related to DataDriver09:52
exploreshaifalihttps://github.com/openstack/zaqar/tree/master/zaqar/tests/unit09:52
exploreshaifalihttps://github.com/openstack/zaqar/tree/master/tests/unit09:52
flaper87exploreshaifali: zaqar/tests/unit/storage/base.py *09:52
exploreshaifaliyes flaper87, but it does not contain anything for DataDriver https://github.com/openstack/zaqar/blob/master/zaqar/tests/unit/storage/base.py09:53
exploreshaifalihow will know what is related to DataDriver09:54
exploreshaifaliall the test cases defined their are for controllerBase and so09:54
flaper87exploreshaifali: https://github.com/openstack/zaqar/blob/master/zaqar/tests/unit/storage/base.py#L3709:55
flaper87exploreshaifali: https://github.com/openstack/zaqar/blob/master/zaqar/tests/unit/storage/base.py#L61-L6809:55
*** flwang2 has quit IRC09:56
*** flwang1 has joined #openstack-zaqar10:00
*** diga has quit IRC10:06
*** boris-42 has joined #openstack-zaqar11:05
*** exploreshaifali has quit IRC11:17
vkmcmorning!12:04
flaper87vkmc: morning :)12:08
*** dynarro has joined #openstack-zaqar13:01
*** flwang1 has quit IRC13:25
*** flwang1 has joined #openstack-zaqar13:26
*** jchai has joined #openstack-zaqar14:06
*** exploreshaifali has joined #openstack-zaqar14:08
*** sriram has joined #openstack-zaqar14:13
exploreshaifalivkmc, \o14:26
exploreshaifalikragniz,  \o14:26
exploreshaifaligood morning :)14:26
kragnizexploreshaifali vkmc morning!14:27
vkmchi exploreshaifali, kragniz o/14:27
*** mpanetta has joined #openstack-zaqar14:29
*** jchai is now known as jchai_afk14:29
*** jchai_afk is now known as jchai14:35
*** amitgandhinz has joined #openstack-zaqar14:55
exploreshaifalivkmc, do you know where TestBase exists? https://github.com/openstack/zaqar/blob/master/zaqar/tests/unit/storage/base.py#L3514:59
vkmcexploreshaifali, let's think15:00
* exploreshaifali thinking :P15:00
vkmcexploreshaifali, what is that line doing?15:00
vkmcL3515:00
exploreshaifalideclaaring class15:00
exploreshaifaliand inheriting another class15:00
vkmccool15:00
exploreshaifaliTestBase should be somewhere inside zaqar/tests15:01
vkmcso.. its inheriting from TestBase15:01
vkmcand how it is calling it?15:01
exploreshaifaliusing testing module15:01
exploreshaifalifrom zaqar import tests as testing15:01
vkmcexactly15:01
vkmcso... from zaqar import tests15:02
vkmcthat is what we want to check15:02
exploreshaifaliI have checked15:02
exploreshaifalihttps://github.com/openstack/zaqar/tree/master/tests15:02
vkmcwe have tests defined in two levels15:03
vkmchere the whole explanation of it http://blog.flaper87.org/post/test-concepts-and-python/15:03
exploreshaifaligot it https://github.com/openstack/zaqar/blob/master/zaqar/tests/base.py#L2615:03
vkmcbut, checking where you are calling it15:03
vkmcexactly15:04
vkmc:)15:04
exploreshaifalivkmc, yes these 2 levels is a bit confusing :)15:04
exploreshaifalianyways, vkmc thanks!!15:04
vkmcexploreshaifali, no worries15:04
exploreshaifali:)15:04
*** jasondotstar has joined #openstack-zaqar15:08
*** jasondotstar has quit IRC15:08
*** jasondotstar has joined #openstack-zaqar15:09
*** jasondotstar has quit IRC15:38
*** jasondotstar has joined #openstack-zaqar16:01
*** jasondotstar has quit IRC16:27
*** jchai is now known as jchai_afk16:33
*** amalagon has quit IRC16:50
*** amalagon has joined #openstack-zaqar16:50
*** amalagon has quit IRC16:54
*** jchai_afk is now known as jchai17:14
*** dynarro has quit IRC17:18
*** flwang1 has quit IRC17:25
*** echevemaster has joined #openstack-zaqar17:27
*** amalagon has joined #openstack-zaqar17:34
*** achanda has joined #openstack-zaqar17:43
*** jasondotstar has joined #openstack-zaqar17:44
*** boris-42 has quit IRC17:53
*** jchai is now known as jchai_afk18:10
*** exploreshaifali has quit IRC18:20
*** jasondotstar has quit IRC18:24
*** boris-42 has joined #openstack-zaqar18:28
*** flwang1 has joined #openstack-zaqar19:15
*** jchai_afk is now known as jchai19:20
*** flwang1 has quit IRC19:20
*** exploreshaifali has joined #openstack-zaqar19:25
exploreshaifalivkmc, around?19:31
vkmcexploreshaifali, here!19:32
exploreshaifaliI have changed constructor defination of DataDriver and DataDriverBase classes19:33
exploreshaifaliso accordingly need to change test case for them19:33
exploreshaifalihttps://github.com/openstack/zaqar/blob/master/zaqar/tests/unit/storage/base.py#L61-L68 here some modification needed19:34
exploreshaifalibut problem is I don't understand exactly what is happening here19:34
exploreshaifalivkmc, the changes I made in DataDriver classes is just added one more argument in its __init__()19:35
exploreshaifaliwhich is control_driver19:35
exploreshaifalivkmc, I think on the lilne 62  self.driver = self.driver_class(self.conf, cache) I need to add one more argument19:36
exploreshaifaliwhich represent control_driver19:36
exploreshaifaliwhich is an instance of class COntrolDriver....but from where I will arrange an instance of ControlDriver there19:36
exploreshaifalivkmc, am I suppose to give more information?19:37
exploreshaifali:P19:37
vkmcso... let me read the backlog19:39
exploreshaifalibacklog of what?19:40
exploreshaifalifor test cases?19:40
vkmck k19:41
vkmcthe backlog that has the errors you were getting and lead you to modify the tests19:42
vkmcso are those changes for review?19:44
exploreshaifalivkmc, the current patch is not the latest one,but yes many errors are same19:44
vkmcyep19:44
vkmcyou added another param to both datadriver and datadriverbase19:44
exploreshaifaliyes19:44
vkmcand which is the error you are fixing?19:46
vkmcI'm checking py27 console log19:46
exploreshaifaliyes for same log TypeError: __init__() takes exactly 4 arguments (3 given)19:46
vkmck k19:47
vkmcit seems like the problem is here19:50
vkmchttps://github.com/openstack/zaqar/blob/master/zaqar/storage/utils.py#L89-L9919:50
vkmcprecisely in L9319:50
vkmcload_storage_driver should have a control_driver param19:51
vkmcnot in the tests19:51
exploreshaifalivkmc, have added that https://review.openstack.org/#/c/144340/12/zaqar/storage/utils.py19:52
vkmcoh19:52
vkmc:)19:52
*** fifieldt__ has joined #openstack-zaqar19:53
vkmcthis must be kgriffs|afk fault19:54
exploreshaifalivkmc, sorry but for what? :P19:55
vkmcBECAUSE19:55
vkmchaha19:55
exploreshaifali:D19:56
vkmcso... if control_driver is None, its not appended to the args19:56
vkmcif its not appended to the args, then you are calling init with 3, not 4 args19:56
vkmcand it fails19:56
*** fifieldt_ has quit IRC19:56
vkmcin which case control_driver should be None?19:57
vkmcit should be always passed19:57
vkmcor... if it can be none, then the datadriver __init__ method should have a default value19:57
exploreshaifaliyes and it will be none only when load_storage_driver of utils is called for ControlDriver19:57
exploreshaifaliand not for DataDriver19:57
exploreshaifalivkmc, https://review.openstack.org/#/c/144340/12/zaqar/bootstrap.py19:58
exploreshaifaliDataDriver __init__ cannot have default value for drivers/DataDrier19:58
vkmcI see19:59
vkmcok19:59
vkmcthat is the output if you put a default value?19:59
exploreshaifalibut yes I believe storage.pipeline and pooling's DataDriver does not need control_driver19:59
exploreshaifalivkmc, which output?20:00
vkmc> <exploreshaifali> DataDriver __init__ cannot have default value for drivers/DataDrier20:01
*** achanda has quit IRC20:01
exploreshaifaliby that I mean..... driver.DataDriver's __init__ will always need control_driver instance20:02
vkmcok20:02
vkmcso..20:02
vkmchttps://review.openstack.org/#/c/144340/12/zaqar/storage/utils.py20:03
vkmccontrol_driver shouldn't be none here20:03
vkmcor what am I missing? :D20:03
*** achanda has joined #openstack-zaqar20:04
*** jasondotstar has joined #openstack-zaqar20:04
exploreshaifalivkmc, I think I caught the issue20:05
vkmcexploreshaifali, yay20:05
exploreshaifalivkmc, in bootstrap.py20:05
exploreshaifalithere is def storage(self)20:05
vkmcaha...20:05
exploreshaifaliwhich call utills load_storage_driver20:06
exploreshaifaliwhoes argments we have changed20:06
vkmcaha...20:06
exploreshaifalibut in bootstrap.py there is also def control(self)20:06
vkmcgood catch20:06
exploreshaifaliwhich call same method from utils.py20:07
exploreshaifaliyeah20:07
exploreshaifalivkmc, so let me try to modify that and then see20:07
exploreshaifalirest other error :D20:07
vkmcmaybe, if that methods loads different drivers and that is what is is giving you trouble20:07
vkmcyou will need to create a different method20:07
vkmcin utils.py20:07
exploreshaifaliyes, if needed we can do that too20:08
exploreshaifalicorrect20:08
vkmccool20:08
exploreshaifalivkmc, no no20:08
exploreshaifalimy catch is not correct20:08
vkmcboo :(20:09
exploreshaifalibecause load_storage_driver of utils.py have defined optional argument20:09
exploreshaifalicontrol_driver=None20:09
vkmcok so20:09
*** jasondotstar has quit IRC20:09
*** jchai is now known as jchai_afk20:09
vkmcwe go back to what I was asking...20:09
exploreshaifalidammm20:09
vkmcif control_driver=None20:09
exploreshaifaliok20:09
vkmcthen its not passed when you load the driver20:10
vkmcand the call to the datadriver fails20:10
*** flwang1 has joined #openstack-zaqar20:10
vkmcso... or you add a default value to datadriver20:10
vkmcor you refactor that method20:10
exploreshaifalifor all DataDriver it will be passed20:11
*** jchai_afk is now known as jchai20:11
vkmcand in which case it won't be passed?20:15
exploreshaifalivkmc, it will not be passed for pooling.DataDriver pipeline.DataDriver and for ControlDriver20:16
exploreshaifaliI have modified pooling.DataDriver and pipeline.DataDriver accordingly20:16
exploreshaifalithat is in their __init__ have added optional argument20:17
exploreshaifalivkmc, do you want me to update the latest patch?20:17
vkmcexploreshaifali, plese do20:24
vkmcplease*20:24
exploreshaifaliok :)20:24
openstackgerritShaifali Agrawal proposed openstack/zaqar: Removing QueueController from data to control plane  https://review.openstack.org/14434020:25
*** flwang1 has quit IRC20:25
*** mpanetta has quit IRC20:28
*** mpanetta has joined #openstack-zaqar20:36
exploreshaifalivkmc, ^^^20:36
exploreshaifalifew mistakes I caught in base.py20:37
exploreshaifaliavoid them - extra comented line for the call func = functools.partial(self.queue_controller.create20:37
exploreshaifaliand deleted @abc.abstractproperty for queue_controller of DataDriver20:38
exploreshaifaliother then that all is uptodate20:38
vkmcexploreshaifali, did you checked https://github.com/openstack/zaqar/tree/master/tests/unit/storage/test_pool_*.py?21:14
*** mpanetta has quit IRC21:14
exploreshaifalivkmc, you are still struggling with it, Thanks a loooooooooooooot21:16
exploreshaifalino I haven't looked it21:16
exploreshaifaliI was trting different things to sort the issue, which are coming in my mind21:16
exploreshaifalilooking at those tests now21:17
vkmcexploreshaifali, haha I got distracted for a while, sorry about it21:18
vkmck, let me know21:18
exploreshaifalivkmc, yes sure :)21:18
*** mpanetta has joined #openstack-zaqar21:26
exploreshaifalivkmc, prolly caught the error https://github.com/openstack/zaqar/blob/master/zaqar/tests/unit/storage/base.py#L62 here need to pass one more argument22:00
exploreshaifalithat should be a ControlDriver instance22:00
exploreshaifalihow will I get it there?22:01
*** sriram has quit IRC22:02
*** achanda has quit IRC22:31
*** jchai has quit IRC22:40
*** achanda has joined #openstack-zaqar22:43
*** mpanetta has quit IRC22:56
*** amitgandhinz has quit IRC23:13
*** echevemaster has quit IRC23:43
*** echevemaster has joined #openstack-zaqar23:44

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