Monday, 2015-01-05

*** cpallares has quit IRC00:02
*** cpallares has joined #openstack-zaqar00:02
cpallaresboooooooooooooooooooooo00:43
flwangcpallares: hey, how are you00:44
cpallaresflwang: hey :) I'm doing good and you?00:48
cpallaresflwang: How's your little hacker?00:48
flwangi'm really good, it's the first time I didn't touch openstack more than 10 days00:49
cpallaresflwang: oh wow that's a long time, which reminds me happy holidays and happy new years :)00:49
flwangmy little hacker is good as well, still  trying to interrupt me coding sometimes :)00:50
flwangcpallares: yep00:50
cpallareshaha00:50
cpallaresaww00:50
cpallaresflwang: hey you're in New Zealand, right? Are you attending LinuxConfAu?00:51
flwangcpallares: yep, i'm in NZ, but i'm not sure if i will be LCA00:51
cpallaresflwang: Aw you should go! I got a scholarship to attend from the python foundation. I want to attend the OpenStack ATC meetup there! There's going to be an openstack mini-conference.00:53
flwangcpallares: maybe, I need to talk with my manager to get some funding :D00:54
cpallaresflwang: Do iiiiit!00:54
cpallaresflwang: Also do it fast cause it's next week :P00:55
flwangcpallares: yep, i know00:55
flwangcpallares: the ticket is a little bit expensive00:57
cpallaresflwang: Yeah, especially the professional one.00:58
flwangthe ATC meetup is on 11th Jan, is it?00:59
cpallaresflwang: Yes00:59
cpallareshttps://www.eventbrite.com.au/e/linuxconfau-2015-openstack-atc-meetup-tickets-1476528235701:00
cpallaresflwang: ^^01:00
cpallaresYou don't need to be registered to attend.01:00
flwangcool, so if i just want to join the meetup, that may mean i only need an air ticket :)01:01
cpallaresflwang: Yes :)01:03
*** nakul_cpani has joined #openstack-zaqar01:03
cpallaresflwang: http://linux.conf.au/register/prices#registration-assistance01:05
*** nakul_cpani has left #openstack-zaqar01:06
cpallaresIf you send them a nice email, they might give you a nice discount on the registration.01:07
flwangcpallares: I'm not sure if i have much time to join the 5days conf01:08
flwangbut i'm interested in the meetup on sunday01:08
*** cpallares has quit IRC01:13
*** bradjones has quit IRC01:17
*** bradjones has joined #openstack-zaqar01:18
*** cpallares has joined #openstack-zaqar01:27
kragnizcpallares: that python scholarship sounds great!01:45
cpallareshey kragniz :)01:59
cpallareskragniz: yeah, the python foundation gives awesome funding02:00
cpallareskragniz: I'm excited. I've heard great things about linuxconfau. It's the biggest linux grassroots conference.02:03
kragnizcpallares: cool!02:14
*** echevemaster has quit IRC03:15
*** cpallares has quit IRC03:42
*** achanda has joined #openstack-zaqar04:46
*** nakul_cpani has joined #openstack-zaqar04:46
*** nakul_cpani has left #openstack-zaqar04:46
*** achanda has quit IRC05:20
*** achanda has joined #openstack-zaqar06:56
*** achanda has quit IRC07:44
*** achanda has joined #openstack-zaqar07:45
*** achanda_ has joined #openstack-zaqar07:47
*** achanda has quit IRC07:49
*** achanda_ has quit IRC07:52
*** achanda has joined #openstack-zaqar08:17
*** achanda has quit IRC08:59
*** achanda has joined #openstack-zaqar09:03
*** exploreshaifali has joined #openstack-zaqar09:09
*** achanda has quit IRC09:28
*** flwang1 has joined #openstack-zaqar09:52
flwang1flaper87: ping09:52
*** shaifali_ has joined #openstack-zaqar10:16
*** exploreshaifali has quit IRC10:17
*** ekarlso- has quit IRC10:24
*** ekarlso- has joined #openstack-zaqar10:24
flwang1flaper87: ping10:36
*** kgriffs has quit IRC10:51
*** kgriffs|afk has joined #openstack-zaqar10:51
*** kgriffs|afk is now known as kgriffs10:51
openstackgerritFei Long Wang proposed openstack/zaqar: Implement mongodb driver for notifications  https://review.openstack.org/13979210:53
*** cpallares has joined #openstack-zaqar11:09
cpallaresping11:11
cpallares..11:11
*** vkmc has joined #openstack-zaqar11:15
vkmcmorning >:)11:18
*** shaifali_ is now known as exploreshaifali11:23
exploreshaifaligood morning vkmc cpallares11:23
cpallareshello exploreshaifali, how are you doing?11:23
cpallaresexploreshaifali: how was your new years? :)11:24
exploreshaifalicpallares, it was grate :D11:24
cpallaresexploreshaifali: that's good to hear :)11:24
exploreshaifalilots of food, dance,games and what about you11:24
vkmcexploreshaifali, hey there!!11:24
exploreshaifalivkmc, when will flaper87 back11:25
exploreshaifaliI am facing problem in queue_controller11:25
exploreshaifali:P11:25
vkmcI don't know really11:25
vkmcdo you write to him or have regular meetings with him?11:26
exploreshaifaliokay :)11:26
exploreshaifalivkmc, oh no, but that's a good idea11:26
exploreshaifaliI will him for same :)11:26
cpallaresexploreshaifali: I was wondering the same thing11:27
flwang1:)11:27
* cpallares sets out a gummy bear trap for flaper8711:27
exploreshaifalicpallares, lol11:27
vkmcheeeey flwang o/11:28
exploreshaifalivkmc, I am trying debug in Zaqar, and just run one test case using testr yet getting error11:28
exploreshaifalipasted http://dpaste.com/0YBVH7N11:28
exploreshaifaliflwang1, Happy New Year!11:29
flwang1exploreshaifali: thanks, you too11:29
exploreshaifali:)11:29
exploreshaifaliDuplicate test id is the problem11:30
exploreshaifalivkmc, please can you look at https://review.openstack.org/#/c/144340/11:35
vkmcsure11:35
vkmcI'm checking out the gate, there is something wrong11:35
exploreshaifalivkmc, thanks, but I am sure this is not gate issue as I am getting same error in my local achine too11:36
exploreshaifaliit is due to https://review.openstack.org/#/c/144340/2/zaqar/storage/mongodb/driver.py11:36
vkmcsure, what I meant is that I'll check it out as soon as I finish with the gate11:37
exploreshaifaliline 20811:37
exploreshaifaliyeah, just to inform you getting *TypeError: 'QueueController' object is not callable*11:38
exploreshaifalidue to line 208 in mongodb/driver module11:38
exploreshaifaliI think I have done something wrong there11:39
* cpallares changed her twitter handle to ᕕ( ᐛ )ᕗ12:05
ekarlso-ello folks :p12:08
ekarlso-flaper87: about to chat riak ?12:08
vkmcekarlso-, hey there!12:08
vkmcekarlso-, would you like to write a poc in an external repo?12:09
ekarlso-vkmc: yeah, only problem I have is the object TTL stuff u guys use atm12:14
ekarlso-not sure if that's possible with riak12:14
vkmcI see12:16
ekarlso-hence the d0h12:16
vkmcmaybe there is an alternative way to achieve the same behaviour in riak?12:17
ekarlso-not sure atm12:17
*** bradjones has quit IRC12:51
*** bradjones has joined #openstack-zaqar12:53
*** exploreshaifali has quit IRC13:29
*** SairaKhanum has joined #openstack-zaqar13:36
*** kgriffs has quit IRC13:38
*** kgriffs|afk has joined #openstack-zaqar13:38
*** kgriffs|afk is now known as kgriffs13:38
*** shibanis has joined #openstack-zaqar13:48
*** pcaruana has joined #openstack-zaqar13:49
vkmckgriffs, o/13:55
*** exploreshaifali has joined #openstack-zaqar14:03
*** sriram has joined #openstack-zaqar14:06
SairaKhanumhi all!!14:08
vkmchey there SairaKhanum!14:09
shibanishi14:09
SairaKhanumhappy new year:-[14:09
shibanisSo we read a few things about zaqar and its architecture14:09
SairaKhanumnow we would like know what excatly we are supposed to do..14:10
shibanisDo we have to start with fixing bugs?14:12
vkmcthat's cool14:15
vkmcsure, feel free to browse the list of opened bugs14:15
vkmcand take one14:16
vkmcor if you see something is not working as expected, report the bug14:16
vkmcor you can also contribute with reviewing14:16
vkmcdoc writing14:16
vkmctesting14:16
shibanisokay14:17
vkmcyou can also help with the client here https://launchpad.net/openstack/python-zaqarclient14:18
vkmcZaqar bugs are listed here https://bugs.launchpad.net/openstack/zaqar14:18
vkmcZaqar features, aka blueprints, are listed here https://blueprints.launchpad.net/zaqar14:19
vkmcsame for the client14:19
shibanisokay thanks .. will go through them :)14:22
SairaKhanumsmall doubt..14:25
SairaKhanumwe can take up any proposal from blueprints right?14:25
SairaKhanumand who gives permission to implement...14:26
*** amitgandhinz has joined #openstack-zaqar14:27
*** amitgandhinz has quit IRC14:27
exploreshaifaliI think that is the beauty of opensource, you don't need any ones permission, right vkmc14:27
exploreshaifaliand moreover all code you will write will go through a review process14:28
vkmcexploreshaifali, exactly! I totally agree14:28
vkmcwe have a roadmap14:28
shibanisso we can chose any blueprint and start designing14:28
exploreshaifaliif other developers find that code god than only that code will be added to real software14:28
shibaniscool :)14:29
vkmcbut you are encouraged to take a blueprint and discuss about it in the weekly meeting14:29
shibanisokay14:29
vkmcthe roadmap only establish what we have to do... but its not a constrain14:29
*** mpanetta has joined #openstack-zaqar14:29
exploreshaifalivkmc, please can you help me in figure out what blunder I did14:31
exploreshaifaliI am getting *TypeError: 'QueueController' object is not callable*14:31
SairaKhanumthank you guys ....14:32
vkmcexploreshaifali, sure, just a sec14:33
vkmcSairaKhanum, thanks to you!14:33
*** amitgandhinz has joined #openstack-zaqar14:33
*** amitgandhinz has quit IRC14:33
*** amitgandhinz has joined #openstack-zaqar14:35
*** shibanis has left #openstack-zaqar14:36
*** SairaKhanum has left #openstack-zaqar14:36
*** kgriffs has quit IRC14:41
*** kgriffs|afk has joined #openstack-zaqar14:41
*** kgriffs|afk is now known as kgriffs14:42
*** ametts has joined #openstack-zaqar14:45
*** openstack has joined #openstack-zaqar15:06
*** kgriffs has quit IRC15:28
*** kgriffs has joined #openstack-zaqar15:28
*** achanda has joined #openstack-zaqar15:30
*** exploreshaifali has quit IRC15:54
openstackgerritVictoria Martínez de la Cruz proposed openstack/zaqar: Version discovery for root URI  https://review.openstack.org/13009415:56
*** miqui has joined #openstack-zaqar16:06
*** achanda has quit IRC16:06
*** openstackgerrit has quit IRC16:06
*** openstackgerrit has joined #openstack-zaqar16:07
*** achanda has joined #openstack-zaqar16:07
*** achanda has quit IRC16:12
*** achanda has joined #openstack-zaqar16:16
*** SairaKhanum has joined #openstack-zaqar16:31
*** SairaKhanum has left #openstack-zaqar16:31
*** achanda has quit IRC16:32
*** amalagon has quit IRC16:38
*** amalagon has joined #openstack-zaqar16:38
*** amalagon has quit IRC16:43
*** reed has joined #openstack-zaqar16:48
*** openstackgerrit has quit IRC16:51
*** openstackgerrit has joined #openstack-zaqar16:51
*** kgriffs has quit IRC16:52
*** kgriffs|afk has joined #openstack-zaqar16:52
*** kgriffs|afk is now known as kgriffs16:52
*** openstackgerrit has quit IRC17:04
*** openstackgerrit has joined #openstack-zaqar17:04
*** amalagon has joined #openstack-zaqar17:06
*** achanda has joined #openstack-zaqar17:15
*** achanda has quit IRC17:28
*** achanda has joined #openstack-zaqar17:29
*** achanda has quit IRC17:34
*** kgriffs has quit IRC17:36
*** kgriffs|afk has joined #openstack-zaqar17:36
*** kgriffs|afk is now known as kgriffs17:36
*** exploreshaifali has joined #openstack-zaqar17:48
*** achanda has joined #openstack-zaqar17:50
*** achanda has quit IRC17:59
*** SairaKhanum has joined #openstack-zaqar17:59
*** SairaKhanum has left #openstack-zaqar17:59
*** achanda has joined #openstack-zaqar17:59
*** achanda has quit IRC18:04
*** SairaKhanum has joined #openstack-zaqar18:16
*** SairaKhanum has left #openstack-zaqar18:16
*** achanda has joined #openstack-zaqar18:26
*** kgriffs is now known as kgriffs|afk18:28
*** achanda has quit IRC18:31
*** echevemaster has joined #openstack-zaqar18:35
* vkmc lurks18:35
vkmckragniz, what are you doing? it make me nervous when you are quiet18:36
vkmcI know you are contriving something evil18:37
kragnizvkmc: sitting in an aircraft at the moment18:41
* kragniz puts phone in flight mode18:43
vkmc:x18:49
vkmcexploreshaifali, I'm reviewing your patchset18:50
exploreshaifalivkmc, thanks!!!18:52
sriramkragniz: if you are using gogo inflight wifi or something. http://www.techworm.net/2015/01/gogo-inflight-internet-intentionally-issuing-fake-ssl-certificates.html18:52
*** amalagon has quit IRC19:00
*** amalagon has joined #openstack-zaqar19:00
vkmcexploreshaifali, so... for what I understood19:06
vkmcyou are having a problem with polimorphism19:06
exploreshaifalivkmc, okay but where19:06
vkmcpolymorphism*19:07
vkmcyour change in the driver base class is affecting the implementations of the interface and its tests19:08
exploreshaifaliproblem is due to https://github.com/openstack/zaqar/blob/master/zaqar/storage/base.py#L15419:09
exploreshaifalias per what I understood19:09
vkmcso basically, when you instantiate the controldriver here https://review.openstack.org/#/c/144340/2/zaqar/storage/mongodb/driver.py19:09
vkmcyou are instantiating a class with abstract methods19:10
exploreshaifalibefore instantiating abstract method is overriden19:11
exploreshaifaliqueue_controller() is overridden in both ControllDrive and also in DataDrive19:11
vkmcbut its not in the correct context19:11
vkmcthat's why its trying to instantiate the abstract one19:11
vkmcand that is why I said that your problem there is with polymorphism19:11
exploreshaifalisorry  but what you mean by "its not a correct context"19:12
exploreshaifalivkmc, ^19:14
vkmcI'm trying to think in a simple way to put it19:14
vkmcbut the best thing you can do to notice what is going on19:15
vkmcis to put a breakpoint in one of the tests failing19:15
vkmcand inspect what is going on19:15
exploreshaifalivkmc, yeah here comes debugging19:15
*** kgriffs|afk is now known as kgriffs19:16
vkmcwhen you do this 'return ControlDriver(self.conf, self.cache).queue_controller()'19:16
exploreshaifalivkmc, I am running *python -m testtools.run discover --load-list tests/unit/storage/test_impl_mongodb.py*19:16
vkmcyou are returning an instance of the queue_controller19:16
exploreshaifaliand getting error http://dpaste.com/0YBVH7N19:16
vkmcwhile there is another instance already around being used19:16
vkmcthose are two different objects19:17
*** JAHoagie has joined #openstack-zaqar19:17
exploreshaifalivkmc, and this is happening in base.py?19:17
exploreshaifalior in driver.py?19:17
vkmcits happening when you start the server19:17
exploreshaifalisorry not getting19:19
exploreshaifalilets first solve the debugging issue19:19
exploreshaifalilook hre http://dpaste.com/0YBVH7N19:19
vkmcinstead of looking at the output when trying to run the tests19:20
vkmccheck out what happens when you try to start the server19:20
vkmcthat way we can focus only on a set of errors19:20
vkmcI have it in verbose mode, sorry19:21
vkmchttp://paste.openstack.org/show/155631/19:21
*** flwang1 has quit IRC19:22
vkmcso... 'ControlDriver' object has no attribute 'queues_database'19:22
vkmclet's grep the code19:22
vkmcits in driver.py... for the storage you are using19:23
vkmcin my case, its mongodb/driver.py19:23
exploreshaifalivkmc, yes queues_database is not in ControlDriver19:24
exploreshaifaliI figured it out19:24
vkmcok so... first, let's make the server works19:24
exploreshaifalicopied the code in ControlDriver19:24
vkmcand then we can keep debugging the tests19:25
exploreshaifalibut still got same erro19:25
exploreshaifali*error19:25
vkmcsame output?19:25
exploreshaifalinot exactly same19:26
exploreshaifalibut the error is same19:26
exploreshaifalithat is19:26
exploreshaifaliQueueController object is not callable19:26
exploreshaifaliqueues_databse error is not there now19:26
exploreshaifalibut QueueController one is still there19:27
exploreshaifalivkmc, I don't understand about the server stuff you are saying19:29
exploreshaifalifirst make the server work means what?19:29
vkmcexploreshaifali, start the server simply19:29
exploreshaifaliokay :)19:29
vkmcwhat is the output of 'zaqar-server'?19:29
vkmcthe best way to debug something is to run and see if it works19:30
exploreshaifalivkmc, okay that  is a tip for me ;)19:30
vkmcrunning the whole test suite may make things more difficult at early stages of development19:30
exploreshaifaliok, so here after running the server getting same *'QueueController' object is not callable* error19:31
vkmcpaste the full trace19:32
exploreshaifalivkmc, http://paste.openstack.org/show/155633/ but avoid that 999999  and @@@@ stuff19:34
exploreshaifaliI added that while debugging manually19:34
vkmc:O19:34
vkmcput something funnier19:35
vkmclike \o)\o/(o/19:35
exploreshaifaliyeah :D I should have19:35
vkmcok so19:35
exploreshaifalilol19:35
vkmchaha19:35
exploreshaifaliso now what next19:36
vkmcthat is what I'm trying to figure out19:37
exploreshaifaliokay!!19:40
exploreshaifalibtw vkmc will be mentoring for GSoC? :P19:41
vkmchaha dunno, it would be fun19:42
exploreshaifaliyeah loooots of, for any one who will be working under you :)19:42
vkmcwith*19:42
vkmc:D19:42
exploreshaifaliyes yes... with ;)19:43
exploreshaifalivkmc, I have one more problem19:47
exploreshaifaliwithout making any change in code when I tried to debug with testr19:47
exploreshaifaliget error http://dpaste.com/0YBVH7N19:47
vkmcok, I got distracted debugging your code19:54
vkmcso19:54
vkmcI'm stil hitting errors, but I think it's a matter of finding all the dependencies and fixing them19:54
vkmconce you can get your server up19:55
vkmcthen you run the tests19:55
vkmcbut for now... we have to make sure that the migration works19:55
vkmctry to make the server up19:59
vkmcand if you cannot fix it, then I'll keep debugging19:59
vkmclet me see what happens with the tests19:59
*** flwang1 has joined #openstack-zaqar20:00
vkmcexploreshaifali, ok... and the tests... I'm able to reproduce20:08
vkmcso its a bug20:08
vkmcfeel free to report it20:09
exploreshaifali:D20:09
exploreshaifalivkmc, but I don't know about the problem there20:09
vkmcgood catch :)20:09
vkmchow to fix it you mean?20:09
exploreshaifaliyes20:09
vkmcso probably its something caused by the recent renaming20:10
vkmcwe removed the queues directory20:10
vkmcthat's my first hunch20:10
vkmcso we have to check where is the tests name overlap and rename one20:10
exploreshaifaliyup.... yup20:11
exploreshaifaliI will just file the bug for now20:11
exploreshaifaliand let see if we can make to fix it20:11
exploreshaifaliI facing that problem since 31-Dec :/ and was pulling my hairs why am I unable to debug zaqar20:12
exploreshaifaliloool :D20:13
vkmcdaaaamn, thats bad to hear20:15
exploreshaifalibut now I laugh at myself..... It was fun:D20:25
kragnizsriram: nah, the plan hadn't taken off and I had 3g20:25
kragnizs/plan/plane/20:26
vkmckragniz, where are yaaaa20:28
kragniznowhere exciting!20:30
kragniztraveling cambridge -> ireland20:31
kragniznow eating jelly babies in the airport waiting for my coach to arrive20:32
* kragniz leads a wild life20:32
vkmccool :D20:34
*** kgriffs is now known as kgriffs|afk20:35
openstackgerritFei Long Wang proposed openstack/zaqar: Implement mongodb driver for notifications  https://review.openstack.org/13979220:42
openstackgerritFei Long Wang proposed openstack/zaqar: Add REST API for notification/subscriptions  https://review.openstack.org/14243220:42
sriramkragniz: aah cool20:42
vkmcsriram, maybe you hit into this before... running python -m testtools.run discover fails with a duplicateid error20:44
vkmcany idea why it could be?20:44
vkmcthere are no duplicateids20:44
sriramhmm, nope vkmc have not run into it. :/20:45
vkmchmm k k20:45
vkmcflwang, ^?20:45
* sriram is embarrased to admit that its been long since he ran zaqar's tests.20:45
vkmchaha no problem :)20:46
vkmcI usually run tox... so I have no clue why this is happening with testr20:46
sriramyou should also be able to run nose right?20:47
sriramI've had the version test fail before, I just had to re-create the environment.20:49
srirambut that doesnt to be related in this case.20:50
vkmclets see20:50
*** nakul_cpani has joined #openstack-zaqar20:51
nakul_cpaniHi guys !!20:54
vkmchey nakul_cpani!20:54
nakul_cpanihi vkmc20:54
nakul_cpanihope u had good new year vacation20:55
nakul_cpani:)20:55
vkmcit was good thanks, and yours?20:55
nakul_cpaniwas quite good :)20:55
vkmcsriram, nose works :|20:55
vkmcnakul_cpani, good to hear20:56
nakul_cpaniwhere do you guys work ?20:56
flwangvkmc: what's up?20:57
nakul_cpanii mean place20:57
vkmcflwang, running python -m testtools.run discover fails with a duplicateid error, any clue why this is happening?20:57
vkmcflwang, there are no duplicateids20:57
*** kgriffs|afk is now known as kgriffs20:58
vkmcexploreshaifali, https://bugs.launchpad.net/zaqar/+bug/140778620:59
flwangvkmc: hmm... any specific reason why we have to use that command?20:59
vkmcflwang, to be able to use pdb21:00
flwangah, ok, to use pdb in unit test, is it?21:00
vkmchttps://wiki.openstack.org/wiki/Testr#Debugging_.28pdb.29_Tests21:00
vkmcexactly21:00
sriramvkmc: huh, intereesting!21:01
vkmcflwang, hi btw :)21:03
srirambut using pdb shouldnt matter, no matter which test runner you are using right?21:03
sriramI might be wrong.21:03
sriramjust wondering21:03
vkmcI guess so21:12
vkmcI just put a breakpoint and run nose21:13
vkmcand died there21:13
vkmcthe halting problem all over again21:13
flwangvkmc: I didn't see the duplicate id issue but some other error like 'xxx object has no attribute url_prefix'21:13
vkmcflwang, which storage backend?21:14
exploreshaifaliI haven't put any break point and tried to run testr command *python -m testtools.run discover --load-list tests/unit/storage/test_pool_queues.py*21:16
exploreshaifalithen got duplicate test id issue21:16
vkmcexploreshaifali, add that to launchpad :)21:19
exploreshaifaliyeah vkmc about to do that :P21:19
exploreshaifalithanks :)21:20
vkmcexploreshaifali, np21:20
JAHoagiewhen is the next Zaqar meeting?21:24
vkmchi JAHoagie!21:24
vkmcJAHoagie, next week21:24
JAHoagiehi vkmc!21:24
JAHoagievkmc, next Monday at 15:00?21:26
vkmcJAHoagie, yes21:26
vkmcJAHoagie, if there is something urgent you want to discuss, feel free to ping us here21:26
JAHoagiewas mostly going to "listen" in21:27
*** fifieldt_ has quit IRC21:27
vkmcsure :)21:27
*** fifieldt_ has joined #openstack-zaqar21:28
JAHoagiethat meeting is during my morning commute time, but I'll try to join21:28
sriramvkmc: did you set the breakpoint using nose's set_trace?21:28
sriraminstead of import pdb; pdb.set_trace()21:29
vkmcJAHoagie, no problem... we always upload the logs in https://wiki.openstack.org/wiki/Meetings/Zaqar21:29
vkmcsriram, no :T21:29
* vkmc not used to nose21:29
flwangvkmc: sqlite as the management plane and mongo as the data plane21:30
sriramvkmc: its easy from nose import set_trace; set_trace()21:30
vkmcsriram, thanks21:30
sriramoops21:30
sriramfrom nose.tools21:30
vkmc:D21:31
sriramlemme know if it helps! :)21:31
vkmcsure thing :D21:32
exploreshaifaliI tried to use nose.tools but it also didn't worked21:40
exploreshaifalivkmc, https://bugs.launchpad.net/zaqar/+bug/140778621:40
exploreshaifali2 comments added21:40
vkmcthanks exploreshaifali21:40
* exploreshaifali feeling shy...... all time when vkmc says thanks :P21:41
vkmchaha naah21:41
vkmcyou shouldn't21:41
sriramhmm, then it isnt the stdout issue I haved faced before..21:41
exploreshaifali:)21:41
exploreshaifaliif you guyz are also able to generate same Error then I think it could be due to the one that vkmc pointed21:43
exploreshaifalirecently queue was removed21:43
exploreshaifaliso could had renamed something21:43
vkmcnope, I just verified21:44
vkmcis not that21:44
exploreshaifaliokay :)21:44
vkmcfor some reason when running the test its taking the _ off21:44
vkmcor truncating it21:44
vkmcso the test for v1_0 and v1_1 is the same21:44
sriramis it some special character?21:44
vkmc'_'21:45
sriramyeah, is that character a special char to testr or something21:45
vkmcthat I'm not sure21:46
*** sriram has quit IRC22:04
*** nakul_cpani has left #openstack-zaqar22:21
vkmckgriffs, where are you, we miss you22:21
* cpallares looks for kgriffs22:23
cpallareskgriffs: knock knock22:23
kgriffshi22:23
vkmc:D :D :D22:23
kgriffsman, I miss all of you!22:23
cpallareskgriffs: :D22:23
vkmccome procrastinate with us22:23
cpallareshaha22:23
vkmchow have been doing kgriffs? merry xmas and happy new year :)22:24
kgriffsI've been reassigned to some other internal work at Rackspace and haven't had the chance to come up for air the past few weeks. :(22:24
kgriffsvkmc: yes, happy holidays!22:24
cpallareskgriffs: Happy Holidays and New Years!!!!!!!!!!22:24
cpallareskgriffs: Are you still working on barbican?22:24
cpallareskgriffs: You should just join Red Hat :)22:25
kgriffsgot to play in the snow with the kids last week in Colorado. Part of me misses the snow, but part of me (the part that would have to shovel it) is glad to live in Austin, TX22:25
vkmchahaha22:25
kgriffscpallares: lol. I see how it is. :)22:25
flwangkgriffs: ping22:26
kgriffso/22:26
cpallareskgriffs: You secretly want to! You pass as a red hatter during summits :P22:26
flwangkgriffs: happy new year!22:26
kgriffslikewise, thanks!22:26
flwangkgriffs: and i have a question about the design of notifications22:26
kgriffscpallares: heh22:26
kgriffsflwang: sure22:26
flwangkgriffs: for the supporting of pool22:26
flwangkgriffs: you know, for know, our current design of pooling is really depending on 'queue'22:27
flwangso for messages and claim, their rest api are look like '/queues/fizbit/messages'22:28
flwangbut for notifications/subscriptions, we prefer to make it independent with queue22:29
flwangso the rest api will be like 'v2.0/subscriptions'22:29
flwangthat means there is no queue name in the url22:29
flwanghowever, we will miss the 'queue' info to support pool22:30
flwangam I clear?22:30
flwangplease let me know if I missed something22:30
*** kgriffs has quit IRC22:33
*** exploreshaifali has quit IRC22:34
*** kgriffs has joined #openstack-zaqar22:36
kgriffshmm22:36
kgriffsflwang: let me see if I understand22:36
kgriffssay a user wants to subscribe to all messages posted to queue AKA topic "fizbit"22:37
kgriffsso, the user needs to tell me what topic they care about, and how they want to be notified22:38
kgriffsright?22:38
flwangthat's ok22:38
flwangmy point is because the subscriptions number maybe huge22:39
flwangso it would be nice if we can support 'pool' for subscriptions22:39
flwanghowever, it will make some troubles for the rest api design22:40
flwangbecause our current pool design is tight coupling with 'queue'22:41
*** ametts has quit IRC22:57
*** ametts has joined #openstack-zaqar23:01
* kgriffs sorry, had to step away for a few minutes again23:06
*** bradjones has quit IRC23:06
kgriffsso, let me think out loud for a minute23:07
kgriffswhen creating a subscription, you would include in the post JSON document the topic you want "fizbit" and the notification, "webhook" (for example)23:08
kgriffsso you are worried that there may be a huge number of subscription lines that have to be looked up for each message?23:08
* kgriffs has to go jump on a bus. will be back online in a few minutes23:09
*** bradjones has joined #openstack-zaqar23:10
*** mpanetta has quit IRC23:18
flwangkgriffs: for creation, it's fine. but for get list, get, update, it would be hard to get the subscription if there is no queue info23:21
kgriffsoic23:22
kgriffshmmm23:22
kgriffslet's break it down case by case23:23
kgriffsfirst, list subscriptions23:23
kgriffsI may just want to show all subscriptions, say if I only have a few and want to display in Horizon or something23:23
kgriffsThen I would just GET /v2.0/subscriptions23:24
kgriffsbut if I want to find all subscriptions for a particular topic AKA queue23:24
kgriffsI could do:23:24
flwangok23:24
flwangsubscripts?topic=xxx23:24
kgriffsright, that's what I was about to type23:24
flwangsubscriptions?source=xxx23:24
flwangyep, it should be ok23:25
flwangbut how about the get and update?23:25
kgriffsI think you need a subscription ID for that. The ID would be returned after creating the subscription, but also when listing23:25
flwangyep, user will have the id23:25
kgriffsWe could specify that the ID could be any string, but in reality we'd probably implement as UUID23:26
kgriffsso in that case you would say23:26
kgriffsGET subscriptions/9C416F21-4032-4489-92AC-5C69AC0D6B5323:26
kgriffsPATCH or PUT subscriptions/9C416F21-4032-4489-92AC-5C69AC0D6B5323:27
kgriffssomething like that23:27
flwangnow we're using oid of mongo23:27
kgriffsIMO in the API docs we should say that the client should just use the ID or URI verbatim - the ID could be anything23:28
kgriffsso, it could be OID or whatever we want but the client shouldn't care23:28
flwangyep23:28
flwangso the case turns to be, we have the id passed in, then how to get the correct subscription record with it?23:29
flwanggiven there maybe many pools23:29
flwangwith different database types23:29
kgriffshmm23:29
kgriffsthere is a database that is used for the pool catalog, right?23:30
kgriffswe could put subscriptions there - it becomes the "control plane" database.23:30
kgriffsso you only have one place to look.23:30
kgriffssubscriptions should be very cacheable (won't change very often), so you could easily offload lookups from that database23:31
flwangkgriffs: yep, i see. but current pool catalog is depending on 'queue'23:31
flwangwithout queue, what's the 'key' for routing the request?23:31
*** amitgandhinz has quit IRC23:33
kgriffshmm, I was thinking that there would be a separate table / collection for the subscriptions23:33
flwangkgriffs: sorry, i have to run and will be back in 40 mins23:33
kgriffskk23:33
kgriffsI will keep typing for when you return23:33
kgriffs:)23:33
flwangkgriffs: haha, awesome :)23:33
kgriffsin that subscription collection you would have a list of records23:33
kgriffseach contains23:33
kgriffsID | Topic | Project ID | Notification Type | Notification Settings23:36
kgriffsNotification Settings is a blob (MessagePack or JSON) with the schema dependent on Notification Type23:37
kgriffsSo, when you want to CRUD subscriptions, you are simply interacting with this collection, using subscription IDs as the primary key23:39
kgriffsfor the data plane, when a message comes in, zaqar would first persist the message, then send a "notify subscribers" task to a worker pool (however that is implemented)23:41
kgriffsone of the workers would then take that task and look up all the subscribers (if any) for the given (topic, project_id)23:42
kgriffsit would then schedule one ore more new tasks that other workers would take to actually deliver the notifications. Alternatively, you could have the web request handler do the lookup for subscriptions and cut out the middle man, but you probably want web requests to return as quickly as possible. something to think about, anyway...23:44
kgriffsplenty of details to work out around exactly the most efficient / scalable way to farm out the notification tasks, but you get the idea...23:45
*** exploreshaifali has joined #openstack-zaqar23:49

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