Friday, 2015-08-21

*** Qiming has joined #senlin00:10
*** Qiming has quit IRC00:18
*** xuhaiwei has joined #senlin00:19
*** Qiming has joined #senlin01:01
*** Yanyan has joined #senlin01:36
*** mathspanda has joined #senlin01:47
openstackgerritYanyan Hu proposed stackforge/senlin: [WIP]Add fake nova_v2 driver for functional test  https://review.openstack.org/21409001:49
*** elynn has joined #senlin01:55
xuhaiweihi Qiming, Yanyan, I am doing exception handling of lbaas module, and found something strange, https://github.com/stackforge/senlin/blob/master/senlin/drivers/openstack/lbaas.py#L14801:59
xuhaiweishould line148 be like line117?01:59
Yanyanlet me have a look02:00
Yanyanyou mean we should get and check the return value from _wait_for_lb_ready?02:01
xuhaiweiyes02:02
xuhaiweidont need to?02:02
xuhaiweiand I also dont know when deleting the listener, why should we also check whether lb is ready?02:03
Yanyanhmm, look like we should do that02:04
Yanyanthat is because all lbaas related operation will cause loadbalancer resource be updated02:04
Yanyansorry, not all, just those creation/deletion/update operations02:04
xuhaiweiok02:05
Yanyanxuhaiwei, I think you're right. We should also check lb ready in lb_delete methods02:05
xuhaiweinot only lb_delete, there are many places where _wait_for_lb_ready is called02:06
Yanyanif res is not True, we should fail this lb_delete operation02:07
Yanyanyou mean in lb_create or member_add?02:07
Yanyanand member_remove02:08
xuhaiweiyes02:08
xuhaiweiall the places02:08
Yanyansince we need to check it in those cases02:08
Yanyanso I think we may need to add this logic in lb_delete() as well02:08
Yanyanand add some checks in lb_policy02:09
xuhaiweilb_policy?02:10
Yanyanyes, since lb_policy will invoke lb_delete in some cases, we may need to check whether lb_delete succeeded02:12
xuhaiweiok02:13
openstackgerritYanyan Hu proposed stackforge/senlin: [WIP]Add fake nova_v2 driver for functional test  https://review.openstack.org/21409002:13
*** elynn has quit IRC02:35
*** elynn has joined #senlin02:35
openstackgerritYanyan Hu proposed stackforge/senlin: [WIP]Add fake nova_v2 driver for functional test  https://review.openstack.org/21409002:44
openstackgerritYanyan Hu proposed stackforge/python-senlinclient: Avoid deleting metadata incorrectly when doing profile_update  https://review.openstack.org/21541202:55
openstackgerritMerged stackforge/python-senlinclient: Avoid deleting metadata incorrectly when doing profile_update  https://review.openstack.org/21541203:06
openstackgerritYanyan Hu proposed stackforge/senlin: Correct description about marker option in getting_started doc  https://review.openstack.org/21541803:25
openstackgerritxu-haiwei proposed stackforge/senlin: Check wait_for_lb_ready method's return value  https://review.openstack.org/21543004:18
xuhaiweiYanyan04:25
Yanyanhi, xuhaiwei, just came back from lunch04:40
*** xuhaiwei_ has joined #senlin04:41
openstackgerritYanyan Hu proposed stackforge/senlin: [WIP]Add fake nova_v2 driver for functional test  https://review.openstack.org/21409004:42
*** xuhaiwei has quit IRC04:42
*** Shijia has joined #senlin04:43
xuhaiwei_Yanyan, about this patch https://review.openstack.org/#/c/215418/04:44
xuhaiwei_I think the original doc is not bad04:45
Yanyanhmm, but some doc in senlin also give the description like revised version04:46
xuhaiwei_you mean about 'marker'?04:47
Yanyanhttp://git.openstack.org/cgit/stackforge/senlin/tree/doc/source/developer/node.rst#n12904:47
Yanyanyes, like this04:47
Yanyanhttp://git.openstack.org/cgit/openstack/glance/tree/glance/registry/client/v1/client.py#n10004:48
Yanyanand some other services' decription about this option04:48
Yanyanand based on the code, I think the description in development doc should be correct04:49
xuhaiwei_yes, I think the senlin's doc means the same meaning04:52
Yanyanyes, I guess so04:53
Yanyanbut really not sure whether the expression is ok...04:54
xuhaiwei_the problem is the command function04:54
Yanyancommand function?04:55
xuhaiwei_you mean this line 'from which you want tosee the returned list starts'?04:55
Yanyanyes04:56
xuhaiwei_yes, the '--marker' option doesn't run well04:56
xuhaiwei_that is a little difficult English sentence I think :)04:56
Yanyanem, so maybe we wait for other guys' suggestion :)04:57
xuhaiwei_the original sequence should be 'you want to see the returned list starts from'??04:57
xuhaiwei_anyway, there is a bug in the source code, '--marker' option doesn't work now04:58
xuhaiwei_this maybe SDK's bug04:58
Yanyanoh, no, xuhaiwei_, it's just an error in doc decription I think04:59
Yanyanthe --marker option actually work04:59
xuhaiwei_really??05:00
Yanyanjust the way it works is different from the description in getting_startted document05:00
xuhaiwei_but it makes no difference even if I used --marker option05:00
Yanyanhmm, it works in my env05:01
YanyanI just referred to the test result from chris http://paste.openstack.org/show/412476/05:01
xuhaiwei_got it05:03
xuhaiwei_it only works when UUID is set, not works for short-id05:03
Yanyanyep05:04
xuhaiwei_that's a bug?05:04
Yanyanhmm, I think it is a place we can improve our design05:04
Yanyanwe query the Full id based on short ID first and then do query based on it05:05
xuhaiwei_why short id doesn't work here?05:08
YanyanI think the marker param can only accept full-ID05:09
Yanyanso if user directly gives a short-ID as the marker, it actually doesn't take effect05:09
Yanyansince short-ID is an conception that handled by senlin's code05:10
xuhaiwei_yes05:10
xuhaiwei_sdk, only handles full-id maybe05:10
Yanyanoh, you mean this. I think this is not SDK's problem. It just pass the request to senlin-api05:11
Yanyanwithout any translation05:11
Yanyane.g. if you give a short-id here, what senlin API accept is the short-id05:12
Yanyanthis short-id should be handled by senlin's engine service logic05:12
Yanyanactually this is handled by senlin's sqlalchemy api's implementation05:13
xuhaiwei_got it05:13
Yanyansomething like this :)05:14
Yanyanhttp://git.openstack.org/cgit/stackforge/senlin/tree/senlin/db/sqlalchemy/api.py#n13105:14
openstackgerritOpenStack Proposal Bot proposed stackforge/senlin: Updated from global requirements  https://review.openstack.org/21499305:14
openstackgerritMerged stackforge/senlin: Set cluster status to warning after deletion failed  https://review.openstack.org/21500605:21
openstackgerritYanyan Hu proposed stackforge/senlin: [WIP]Add fake nova_v2 driver for functional test  https://review.openstack.org/21409005:27
*** Shijia has quit IRC05:37
*** Shijia has joined #senlin05:37
*** Yanyan has quit IRC05:42
*** Yanyan has joined #senlin05:42
*** zhenguo has joined #senlin05:42
*** Shijia_ has joined #senlin05:51
*** Shijia has quit IRC05:55
*** Shijia_ has quit IRC06:11
*** Shijia has joined #senlin06:12
openstackgerritYanyan Hu proposed stackforge/senlin: Add fake nova_v2 driver for functional test  https://review.openstack.org/21409006:13
*** Shijia has quit IRC06:16
*** Shijia has joined #senlin06:17
Qiminghi06:18
Qiminghttps://review.openstack.org/21546606:18
Qimingjust heads up06:18
QimingZhenguo has kindly offered to start a dashboard project for Senlin06:18
zhenguohello senlin06:19
zhenguoyeah, I would like to add a new project for UI component of Senlin06:19
Yanyanhi, zhenguo, welcome :)06:20
zhenguo:)06:20
Yanyanso this UI project will be part of horizon?06:22
*** Shijia has quit IRC06:23
zhenguoit's a horizon plugin06:23
Yanyanok, cool ;)06:23
*** Shijia has joined #senlin06:23
*** kun_huang has joined #senlin06:24
*** ChanServ changes topic to "test message"06:26
*** Shijia_ has joined #senlin06:27
xuhaiwei_hi, welcome to senlin zhenguo06:27
zhenguoo/06:28
*** Shijia has quit IRC06:28
*** ChanServ changes topic to "IRCLog: http://eavesdrop.openstack.org/irclogs/%23senlin/ | Bugs: bugs.launchpad.net/senlin | Review: https://review.openstack.org/#/q/project:stackforge/senlin,n,z"06:28
openstackgerritYanyan Hu proposed stackforge/senlin: Check cluster size constraint before doing node join/leave  https://review.openstack.org/21547506:42
*** elynn has quit IRC06:47
openstackgerritxu-haiwei proposed stackforge/senlin: Handle exception in neutron_v2 module  https://review.openstack.org/21505107:03
*** xuhaiwei_ has quit IRC07:10
Qiminghi, Yanyan07:23
QimingI'm looking at the functional tests07:24
Yanyanhi07:24
Qimingstill wondering if the fake API client, API response classes are actually needed07:24
openstackgerritMerged stackforge/senlin: Correct description about marker option in getting_started doc  https://review.openstack.org/21541807:25
Yanyanyou mean maybe we don't need to fake the return value of those interfaces in like nova driver?07:26
Qimingin Senlin, we are not making any HTTP requests directly, all our interactions with other services are done thru sdk07:26
*** kun_huang has left #senlin07:26
Qimingwe fake the nova driver's directly, that would suffice?07:26
Yanyannova driver's?07:27
Yanyanyou mean sdk's function call?07:27
Qimingthis file: https://review.openstack.org/#/c/214090/12/senlin/tests/functional/common/client.py07:28
*** Shijia_ has quit IRC07:29
Yanyanyes?07:29
*** Shijia has joined #senlin07:29
Yanyanhi, Qiming, this client if for the test code talking with senlin service07:32
Qimingwhere is the code?07:32
Yanyanyou mean the code of test case?07:33
Yanyansomething like this https://review.openstack.org/#/c/214090/12/senlin/tests/functional/test_profile.py07:34
Qimingsenlin server code07:34
*** xuhaiwei has joined #senlin07:34
Yanyanoh, it is installed by devstack using the code from our git repo07:34
Yanyanit will be located in /opt/stack/new/senlin/07:35
Yanyanby default07:35
QimingI mean, in senlin server code, we are not talking to senlin via HTTP request/response, right?07:35
Qimingeven for functional tests, we can still mock a cluster driver07:36
Yanyancluster driver? the interface implemented in sdk for clustering service?07:37
Qimingyes07:37
Qimingwe could have had all senlin resources committed to sdk, if not for their lock for release07:37
Yanyanyou mean we can use sdk rather than API client to talk with senlin07:37
Yanyanwhen doing functional test07:38
QimingAPI client makes not sense in our context07:38
Yanyanoh, if so, that will be the best07:38
Qimingif we are not using sdk, the story could be different07:38
Yanyanwe don't need to handle all those API related things by ourself07:38
Qimingfor functional tests, we don't need API client, because we can use faked driver for senlin, just like faked driver for nova07:39
Qimingfor integration test, when that day comes, we could have committed all Senlin resources to SDK07:39
Qimingthe raw API client stuff is still useless, right?07:39
Yanyanumm, but since sdk doesn't provide enough support for senlin, how can we send those requests to senlin service without both API and senlinclient07:41
Yanyansure, after sdk is ready, we don't need the APIclient anymore07:41
Yanyansince we need real interaction between test case and senlin API and engine07:42
Qimingokay, understand07:43
*** Shijia has quit IRC07:43
Yanyansince API client is now the startpoint of a test progress :)07:43
*** Shijia has joined #senlin07:44
QimingI see07:44
Qimingwe really need to push the SDK guys07:47
Yanyanabsolutely...07:47
openstackgerritxu-haiwei proposed stackforge/senlin: Handle exception in neutron_v2 module  https://review.openstack.org/21505107:47
Qimingwe still have action, build_info, event, policy, webhook, cluster_policy and trigger to be pushed to SDK07:48
Yanyanyes07:48
*** Shijia has quit IRC07:48
Yanyanbut seems those guys are very busy recently...07:48
YanyanI found bunch of bugs in sdk are still in open status07:49
Qimingdont feel it that way, not sure what they are busying at07:49
Qimingpatches from TH and BC were not that much recently07:49
Yanyanhope they can finish their current work soon and start to accept new resource implementation07:50
Yanyanyes07:50
openstackgerritYanyan Hu proposed stackforge/senlin: Ensure policy enforcement level is less equal than 100  https://review.openstack.org/21550107:53
*** Shijia has joined #senlin07:54
Yanyanhi, Qiming, I have tried to propose some fix for those issues Chris mentioned in his test result and marked them in the updated version of test document07:54
Yanyanwill send you guys the updated one later07:54
Qimingokay, good07:54
*** Shijia has quit IRC07:58
xuhaiweiChris is mathspanda and also LinPeiyu?07:59
mathspandano, he is not me.08:00
mathspandahe is a german intern.08:00
xuhaiweiok, thanks08:00
mathspandahi, please look at this paste: http://paste.openstack.org/show/423203/08:01
*** mathspanda_ has joined #senlin08:05
Qimingyes, start_time and end_time are not datetime data type08:06
Qimingthey are currently used to count how many seconds taken to do an action08:06
Qimingalso, you are not supposed to do this stuff in each individual action subclass, unless absolutely necessary08:07
Qimingall concrete action types use the same logic for execution flow and status update08:08
Qimingline 46 in that file and line 65 are all wrong08:09
mathspanda_ok.i understand.08:10
*** mathspanda_ has quit IRC08:12
*** Shijia has joined #senlin08:14
*** Qiming has quit IRC08:14
*** Shijia has quit IRC08:19
openstackgerritxu-haiwei proposed stackforge/senlin: Handle exception in neutron_v2 module  https://review.openstack.org/21505108:55
*** Shijia has joined #senlin08:59
*** xuhaiwei has quit IRC09:01
*** Shijia has quit IRC09:03
*** LiuWei has quit IRC09:16
*** mathspanda has quit IRC09:32
*** Yanyan has quit IRC09:43
*** Shijia has joined #senlin09:49
*** Shijia has quit IRC09:53
*** Shijia has joined #senlin10:09
*** Shijia has quit IRC10:13
*** Shijia has joined #senlin10:34
*** Shijia has quit IRC10:38
*** Shijia has joined #senlin11:04
*** Shijia has quit IRC11:08
*** Shijia has joined #senlin11:15
*** Shijia has quit IRC11:58
*** Shijia has joined #senlin11:59
*** Shijia has quit IRC12:03
*** Shijia has joined #senlin12:07
*** Shijia has quit IRC13:06
*** Shijia has joined #senlin13:07
*** Shijia has quit IRC13:16
*** Shijia has joined #senlin13:37
*** Shijia has quit IRC13:47
*** Shijia has joined #senlin13:47
*** Shijia has quit IRC13:52
*** Qiming has joined #senlin14:02
*** Shijia has joined #senlin14:17
*** Shijia has quit IRC14:22
*** Qiming has quit IRC14:24
*** Shijia has joined #senlin15:12
*** Shijia has quit IRC15:16
*** Shijia has joined #senlin15:25
*** Shijia has quit IRC15:36
*** Shijia has joined #senlin15:36
*** Shijia has quit IRC15:40
*** Qiming has joined #senlin15:48
*** Qiming has quit IRC16:18
*** Shijia has joined #senlin16:31
*** Shijia has quit IRC16:36
*** Shijia has joined #senlin16:51
*** Shijia has quit IRC16:56
*** Shijia has joined #senlin16:57
*** Shijia has quit IRC17:01
*** Shijia has joined #senlin17:21
*** Shijia has quit IRC17:26
*** Shijia has joined #senlin17:37
*** Shijia has quit IRC17:41
*** Shijia has joined #senlin18:07
*** Shijia has quit IRC18:12
*** Shijia has joined #senlin18:16
*** Shijia has quit IRC18:21
*** Shijia has joined #senlin18:22
*** Shijia has quit IRC18:26
*** Shijia has joined #senlin18:31
*** Shijia has quit IRC18:36
*** Shijia has joined #senlin18:46
*** Shijia has quit IRC18:51
*** Shijia has joined #senlin19:07
*** Shijia has quit IRC19:11
*** Shijia has joined #senlin19:37
*** Shijia has quit IRC19:42
*** Shijia has joined #senlin19:46
*** Shijia has quit IRC19:51
*** Shijia has joined #senlin20:07
*** Shijia has quit IRC20:11
*** Shijia has joined #senlin20:36
*** Shijia has quit IRC20:40
*** Shijia has joined #senlin21:11
*** Shijia has quit IRC21:16
*** Shijia has joined #senlin21:31
*** Shijia has quit IRC21:36
*** jruano has joined #senlin21:56
*** Shijia has joined #senlin21:57
*** Shijia has quit IRC22:02
*** Shijia has joined #senlin22:32
*** Shijia has quit IRC22:36
*** Shijia has joined #senlin23:02
*** Shijia has quit IRC23:06
*** Shijia has joined #senlin23:27
*** Shijia has quit IRC23:31
*** Shijia has joined #senlin23:32
*** jruano has quit IRC23:37
*** Shijia has quit IRC23:41
*** jruano has joined #senlin23:55
*** Shijia has joined #senlin23:57

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