Tuesday, 2015-10-20

*** lawrancejing has quit IRC00:00
*** pratikmallya has joined #senlin00:11
*** pratikmallya has quit IRC00:16
*** lawrancejing has joined #senlin00:32
*** elynn has joined #senlin00:34
*** pratikmallya has joined #senlin00:41
*** pratikmallya has quit IRC01:12
*** zhenguo has joined #senlin01:16
*** Shijia has joined #senlin01:23
*** jdandrea has quit IRC01:23
*** Yanyanhu has joined #senlin01:37
elynnmorning01:53
*** lixinhui has joined #senlin01:56
*** xuhaiwei has joined #senlin02:07
openstackgerritMerged openstack/senlin: Zone placement policy  https://review.openstack.org/22168402:08
openstackgerritMerged openstack/senlin: Add project_safe param for cluster/node load  https://review.openstack.org/23677902:10
openstackgerritMerged openstack/senlin: Make profile related DB query project_safe  https://review.openstack.org/23678502:10
openstackgerritMerged openstack/senlin: Updated from global requirements  https://review.openstack.org/23468102:32
openstackgerritxu-haiwei proposed openstack/senlin: Revise cluster_add_nodes action's behavior  https://review.openstack.org/23572802:43
openstackgerritxu-haiwei proposed openstack/senlin: Revise cluster_add_nodes action's behavior  https://review.openstack.org/23572802:49
*** lawrancejing has quit IRC02:53
*** lawrancejing has joined #senlin02:54
openstackgerritYanyan Hu proposed openstack/senlin: Make event related DB queries project safe  https://review.openstack.org/23737803:05
openstackgerritYanyan Hu proposed openstack/senlin: Make trigger related DB queries project safe  https://review.openstack.org/23738403:40
elynnHi a question, can I update min_size or mix_size of a cluster03:45
Yanyanhuelynn, yes04:01
*** lawrancejing has quit IRC04:01
Yanyanhuit can be done through cluster resize API04:01
*** lawrancejing has joined #senlin04:02
Yanyanhuin cluster update API, only name, metadata, parent, timeout and profile can be updated04:03
Yanyanhuhi, elynn, I guess for senlin cluster resource, the updating of different properties may need to be supported using different senlin API interfaces04:06
*** gongysh has quit IRC04:12
elynnYanyanhu, I got it.04:16
*** gongysh has joined #senlin04:17
*** xuhaiwei has quit IRC04:46
*** mathspanda has joined #senlin04:58
*** pratikmallya has joined #senlin06:03
*** elynn has quit IRC06:06
*** elynn_ has joined #senlin06:06
*** Qiming has joined #senlin06:06
openstackgerritMerged openstack/senlin: Revise cluster_add_nodes action's behavior  https://review.openstack.org/23572806:07
*** Shijia has quit IRC06:09
*** Shijia has joined #senlin06:10
*** Liu has joined #senlin06:13
*** Shijia_ has joined #senlin06:28
*** Shijia has quit IRC06:31
*** elynn__ has joined #senlin06:57
*** elynn_ has quit IRC06:58
*** pratikmallya has quit IRC07:34
*** openstackgerrit has quit IRC07:46
*** openstackgerrit has joined #senlin07:47
*** elynn__ has quit IRC08:00
*** shu has quit IRC08:13
*** Yanyanhu has quit IRC08:15
*** Yanyanhu has joined #senlin08:16
*** elynn has joined #senlin08:36
elynnHi08:36
elynnA question about profile update for cluster.08:37
elynnIs it able to update profile for a cluster?08:37
elynnI got an error saying "Cannot update a cluster to a different profile type, operation aborted"08:37
Qiminghi, updating a profile to a different type is not allowed08:38
Qimingsay you have a cluster of nova servers, and now you want it to contain heat stacks, that is not acceptable08:39
Qimingit is perfectly okay to update a cluster to a different profile of the same type08:39
elynnThat means I can update to a profile with the same type, even though I change the heat template in spec?08:40
Qimingyes, whatever template you want to use08:41
elynnAfter update, new nodes will create with new profile while old nodes are  not changed?08:41
Qimingthese are strictly separated actions in senlin08:41
Qimingfor 'update', it only means you are replacing the profile used by a cluster08:42
Qimingfor changing the size of a cluster (add/remove nodes), it is not an 'update'08:42
Qimingit is called 'resize'08:42
Qimingfor heat stack update, we have a dependent patch not yet merged: https://review.openstack.org/#/c/225560/08:43
elynnI mean scale-out08:43
Qimingyes, scale-out is not called an update either08:44
Qimingwe deliberately avoided calling all changes an 'update'08:44
Qimingthat is making things very difficult in Heat08:44
elynnIf I using cluster-update and change the profile, what will happen?08:44
Qimingthe cluster is locked08:44
Qimingthen all nodes in that cluster will be invoked with a do_update() call08:45
Qimingthe 'do_update()' call will then be passed to the drivers (say nova or heat) to update the profile used08:45
Qimingwhen all those actions complete08:45
Qimingcluster update ends and lock is released08:45
Qimingduring this operation, you won't be able to resize the cluster, for example08:46
Qimingit is *locked* for update08:46
elynnOk, I got it. Say if I use  os.heat.stack type of profile for cluster, If I do cluster-update to update the a new profile, then all nodes will do stack-update to fit for the new profile.08:48
elynnSame for the nova instance, isn't it?08:48
Qimingyes08:49
Qimingit is designed that way08:49
Qimingbut I cannot guarantee you the update operation works at the moment, :(08:49
Qimingthe update behavior is completely up to the backend service (nova, heat ...)08:50
Qimingwe just call their update APIs to get things done08:50
elynnIf I update spec for the profile,  what will happen to cluster which using this profile?08:53
Qiming'spec' field is not updatable08:53
Qimingif you update that field, you will get a new profile created with a new ID08:54
elynnold profile will be deleted?08:54
Qimingno08:54
Qimingwhen you do  PUT /senlin/v1/profiles/<ID>  {'spec': 'something new'}08:55
elynnWhy do we accept it as parameter in profile-update command, since it doesn't behave like usual update.08:55
Qimingyou are basically saying: hey, create a new profile using this spec, and copy all other properties from the one I specified08:56
Qimingit can be forbidden08:56
Qimingobviously a trade-off08:56
elynnOk...08:56
Qimingit is strange08:56
*** lawranc__ has joined #senlin08:56
Qimingmaybe we should declare it loudly ... profile spec cannot be updated08:57
elynnI didn't allow it to update in my spec, so that's ok for me...08:57
Qimingcool08:57
Qimingand it doesn't hurt to know more about our original thinking08:58
Qimingallowing update to profile spec is not a convenience, I see no strong use case of that, only endless problems to solve08:58
YanyanhuI guess maybe we should just forbid profile updating  :)08:59
*** lawrancejing has quit IRC08:59
Qimingright08:59
Qimingit is weird that an update request creates a new object with a new ID09:00
Yanyanhuyes09:00
elynnSo the profile name and metadata can not update for now?09:00
Yanyanhuand too many potential issues if a profile which has been used to create cluster/node is updated09:00
Qimingit is more like: senlin profile-create --spec <file> --copy-properties-from <existing_profile_id>09:00
elynnprofile-update will always create a new profile?09:00
Qimingname and metadata can be updated freely09:01
Qimingyes, that sounds a bad design, right?09:01
Qimingwas trying to be more friendly to users09:01
Qimingmaybe it was wrong09:01
Qimingfeel free to propose a patch to kill it09:04
Qimingit is okay to add something later, but removing something that is already in would be a huge headache09:04
elynnyes, need to figure out how to implement this in another way before we remove it.09:09
*** lawranc__ has quit IRC09:15
*** lawrancejing has joined #senlin09:15
*** elynn has quit IRC09:30
*** lawrancejing has quit IRC09:34
openstackgerritYanyan Hu proposed openstack/senlin: Make trigger related DB queries project safe  https://review.openstack.org/23738409:49
openstackgerritYanyan Hu proposed openstack/senlin: Add config option for name uniqueness  https://review.openstack.org/23405109:49
openstackgerritYanyan Hu proposed openstack/senlin: Make webhook related DB query project safe  https://review.openstack.org/23684109:49
openstackgerritShu Muto proposed openstack/senlin-dashboard: Add STATUS into detail view of node  https://review.openstack.org/23749509:53
openstackgerritvenkatamahesh proposed openstack/senlin-dashboard: Change repository from stackforge to openstack  https://review.openstack.org/23668609:58
*** zhenguo has quit IRC10:03
*** lawrancejing has joined #senlin10:16
*** Yanyanhu has quit IRC10:20
*** Qiming has quit IRC10:53
*** gongysh has quit IRC10:54
*** Liu has quit IRC11:00
*** Qiming has joined #senlin11:40
*** lawrancejing has quit IRC11:49
*** lixinhui has quit IRC11:50
*** pratikmallya has joined #senlin12:11
*** Shijia_ has quit IRC12:24
*** Shijia has joined #senlin12:24
*** gongysh has joined #senlin12:33
*** lkarm has joined #senlin12:46
*** yanyanhu has joined #senlin12:54
*** pratikmallya has quit IRC13:00
*** jruano has joined #senlin13:01
*** mathspanda has quit IRC13:32
*** elynn has joined #senlin13:39
*** Shijia has quit IRC13:53
*** yanyanhu has quit IRC14:00
*** jruano has quit IRC14:05
*** elynn has quit IRC14:14
*** zhenguo has joined #senlin14:16
*** jdandrea has joined #senlin14:17
*** pratikmallya has joined #senlin14:20
*** pratikma_ has joined #senlin14:21
*** pratikmallya has quit IRC14:24
*** Shijia has joined #senlin15:11
*** gongysh has quit IRC15:20
openstackgerrityan.haifeng proposed openstack/python-senlinclient: Delete openstack folder to advoid import issue  https://review.openstack.org/23763715:21
*** Qiming has quit IRC15:41
*** Shijia has quit IRC16:03
*** pratikma_ has quit IRC16:16
*** pratikmallya has joined #senlin16:43
*** pratikma_ has joined #senlin16:47
*** pratikmallya has quit IRC16:50
*** lkarm has quit IRC17:45
*** lkarm has joined #senlin18:45
*** lkarm has quit IRC18:50
*** lkarm has joined #senlin19:01
*** lkarm has quit IRC19:05
*** lkarm has joined #senlin19:09
*** lkarm has quit IRC19:45
*** lkarm has joined #senlin20:07
*** pratikma_ has quit IRC20:20
*** lkarm has quit IRC20:33
*** pratikmallya has joined #senlin20:45
*** pratikma_ has joined #senlin20:46
*** pratikmallya has quit IRC20:50
*** lkarm has joined #senlin20:59
*** lkarm has quit IRC21:04
*** pratikma_ has quit IRC22:34
*** jongchoi has joined #senlin22:36
*** jongchoi has quit IRC22:36
*** pratikmallya has joined #senlin23:22
*** pratikmallya has quit IRC23:41
*** Qiming has joined #senlin23:47
*** Qiming has quit IRC23:48

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