Wednesday, 2018-01-31

*** zhurong has joined #openstack-zaqar00:21
*** wanghao has quit IRC00:36
*** wanghao has joined #openstack-zaqar00:37
*** zhurong has quit IRC00:37
wanghaoflwang: seems broken the zaqaclient,  but has fixed: https://review.openstack.org/#/c/53918900:49
flwangwanghao: got, thanks00:51
flwangwanghao: have you posted your PTL self-nomiation?00:51
wanghaoflwang: I'm writing it now,  post it today.00:53
flwangcool00:53
wanghao: )00:53
*** wanghao_ has joined #openstack-zaqar01:00
*** wanghao has quit IRC01:03
*** rcernin has joined #openstack-zaqar01:09
wxyflwang: wanghao_ yeah, message always contains checksum, even it's a empty string.01:10
wxyI think we need a new patch for backward compatibility although it has been fixed at client side.01:12
wxy++ yangzhenyu01:13
*** wanghao_ has quit IRC01:16
*** wanghao has joined #openstack-zaqar01:17
yangzhenyuwxy, https://review.openstack.org/#/c/534131/01:33
yangzhenyuwxy, this patch has process that, but not merge01:34
yangzhenyuflwang, wanghao ^01:34
yangzhenyuwxy, MD5 will be returned to the body of the message, the client must also have the corresponding changes, and get the message MD5 value can be displayed01:37
wxyyangzhenyu: the problem is here: https://bugs.launchpad.net/python-zaqarclient/+bug/174622601:38
openstackLaunchpad bug 1746226 in Python client library for Zaqar "Message init fails with TypeError" [Undecided,Fix released]01:38
wxyyangzhenyu: after the server patch merged, client doesn't work. I know your patch can fix it. But it means that the server patch is backward incompatibility01:39
yangzhenyuwxy, yes, but md5 code need to modify the corresponding client01:41
yangzhenyuwxy, This feature must need add a new porperty checksum.01:42
yangzhenyuwxy, What do you think should be done?01:43
wxyyangzhenyu: so for backward compatibility, if the old message has no checksum, we should return nothing, not something like checksum: ""01:43
yangzhenyuwxy,01:45
yangzhenyuBut this also can not solve the bug in front of it.01:45
wanghaodo you guys think we should introduce the MV to solve this kind of issues?01:46
wanghaojust discuss01:46
wxyyangzhenyu: oh YES. My fault here.01:46
wanghaofrom my view, if we add some new porperty in api, we should use MV to keep backcompatibility.01:47
wxywanghao: that's what I want to say next.01:47
wanghaoyes01:48
wanghaothen may we don't to handle this issue like md5 patch.01:48
yangzhenyuwanghao, What is MV?01:49
wxyyangzhenyu: Sorry, to solve it, we can do: 1. add micro version, 2. add a switch that to handle checksum feature open or not.01:49
wxymicro version01:49
yangzhenyuo01:49
wanghaoyeah01:49
wanghaoseems in Queens, we can choose the option 201:50
wanghaobut I'd like to use MV in future.01:50
wanghao#me leave for a while01:50
wxyyangzhenyu: does it make sense now?01:53
yangzhenyuwxy, add a config to handle checksum feature open or not?01:56
wxyyangzhenyu: A new release note could be : A new config option ``enabled_checksum`` is added. It's ``False`` by default in Queens to keep backward compatibility. Please note we'll enable it by default in Rocky and this option will be removed in S.01:57
wxyyangzhenyu: yeah.01:57
*** wanghao has quit IRC01:57
wxyA new release note could be : A new config option ``enabled_checksum`` is added. It's False by default in Queens to keep backward compatibility. Please note we'll enable it by default in Rocky and this option will be removed in S.01:58
*** wanghao has joined #openstack-zaqar01:58
wxyor a new parameter is OK as well.02:00
yangzhenyuwxy, wanghao But this change, the client will be wrong, because there is no checksum property.02:00
yangzhenyuI think just need merge https://review.openstack.org/#/c/534131/02:01
wxyyangzhenyu: Then for some consumers who don't use zaqarclient, they need to change their client as well.02:02
wxyyangzhenyu: such as some sdks in different language.02:03
yangzhenyuok, I will add it.02:05
wxyyangzhenyu: or a new parameter. like  GET /messages?include_checksum=False or True. If no include_checksum, default it False in Q, True in R.02:07
wxyHow do you like?02:07
yangzhenyuyes I think it's good02:08
yangzhenyuThanks02:08
*** ramishra has joined #openstack-zaqar02:09
ramishrayangzhenyu, flwang1: hi02:11
yangzhenyuramishra, hi02:11
ramishraWe probably have to revert https://review.openstack.org/#/c/533863/ to unblock heat gate02:11
ramishraor we need a new zaqarclient release02:12
ramishraheat used to install zaqarclient from git earlier, but now after moving our tests to tempest-plugin we don't02:13
wxyrevert seems better. We've just talked about the backward compatibility. I think we can fix it in the next PS.02:14
yangzhenyuramishra, https://review.openstack.org/#/c/539189/102:14
ramishrayangzhenyu: yes, but that would only work once there is a client release donw02:14
wxywanghao: here?02:15
*** harlowja has quit IRC02:15
wanghaohere02:15
wxyflwang: ++02:15
openstackgerritRabi Mishra proposed openstack/zaqar master: Revert "Support md5 of message body"  https://review.openstack.org/53939702:15
ramishraI've pushed a revert, you can decide to revert or make a client release asap. It's upto you02:16
ramishraheat is blocked till that time:(02:16
wanghaowxy: I agree to revert it.02:17
flwangramishra: is there anyway to create a smoke test gate in zaqar for heat?02:17
flwangjust like the tripleo one?02:17
ramishraflwang: it should be easy with zuulv3, just add a heat job in the pipeline?02:19
ramishraI can propose something later02:19
flwangramishra: it would be great02:22
yangzhenyuflwang, but here has a client code. https://review.openstack.org/#/c/534131/02:23
yangzhenyuI will change that md5 code, add a switch.02:24
flwangyangzhenyu: sorry? why do you say 'but'?02:27
openstackgerritRabi Mishra proposed openstack/zaqar master: Add heat job to zaqar check pipeline  https://review.openstack.org/53940202:30
yangzhenyuflwang, I mean this patch is a new implement for md5 of zaqarclient.02:31
openstackgerrityangzhenyu proposed openstack/zaqar master: [WIP]Support md5 of message body  https://review.openstack.org/53940302:34
flwangyangzhenyu: i see02:35
*** rcernin has quit IRC02:35
flwangwanghao: wxy: can you approve this https://review.openstack.org/#/c/534131/4 ?02:40
flwangwanghao: and could you please release a new version for zaqar client?02:40
wanghaoflwang: we just revert the md5 patch02:41
wanghaoflwang: do we need to release a new version after revert?02:42
flwangsorry, i'm  confused02:42
flwangi think we're reverting the client patch, right?02:42
flwangnot the server patch02:42
flwangif we revert the client patch, we do still need yangzhenyu's client patch and a new release, no?02:43
yangzhenyuI think the easiest way now is to merge client and server at the same time.02:45
yangzhenyuOr I add a switch for md5.02:45
flwangwhat's the server change we need now?02:46
yangzhenyuAdd a new parameter. like  GET /messages?include_checksum=False or True. If no include_checksum, default it False in Q, True in R.02:47
yangzhenyuBut I think the claim api also need it.02:47
yangzhenyuThe md5 can be returned for claim, get, list operation.02:48
*** wanghao__ has joined #openstack-zaqar02:49
yangzhenyuflwang, Do you think we need to do this?02:49
flwangTBH, i don't like the extra parameter02:50
flwangi think it's useless02:51
flwangmessage in zaqar is a json/dict, it could contain anything02:51
flwangincluding the checksum02:52
flwangso the consumer can consume it if it's showing up or not02:52
flwangi don't think we should add a particular param to handle it02:52
flwangand it's not in the original design02:52
yangzhenyuwanghao, wxy flwang Anyway, we need unity of opinion.02:55
wxyyangzhenyu: flwang: then a new config option.03:03
flwangcould we don't add the new parameter?03:12
flwangit's a bit ugly, IMHO03:12
yangzhenyuThen we only need to merge server and client code at same time.03:16
yangzhenyuAdding new parameters does increase the complexity of the code. Adding new parameters in Json should not have a significant impact on the user, affecting only the user's code writing compatibility is not good enough.03:21
yangzhenyuflwang, https://github.com/openstack/python-zaqarclient/blob/fd7a02588d05d816feb9392a8843ae3ae25bba90/zaqarclient/queues/v2/message.py#L6003:28
yangzhenyuI think the compatibility of this implementation is not very good for adding new perporty. wxy wanghao03:28
wxyflwang: Of cause ,it's just one way. Not the only way.03:28
wxyyangzhenyu: ++03:28
wxyflwang: yangzhenyu : So as I said before. A new config option could be OK. we just need to disable it in Q03:29
wxyonce the client patch is merged and the we hold a while for consumers, we can open it certainly03:30
wxyFor API changes, it's bother but we have to.  Since we don't have micro version.03:32
yangzhenyuBut even if we have a micro version, we can not add a it with a small change.03:34
wxyActually I agree with flwang, message in zaqar is a json/dict, it could contain anything03:35
yangzhenyuyes03:35
wxySo on the other hand, it's a problem with our client.03:35
yangzhenyuhttps://github.com/openstack/python-zaqarclient/blob/fd7a02588d05d816feb9392a8843ae3ae25bba90/zaqarclient/queues/v2/message.py#L6003:35
wxyOur client is not generic enough.03:35
wanghao__yangzhenyu: for other api we should03:35
wanghao__I remember we add a new porperty in message response body not message body03:37
yangzhenyuyes03:38
wanghao__So I have different thought, not contain anything in there03:38
wanghao__I mean you can contain anything in message body03:38
wanghao__But when you add a new porperty in api response body. You should consider the back compatibility03:40
wxywanghao: correct!03:40
wxywanghao: do you think we should add MV for Zaqar. I'm a little hesitate. MV has its pro and con. We should be careful.03:43
wanghao__We can discuss it in R03:43
wanghao__You’re right we should be careful03:44
*** flwang1 has quit IRC03:59
*** shu-mutou-AWAY has quit IRC04:15
*** rcernin has joined #openstack-zaqar04:50
*** harlowja has joined #openstack-zaqar04:51
*** rcernin has quit IRC04:51
*** rcernin has joined #openstack-zaqar04:52
yangzhenyuwxy, wanghao If add a config item, do you have any sugge05:43
yangzhenyuany suggest for which section.05:44
yangzhenyu_GENERAL_OPTIONS?05:45
wxya new section or _GENERAL_OPTIONS. Both are OK for me.06:10
*** wanghao__ has quit IRC06:13
wanghao_GENERAL_OPTIONS seems ok06:43
*** harlowja has quit IRC07:01
openstackgerritRabi Mishra proposed openstack/zaqar master: Add heat job to zaqar check pipeline  https://review.openstack.org/53940207:06
*** rcernin has quit IRC07:08
*** wanghao_ has joined #openstack-zaqar07:13
*** wanghao has quit IRC07:13
*** wanghao has joined #openstack-zaqar07:14
*** wanghao_ has quit IRC07:18
openstackgerrityangzhenyu proposed openstack/zaqar master: [WIP]Support md5 of message body  https://review.openstack.org/53940307:30
openstackgerrityangzhenyu proposed openstack/zaqar master: [WIP]Support md5 of message body  https://review.openstack.org/53940307:34
*** pcaruana has joined #openstack-zaqar07:51
*** jtomasek has joined #openstack-zaqar08:05
*** rcernin has joined #openstack-zaqar08:16
*** tesseract has joined #openstack-zaqar08:20
openstackgerritOpenStack Proposal Bot proposed openstack/zaqar master: Imported Translations from Zanata  https://review.openstack.org/53856508:22
openstackgerrityangzhenyu proposed openstack/zaqar master: [WIP]Support md5 of message body  https://review.openstack.org/53940308:25
*** rcernin has quit IRC08:26
openstackgerrityangzhenyu proposed openstack/zaqar master: Support md5 of message body  https://review.openstack.org/53940308:34
yangzhenyuwanghao, wxy need review https://review.openstack.org/#/c/539403/ https://review.openstack.org/#/c/534131/08:35
wanghaookay08:35
wanghaoyangzhenyu: do we still need to check the self.driver.conf.enable_checksum?08:38
yangzhenyuwanghao, yes I think08:39
yangzhenyuthe enable_checksum just use for unit test.08:39
wanghaoI think we just add the option in generic option08:39
wanghaoI see08:40
yangzhenyuyes the config option is generic option08:40
wanghaobut it's a little werid to add the enable_checksum just for unit test.08:40
yangzhenyuhttps://review.openstack.org/#/c/539403/5/zaqar/common/configs.py08:40
openstackgerritwangxiyuan proposed openstack/python-zaqarclient master: Support client of bp support-md5-of-body  https://review.openstack.org/53413108:41
wxyyangzhenyu: Looks good. but it conflicts with the revert patch.08:42
yangzhenyuwxy, ok i will process it.08:42
wxyyangzhenyu: cool.08:43
wxyyangzhenyu: can it still work if checksum is disabled in Zaqar? https://review.openstack.org/#/c/534131/5/zaqarclient/queues/v2/cli.py@25208:45
yangzhenyuI think I must wait the revert one merge.08:45
yangzhenyuwxy, just display None08:46
wxyyangzhenyu: nice08:46
*** zhurong_ has joined #openstack-zaqar08:46
yangzhenyuwanghao, Can I get the config from wsgi layer?08:49
wanghaoyangzhenyu: I mean if you just want to set the enable_checksum=True in UT, you can patch this config to True.08:54
wanghaono need to pass the argument from wsgi API08:54
wanghaolet'm find a example08:54
yangzhenyuI do not pass it to wsgi.08:54
yangzhenyuwsgi layer not pass enable_checksum.08:55
wanghaoha sorry, I mean storage API08:55
yangzhenyuI know your mean, give me a example.08:55
openstackgerritOpenStack Proposal Bot proposed openstack/zaqar-ui master: Imported Translations from Zanata  https://review.openstack.org/53946408:57
wanghaoyangzhenyu: see this : test_send_confirm_notification09:01
wanghaojust need self.conf.notification.require_confirmation = True09:01
wanghaolike this09:02
yangzhenyuOK, It is good for this.09:04
*** rcernin has joined #openstack-zaqar09:05
openstackgerrityangzhenyu proposed openstack/zaqar master: Support md5 of message body  https://review.openstack.org/53940309:10
*** wanghao_ has joined #openstack-zaqar09:14
*** wanghao has quit IRC09:14
*** wanghao has joined #openstack-zaqar09:23
*** wanghao_ has quit IRC09:26
openstackgerritMerged openstack/zaqar master: Revert "Support md5 of message body"  https://review.openstack.org/53939709:29
*** wanghao has quit IRC09:35
*** wanghao has joined #openstack-zaqar09:35
*** wanghao has quit IRC09:36
*** wanghao has joined #openstack-zaqar09:36
*** wanghao has quit IRC09:36
*** wanghao has joined #openstack-zaqar09:38
*** wanghao has quit IRC09:38
*** wanghao_ has joined #openstack-zaqar09:39
*** wanghao_ has quit IRC09:40
*** wanghao_ has joined #openstack-zaqar09:40
*** wanghao_ has quit IRC09:40
*** wanghao_ has joined #openstack-zaqar09:41
*** wanghao_ has quit IRC09:41
*** wanghao_ has joined #openstack-zaqar09:41
*** wanghao_ has quit IRC09:42
*** wanghao_ has joined #openstack-zaqar09:42
*** wanghao_ has quit IRC09:43
*** wanghao has joined #openstack-zaqar09:43
*** wanghao has quit IRC09:44
*** wanghao has joined #openstack-zaqar09:44
*** zhurong_ has quit IRC10:48
openstackgerrityangzhenyu proposed openstack/zaqar master: Support md5 of message body  https://review.openstack.org/53940311:04
openstackgerrityangzhenyu proposed openstack/zaqar master: Support md5 of message body  https://review.openstack.org/53940311:20
*** wanghao_ has joined #openstack-zaqar11:21
*** wanghao has quit IRC11:24
openstackgerrityangzhenyu proposed openstack/zaqar master: Support md5 of message body  https://review.openstack.org/53940312:47
*** rcernin has quit IRC12:58
*** pcaruana has quit IRC14:05
*** pcaruana has joined #openstack-zaqar14:21
*** jtomasek_ has joined #openstack-zaqar14:22
*** jtomasek has quit IRC14:24
*** pcaruana has quit IRC14:48
*** wanghao_ has quit IRC14:50
*** pcaruana has joined #openstack-zaqar15:14
*** pcaruana has quit IRC16:39
*** harlowja has joined #openstack-zaqar17:02
*** ramishra has quit IRC17:03
*** flwang1 has joined #openstack-zaqar17:37
*** tesseract has quit IRC17:45
*** flwang1 has quit IRC18:37
*** harlowja has quit IRC18:52
*** harlowja has joined #openstack-zaqar19:37
*** flwang1 has joined #openstack-zaqar20:38
*** rcernin has joined #openstack-zaqar23:28
*** rcernin has quit IRC23:50

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