Thursday, 2016-01-21

*** ametts has quit IRC00:00
*** lei-zh has joined #openstack-zaqar00:05
*** lei-zh has left #openstack-zaqar00:05
flwangEva-i: so you're using v2?00:11
Eva-iflwang: on curl operation I use v2, on python-openstackclient I use default api. Oki, I'll try to use api v2 on python-openstackclient then. But what about capabilities when I get flavor by curl?00:14
flwangEva-i: for v2, basically, basically you can't specify cap, since zaqar will detect the cap for you00:14
Eva-iflwang: oh, I see. I'll try to check it.00:15
*** lei-zh has joined #openstack-zaqar00:19
*** lei-zh has left #openstack-zaqar01:08
Eva-iflwang: flwang1: maybe when we get subscription, Zaqar server should show it's age? Like it's showing the age for claims and messages, how do you think?02:50
Eva-iflwang: flwang1: maybe we should show 204 response code, when there are no subscriptions to queue? Like when there are no messages in queue?02:52
flwangEva-i: for age, see  https://github.com/openstack/zaqar/blob/master/zaqar/storage/mongodb/subscriptions.py02:53
flwangwe don't have the created time, so if we want to add it, we need that field02:53
flwangwhat's our current code? 200?02:54
Eva-iflwang1: flwang: now Zaqar returns 200 OK code and unusable data on subscription list when there are no subscriptions02:54
flwangunusable data?02:55
Eva-iYes: {"links": [{"href": "/v2/queues/my-lovely-queue/subscriptions?marker=", "rel": "next"}], "subscriptions": []}02:55
flwangwhat's the benefit to change it from 200 to 204?02:57
*** mdnadeem has joined #openstack-zaqar02:58
Eva-iflwang: integrity, expected behavior. If we'll do like that, we'll make it's behavior similar to listing messages in the queue.02:58
flwangEva-i: we could do that, but that has low priority :)03:00
Eva-iflwang: we need to do it before making API v2 stable03:00
Eva-iflwang: so oki, we can wait now03:00
Eva-iflwang: i can fill a bug, if you want, so we will not forget about it03:01
flwangEva-i: ok, thanks03:01
Eva-iflwang: hm. This document says that 204 code must be returned only on successful deletion:  https://specs.openstack.org/openstack/api-wg/guidelines/http.html#xx-success-codes03:09
Eva-iflwang: maybe it's good that on empty subscription listing zaqar returns 200 OK code03:10
*** kgriffs is now known as kgriffs|afk03:15
Eva-iflwang: I'm looking now at claim mongodb implementation, and to compute age, it uses only 'claim_expires' and 'ttl' fields. https://github.com/openstack/zaqar/blob/master/zaqar/storage/mongodb/claims.py#L8703:15
Eva-iI think "age" is must-have.03:16
flwangEva-i: yep, i know03:16
flwanglet me explain03:16
flwangsee line 112 https://review.openstack.org/#/c/270464/2/zaqar/storage/mongodb/subscriptions.py03:17
flwangI'm using None if user want to have a permanent subscription03:17
flwangso that's why i said we need a created field03:18
Eva-immm03:18
flwangbut after more thought, i think we can do it with another way03:18
flwangfill the field with number instead of None03:18
flwangthe number is the seconds of the time03:19
flwangwe may could work out a solution or just add a new 'created' field03:20
Eva-iflwang: no, I don't understand the another way. Also I still feel uneasy about permanent subscriptions.03:21
flwangEva-i: permanent subscription is easy for mongodb03:21
flwangbut i haven't dig into redis to achieve that03:22
flwangEva-i: you can google the TTL implementation of mongodb, then you know why/how it works03:22
flwangif the TTL index is on a non-Date field, it doesn't work03:24
Eva-iI'm worrying not about technical details, but about user cases03:25
Eva-iflwang: I'll try to formulate tomorrow my thoughts03:26
flwangEva-i: ok, cool03:26
Eva-iflwang: okay, finally reviewed your ttl patch. I do reviews slow, because I'm trying not to miss anything..03:37
flwangEva-i: tips for review, be confident for your review, don't hesitate to use -103:37
Eva-iflwang: i just forgot to click to -1, I wanted.03:37
flwangdo it :)03:38
Eva-ialready03:38
flwangFYI, guys, the ceilometer + zaqar is approved https://review.openstack.org/#/c/264309/03:39
Eva-iwow03:39
flwangintegration with searchlight/horizon is coming.... https://review.openstack.org/#/c/246220/03:40
*** flwang1 has quit IRC04:05
*** lane_kong has quit IRC04:55
*** david-lyle has quit IRC05:02
*** david-lyle has joined #openstack-zaqar05:03
*** flwang1 has joined #openstack-zaqar06:02
*** flwang1 has quit IRC06:06
*** lane_kong has joined #openstack-zaqar06:45
*** achanda has quit IRC07:06
*** rcernin has joined #openstack-zaqar07:20
*** achanda has joined #openstack-zaqar08:06
*** achanda has quit IRC08:13
*** exploreshaifali has joined #openstack-zaqar09:31
*** openstackgerrit has quit IRC10:02
*** openstackgerrit has joined #openstack-zaqar10:02
*** achanda has joined #openstack-zaqar10:11
*** achanda has quit IRC10:17
openstackgerritwangxiyuan proposed openstack/zaqar: Ensure the format of input be JSON  https://review.openstack.org/27074811:39
*** boris-42 has quit IRC12:03
*** achanda has joined #openstack-zaqar12:14
*** lane_kong has quit IRC12:15
*** achanda has quit IRC12:20
vkmcw000t! flwang :D12:25
vkmcjust read the backlo12:25
vkmcg12:25
*** Guest7791 is now known as bradjones13:12
*** bradjones has joined #openstack-zaqar13:12
*** exploreshaifali has quit IRC13:54
*** dynarro has joined #openstack-zaqar14:06
*** achanda has joined #openstack-zaqar14:17
*** achanda has quit IRC14:23
*** sriram has joined #openstack-zaqar14:30
*** njohnston has joined #openstack-zaqar14:31
*** ametts has joined #openstack-zaqar14:54
*** malini has joined #openstack-zaqar14:59
*** boris-42 has joined #openstack-zaqar15:07
*** achanda has joined #openstack-zaqar15:20
*** achanda has quit IRC15:20
*** achanda has joined #openstack-zaqar15:20
*** kgriffs|afk is now known as kgriffs15:22
*** achanda has quit IRC15:33
*** csoukup has joined #openstack-zaqar15:44
*** achanda has joined #openstack-zaqar15:55
*** achanda has quit IRC16:02
*** rcernin has quit IRC16:09
*** rcernin has joined #openstack-zaqar16:49
*** mpanetta has joined #openstack-zaqar17:03
*** fesp has joined #openstack-zaqar17:56
*** dynarro has quit IRC18:00
*** malini has quit IRC18:15
*** fesp has quit IRC18:32
*** malini has joined #openstack-zaqar18:42
*** ametts has quit IRC19:01
*** njohnston has quit IRC19:07
*** njohnston has joined #openstack-zaqar19:07
*** fesp has joined #openstack-zaqar19:13
*** ametts has joined #openstack-zaqar19:14
*** malini has quit IRC19:23
*** ametts has quit IRC19:24
*** Eva-i has quit IRC19:46
*** Eva-i has joined #openstack-zaqar19:48
*** fesp has quit IRC20:04
flwangvkmc: ryansb: therve: could you review the subscriptions TTL fix of Mongo https://review.openstack.org/#/c/270464/2 ? and let me know your thoughts20:19
flwangin this patch, if user won't pass in TTL, then the subscription will be a permanent subscription20:20
*** mdnadeem has quit IRC20:22
therveflwang, As a quick look it looks okay. Eva-i's comments seem relevant though.20:23
flwangtherve: thanks, Eva-i's comments are only related to the type/value check i think20:24
flwangtherve: i have tested it locally, it works great20:24
therveCool20:25
flwangtherve: thanks for the feedback20:25
therveNp20:25
ryansbflwang: will do20:25
flwangtherve: many times i want to invite you join the core team, but there are too many Redhater, and given the diversity requirement, i have to wait :)20:26
flwangbut i know you're always around, haha20:26
flwangryansb: thanks20:26
therveYeah get some fresh blood :)20:27
flwangtherve: yep, we need some fresh blood20:27
flwangi'm drafting some blogs of zaqar to prompt Zaqar in China20:28
*** flwang1 has joined #openstack-zaqar20:28
*** ryansb has quit IRC20:40
*** ryansb has joined #openstack-zaqar20:44
*** ryansb has quit IRC20:44
*** ryansb has joined #openstack-zaqar20:44
*** mpanetta has quit IRC21:09
*** kgriffs is now known as kgriffs|afk21:10
*** mpanetta has joined #openstack-zaqar21:10
*** kgriffs|afk is now known as kgriffs21:26
*** mdnadeem has joined #openstack-zaqar21:30
*** sriram has quit IRC21:31
*** csoukup has quit IRC21:33
openstackgerritMerged openstack/python-zaqarclient: Add a way to create a signed URL from a queue  https://review.openstack.org/27020121:33
*** mdnadeem has quit IRC21:38
*** csoukup has joined #openstack-zaqar21:48
Eva-iflwang: I have tested your ttl patch21:54
*** pradk has joined #openstack-zaqar22:13
*** mpanetta has quit IRC22:32
flwangEva-i: feedback?22:44
*** njohnston has quit IRC22:45
Eva-iflwang: I tested it by providing different valid values in requests. It works good. Also I tested extreme values for TTL variable, which was affected by the patch and catched an exception as I mentioned in comments.23:01
*** csoukup has quit IRC23:01
flwangawesome23:01
flwangEva-i: what's the 'extreme values' you're using?23:02
Eva-iflwang: I tried python's sys.maxsize+1, it passes validation and throws exception in the storage driver. I tried python's sys.maxsize-1, it throws exception too. I don't know the exaxt value at which the exception is not thrown. I guess it would be safe to use a value smaller than C's MAX_INT http://www.cplusplus.com/reference/climits/23:11
Eva-is/exaxt/exact23:11
Eva-iflwang: though I haven't tried extreme negative values. I think it would be okay.23:12
flwangEva-i: ok, i see. good to know, I will take a look what's the value can be used for date, thanks for the test23:14
Eva-iflwang: I'm thinking now... Maybe other subscription variables should go through a stricter validation.23:14
flwangEva-i: i will upload a new patchset23:14
Eva-iflwang: nice23:14
flwangEva-i: for subscriptions, we only have 'subscriber', 'ttl' and 'options'23:15
Eva-iflwang: I mean 'subscriber' and 'options'23:15
flwangfor 'options', it just a dict/json format23:17
flwangfor subscriber, it's a URL or mailto:<email>23:17
Eva-iflwang: should't we check 'options's keys and values?23:18
flwangEva-i: why do you think we need?23:20
flwangit could be anything23:20
Eva-iflwang: by mistake I was able to create a subscription like this: mailto://example@example.com. The email subscriptions weren't working in this case, of course. But okay, maybe other people will not make such mistake.23:21
*** bradjones_ has joined #openstack-zaqar23:31
*** bradjones_ has joined #openstack-zaqar23:31
*** rcernin has quit IRC23:47
*** bradjones_ has quit IRC23:47
*** bradjones_ has joined #openstack-zaqar23:47
*** bradjones_ has joined #openstack-zaqar23:47

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