Monday, 2017-10-30

*** wanghao has joined #openstack-zaqar00:11
openstackgerritNguyen Van Trung proposed openstack/zaqar master: Use generic user for both zuul v2 and v3  https://review.openstack.org/51563901:11
flwangyangzhenyu: wxy_: ping re the delayed queue spec01:15
wxy_flwang: yeah01:15
flwangwxy_: I think there is a copy-paste issue in https://review.openstack.org/#/c/512919/11/specs/queens/delayed-queues.rst ?01:16
flwangit's copying words from my original spec, but it's still using 'delay' as the named of the new attribute01:17
flwangbut I can't see it's consistent with the code in patch https://review.openstack.org/50866901:17
wxy_Yeah. The patch has more work to do.01:18
wxy_But I think the spec is OK, except you have other idea?01:18
wanghaoflwang: ping01:19
flwangwanghao: pong01:20
wanghaoflwang: wxy_: just want your guys' idea,  did you think it's worth to add V3 API for remove group?01:20
wanghaoflwang: http://paste.openstack.org/show/624608/01:20
flwangwanghao: i mentioned in my previous comments01:20
flwangv3 is overkill01:20
flwangso NO01:20
wxy_++01:20
wanghaoflwang: yeah, me too01:20
wanghaowxy_: yes01:20
wxy_V2 is still in progress IMO. :)01:21
flwangif we have to add a new version to remove group, then i even would keep it until we have a better idea01:21
wanghaosure, so my idea is we support two behaviors in V2 at Pike, and remove the old one in S01:22
flwangwxy_: as for the delayed queue patch, I mean the latest patch is saying a new attribute 'delay', but in code commit, it's using '_default_message_delay_ttl'01:23
flwangwhich should be updated01:23
wxy_wanghao: that is a correct way.01:23
*** gecong has joined #openstack-zaqar01:23
flwang'delay' is the old name I mentioned in my original spec01:23
wxy_flwang: No. "delay" is for message. "_default_message_delay_ttl" is for queue.01:24
wxy_message object has a new property called "delay". queue object has a new reserved property called "_default_message_delay_ttl"01:24
wanghaowxy_, flwang: em sure, will update the spec and see others' idea.01:25
flwangwxy_:  see line 35 https://review.openstack.org/#/c/512919/11/specs/queens/delayed-queues.rst01:26
wxy_flwang: Oh. It's a mistake.01:27
wxy_flwang: I think yangzhenyu forget to change it. It should be "message"01:28
flwanghttps://review.openstack.org/#/c/508669/27/zaqar/storage/mongodb/claims.py01:29
flwangand I can't see any related change in claims.py01:29
*** wanghao_ has joined #openstack-zaqar01:29
flwangI don't like current change in claims.py which is introducing a call to queue to get metadata01:30
flwangskip my last comments :)01:31
flwangit's not introducing a new call to queue but change the location01:31
wxy_flwang: lol01:32
flwangwxy_: yangzhenyu is still using  "_default_message_delay_ttl" to determine if it's a delayed queue01:32
*** wanghao has quit IRC01:33
wxy_flwang: he think it's an option property for the queue. If it's not set, it's a normal queue.01:34
*** wanghao_ has quit IRC01:36
*** wanghao has joined #openstack-zaqar01:36
flwangwxy_: ok, i will leave my comments on the spec01:38
wxy_flwang: Yes, please.01:39
flwangand I don't think current code can meet the scenarios #201:40
wxy_flwang: Yes. The patch has much work to do.01:41
flwangand see this http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-delay-queues.html01:41
flwangTo set delay seconds on individual messages, rather than for an entire queue, use                         message timers. If you send a message with a message timer, Amazon SQS uses the message                         timer's delay seconds value instead of the delay queue's delay seconds value. For                         more information, see Amazon SQS Message Timers.01:42
flwangthe scenario #2 could be a little bit hard based on current design what I can see from the code01:42
wxy_Can this work: message_delay_ttl = message_create_request_body.get("message_delay_ttl", queue_meta.get("default_delay_ttl"))01:48
yangzhenyuflwang, wxy_ I will update the spec for "delay".01:52
*** wanghao_ has joined #openstack-zaqar01:52
*** wanghao has quit IRC01:55
yangzhenyuflwang, messages = wsgi_utils.sanitize01:57
yangzhenyuflwang, this can work01:57
flwangit could work, but01:57
flwangif user send a msg with delayed ttl to a normal queue01:58
flwanghow can you filter it?01:58
flwanglet me reword01:58
flwangcould we filter it without any performance impatc?01:58
*** yangzhenyu_ has joined #openstack-zaqar02:00
yangzhenyu_flwang, queue_delay_ttl = queue_meta.get('_default_message_delay_ttl',02:02
yangzhenyu_  None)02:02
yangzhenyu_flwang, when user sent a 'delay_ttl' message for a normal queue, this var is a None02:03
yangzhenyu_if queue_delay_ttl is not None:02:04
yangzhenyu_                message_post_spec += (('delay_ttl', int, queue_delay_ttl),)02:04
flwangyep, that's my question02:04
flwangwhen user do claim, if it's a normal queue but with delayed messages, it's a little bit hard to get it, right?02:05
yangzhenyu_flwang, If the queue is a normal queue, the message's delay_expires is 002:06
flwangi think we're talking about the #2 scenario in the spec02:07
flwangsee http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-delay-queues.html02:08
flwangTo set delay seconds on individual messages, rather than for an entire queue, use   message timers. If you send a message with a message timer, Amazon SQS uses the message    timer's delay seconds value instead of the delay queue's delay seconds value. For   more information, see Amazon SQS Message Timers.02:08
flwangso in SQS, set delayed seconds on individual message will need another feature named message timer02:09
flwangso we may need to skip this scenario in current spec02:09
*** gengchc2 has joined #openstack-zaqar02:18
gengchc2ping flwang02:19
gengchc2I am working on v2.0 for supporting group and no group, if there is no problem, we do not need to add v3.0 interface, we can support two programs coexist. Later we can completely removed group. I code completely,and test now.02:24
gengchc2ping wanghao_02:25
flwanggengchc2: so could you please update the spec so that we can be on the same page about the design?02:33
yangzhenyu_flwang,02:35
yangzhenyu_Oh, yes, this implementation is not exactly the same as SQS, but I do not think it does affect the implementation of case 2. When the delay message is sent to the delay queue, the message's delay_expires attribute is calculated based on the message's delay_ttl instead of using the queue's meta attribute _default_message_delay_ttl, this should be the priority to use the message delay attribute.02:35
gengchc2ok02:36
flwangyangzhenyu: i understand. but that means you can't do things like https://review.openstack.org/#/c/508669/27/zaqar/storage/mongodb/claims.py02:37
flwangcan you see my point?02:37
gecongfeilong, could you please review https://review.openstack.org/#/c/513594/ ,we can finish the polices in code now, thanks02:37
flwangI mean you can't easily know if the queue is a delayed queue or not02:37
flwanggecong: sure, sorry for the late review ;)02:38
flwanggengchc2: i will be off to Sydney at this Friday02:38
flwangso won't be online much since this Friday until 13 Nov02:38
flwangif anyone in Sydney during the summit, drop me a message in Wechat02:39
yangzhenyuflwang, Oh, are you worried about this? My idea is that if there is no _default_message_delay_ttl attribute in the queue, it is not a delay queue. This attribute is only used for delay queues. It is not a reserved attribute. Must be set by the user, if set to mean that it is a delay queue.02:45
yangzhenyuThe logic of my code is the same, if you do not set this metadata, it is not a delay queue02:46
*** wanghao_ has quit IRC02:47
flwangyangzhenyu: i see, then my question is, if you're sending a delayed message to a normal (non-delayed) queue, how can you get the message list with delayed messages?02:47
flwangjust list all of them?02:47
*** wanghao has joined #openstack-zaqar02:48
yangzhenyuyes, normal queue has no delay message, I think.02:48
yangzhenyuflwang, the case 3 of the spec.02:50
flwangi'm talking about the scenario #202:51
yangzhenyuflwang, Because to ensure that does not affect the performance of the normal queue, so there is a choice. But I think this is also considered normal, the delay queue has a switch.02:51
flwangyangzhenyu: i totally understand, but I'm trying to ask if there is any way in your mind to get the function without performance issue02:52
*** wanghao_ has joined #openstack-zaqar02:58
*** wanghao has quit IRC02:59
yangzhenyuwxy_, I am still more inclined to use _default_message_delay_ttl, but I will add a default value for this property. what do you think?03:17
wxy_yangzhenyu: Actually, it depends on "what's the reserved metadata mean?"03:21
wxy_yangzhenyu: Now we have "_max_messages_post_size" and "_default_message_ttl", they both are config options. So If you add "_default_message_delay_ttl", should it be a config option as well?03:23
yangzhenyuwxy_, no, it is not be config03:24
wxy_yangzhenyu: Yes, So IMO, Whether a queue is a delay queue should not depend on the config option. it's a queue's property.03:24
wxy_yangzhenyu: So this is my concern about the "_XXX" usage.03:24
yangzhenyuwxy_, flwang I think we need to make sure what property is reserved, we understand are not the same.03:26
yangzhenyuwxy_, flwang   xiyuan that the retention attribute is configurable, feilong that the reserved attribute is code can be called.03:28
wxy_Can we just add a new property for "queue"? Our usage now are mainly focus on "metadata" that I don't think it is good.03:28
wxy_More reserved metadata, harder for maintenance.03:29
yangzhenyuwxy_, flwang  yes, I am more inclined to not a reserved attribute, just a common attribute.03:30
wxy_My opinion: Be careful for reserved metadata usage.  Anyway, if you guys decide to use it here, I don't want to -2. :)03:30
yangzhenyuwxy_, But can not normal attributes be put into metadata?03:32
wxy_yangzhenyu: It depends on "what the metadata mean?" https://en.wikipedia.org/wiki/Metadata: descriptive metadata, structural metadata, and administrative metadata03:40
wxy_yangzhenyu: So now, we combined descriptive and administrative usage. I think it's a little obscure.03:41
wxy_yangzhenyu: For other projects, Like Nova, Cinder, they use metadata just for description. But in Zaqar, we give it more usage. Some for description, some for reservation. Now we'll complicate it more: some are from config option, some are not. Well, do you think it's suitable?03:46
*** rcernin has quit IRC03:47
*** rcernin_ has joined #openstack-zaqar03:47
yangzhenyuwxy_, Yes, according to the current mechanism, with the addition of features, metadata will be more and more. But we need to have a specification, where the new attribute is added.03:51
yangzhenyuwxy_,03:53
yangzhenyuNow often use the metadata attribute, it may not start from its definition, but on the metadata processing logic are ready, add up more convenient.03:53
*** flwang1 has quit IRC03:56
wxy_yangzhenyu: have to go for launch now. Leaved my comment in the spec. Please review it. Thanks.03:57
chandankumarflwang: Hello05:48
chandankumarflwang: please have a look on this https://review.openstack.org/#/c/504899/05:48
chandankumarflwang: in rdo side it is fixed05:48
*** yangzhenyu_ has quit IRC05:52
*** yangzhenyu_ has joined #openstack-zaqar05:53
*** Kevin_Zheng has quit IRC06:01
*** jtomasek has joined #openstack-zaqar06:26
*** idmvxiwqmc has joined #openstack-zaqar06:35
*** gecong has quit IRC06:55
*** spectr has joined #openstack-zaqar07:02
*** rcernin_ has quit IRC07:17
*** tesseract has joined #openstack-zaqar07:33
*** rcernin has joined #openstack-zaqar08:22
chandankumarflwang: as this patch https://review.rdoproject.org/r/#/c/10320/ will get merged in RDO only if https://review.openstack.org/50489909:02
chandankumargets merged09:02
*** wanghao_ has quit IRC09:34
*** wanghao has joined #openstack-zaqar09:34
*** wanghao has quit IRC09:35
*** wanghao has joined #openstack-zaqar09:35
*** wanghao has quit IRC09:36
*** wanghao has joined #openstack-zaqar09:36
*** gengchc2 has quit IRC09:50
-openstackstatus- NOTICE: Zuul has been restarted due to an unexpected issue. Please recheck any jobs that were in progress10:47
*** pcaruana has joined #openstack-zaqar10:57
*** jtomasek has quit IRC11:21
*** jtomasek has joined #openstack-zaqar11:51
*** spectr has quit IRC11:59
*** spectr has joined #openstack-zaqar12:00
*** rcernin has quit IRC12:58
*** aputtur_ has joined #openstack-zaqar13:10
*** jtomasek_ has joined #openstack-zaqar13:31
*** aputtur_ has quit IRC13:31
*** aputtur_ has joined #openstack-zaqar13:31
*** jtomasek has quit IRC13:32
*** aputtur_ has quit IRC13:32
*** aputtur_ has joined #openstack-zaqar13:47
*** aputtur_ has quit IRC13:47
*** aputtur_ has joined #openstack-zaqar14:02
*** Eva-i has joined #openstack-zaqar15:07
*** spectr has quit IRC16:02
*** tesseract has quit IRC16:55
*** flwang1 has joined #openstack-zaqar17:06
*** harlowja has joined #openstack-zaqar17:19
*** Eva-i has quit IRC18:02
*** Eva-i has joined #openstack-zaqar18:44
*** Eva-i has quit IRC18:56
*** flwang1 has quit IRC19:05
*** Eva-i has joined #openstack-zaqar19:08
*** Eva-i has quit IRC19:17
*** Eva-i has joined #openstack-zaqar19:33
*** Eva-i has quit IRC20:26
*** flwang1 has joined #openstack-zaqar20:27
*** Eva-i has joined #openstack-zaqar20:33
flwangchandankumar: cool, thanks for your great job20:38
*** aputtur_ has quit IRC20:48
*** jtomasek_ has quit IRC20:58
*** pcaruana has quit IRC21:15
*** rcernin has joined #openstack-zaqar21:52
openstackgerritOpenStack Proposal Bot proposed openstack/python-zaqarclient master: Updated from global requirements  https://review.openstack.org/50003622:16
openstackgerritOpenStack Proposal Bot proposed openstack/python-zaqarclient master: Updated from global requirements  https://review.openstack.org/50003622:22
openstackgerritOpenStack Proposal Bot proposed openstack/python-zaqarclient master: Updated from global requirements  https://review.openstack.org/50003622:22

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