Thursday, 2016-04-07

*** tqtran has quit IRC00:15
*** Qiming has quit IRC00:28
*** achanda has quit IRC00:40
*** shu-mutou has joined #openstack-zaqar00:46
*** kgriffs is now known as kgriffs|afk00:52
* flwang is working on Rally gate job and enable the Tempest job01:05
*** tqtran has joined #openstack-zaqar01:11
*** tqtran has quit IRC01:16
*** achanda has joined #openstack-zaqar01:18
*** Qiming has joined #openstack-zaqar01:26
openstackgerritwangxiyuan proposed openstack/python-zaqarclient: Add update queue function in v2  https://review.openstack.org/29436802:30
openstackgerritwangxiyuan proposed openstack/python-zaqarclient: Add update queue function in v2  https://review.openstack.org/29436802:37
*** gcb has quit IRC02:47
*** mdnadeem_ has quit IRC02:58
*** mdnadeem has quit IRC02:58
*** mdnadeem has joined #openstack-zaqar02:58
*** eliqiao has quit IRC03:01
*** openstackstatus has quit IRC03:01
*** eliqiao has joined #openstack-zaqar03:02
openstackgerritwangxiyuan proposed openstack/python-zaqarclient: Add update queue function in v2  https://review.openstack.org/29436803:06
*** khushbu_ has joined #openstack-zaqar03:07
*** gcb has joined #openstack-zaqar03:08
*** kgriffs|afk is now known as kgriffs03:08
*** achanda has quit IRC03:09
wxyflwang: Eva-i: ryansb: I updated the client patch follwed by your suggestion:  https://review.openstack.org/294368   The unit test and functional test have been passed on my machine. Please review it and hope all of you like it. :)03:09
flwangwxy: cool, thanks03:15
*** kgriffs is now known as kgriffs|afk03:30
*** khushbu_ has quit IRC03:34
*** kgriffs|afk is now known as kgriffs03:34
openstackgerritwangxiyuan proposed openstack/python-zaqarclient: Add update queue function in v2  https://review.openstack.org/29436803:38
*** khushbu_ has joined #openstack-zaqar03:44
*** kgriffs is now known as kgriffs|afk03:55
openstackgerritMerged openstack/python-zaqarclient: Fix tests related to queue attributes in API V2  https://review.openstack.org/28711404:06
*** khushbu_ has quit IRC04:20
*** achanda has joined #openstack-zaqar04:22
*** achanda has quit IRC04:37
*** eliqiao_ has joined #openstack-zaqar04:43
*** eliqiao has quit IRC04:44
*** flwang1 has quit IRC04:53
*** GB21 has joined #openstack-zaqar05:00
*** achanda has joined #openstack-zaqar05:03
*** wanghao has quit IRC05:13
*** wanghao has joined #openstack-zaqar05:13
*** shu-mutou is now known as shu-mutou-AFK05:26
*** achanda has quit IRC05:33
*** rcernin has joined #openstack-zaqar05:45
*** achanda has joined #openstack-zaqar05:59
*** GB21 has quit IRC06:12
*** GB21 has joined #openstack-zaqar06:12
*** achanda has quit IRC06:22
*** GB21 has quit IRC06:26
*** pcaruana has joined #openstack-zaqar06:26
*** GB21 has joined #openstack-zaqar06:28
*** eliqiao_ is now known as eliqiao06:28
*** tqtran has joined #openstack-zaqar06:43
*** GB21 has quit IRC06:44
*** GB21 has joined #openstack-zaqar06:44
*** tesseract has joined #openstack-zaqar06:45
*** tesseract is now known as Guest1287606:45
*** tqtran has quit IRC06:47
*** GB21 has quit IRC06:51
*** GB21 has joined #openstack-zaqar06:54
*** GB21 has quit IRC07:02
*** GB21 has joined #openstack-zaqar07:03
*** khushbu_ has joined #openstack-zaqar07:10
*** GB21 has quit IRC07:16
*** khushbu_ has quit IRC07:22
*** GB21 has joined #openstack-zaqar07:29
*** GB21 has quit IRC07:37
*** shu-mutou-AFK is now known as shu-mutou07:46
*** GB21 has joined #openstack-zaqar08:26
*** openstackstatus has joined #openstack-zaqar08:30
*** ChanServ sets mode: +v openstackstatus08:30
-openstackstatus- NOTICE: jobs depending on npm are now working again08:35
*** shu-mutou is now known as shu-mutou-AFK08:51
*** khushbu has joined #openstack-zaqar08:54
*** khushbu has quit IRC09:32
*** achanda has joined #openstack-zaqar09:56
*** akanksha_ has joined #openstack-zaqar10:01
*** achanda has quit IRC10:02
*** Qiming has quit IRC10:13
*** GB21 has quit IRC10:28
*** GB21 has joined #openstack-zaqar10:31
*** Guest12876 is now known as tesseract10:47
*** tesseract is now known as Guest7403610:48
*** GB21 has quit IRC10:49
*** GB21 has joined #openstack-zaqar10:50
*** khushbu has joined #openstack-zaqar10:57
*** achanda has joined #openstack-zaqar10:58
*** achanda has quit IRC11:03
*** khushbu has quit IRC11:12
*** GB21 has quit IRC11:21
*** Qiming has joined #openstack-zaqar11:28
*** GB21 has joined #openstack-zaqar11:52
*** jhesketh has joined #openstack-zaqar11:58
*** ChanServ changes topic to "OpenStack Queuing and Notification Service || Smile :D || Meetings every Monday @ 21:00 UTC/15:00 UTC || Wiki: https://wiki.openstack.org/wiki/Zaqar || Paste: http://paste.openstack.org/ || Send messages and make some noise :D"11:58
*** khushbu_ has joined #openstack-zaqar12:02
*** jhesketh has quit IRC12:07
*** achanda has joined #openstack-zaqar12:07
*** jhesketh has joined #openstack-zaqar12:07
*** achanda has quit IRC12:15
*** GB21 has quit IRC12:16
*** achanda has joined #openstack-zaqar12:47
*** khushbu_ has quit IRC12:49
*** khushbu_ has joined #openstack-zaqar12:52
*** achanda has quit IRC12:58
EmilienMcan someone approve https://review.openstack.org/#/c/301380/ please ?13:01
*** achanda has joined #openstack-zaqar13:08
*** shakamunyi has quit IRC13:10
*** amitgandhinz has joined #openstack-zaqar13:11
*** shakamunyi has joined #openstack-zaqar13:12
*** achanda has quit IRC13:13
*** wanghao has quit IRC13:14
*** wanghao has joined #openstack-zaqar13:14
*** khushbu_ has quit IRC13:25
*** khushbu_ has joined #openstack-zaqar13:35
*** ametts has joined #openstack-zaqar13:56
*** mpanetta has joined #openstack-zaqar14:19
*** Qiming_ has joined #openstack-zaqar14:32
*** Qiming has quit IRC14:32
*** khushbu_ has quit IRC14:43
*** ametts has quit IRC14:48
*** ametts has joined #openstack-zaqar14:49
*** david_cu has joined #openstack-zaqar14:51
*** david_cu has quit IRC14:52
*** david_cu has joined #openstack-zaqar14:52
*** david_cu_ has joined #openstack-zaqar14:55
*** david_cu has quit IRC14:57
*** ametts has quit IRC14:57
*** Qiming_ has quit IRC14:57
*** ametts has joined #openstack-zaqar14:58
*** Qiming has joined #openstack-zaqar14:59
*** david_cu_ has quit IRC15:00
*** amitgandhinz has quit IRC15:04
*** khushbu has joined #openstack-zaqar15:08
*** Guest74036 has quit IRC15:10
*** amitgandhinz has joined #openstack-zaqar15:21
*** achanda has joined #openstack-zaqar15:24
*** david_cu has joined #openstack-zaqar15:29
openstackgerritOpenStack Proposal Bot proposed openstack/zaqar: Updated from global requirements  https://review.openstack.org/30289515:30
*** achanda has quit IRC15:37
*** Qiming has quit IRC15:41
*** GB21 has joined #openstack-zaqar15:42
*** pcaruana has quit IRC15:53
*** shakamunyi has quit IRC15:56
*** ametts has quit IRC16:01
*** kgriffs|afk is now known as kgriffs16:13
*** ametts has joined #openstack-zaqar16:17
*** david_cu has quit IRC16:30
*** david-lyle has quit IRC16:36
*** amitgandhinz has quit IRC16:49
*** rcernin has quit IRC16:52
*** david-lyle has joined #openstack-zaqar17:06
*** ametts has quit IRC17:07
*** pcaruana has joined #openstack-zaqar17:08
*** david-lyle has quit IRC17:11
*** david-lyle has joined #openstack-zaqar17:17
*** ametts has joined #openstack-zaqar17:21
*** david-lyle has quit IRC17:23
*** amitgandhinz has joined #openstack-zaqar17:24
*** akanksha_ has quit IRC17:27
*** rcernin has joined #openstack-zaqar17:33
*** tqtran has joined #openstack-zaqar17:33
*** david-lyle has joined #openstack-zaqar17:58
*** kgriffs is now known as kgriffs|afk18:00
*** david_cu has joined #openstack-zaqar18:06
*** amitgandhinz has quit IRC18:37
*** njohnston has quit IRC18:49
*** GB21 has quit IRC19:03
*** shu-mutou-AFK has quit IRC19:04
*** david-lyle_ has joined #openstack-zaqar19:13
*** david-lyle has quit IRC19:15
*** david-lyle_ has quit IRC19:19
*** david-lyle has joined #openstack-zaqar19:29
*** david-lyle has quit IRC19:31
*** david-lyle has joined #openstack-zaqar19:31
*** khushbu has quit IRC19:32
*** david-lyle has quit IRC19:37
*** ametts has quit IRC20:01
*** jtomasek has quit IRC20:03
*** jtomasek has joined #openstack-zaqar20:05
*** ametts has joined #openstack-zaqar20:17
*** ametts has quit IRC20:41
*** david-lyle has joined #openstack-zaqar20:56
Eva-iflwang: ryansb: Hello. Please look at my last comment in this review: https://review.openstack.org/#/c/294368/. Should I be more confident in case like this and just ask to do?20:58
flwangEva-i: just had a quick look21:00
flwangEva-i: we shouldn't hide the 40421:00
*** pcaruana has quit IRC21:01
*** davideagnello has quit IRC21:02
*** davideagnello has joined #openstack-zaqar21:02
Eva-iflwang: Aha, okay, so I was unsure for a reason. Well, our API v1 in the client always pre-creates queue. So modifying metadata works. Our API v2 doesn't pre-create queue. I'm not saying hiding 404 error, but avoiding it, maintaining same behavior like in API v1 in the client. Still you want the behaviour in API v2 differ?21:04
flwangapi v1 pre-create queue? are you sure?21:05
flwangthe lazy queue was supported since v1.1, so i don't really understand your point21:05
Eva-iI'm sure. In API v1 no need pass "force_create=True" argument, so queue metadata modifying works without error.21:06
flwangEva-i: we're going to deprecate v1 and we can't /shouldn't stay at v1 if we need better things happen21:06
flwangEva-i: if the queue is not existing and user do update metadata, what happened?21:07
Eva-iIn the client in API v2? Queue doesn't being auto-created, so PATCH request from the client returns 404 response from server.21:10
openstackgerritFei Long Wang proposed openstack/zaqar: Support Tempest test as gate job  https://review.openstack.org/30247921:11
Eva-iIn the client API v1 queue is auto-created by default. So the request changing metadata succeds.21:11
Eva-iTo make sure queue is created in API v2, the user must pass "force_create=True" to the Queue constructor.21:12
openstackgerritFei Long Wang proposed openstack/zaqar: Support Tempest test as gate job  https://review.openstack.org/30247921:12
flwangi think you're mixing v1 and v1.121:13
Eva-ihttps://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/queues/v1/queues.py#L7421:13
flwangEva-i: ok, i see21:14
Eva-iIt was okay to not pre-create queue in API v1.1 and API v2, because there were no operations that could fail because of unexising queue. Now we have queue metadata PATCH that can throw 404 error.21:14
flwangthat because, in v1, when user call any our queue commands21:14
flwangthe client will create a queue21:14
Eva-iThat's all I can say about it.21:15
flwangi got it now21:15
flwangbut21:15
flwanglike i mentioned in the server patch, i don't think a metadata update action should create the queue automatically21:16
flwangjust you want to delete a non-existing queue21:16
flwangyou should get 404 instead of creating it and delete it21:16
Eva-iOki. So the users must pass "force_create" to make it work.21:16
flwangEva-i: for case, why do we have to do any trick instead of throwing the 404?21:17
*** shakamunyi has joined #openstack-zaqar21:17
flwangjust to stay at the old v1 mode?21:18
Eva-iflwang: yes21:18
flwangno21:18
Eva-iflwang: happily we can define now any behavior we want21:18
flwangyou and me have had many discussion about this kind case21:19
Eva-iflwang: because in client API v2 setting metadata is something new.21:19
flwangabout the backward compatibility21:19
flwangi totally understand backward compatibility is very important21:19
flwangbut again, it's case by case21:19
Eva-iflwang: there's no backward compatibility problem in this case. As I said it's because in API v2 setting metadata is something new.21:20
flwangmy personal policy is if we're making things much better, then sometimes we have to drop something21:20
*** njohnsto_ has joined #openstack-zaqar21:20
flwangEva-i: then why do we have to 'hide' the 404?21:21
flwangif compatibility is not your concern21:23
*** shakamunyi has quit IRC21:24
*** flwang1 has joined #openstack-zaqar21:24
Eva-iflwang: "just to stay in the old v1 mode". And also to make things more convenient. Also I find auto_create and force_create arguments a bit confusing for Queue constructor. Even if auto_create is True, the queue will not be created in API v2 and API v1.1. There was no problem with it until API v2 started getting 404 error.21:24
Eva-iflwang: I'm okay with with both options. Just prefer other more.21:25
flwang "just to stay in the old v1 mode", like i said, for this case, i won't go for it21:28
Eva-iflwang: yes, sure21:29
flwangas for the constructor of queue, yep, we need to improve it21:29
flwangi know what's the problem, but i haven't got a chance to fix it21:29
flwangit's complex because the lazy thing21:29
flwangand because we always want to support v121:30
Eva-iIt's not complex. Pre-creating queue doesn't do any harm as I know.21:30
Eva-iIn case of metadata operations.21:31
flwangok21:31
flwangcan you fix it if you think it's easy? ;)21:31
*** kgriffs|afk is now known as kgriffs21:34
Eva-iflwang: yes. I would just put "ensure_exists(force-create=True)" after this line: https://review.openstack.org/#/c/294368/15/zaqarclient/queues/v2/queues.py@60. Or I don't see something bad?21:35
Eva-i*"self.ensure_exists(force-create=True)"21:36
Eva-iflwang: I might be wrong. I don't know....21:37
Eva-iflwang: you made me doubt. I guess now I don't have any strong opinion.21:38
flwangEva-i: again, why do you think when user want to update an non-existing stuff, we should create a new one for them?    especially  user may want to remove a key from the metadata21:40
flwangfor me, it's really weird21:40
flwangand i don't think it's a same scenario as the posting messages case21:41
Eva-iflwang: there's no removing just a key in the client patch. There's setting whole metadata dict.21:42
flwanglets forget the code21:42
flwanglet's focus on the real case21:42
flwangwhy do you think when user want to update an non-existing stuff, we should create a new one for them?21:43
flwangdid you see it in any other place?21:43
Eva-iflwang: maybe not updating, but setting. it's the same as sending messages to non-existing place.21:45
Eva-iflwang: I don't know. I don't have any more arguments. If you are still not convinced, let's just go your way.21:46
Eva-i;)21:46
Eva-iI knew from the start that the idea of metadata for queues is not fully compatible with the idea of queue laziness. There's a contradiction, so I don't have a precise answer.21:47
Eva-iThere's no right answer.21:47
Eva-iEither way is fine. Just in one case the user need to handle 404 error. Maybe we just should leave a comment in this method docstring that it can throw 404 error.21:50
*** mpanetta has quit IRC21:51
Eva-iThe library user has to keep in mind 404 error and be more careful.21:59
*** david_cu has quit IRC22:00
flwangEva-i: yep, we can add DocImpact for the patch22:02
flwangand i'm happy to hear the other voices22:02
flwangEva-i: FWIW, it's a good talk22:06
flwangthanks22:06
*** david_cu has joined #openstack-zaqar22:08
*** david_cu has quit IRC22:12
Eva-iflwang: thank you too!22:12
*** kgriffs is now known as kgriffs|afk22:13
*** shakamunyi has joined #openstack-zaqar22:18
*** barra204 has joined #openstack-zaqar22:20
*** shakamunyi has quit IRC22:24
*** barra204 has quit IRC22:25
flwangvkmc: any luck you around?22:28
*** rcernin has quit IRC22:29
*** Qiming has joined #openstack-zaqar23:09
*** tqtran has quit IRC23:27
openstackgerritMerged openstack/zaqar: Added samples in multiple languages  https://review.openstack.org/29497123:56

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