Tuesday, 2016-01-19

*** Qiming has quit IRC00:17
*** pratikmallya has joined #senlin00:35
*** Qiming has joined #senlin00:51
*** Liuqing has joined #senlin00:53
*** pratikmallya has quit IRC01:03
*** junxu has joined #senlin01:06
*** jun_ has quit IRC01:09
*** junxu has quit IRC01:11
*** junxu has joined #senlin01:11
Qimingmorning01:17
xuhaiweimorning01:33
openstackgerritMerged openstack/python-senlinclient: The param endpoint in doc string is deprecated  https://review.openstack.org/26890301:35
junxumorning01:47
*** Liuqing has quit IRC01:47
*** elynn__ has joined #senlin01:52
*** elynn__ has quit IRC01:57
*** elynn__ has joined #senlin01:58
*** elynn__ has quit IRC02:00
*** elynn has joined #senlin02:00
elynnMorning02:01
*** Yanyanhu has joined #senlin02:04
*** Liuqing has joined #senlin02:11
openstackgerritjunxu proposed openstack/senlin: Warning when delete cluster with reciver  https://review.openstack.org/26939202:13
openstackgerritCindia-blue proposed openstack/senlin: Add Check and Recover into Node Action  https://review.openstack.org/26456802:30
openstackgerritCindia-blue proposed openstack/senlin: Add Recover as a Cluster Action  https://review.openstack.org/26741902:36
openstackgerritCindia-blue proposed openstack/senlin: Add Recover into RPC API  https://review.openstack.org/26792202:43
*** elynn has quit IRC03:11
*** yuanying has quit IRC03:15
*** elynn has joined #senlin03:16
Qiminglixinhui, there?03:23
lixinhuiyes03:23
Qimingthe above patches you submitted03:23
Qimingare there dependencies among them?03:23
lixinhuiRpc depends on cluster depends on node03:24
Qimingdid you introduce patch dependencies explicitly?03:25
lixinhuiyes03:25
lixinhuiI add the deepndency into commit message03:25
Qiminggerrit new version sucks, cannot see dependency easily03:25
lixinhui267922 depends on 267419 depends on 26456803:26
Qimingokay03:26
QimingI'm on 264568 at the moment03:26
lixinhuithanks03:27
openstackgerritCindia-blue proposed openstack/senlin: Add Check and Recover as a Cluster Action  https://review.openstack.org/26741903:49
openstackgerritCindia-blue proposed openstack/senlin: Add Check and Recover as a Cluster Action  https://review.openstack.org/26741903:52
*** xuhaiwei has quit IRC04:01
openstackgerritCindia-blue proposed openstack/senlin: Add Check and Recover as a Cluster Action  https://review.openstack.org/26741904:02
*** yuanying has joined #senlin04:07
*** xuhaiwei has joined #senlin04:07
*** elynn has quit IRC04:21
*** elynn has joined #senlin05:04
*** gongysh has joined #senlin05:23
xuhaiweisaw this mail?  http://lists.openstack.org/pipermail/openstack-dev/2016-January/084133.html05:40
Qimingxuhaiwei, yep05:42
elynnFinally someone stand out and stop this behavior :)05:50
Qiminghi, just post some comments to lixinhui's patch05:52
Qiminghttps://review.openstack.org/#/c/267922/3/senlin/tests/unit/engine/service/test_clusters.py05:52
Qimingthere are some problems not specific to this patch in particular05:53
Qimingwe have been doing something wrong in unit tests05:53
Qimingfor each unit test, we should mimic all possible return values from the functions called, and test if the test target behaves as expected05:54
Qimingit NEVER means we have to create something for real05:54
Qimingit is too heavy weight, it is (sometimes) masking the fact a function hasn't been thoroughly tested05:54
Qimingplease everyone help pay attention to this when reviewing patches05:55
Qimingit would be even better if someone can help improve tests05:56
Qimingagain, it is not a problem of this patch in particular, it was a mistake we made in the early days, so ... we simply need to stop doing that05:57
xuhaiweiyes, I have done the similar thing that creating a real cluster, profile and node for test05:59
Qimingme too05:59
elynnI get it, we should avoid storing *real* record in unittests, but for some unittests like create/update/delete, do we still avoid to create real object?06:01
*** elynn_ has joined #senlin06:02
Qimingif we don't stop this, we will see more and more test cases bumping in with real objects created for no good06:02
Qiminghttps://review.openstack.org/#/c/269392/1/senlin/tests/unit/engine/service/test_clusters.py06:02
Qimingelynn, good question, we should focus on the logic inside the target function only, testing it with all possible return values (even exceptions) from other functions06:04
Qimingeach layer should do its own job, instead of involving too much entities into that test06:04
Qimingwe have seen too much of that in Heat I guess06:05
*** elynn__ has joined #senlin06:06
elynnQiming: Yes, agree, focus on the logic inside function is enough.06:06
Qimingplease be picky at this when review06:06
*** elynn_ has quit IRC06:07
elynnso besides db api tests, we should be more careful about creating real objects in unittests, right?06:07
Qimingyes06:12
Qimingfor example, creating a cluster is an expensive operation06:13
Qimingit creates an action and queues that action then schedule that action for execution ...06:13
*** elynn__ has quit IRC06:13
Qimingwe almost never need to do that in an unit test06:13
openstackgerritMerged openstack/python-senlinclient: Add back show_details for node-show  https://review.openstack.org/26893806:17
openstackgerritMerged openstack/senlin: Revise version json format  https://review.openstack.org/26886206:20
lixinhuigot it, Qiming06:25
QimingYanyanhu, I'm working on region placement policy to enable it to handle CLUSTER_SCALE_IN and CLUSTER_RESIZE06:26
Yanyanhuok06:27
YanyanhuI'm now working on adding priority back and fix priority value for builtin policies06:27
YanyanhuI first tried to work on action data issue but found related code in placement policy and deletion policy is not clean06:28
xuhaiweiQiming, about the deletion policy for cross az/region, can we pass data from different actions?06:28
QimingYanyanhu, yes, I'm fixing that06:28
Yanyanhucool!06:28
Yanyanhuso I will first address priority issue06:28
QimingYanyanhu, the current data transfer for placement policy introduced a new key in action.data -- 'placement'06:29
QimingI'm moving the policy decisions to 'creation' or 'deletion' accordingly, so that the downstream checking would be easier06:29
Yanyanhuyes, I feel maybe put placements into 'creation'/'deletion' field is better?06:29
Qiminghoho, we are saying the same language, :)06:29
Yanyanhuexact what I'm thinking06:29
Yanyanhuright :)06:30
Yanyanhuthen the action data struct will be clearer06:30
Qimingxuhaiwei, yes, we are passing policy decisions using the action.data field06:30
Qimingxuhaiwei, all policies should read the action.data field and see if there are inputs they can understand and consume06:30
xuhaiweihow can different actions share the same action.data? since when one action is doing the other action is already over06:31
Qimingthose policies are also expected to yield their decicions back to the action.data field so that downstream checkings can be performed06:31
Qimingno two actions will share policy decisions06:32
xuhaiweifor example, placement policy is triggered by CLUSTER_SCALE_OUT, but deletion policy is triggered by CLUSTER_SCALE_IN, how can they share data by action.data?06:33
xuhaiweithe two policies are triggered by different actions06:33
Qimingxuhaiwei, no, they won06:34
Qimingthey won't share data06:34
Qimingthey even won't execute in parallel06:34
xuhaiweiyes06:34
Qimingone action already locked the cluster06:34
xuhaiweiso as we discussed at the meetup, placement policy will tell the placement info to deletion policy, right?06:35
Qimingyes06:35
xuhaiweithat can't be done by sharing action.data, so I put the placement info into cluster.data06:35
Qimingthat can be done06:36
xuhaiweican you review this patch again? https://review.openstack.org/#/c/267969/06:36
Qimingxuhaiwei, we really don't need to store this kind of data to cluster.data06:39
Qimingcurrently, we are reserving cluster.data for other purposes06:39
xuhaiweithen how to share it ?06:39
openstackgerritLiuqing Jing proposed openstack/senlin-dashboard: Fix the broken senlin dashboard  https://review.openstack.org/26945106:39
Qimingwe save it into action.data06:39
Qimingthe node distribution data is only meaningful for policy decisions06:40
Qimingpolicies are checked when actions are performed06:40
Qimingafter an action is executed, we don't have to save the node distribution data06:40
Qimingas for cluster.data06:41
Qimingwe are retaining them for node operations06:41
xuhaiweibut when deletion policy is triggered, it doesn't know the distribution info, where to get it?06:42
Qimingrefresh it06:42
xuhaiweicollecting them again from the nodes?06:42
Qimingyes06:42
Qimingnow I see where you are from06:43
Qimingyou want to optimize this06:44
xuhaiweiit will make many duplicated source from placement policy06:44
Qimingthat is a good point06:44
xuhaiweiyes, I want to save it to the cluster.data, and fresh it when placement policy is attached06:45
Qimingthat should work06:45
Qiminghowever, my current focus is to enable the basics06:46
xuhaiweiand when handling deletion, in deletion policy we only need fetch the data from cluster.data06:46
QimingI mean enabling region_placement policy to handle CLUSTER_SCALE_IN and CLUSTER_RESZIE06:46
xuhaiweiI know that06:46
Qimingonce this workflow is there, we can optimize it and see if the data can be shared to save an additional cluster-wide refresh06:47
Qimingxuhaiwei and Yanyanhu, please check if this is okay? http://paste.openstack.org/show/484236/06:48
Qimingit is the revised docstring for the region_placement policy I'm working on06:49
xuhaiweiQiming, 'count' is not in the sample josn06:51
Qiminga simplified version: http://paste.openstack.org/show/484237/06:52
xuhaiweiI like the second one06:52
Qimingme too06:53
xuhaiweisince you are thinking about region_placement, I will think about zone_placement for cluster_resize action06:53
Qimingem, the same logic can be copied there later on06:54
xuhaiweiok06:54
openstackgerritCindia-blue proposed openstack/senlin: Add Check and Recover as a Cluster Action  https://review.openstack.org/26741907:13
openstackgerritYanyan Hu proposed openstack/senlin: Fix getting node addrress logic in os lbaas driver  https://review.openstack.org/26947707:52
openstackgerritYanyan Hu proposed openstack/senlin: Add fixed priority for built-in policies  https://review.openstack.org/26947807:52
Yanyanhufaint, accidentally added dependency between these two patches07:53
openstackgerritEthan Lynn proposed openstack/senlin: Make senlin-api a console script entry point  https://review.openstack.org/26737507:59
openstackgerritEthan Lynn proposed openstack/senlin: Make senlin-manage a console_script entry point  https://review.openstack.org/26737407:59
openstackgerritEthan Lynn proposed openstack/senlin: Make senlin-engine a console script entry point  https://review.openstack.org/26737607:59
openstackgerritEthan Lynn proposed openstack/senlin: Fix devstack script to use console scripts  https://review.openstack.org/26948407:59
openstackgerritMerged openstack/senlin-dashboard: Fix the broken senlin dashboard  https://review.openstack.org/26945107:59
openstackgerritCindia-blue proposed openstack/senlin: Add Check and Recover into Node Action  https://review.openstack.org/26456808:00
openstackgerritMerged openstack/senlin: Add 'cooldown' for scaling policy  https://review.openstack.org/26891808:05
openstackgerritYanyan Hu proposed openstack/senlin: Rework lb policy  https://review.openstack.org/26467008:24
Yanyanhuhi, Qiming, have proposed the patch for reenabling priority attr of cluster policy bonding. Will wait for your patch on placement policy before making further change on action data transimission logic.08:42
Yanyanhuabout the output format, how about this one? http://paste.openstack.org/show/484243/08:45
Yanyanhusorry, just noticed the msg you pasted before08:45
Yanyanhuor this one: http://paste.openstack.org/show/484245/08:48
openstackgerritCindia-blue proposed openstack/senlin: Add check and Recover into RPC API  https://review.openstack.org/26792208:49
Yanyanhujust feel maybe puting the placement results into 'placements' field is clearer?08:49
openstackgerritjunxu proposed openstack/senlin: Warning when delete cluster with receivers  https://review.openstack.org/26939208:59
*** elynn has quit IRC09:04
*** elynn has joined #senlin09:04
openstackgerritCindia-blue proposed openstack/senlin: Add Check and Recover as a Cluster Action  https://review.openstack.org/26741909:06
openstackgerritCindia-blue proposed openstack/senlin: Add Check and Recover into Node Action  https://review.openstack.org/26456809:07
openstackgerritCindia-blue proposed openstack/senlin: Add Check and Recover as a Cluster Action  https://review.openstack.org/26741909:11
openstackgerritQiming Teng proposed openstack/senlin: Add region validation to keystone driver  https://review.openstack.org/26950409:16
openstackgerritQiming Teng proposed openstack/senlin: Enable cluster to do node distribution refresh  https://review.openstack.org/26950509:17
openstackgerritCindia-blue proposed openstack/senlin: Add Check and Recover into Node Action  https://review.openstack.org/26456809:35
Yanyanhuhi, Qiming, just saw your patch 269505. I found the dist result contains the node amount in each zones/regions. Do we need to fill the nodes list into the dist result as well?09:37
Yanyanhuhttps://review.openstack.org/#/c/269505/1/senlin/engine/cluster.py09:38
Qimingwhy?09:38
openstackgerritAyush Garg proposed openstack/python-senlinclient: Update the word 'Senin' to 'Senlin'  https://review.openstack.org/26951409:39
Yanyanhusince the nodes list is some policies expect I think, like lb policy09:39
Qimingdon't get it09:40
Qiminglb policy care about node distribution across regions? across azs?09:41
YanyanhuI mean lb policy need deleted nodes list as input, so if there is no deletion policy attached, it may need to invoke get_region_distribution/get_zone_distribution to get it09:42
Yanyanhuno09:42
Yanyanhuit just needs the deleted nodes list, no matter where these nodes are09:42
Qimingthese two methods are utility functions for clusters09:42
Qimingit tells you how current nodes are distributed09:42
Yanyanhuok, I see09:42
Qimingthat is all09:42
Yanyanhuit's not for this purpose09:43
Qimingright09:43
Qimingeven if there is a function that converts {'deletion': {'azs': ['az1', 'az1', 'az2']}} to {'deletion': {'candidates': ['node12', 'node13', 'node25']}}09:44
Qimingthat function should not belong to cluster module, right?09:45
Yanyanhuyes09:45
YanyanhuI think cluster_action is better place for it09:45
Qimingyep09:45
Qimingmaybe someone can start working on such a function09:46
Yanyanhuok, I can take over it09:46
Qimingit can be shared between deletion policy and lb policy09:46
Qiminggreat09:46
QimingI'm really not good at writing algorithms ... sigh09:46
Yanyanhuyes, that will be a kind of util function09:46
Yanyanhume neither...09:47
Yanyanhuyou should be much better than me on algorithms09:47
openstackgerritvenkatamahesh proposed openstack/python-senlinclient: Update the word 'Senin' to 'Senlin'  https://review.openstack.org/26951409:47
Qiming...09:47
Yanyanhuat least, both your bachelor and master degree are computer science :)09:47
YanyanhuI'm a layman for this, haha09:48
Qiming...09:48
openstackgerritEthan Lynn proposed openstack/senlin: Fix devstack script to use console scripts  https://review.openstack.org/26948409:51
openstackgerritMerged openstack/senlin: Warning when delete cluster with receivers  https://review.openstack.org/26939209:58
openstackgerritLiuqing Jing proposed openstack/senlin-dashboard: Add receivers panel  https://review.openstack.org/26952810:02
Qiminghi, Yanyanhu10:06
Yanyanhuhi10:07
QimingI don't think the revision to priority work should be blocked by the placement policies10:07
Yanyanhusure10:07
Qimingjust go ahead assuming that we won't get placement policies work before release10:07
Yanyanhuthese two works have no dependency on each other10:07
QimingI'll do my best to catch up10:07
Yanyanhumany thanks :)10:08
*** Qiming has quit IRC10:12
openstackgerritvenkatamahesh proposed openstack/python-senlinclient: Update the word 'Senin' to 'Senlin'  https://review.openstack.org/26951410:12
openstackgerritAyush Garg proposed openstack/python-senlinclient: Update the word 'Senin' to 'Senlin'  https://review.openstack.org/26951410:12
*** elynn has quit IRC10:13
*** Ayush has joined #senlin10:19
AyushHello All, I have freshly installed senlin using devstack and try to execute the command $senlin profile-type-list but it exits with an error "The plugin None could not be found". Can anyone help me to resolve this?10:22
*** Yanyanhu has quit IRC10:24
openstackgerritMerged openstack/python-senlinclient: Update the word 'Senin' to 'Senlin'  https://review.openstack.org/26951410:35
*** Qiming has joined #senlin11:05
AyushHello All, I have freshly installed senlin using devstack and try to execute the command $senlin profile-type-list but it exit with an error "The plugin None could not be found". Can anyone help me to resolve this? I am a newbie in this project.11:09
QimingAyush, can you help paste the stack trace?11:11
Qimingyou can do a $senlin -d profile-type-list11:12
Qimingand try figure out which plugin is missing11:13
xuhaiweiI am afraid he is not using the latest source11:15
openstackgerritCindia-blue proposed openstack/senlin: Add check and Recover into RPC API  https://review.openstack.org/26792211:53
*** Liuqing has quit IRC12:06
*** gongysh has quit IRC12:07
openstackgerritOpenStack Proposal Bot proposed openstack/python-senlinclient: Updated from global requirements  https://review.openstack.org/26935012:08
openstackgerritOpenStack Proposal Bot proposed openstack/senlin: Updated from global requirements  https://review.openstack.org/26935312:09
openstackgerritOpenStack Proposal Bot proposed openstack/senlin-dashboard: Updated from global requirements  https://review.openstack.org/26853912:09
*** elynn has joined #senlin12:15
*** elynn_ has joined #senlin12:28
*** elynn has quit IRC12:30
openstackgerritCindia-blue proposed openstack/senlin: Add check and Recover into RPC API  https://review.openstack.org/26792212:31
*** lixinhui_ has joined #senlin12:52
*** yanyanhu has joined #senlin12:53
elynn_meeting?13:01
yanyanhuyes13:01
openstackgerritMerged openstack/senlin: Updated from global requirements  https://review.openstack.org/26935313:41
openstackgerritMerged openstack/senlin: Make senlin-manage a console_script entry point  https://review.openstack.org/26737413:50
*** yanyanhu has quit IRC13:53
*** lixinhui_ has quit IRC14:11
*** elynn_ has quit IRC14:12
openstackgerritMerged openstack/python-senlinclient: Updated from global requirements  https://review.openstack.org/26935014:21
openstackgerritMerged openstack/senlin: Add region validation to keystone driver  https://review.openstack.org/26950414:23
*** pratikmallya has joined #senlin14:27
*** pratikma_ has joined #senlin14:29
*** pratikmallya has quit IRC14:32
openstackgerritMerged openstack/senlin: Enable cluster to do node distribution refresh  https://review.openstack.org/26950514:58
openstackgerritQiming Teng proposed openstack/senlin: Rework region placement policy  https://review.openstack.org/26971515:41
openstackgerritQiming Teng proposed openstack/senlin: Rework region placement policy  https://review.openstack.org/26971515:57
openstackgerritMerged openstack/senlin: Fix getting node addrress logic in os lbaas driver  https://review.openstack.org/26947716:02
*** Qiming has quit IRC16:09
*** Liuqing has joined #senlin16:16
*** bdrich has joined #senlin16:28
*** Liuqing has quit IRC16:46
*** Liuqing has joined #senlin16:50
*** Liuqing has quit IRC16:51
*** Liuqing has joined #senlin16:53
*** Liuqing has quit IRC16:53
*** pratikma_ has quit IRC17:42
*** pratikmallya has joined #senlin18:10
*** bdrich has quit IRC18:19
*** bdrich has joined #senlin19:14
*** pratikmallya has quit IRC22:01
*** pratikmallya has joined #senlin22:19
*** pratikmallya has quit IRC22:40
*** bdrich has quit IRC22:43
*** pratikmallya has joined #senlin23:48
*** Qiming has joined #senlin23:51

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