Friday, 2016-02-26

*** malini has joined #openstack-zaqar00:09
openstackgerritEva Balycheva proposed openstack/zaqar: (WIP) Fix freeze on some requests  https://review.openstack.org/28489700:10
ryansbflwang: that covers everything I wanted - maybe combine delayed & dead letter topics into one00:13
flwangryansb: thanks for the feedback00:13
Eva-iflwang: in lazy-queues-in-subscription spec you said "I would like to see test section.". Do you mean you would like me to add information about tests in Work items?00:16
flwangEva-i: yep00:23
flwangEva-i: and let's move it to Newton, since we don't have enough time to do it in M00:24
Eva-iflwang: alright00:24
Eva-iflwang: please check PM I sent to you00:27
openstackgerritEva Balycheva proposed openstack/zaqar: Add description to 404 and 409 error responses  https://review.openstack.org/28443700:30
flwangEva-i: i saw that, i will give it a try and decide if it's security issue, thanks for raising that00:33
*** malini has quit IRC00:38
*** amitgandhinz has joined #openstack-zaqar00:44
openstackgerritFei Long Wang proposed openstack/zaqar: Add `_max_messages_post_size` and `_default_message_ttl` for queue  https://review.openstack.org/26572300:52
*** amitgandhinz has quit IRC00:58
* flwang is going to delete image : careers-dev1-root based on the request from Careers NZ01:05
flwangwow, 500 error01:06
flwangwrong channel :(01:06
openstackgerritOpenStack Proposal Bot proposed openstack/zaqar: Updated from global requirements  https://review.openstack.org/28362101:45
*** mpanetta has joined #openstack-zaqar01:52
*** amitgandhinz has joined #openstack-zaqar01:55
*** mpanetta has quit IRC01:56
openstackgerritwangxiyuan proposed openstack/zaqar: Add tempest test for wsgi v2  https://review.openstack.org/28401601:59
openstackgerritwangxiyuan proposed openstack/zaqar: Add tempest test for wsgi v2  https://review.openstack.org/28401602:05
*** csoukup has joined #openstack-zaqar02:05
*** amitgandhinz has quit IRC02:08
*** csoukup has quit IRC02:09
flwangwxy: Eva-i: around?02:13
flwangneed to know your comments on the TTL subscription of redis02:14
wxyflwang: I'm here.02:14
flwangi'm picking the ttl subscription issue again02:15
flwangbut seems there is no good way for the subscriber set02:15
flwangwe can clear the subscription by expire(), but we need a way to clean subscription id and subscriber as well02:17
openstackgerritThai Tran proposed openstack/zaqar-ui: WIP Ability to delete queues  https://review.openstack.org/28508302:17
wxyYou said the lua can help us.02:18
flwanglua can help clean the subscription id02:18
flwangbut it's hard to handle the subscriber02:19
flwangsee line 134-137  https://review.openstack.org/#/c/276548/2/zaqar/storage/redis/subscriptions.py02:19
flwang1.  add the 'subscriber' into a set, to make sure it's unique in this queue-project02:21
flwang2. add subscription id into a sorted set02:21
flwang3. add the subscription into hash02:22
flwangexpires() can resolve the #202:22
flwangs/#2/#302:22
flwanglua can resolve #2 by cleaning the sorted set regularly02:22
flwangbut i don't have a good way to clean #1, maybe we should use a different data structure02:23
wxyDoes lua has a funtion like "srem"?02:23
flwanglua is a script02:23
flwangwe can write a script with it to talk with redis directly02:23
flwangbut it's hard to know in a set, which one is out of date02:24
wxyI see it use redis.call()02:26
wxy  can we pass the member_key and subscriber to lua, then lua call redis to delete it ?02:26
wxyredis.call('SREM', member_key , subscriber )02:29
flwangwxy: we can, but when?02:38
flwangsince there is a race condition issue02:38
flwangthe lua script has to be called regularly02:38
flwangso before we clean it, another user may failed because duplicated subscriber02:39
wxyIs there a way that the lua could be called once the subscription is expired?02:42
flwangwxy: i don't know TBH02:47
flwangi don't think redis can know where to call your script02:48
flwangfor a specific db/set02:48
flwangit's hard IMHO02:48
flwangthat's why i'm thinking if we should change the type of subscriber's container from set to sorted_set to let the 'score' save the expire time02:49
flwangso that we can have a script to do the clean, even we can do the clean in zaqar before we find a good way to do that02:50
wxyanother way is to use callback mechanism in redis, we could catch EXPIRED event,  then do the clean up.02:54
*** wanghao has quit IRC02:54
wxyBut not sure it's the best way.02:54
*** wanghao has joined #openstack-zaqar02:55
wxyif we change the data structure like you said, I think we need a bp to do this.02:56
flwang1wxy: it won't change too much i hope, and i wish we can get it done in Mitaka02:57
flwang1and i don't think  a bp can help anything02:58
flwang1the problem is clear, we just need to figure out a way to do that02:58
flwang1wxy: or this way http://stackoverflow.com/questions/16741476/redis-session-expiration-and-reverse-lookup/16747795#1674779503:02
flwang1wxy: but it still has the race condition issue03:03
*** amitgandhinz has joined #openstack-zaqar03:04
wxyyes, daemon can't ensure timeliness.03:05
flwangwxy: and i'm thinking if we can totally remove subscriber set03:14
flwangwe may lose some performance for querying the subscriber, but it should be fine since it's it's a create, we don't really care about the performance03:14
*** amitgandhinz has quit IRC03:18
*** boris-42 has quit IRC03:24
wxyit's a way.03:33
wxyflwang: or the callback i said before: http://redis.io/topics/notifications03:33
*** csoukup has joined #openstack-zaqar03:35
flwangwxy: it's cool, but after a quick glance, i didn't see how to write the event handler03:39
wxyhttp://stackoverflow.com/questions/23964548/notification-of-key-expiration-in-redis-python03:41
flwangwxy: it looks good03:45
flwangwxy: but it said03:47
flwangthe callback is called when the line is executed, not after 5 seconds03:47
wxyHe should lisen EXPIRED, not EXPIRE03:48
wxyIMO03:49
flwangwxy: i can't see EXPIRED in the list http://redis.io/topics/notifications03:49
flwangEXPIRE generates an expire event when an expire is set to the key, or a expired event every time setting an expire results into the key being deleted (see EXPIRE documentation for more info).03:50
flwangseems in the callback function, we need to check if the expired time is meet or not?03:50
flwangi have to run to pick up my son, pls leave your comment on the patch, we can discuss there, thanks a lot03:52
flwangwxy: ttyl03:53
wxyi got the 'expired' from the test in http://stackoverflow.com/questions/23964548/notification-of-key-expiration-in-redis-python03:53
wxybut i didn't have a try.03:53
*** flwang1 has quit IRC03:54
wxysure, I'd like to see it works.03:54
*** amitgandhinz has joined #openstack-zaqar04:14
*** amitgandhinz has quit IRC04:27
*** amitgandhinz has joined #openstack-zaqar05:24
*** amitgandhinz has quit IRC05:38
*** wanghao has quit IRC06:05
*** wanghao has joined #openstack-zaqar06:06
*** wanghao has quit IRC06:07
*** wanghao has joined #openstack-zaqar06:08
*** amitgandhinz has joined #openstack-zaqar06:34
openstackgerritwangxiyuan proposed openstack/zaqar: Add tempest test for wsgi v2  https://review.openstack.org/28401606:41
*** amitgandhinz has quit IRC06:47
*** rcernin has joined #openstack-zaqar07:05
*** amitgandhinz has joined #openstack-zaqar07:44
*** jtomasek has joined #openstack-zaqar07:52
*** amitgandhinz has quit IRC07:58
*** csoukup has quit IRC08:06
*** achanda has quit IRC08:29
*** achanda has joined #openstack-zaqar08:33
*** therve has joined #openstack-zaqar08:36
openstackgerritEva Balycheva proposed openstack/zaqar-specs: Make queues lazy in subscriptions  https://review.openstack.org/28418008:51
*** amitgandhinz has joined #openstack-zaqar08:54
*** achanda has quit IRC09:03
*** amitgandhinz has quit IRC09:07
*** rcernin has quit IRC09:14
*** rcernin has joined #openstack-zaqar09:28
*** wanghao has quit IRC09:35
*** wanghao has joined #openstack-zaqar09:35
*** amitgandhinz has joined #openstack-zaqar10:04
*** amitgandhinz has quit IRC10:17
openstackgerritwanghao proposed openstack/zaqar-specs: Confirm subscriber befor send messages  https://review.openstack.org/28455510:32
*** achanda has joined #openstack-zaqar10:33
*** flwang1 has joined #openstack-zaqar10:36
*** achanda has quit IRC10:38
*** csoukup has joined #openstack-zaqar11:02
*** amitgandhinz has joined #openstack-zaqar11:14
*** amitgandhinz has quit IRC11:27
*** achanda has joined #openstack-zaqar11:35
*** achanda has quit IRC11:39
*** eliqiao_ is now known as eliqiao12:17
*** amitgandhinz has joined #openstack-zaqar12:24
*** amitgandhinz has quit IRC12:37
Eva-iflwang: hello. I saw your review. If you want I can quickly edit how requests are logged in websocket transport, just say how you would like them to be. I mean really quick.12:46
Eva-iflwang: okay, we can keep it like this. I'll be happy.12:50
*** flwang1 has quit IRC12:54
*** itisha has joined #openstack-zaqar13:15
*** amitgandhinz has joined #openstack-zaqar13:34
*** achanda has joined #openstack-zaqar13:37
*** dynarro has joined #openstack-zaqar13:38
*** achanda has quit IRC13:42
*** amitgandhinz has quit IRC13:47
*** malini has joined #openstack-zaqar13:47
*** amitgandhinz has joined #openstack-zaqar13:48
*** dynarro has quit IRC13:48
*** amitgandhinz has quit IRC13:50
*** amitgandhinz has joined #openstack-zaqar13:50
*** malini has quit IRC14:10
*** godlike has quit IRC14:11
*** godlike has joined #openstack-zaqar14:11
*** sriram has joined #openstack-zaqar14:19
*** sriram has quit IRC14:19
*** sriram has joined #openstack-zaqar14:19
*** dynarro has joined #openstack-zaqar14:34
*** achanda has joined #openstack-zaqar15:24
*** dynarro has quit IRC15:26
*** achanda has quit IRC15:51
*** sriram has quit IRC16:03
*** mpanetta has joined #openstack-zaqar16:16
*** mpanetta has quit IRC16:23
*** rcernin has quit IRC16:31
*** csoukup has quit IRC16:37
*** csoukup has joined #openstack-zaqar16:53
*** achanda has joined #openstack-zaqar17:10
*** AAzza_ has joined #openstack-zaqar17:12
*** mpanetta has joined #openstack-zaqar17:18
*** mpanetta has quit IRC17:18
*** AAzza has quit IRC17:20
*** AAzza_ is now known as AAzza17:20
*** sriram has joined #openstack-zaqar17:33
*** pt_15 has joined #openstack-zaqar18:08
*** malini has joined #openstack-zaqar18:16
*** malini1 has joined #openstack-zaqar18:18
*** malini has quit IRC18:20
*** achanda has quit IRC18:51
*** achanda has joined #openstack-zaqar18:55
*** malini1 has quit IRC19:08
*** malini has joined #openstack-zaqar19:25
*** malini1 has joined #openstack-zaqar19:27
*** malini has quit IRC19:30
openstackgerritThai Tran proposed openstack/zaqar-ui: Ability to delete queues  https://review.openstack.org/28508319:35
*** sriram has quit IRC20:08
*** itisha has quit IRC20:09
*** malini1 has quit IRC20:14
*** malini has joined #openstack-zaqar20:14
openstackgerritEva Balycheva proposed openstack/zaqar: Fix validation in websocket unit tests  https://review.openstack.org/28383820:33
openstackgerritEva Balycheva proposed openstack/zaqar: Fix validation in websocket unit tests  https://review.openstack.org/28383820:36
david_cuEva-i hello ping20:38
Eva-idavid_cu: hello20:38
david_cua few weeks back you sent me these curl scripts for subscriptions, just have a question about one http://paste.openstack.org/show/mzEr6SrjjcpEfWx6kTeM/20:39
Eva-idavid_cu: sure, what's the question?20:39
david_cuhow does one get the ZAQAR_CLIENT_ID20:39
Eva-idavid_cu: here: http://paste.openstack.org/show/rnfSctG4zGivGxPbm9pD/20:40
david_cui see so it's just a uuid you create, it doesn't come from keystone or something?20:41
Eva-idavid_cu: yes, it doesn't come from keystone.20:41
david_cugreat, thanks for clearing that up for me :)20:41
Eva-idavid_cu: no problem ;)20:41
Eva-idavid_cu: also, if Zaqar is configured to use keystone auth, "X-PROJECT-ID" header is not needed in requests. Valid "X-Auth-Token" header is enough.20:44
*** achanda has quit IRC20:45
david_cui don't think i configured it for that actually, how would i go about doing that? in zaqar.conf?20:47
Eva-idavid_cu: yes, in zaqar.conf. If zaqar is part of DevStack, it is already configured to use auth_strategy = keystone. Also for more information you can look here: http://docs.openstack.org/draft/config-reference/messaging/zaqar-authentication.html20:51
david_cuawesome, i'll check this out, greatly appreciated20:54
*** fesp has joined #openstack-zaqar20:58
*** pt_15 has quit IRC21:15
*** fesp has quit IRC21:37
*** fesp has joined #openstack-zaqar21:39
ryansbEva-i: I can't get your websockets patch to work in devstack presently21:39
ryansbdo I need to do special things to enable CORS in keystone, and if so is there a doc I should look at?21:40
Eva-iryansb: yes, you need to enable CORS in keystone. I let me provide you a link21:41
Eva-iryansb: https://ask.openstack.org/en/question/86759/zaqar-server-issue/?answer=87222#post-id-87222. Read after "OrĀ If you still want to use Zaqar Websocket API:".21:43
Eva-iryansb: or you can just disable keystone auth devstack's zaqar.conf.21:44
*** malini has quit IRC21:52
ryansbthanks, worked great21:52
*** ksheedlo-rax is now known as ksheedlo21:56
ryansbbam, let there be binary websockets21:58
Eva-iryansb: woow, nice =)22:24
*** jtomasek has quit IRC22:54
openstackgerritDavid Cusatis proposed openstack/zaqar-ui: Add Subscriptions to Queue drawer  https://review.openstack.org/28492122:58
*** fesp has quit IRC22:59
*** wanghao has quit IRC23:08
*** wanghao has joined #openstack-zaqar23:09

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