Wednesday, 2015-11-11

*** lixinhui_ has quit IRC00:02
*** lixinhui_ has joined #senlin00:10
*** pratikma_ has quit IRC00:12
*** lixinhui_ has quit IRC00:32
*** xuhaiwei has quit IRC01:02
*** zhenguo has joined #senlin01:23
*** jruano has quit IRC01:32
*** xuhaiwei has joined #senlin01:32
*** Yanyanhu has joined #senlin01:38
*** pratikmallya has joined #senlin01:47
Yanyanhumorning, guys01:56
xuhaiweimorning01:57
*** yuanying_ has joined #senlin02:02
*** yuanying has quit IRC02:05
*** pratikmallya has quit IRC02:11
*** yuanying_ has quit IRC02:11
*** elynn has joined #senlin02:13
elynnmorning02:15
xuhaiweimorning, elynn02:16
elynnBig news to senlin becoming official project. congratuate you guys!02:17
xuhaiweithe same to you02:17
xuhaiweiabout your patch https://review.openstack.org/#/c/239591/, want to ask you about it02:17
xuhaiweiare you free now ? elynn02:21
elynnyes02:21
xuhaiweiis this patch needed by Heat?02:21
elynnHmm, how to say that...02:22
elynnFor now, without this patch will not block contributing senlin resources to heat.02:23
elynnI would say we can just hold on for this patch.02:23
xuhaiweiI am not quite familiar with heat template, for heat template, both ' template: tem.yaml and template: get_file: tem.yaml ' are ok?02:24
elynnNo, only the last one will work for heat.02:24
xuhaiweiok02:25
xuhaiweiso I think maybe senlin should do the same02:25
xuhaiweicurrently we support the first style02:26
elynnyes, if without this patch, we can not reference another template file in spec.02:26
elynnThe spec used for heat will like this https://github.com/lynic/templates/blob/master/senlin/heat_resource/template/senlin-profile.yaml02:27
elynnThe template content need to put in spec file.02:27
xuhaiweiyes02:28
xuhaiweiwait a minute02:30
*** pratikmallya has joined #senlin02:30
xuhaiweiyou can do it like this https://github.com/openstack/senlin/blob/master/examples/profiles/heat_stack_random_string.yaml02:31
xuhaiweielynn02:31
elynnNo, for now senlin resource can not support that spec.02:32
elynnI haven't figure out how to support that yet.02:33
xuhaiweiabout your patch, it seems both types templates are supported with 'get_file' or without it02:34
elynnsenlinclient collect all files when parse this spec https://github.com/openstack/senlin/blob/master/examples/profiles/heat_stack_random_string.yaml , it's not easy to implement similiar codes in heat-engine. Needs heatclient and senlinclient and heat-engine to cooperate.02:35
xuhaiweiyes02:37
elynnAnyway , we can hold on to approve this patch.02:43
xuhaiweiok, I will try to understand what is different in senlin template and heat template02:45
xuhaiweithanks elynn02:45
elynnnp02:47
*** rebase has quit IRC02:48
*** yuanying has joined #senlin02:52
*** lkarm has joined #senlin03:16
openstackgerritJulio Ruano proposed openstack/senlin: Update TODO work items  https://review.openstack.org/24390303:20
*** lkarm has quit IRC03:20
*** hightall has joined #senlin03:22
*** yuanying has quit IRC03:23
*** pratikmallya has quit IRC03:40
*** hightall has quit IRC03:50
*** shu has joined #senlin03:50
*** yuanying has joined #senlin04:07
openstackgerritxu-haiwei proposed openstack/python-senlinclient: Add test case for v1/shell module - part 1  https://review.openstack.org/24340704:10
openstackgerritxu-haiwei proposed openstack/python-senlinclient: Add test case for v1/shell module - part 1  https://review.openstack.org/24340704:11
*** gongysh_ has joined #senlin04:31
*** hightall has joined #senlin04:39
*** pratikmallya has joined #senlin04:49
*** jdandrea has quit IRC04:53
*** pratikmallya has quit IRC04:55
openstackgerritxu-haiwei proposed openstack/senlin: Fix SDK exception message parse  https://review.openstack.org/24395905:33
*** lkarm has joined #senlin05:43
*** lkarm has quit IRC05:47
openstackgerritYanyan Hu proposed openstack/senlin: Add a FEATURE item  https://review.openstack.org/24396205:55
*** xuhaiwei has quit IRC06:09
*** lkarm has joined #senlin06:15
openstackgerritYanyan Hu proposed openstack/senlin: Add a FEATURE item  https://review.openstack.org/24396206:19
*** lkarm has quit IRC06:19
openstackgerritYanyan Hu proposed openstack/senlin: Add a FEATURE item  https://review.openstack.org/24396206:20
elynnYanyanhu, just update senlin resource and add attributes, https://github.com/lynic/templates/blob/master/senlin/heat_resource/template/senlin-profile.yaml06:26
Yanyanhuelynn, got it, will check it06:26
*** elynn_ has joined #senlin06:29
Yanyanhuoh, elynn, I suddenly feel maybe we should directly use 'desired_capacity' rather than 'current_size' to name that attribute of cluster06:30
*** xuhaiwei has joined #senlin06:31
elynn_yes, will change it.06:33
*** elynn has quit IRC06:33
YanyanhuThanks. These two concepts are different and we only have a clear definition of 'desired_capacity' now in Senlin.06:34
Yanyanhuwe may need further discussion to decide how to define the concept of 'current_size' in Senlin and whether we want to expose it to user06:35
Yanyanhuit should be related to the health management design06:36
*** pratikmallya has joined #senlin06:39
elynn_the current_size you mean the desired_capacity?06:46
elynn_What's the difference between them?06:46
*** lvdongbing has joined #senlin06:50
openstackgerritMerged openstack/senlin: Updated from global requirements  https://review.openstack.org/24394006:54
Yanyanhuhi, elynn_, desired_capacity now has clear definition in Senlin. It refers to the size of cluster that user expected when performing cluster create/scale/resize07:01
Yanyanhue.g. when desired_capacity is set to 10, user is expecting a cluster composed by 10 health nodes07:02
Yanyanhubut I guess we are still not very sure about the definition of 'current_size' in Senlin. Maybe it means the 'actual number' of health nodes?07:04
elynn_got it.07:05
Yanyanhubut that really depends on our health management and related policy design07:05
elynn_let's stick on desired_capacity for now.07:05
Yanyanhuyes, at least we can ensure it is a correct option for cluster attribute definition for now07:08
Yanyanhumaybe in future, after we have clear definition of 'current_size' as well, we can add it :)07:08
elynn_yes, agree07:08
Yanyanhubefore that, you can just treat these two concepts equally07:09
openstackgerritShu Muto proposed openstack/senlin-dashboard: Add link to Profile Detail from cluster table  https://review.openstack.org/24398407:26
openstackgerritYanyan Hu proposed openstack/senlin: Pick up a TODO item  https://review.openstack.org/24398707:27
elynn_Hi yanyan, do you know why we add a validation for desired_capacity? https://github.com/openstack/senlin/blob/master/senlin/api/openstack/v1/clusters.py#L74-L7607:31
*** pratikmallya has quit IRC07:32
Yanyanhuhi, elynn_ just came back from coffee break :)07:47
Yanyanhulet me check it07:47
*** Liuqing has joined #senlin07:47
elynn_Yanyanhu: thanks , I understand that now.07:47
Yanyanhuok :)07:47
elynn_desired_capacity can not be null for cluster create, but can be null for cluster update07:48
Yanyanhuyep07:48
elynn_Why it can not be null for cluster create?07:53
Yanyanhuelynn_, since we want user to define the cluster size they expect explicitly07:54
elynn_But in senlin client, if user don't specify desired_capacity, it will replace with 0. That doesn't make sense.07:56
Yanyanhuhmm, you mean there is conflict between these two logics?07:57
elynn_The behavior of senlinclient and API doesn't consistent.07:57
elynn_Yes07:57
YanyanhuI think the default value 0 defined in clientside is just for convinence07:58
Yanyanhuconvenience07:58
YanyanhuI understand your concern07:59
Yanyanhuso you expected an exception from senlinclient when user didn't provide desired_capacity when creating cluster07:59
elynn_I met a bug, but not about desired_capacity, it's about min_size and max_size08:00
Yanyanhuis the default value provided by interface defined in client.py?08:00
elynn_They are allowed to be null.08:00
Yanyanhuyes08:00
Yanyanhuthis is supported from service side08:01
elynn_I create a cluster through rest API with min_size is null.08:01
elynn_then when I use senlinclient to show it, I got a NoneType error.08:02
Yanyanhulet me check the code08:02
elynn_I just wanna to know it's better to fix it in senlinclient or senlin server.08:02
elynn_I met several bugs about null value problem, it might cause problems when doing cluster-scale-out/in.08:03
Yanyanhuhttp://git.openstack.org/cgit/openstack/senlin/tree/senlin/engine/cluster.py#n7008:03
elynn_Seems the logic is wrong there.08:04
Yanyanhuso I guess after cluster object is created, min_size, max_size should not be None even user didn't give these two parameters when creating cluster08:04
Yanyanhuyou mean this code?08:05
elynn_I pass with min_size, but its value is Null.08:05
Yanyanhuhttp://git.openstack.org/cgit/openstack/senlin/tree/senlin/engine/cluster.py#n7008:05
elynn_yes08:05
YanyanhuNull?08:05
Yanyanhustring08:05
xuhaiweielynn_, you do it by curl ?08:05
elynn_means None when translate to dict I think.08:06
elynn_xuhaiwei: I use rest client.08:06
xuhaiweinot by senlin command?08:07
YanyanhuI guess this could be client's problem since we have the following check in engine service http://git.openstack.org/cgit/openstack/senlin/tree/senlin/engine/service.py#n49408:07
elynn_No, I'm not using senlinclient.08:07
Yanyanhuif the value of min_size/max_size parameter is not integer, exception should be raised here08:08
elynn_Let me check08:08
elynn_I don't think it will reach L494, L493 will check if it's none or not.08:09
Yanyanhuyes, 494 is for checking the value type08:09
Yanyanhuif the value is None, the workflow will go to http://git.openstack.org/cgit/openstack/senlin/tree/senlin/engine/cluster.py#n7008:09
elynn_I will figure out to propose a patch for it...08:10
Yanyanhuthanks a lot. Or if you have log detail, you can also paste it out. We can help to check it :)08:10
elynn_Will open a bug first, so you will know what happened.08:10
Yanyanhuok08:11
*** lvdongbing has quit IRC08:37
*** pratikmallya has joined #senlin08:38
*** lvdongbing has joined #senlin08:41
*** lkarm has joined #senlin08:42
*** lkarm has quit IRC08:46
*** pratikmallya has quit IRC08:58
*** pratikmallya has joined #senlin08:59
*** pratikmallya has quit IRC09:00
*** yangyapeng has joined #senlin09:11
*** hightall has quit IRC09:30
*** Liuqing has quit IRC09:42
*** lvdongbing has quit IRC09:43
*** gongysh_ has quit IRC09:44
*** lvdongbing has joined #senlin09:45
*** lvdongbing has quit IRC09:46
*** elynn_ has quit IRC09:49
openstackgerritYanyan Hu proposed openstack/senlin: [WIP]Enable initiative action selecting in start_action  https://review.openstack.org/24402609:50
*** zhenguo has quit IRC09:56
*** Yanyanhu has quit IRC09:59
*** Liuqing has joined #senlin10:09
openstackgerritxu-haiwei proposed openstack/senlin: Fix SDK exception message parse  https://review.openstack.org/24395910:44
*** yangyapeng has quit IRC11:07
*** elynn_ has joined #senlin11:42
*** elynn_ has quit IRC12:06
*** openstackgerrit has quit IRC12:31
*** openstackgerrit has joined #senlin12:32
*** pratikmallya has joined #senlin12:39
*** pratikmallya has quit IRC12:42
openstackgerritJulio Ruano proposed openstack/senlin: Update TODO work items  https://review.openstack.org/24390312:51
*** lvdongbing has joined #senlin12:56
*** pratikmallya has joined #senlin12:58
*** lvdongbing has quit IRC13:43
*** pratikmallya has quit IRC13:44
*** lkarm has joined #senlin14:03
*** pratikmallya has joined #senlin14:05
*** pratikma_ has joined #senlin14:08
*** pratikmallya has quit IRC14:10
*** Liuqing has quit IRC14:14
*** rebase has joined #senlin14:30
*** jdandrea has joined #senlin15:17
*** jdandrea has quit IRC15:18
*** jdandrea has joined #senlin15:18
*** openstackgerrit has quit IRC16:02
*** openstackgerrit has joined #senlin16:02
*** lkarm has quit IRC16:55
*** pratikma_ has quit IRC17:28
*** pratikmallya has joined #senlin17:51
*** pratikma_ has joined #senlin18:20
*** pratikmallya has quit IRC18:23
*** Jezogwza has joined #senlin18:57
*** lkarm has joined #senlin19:04
*** rebase has quit IRC19:11
*** rebase has joined #senlin19:36
*** pratikma_ has quit IRC20:28
*** pratikmallya has joined #senlin20:49
*** pratikmallya has quit IRC20:50
*** pratikmallya has joined #senlin20:51
*** pratikma_ has joined #senlin21:18
*** pratikmallya has quit IRC21:21
*** pratikma_ has quit IRC21:23
*** pratikmallya has joined #senlin21:51
*** pratikma_ has joined #senlin21:54
*** pratikmallya has quit IRC21:57
*** pratikmallya has joined #senlin22:17
*** pratikma_ has quit IRC22:19
*** pratikmallya has quit IRC22:49
*** Jezogwza has quit IRC23:06
*** rebase has quit IRC23:10
*** rebase has joined #senlin23:39

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