Thursday, 2017-01-05

*** ruijie has joined #senlin01:05
*** yanyanhu has joined #senlin01:09
*** haiwei has joined #senlin01:48
*** guoshan has joined #senlin02:02
*** guoshan has quit IRC02:09
*** guoshan has joined #senlin02:09
*** XueFeng has joined #senlin02:13
XueFengQiMing, around?02:14
*** elynn has joined #senlin02:16
elynnMorning02:18
XueFengCoverage test fail problem, it caused by "    if cfg.CONF.debug is False:"02:22
XueFengcf.CONF.debug is special02:24
elynnWhere the code is? XueFeng02:24
XueFenghttp://git.openstack.org/cgit/openstack/senlin/tree/senlin/engine/event.py#n6102:25
XueFengIn unit test, python -m testtools.run  senlin.tests.unit.engine.test_event.TestEvent.test__dump_guarded  success.02:27
elynnWhy it is special?02:27
XueFengBut in coverage, it will fail in line http://git.openstack.org/cgit/openstack/senlin/tree/senlin/tests/unit/engine/test_event.py#n11602:29
elynnThat's weird02:31
XueFengSeems linde http://git.openstack.org/cgit/openstack/senlin/tree/senlin/tests/unit/engine/test_event.py#n107 can't overriwde cfg.CONF.debug in coverage test.02:31
XueFengs/linde/line/g02:31
XueFengSo weird02:32
XueFengThis will cause coverage test cannot run.02:35
elynnMaybe they are reading two different objects, need more investigation.02:37
elynnBut I notice that unit tests failed either today, caused by other problem02:37
XueFengHave looked up cover.sh.coverage will test two branch02:39
XueFengHEAD^ and cureent branch02:39
XueFengIf we remove http://git.openstack.org/cgit/openstack/senlin/tree/senlin/tests/unit/engine/test_event.py#n116, coverage test will run.02:40
XueFengI think cfg.CONF.debug is specail.02:40
XueFengWe need set register_options for it.http://git.openstack.org/cgit/openstack/senlin/tree/senlin/tests/unit/engine/test_event.py#n2602:41
elynnfor event?02:46
yanyanhuXueFeng: the coverage test failed for event test failure02:54
yanyanhujust tried to debug it, but haven't found the root cause02:54
yanyanhuthat event test passed in python test02:55
yanyanhubut failed for coverage test02:55
XueFengIf we want it pass.We can remove http://git.openstack.org/cgit/openstack/senlin/tree/senlin/tests/unit/engine/test_event.py#n11602:57
XueFengtemporary02:57
XueFengYanYan, yes, it can pass in py2702:58
XueFengBut can't pass in coverage. I have do some debug for it.Seems root cause is some special about cfg.CONF.debug02:59
yanyanhuYes, removing that test could be a workaround. Just we'd better figure out the root case.03:06
yanyanhuso you mean the configure option of debug could be set incorrect during test?03:07
XueFengYes, for coverage test, cfg.CONF.debug may not correct.03:08
XueFengI have do some test for this.03:08
yanyanhuok, any way to fix it? beside disabling that test case :)03:09
XueFengNot yet03:12
yanyanhuok...03:12
XueFengI think it will have way soon03:12
yanyanhuXueFeng: ok, I will further dig it to seek better solution. If not, disabling that test case could be a workaround.03:14
XueFengHmm, will research too:)03:15
openstackgerritXueFeng Liu proposed openstack/senlin: Fix coverage test failed problem  https://review.openstack.org/41682303:16
openstackgerritXueFeng Liu proposed openstack/senlin: Fix coverage test failed problem  https://review.openstack.org/41682303:18
*** haiwei has quit IRC03:22
openstackgerritMerged openstack/senlin: Hook service clean up to lock breaker  https://review.openstack.org/41647103:26
*** Drago has quit IRC03:26
openstackgerritQiming Teng proposed openstack/senlin: Explicitly spell out cloud backend choices  https://review.openstack.org/41655303:31
openstackgerritQiming Teng proposed openstack/senlin: Split API tests for cluster actions  https://review.openstack.org/41655403:32
openstackgerritQiming Teng proposed openstack/senlin: API test for cluster-collect  https://review.openstack.org/41655503:33
openstackgerritMerged openstack/senlin: Remove unnecessary coding format in files  https://review.openstack.org/41649603:47
openstackgerritmiaohb proposed openstack/senlin: Api-ref update for filter "user_id" in receiver list  https://review.openstack.org/41648603:57
*** guoshan has quit IRC03:57
*** Jeffrey4l has quit IRC04:06
*** Jeffrey4l has joined #senlin04:07
*** elynn has quit IRC04:26
openstackgerritmiaohb proposed openstack/senlin: Api-ref update for filter "user_id" in receiver list  https://review.openstack.org/41648604:30
openstackgerritQiming Teng proposed openstack/senlin: Documentation on API changes  https://review.openstack.org/41682804:54
*** guoshan has joined #senlin04:57
*** guoshan has quit IRC05:02
*** elynn has joined #senlin05:04
openstackgerritQiming Teng proposed openstack/senlin: Explicitly spell out cloud backend choices  https://review.openstack.org/41655305:13
*** Jeffrey4l_ has joined #senlin05:31
*** Jeffrey4l has quit IRC05:34
*** guoshan has joined #senlin05:38
*** guoshan has quit IRC05:43
*** guoshan has joined #senlin05:43
*** guoshan has quit IRC05:55
*** guoshan has joined #senlin06:06
*** guoshan has quit IRC06:19
openstackgerritQiming Teng proposed openstack/senlin: Split API tests for cluster actions  https://review.openstack.org/41655406:26
*** guoshan has joined #senlin06:35
openstackgerritMerged openstack/senlin: Explicitly spell out cloud backend choices  https://review.openstack.org/41655306:52
openstackgerritQiming Teng proposed openstack/senlin: API test for cluster-collect  https://review.openstack.org/41655506:55
openstackgerritQiming Teng proposed openstack/senlin: Split API tests for node actions  https://review.openstack.org/41686507:05
openstackgerritlvdongbing proposed openstack/senlin: Revise navigation level of "6.3 Reviewing Patches"  https://review.openstack.org/41687107:21
*** guoshan has quit IRC07:26
*** guoshan has joined #senlin07:27
openstackgerritMerged openstack/senlin: Split API tests for cluster actions  https://review.openstack.org/41655407:34
openstackgerritMerged openstack/senlin: Revise navigation level of "6.3 Reviewing Patches"  https://review.openstack.org/41687107:34
*** openstackgerrit has quit IRC07:50
*** zhurong has joined #senlin08:24
*** openstackgerrit has joined #senlin08:29
*** ChanServ sets mode: +v openstackgerrit08:29
openstackgerritQiming Teng proposed openstack/senlin: Bump max micro-version for V1 API to 1.4  https://review.openstack.org/41688408:29
openstackgerritQiming Teng proposed openstack/senlin: Fix operation handler invocation in node  https://review.openstack.org/41688508:29
openstackgerritQiming Teng proposed openstack/senlin: API test for node-operation call  https://review.openstack.org/41688608:29
elynnHi Qiming yanyanhu08:33
*** openstackgerrit has quit IRC08:33
elynnhttps://github.com/openstack/python-senlinclient/commit/e01394344f5652020faee7c98b95d8832164b0cb08:33
Qimingyes?08:33
elynnI notice this change in senlinclient, when update_obj , we need to pass a class as parameter?08:34
Qimingproblems caused by the changes at sdk side08:34
elynnWhy did they do this change?08:34
elynnIt will cause two API calls each time. one for get, one for update...08:35
Qiminglemme point you to the dilemma08:36
Qiminghttp://git.openstack.org/cgit/openstack/python-openstacksdk/tree/openstack/proxy2.py#n4608:37
Qimingall methods in the new proxy (proxy2) are invoking _get_resource() to build a resource object08:38
Qimingthe logic in that function, check if the value you provided is an ID, an object or None08:38
Qimingif it is an ID08:38
Qimingthe behavior is to do a resource_type.new() call08:39
Qimingand that new call is making the 'id' property in the resource dirty08:39
Qiminglater when you are invoking the xyz_update() call to perform an update, the 'id' is contained in the request body08:39
QimingI believe team was trying to do things in a more transparent, cleaner way, but ... the reality, as I see it, is dirtier ...08:40
Qimingit is a little tricky to change the logic, however, in senlinclient shell, we were always doing a GET already, so the change was trivial08:41
QimingI agree this is not near sub-optimal, however, that is life08:41
elynnsenlin will reject the request which contain id in body?08:42
Qimingyes08:42
Qimingwe don't allow any additional parameters in the request08:42
elynnokay, just to make  sure i'm on the right way to use sdk in this patch https://review.openstack.org/#/c/416408/ .08:43
Qiminghttp://git.openstack.org/cgit/openstack/senlin/tree/senlin/objects/fields.py#n11808:44
*** openstackgerrit has joined #senlin08:45
*** ChanServ sets mode: +v openstackgerrit08:45
openstackgerritMerged openstack/senlin: Fix coverage test failed problem  https://review.openstack.org/41682308:45
openstackgerritXueFeng Liu proposed openstack/senlin: Add test for _create_nodes  https://review.openstack.org/41689308:57
openstackgerritXueFeng Liu proposed openstack/senlin: Add test for _create_nodes  https://review.openstack.org/41689309:00
yanyanhuhi, elynn, I saw your patch to bump the version of senlinclient09:04
yanyanhuit is mainly for the patch in heat side?09:04
elynnhi yanyanhu09:04
elynnyes09:04
elynnI'm also working on replace senlinclient with sdk, but haven't succeed yet.09:05
yanyanhusorry, just noticed your last msg, I'm now using web irc. Not as convenient as xchat...09:05
yanyanhuI see09:05
elynnDo you think it09:05
elynnit's necessary?09:05
yanyanhusdk should always be the better choice in my own opinion09:06
yanyanhufor all services, not only for us09:06
elynnFrom client side, I think if they wanna use senlin commands, they should use the latest version.09:07
elynnyes, I agree with you.09:07
yanyanhujust there are too many difference between different service apis... it doesn't work as expect sometimes09:07
yanyanhuelynn: yes, we should update the global requirement for senlinclient09:07
elynnI'm working on a patch to use sdk instead of senlinclient in heat, just need some time to get it work.09:10
Qimingelynn, one quetion you will be asked is why we have to bump the lowest version requirement for senlinclient09:10
elynnI hate questions..09:11
elynnSo they don't bump lowest version now?09:11
Qimingyou have to prepare an answer in this case09:12
elynnAt least they wanna use *-update, they might need 1.1.0...09:12
Qimingthat means there are incompatibilities introduced09:12
Qimingand the old version has to be abandoned09:12
yanyanhuso, maybe just update the upper constraint?09:13
ruijiethe latest version of oslo.versionedobject is 1.1709:13
ruijiethat need to be updated to 1.19?09:13
Qimingupper constraint is already 1.1.009:13
elynnupper constraint is the latest09:13
yanyanhubut if we do need new features supported only by 1.1.0, we can bump the lowest version09:13
elynnokay, Now I see the point09:14
Qimingruijie, oslo.* packages are shared by all openstack projects09:14
elynnfeatures are the only reasons to bump the lowest version, isn't it09:14
Qimingyou cannot bump its version without a good reason09:14
Qimingit may break some other projects09:15
Qimingit will be at the discretion of the oslo.versionedobjects team09:15
Qimingelynn, incompatibility is09:15
ruijieokay, Qiming09:15
Qimingif there are new features, in an ideal case, those features should be back ported, or version negotiation should be employed09:16
Qimingit is not a compelling reason for version bumping09:16
elynnDo you think what is a good reason? Qiming09:16
elynnincompatibility?09:17
Qimingyes, or else why are you throwing away old versions?09:17
Qimingit will break existing users who are using the old versions, right?09:17
elynnyes09:18
yanyanhuso keeping backward compatibility is our responsibility09:18
elynn*-update is some kind of incompatibility, right?09:18
yanyanhuas the maintainer of senlinclient09:19
Qimingyes09:19
Qimingthe update behavior has changed, due to upstream changes in sdk09:19
yanyanhubefore incompatibility happens, deprecation warning should always be given09:19
Qiminglower version of senlinclient won't work on the newer version of SDK09:19
Qimingyes, yanyanhu, for most cases, a deprecation should be kept there for at least one year, i.e. two cycles09:20
Qimingthat will give users sufficient time to do the transition09:20
yanyanhuQiming: if so, actually sdk doesn't well control their compatibiltiy... for its updating breaks senlinclient09:20
yanyanhuyes09:21
Qimingyes, I am not 100% with the resource2 changes09:21
yanyanhuunderstand09:21
Qiminge.g. 0.9.11 was marked a failed version09:21
Qimingbecause the migration to resource2 is not backward compatible09:22
Qimingthe new resource2.Resource cannot be treated as a dict09:22
yanyanhuyes, noticed your discussion about that to_dict issue09:22
yanyanhuit's really a headache09:22
Qimingi.e. it is no longer providing __items__() calls09:22
QimingI wasn't able to convince brian to add back those methods09:23
Qimingso the workaround is adding a to_dict() method for use cases we are aware of09:23
yanyanhuyes...09:23
Qimingafter the transition of network resources to resource209:23
Qimingopenstackclient code was broken09:23
Qimingand the puppet communit started to complain that OSC is broken09:24
yanyanhuyes... saw that bug report...09:24
Qimingso ... SDK 0.9.11 was marked an unusable version ...09:24
yanyanhuactually we had replied on 0.9.11 to recover our client09:25
Qimingit involves a lot of gobal viewpoints09:25
yanyanhuso it's not easy to maintain sdk :)09:25
Qimingthat is one of the reason why we are so strictive to senlin APIs09:25
elynnMaybe I should update my commit message to explain why we need to bump version09:25
Qimingyes, that will help, elynn09:26
yanyanhuyep, elynn, dirk asked for it :)09:26
yanyanhuyou should update the commit msg09:26
yanyanhuQiming: yes, thoese efforts are definitely worthy09:27
elynnupdated.09:28
QimingIt won't be an easy task, but once developers are well trained to understand the necessity of managing API changes, they will appreciate what we have done in the early days09:28
yanyanhuyep09:29
*** openstackgerrit has quit IRC09:33
*** openstackgerrit has joined #senlin09:34
*** ChanServ sets mode: +v openstackgerrit09:34
openstackgerritQiming Teng proposed openstack/senlin: API test for node-operation call  https://review.openstack.org/41688609:34
*** zhurong has quit IRC09:40
*** yanyanhu_ has joined #senlin09:43
*** yanyanhu has quit IRC09:43
openstackgerritQiming Teng proposed openstack/senlin: Explicitly state that 406 will be raised  https://review.openstack.org/41690809:48
openstackgerritXinhui Li proposed openstack/senlin: Extend Senlin to support mistral workflow service  https://review.openstack.org/41497910:08
*** elynn has quit IRC10:08
openstackgerritXinhui Li proposed openstack/senlin: Extend Senlin to support mistral workflow service  https://review.openstack.org/41497910:09
*** openstackstatus has quit IRC10:13
*** openstack has joined #senlin10:18
*** guoshan has quit IRC10:41
openstackgerritXueFeng Liu proposed openstack/senlin: Remove conditional "if child:" in _create_nodes  https://review.openstack.org/41689311:18
openstackgerritXueFeng Liu proposed openstack/senlin: Remove conditional "if child:" in _create_nodes  https://review.openstack.org/41689311:21
*** guoshan has joined #senlin11:42
*** guoshan has quit IRC11:47
*** yanyanhu_ has quit IRC12:05
*** ruijie has quit IRC12:27
*** catintheroof has quit IRC12:38
*** catintheroof has joined #senlin12:44
*** catintheroof has quit IRC12:57
*** catintheroof has joined #senlin12:58
*** catintheroof has quit IRC13:02
*** catintheroof has joined #senlin13:04
*** catintheroof has quit IRC13:11
*** catintheroof has joined #senlin13:47
*** Jeffrey4l_ has quit IRC14:21
*** Jeffrey4l_ has joined #senlin14:35
*** Jeffrey4l_ has quit IRC14:52
*** Jeffrey4l_ has joined #senlin15:05
*** Drago has joined #senlin15:06
openstackgerritXueFeng Liu proposed openstack/senlin: Unit test for ClusterAction.do_update  https://review.openstack.org/41700715:14
*** Drago has quit IRC15:20
*** catintheroof has quit IRC15:32
*** Jeffrey4l_ has quit IRC15:36
*** Drago has joined #senlin15:39
*** guoshan has joined #senlin15:46
*** Jeffrey4l_ has joined #senlin15:48
*** guoshan has quit IRC15:50
openstackgerritMerged openstack/senlin: Extend Senlin to support mistral workflow service  https://review.openstack.org/41497915:52
*** catintheroof has joined #senlin16:32
*** guoshan has joined #senlin17:47
*** guoshan has quit IRC17:52
openstackgerritOpenStack Proposal Bot proposed openstack/senlin-dashboard: Updated from global requirements  https://review.openstack.org/41717620:31
*** catintheroof has quit IRC20:45
*** guoshan has joined #senlin20:49
*** guoshan has quit IRC20:54
*** Jeffrey4l_ has quit IRC21:35
*** Jeffrey4l_ has joined #senlin21:48
*** guoshan has joined #senlin21:50
*** guoshan has quit IRC21:55
*** guoshan has joined #senlin22:51
*** guoshan has quit IRC22:56
*** Drago has quit IRC23:23
*** guoshan has joined #senlin23:52
*** guoshan has quit IRC23:57

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