Thursday, 2016-11-03

*** guoshan has joined #senlin00:14
*** guoshan has quit IRC00:58
*** zhurong has joined #senlin01:18
*** yanyanhu has joined #senlin01:20
openstackgerritMerged openstack/senlin-dashboard: Updated from global requirements  https://review.openstack.org/39283501:32
openstackgerritQiming Teng proposed openstack/senlin: Remove dead code about cluster check/recover  https://review.openstack.org/39301701:33
*** guoshan has joined #senlin01:40
*** guoshan has quit IRC01:44
openstackgerritQiming Teng proposed openstack/senlin: Remove some dead code in rpc client  https://review.openstack.org/39302001:45
*** guoshan has joined #senlin01:45
*** elynn has joined #senlin01:48
*** elynn has quit IRC01:53
openstackgerritMerged openstack/senlin: Updated from global requirements  https://review.openstack.org/39283401:54
*** elynn has joined #senlin01:54
openstackgerritMerged openstack/senlin: Add request/response sample for profile validate API doc  https://review.openstack.org/38957201:54
openstackgerritMerged openstack/senlin: Add request/response sample for policy validate API doc  https://review.openstack.org/38957601:54
openstackgerritmiaohb proposed openstack/senlin: Add filters "policy_name" and "policy_type" for policy binding list  https://review.openstack.org/38850501:59
*** elynn has quit IRC02:23
Qimingruijie, online?02:25
ruijieyes, Qiming02:26
Qimingabout replace nodes02:26
QimingI'm wondering how the command line interface would be02:26
Qimingdo you have any thoughts on that?02:27
ruijieNo, Qiming, have not thought about that02:27
Qimingsenlin cluster-replace-nodes -m oldnode=newnode <cluster> ?02:28
ruijiehow about key-value02:28
Qimingsenlin cluster-replace-nodes -m old1=new1,old2=new2... <cluster> ?02:30
ruijiesenlin cluster-replace-nodes -m <old1=new1; old2=new2> <cluster>02:31
ruijieyes, Qiming, maybe we can use this02:31
Qimingem, but ';' is a little dangerous02:31
Qimingit can be interpreted by Bash as a separator between two commands02:32
ruijieAnd, I am thinking if we can add another parameter to let the user to destroy the original node02:32
openstackgerritYanyan Hu proposed openstack/senlin: API support for node_delete2  https://review.openstack.org/39303002:33
openstackgerritYanyan Hu proposed openstack/senlin: Remove dead code about node-delete  https://review.openstack.org/39303102:33
Qimingyep, that is possible02:33
Qimingsenlin cluster-replace-nodes -m old1=new1[:kill] -m old2=new2[:kill] <cluster> ?02:35
ruijieem, yea. But will that be a little bit complex for user? to decide destiny for every nodes02:36
Qimingby default, we will preserve the replaced nodes02:37
ruijieyes, Qiming, we can do that, let the user chose the nodes to destroy02:38
Qimingit is always a trade-off between flexibility and simplicity02:38
*** elynn has joined #senlin02:38
Qiminganyway02:39
QimingI'm asking this question because ... at the API layer, we are checking if the old node specified is empty and if the new node specified is empty02:39
QimingI'm revisiting those code and wondering if that check is needed02:40
openstackgerritmiaohb proposed openstack/senlin: Add filters "policy_name" and "policy_type" for policy binding list  https://review.openstack.org/38850502:41
Qimingif the api accepts a dict, the 'key' part won't be empty, right?02:41
ruijieI can't be, I mean, we may still check that?02:42
ruijieit02:42
Qimingfor a valid JSON, the keys cannot be empty02:42
Qimingthat check can be skipped IMO02:42
Qimingbut for the values, we are about to check them02:43
*** elynn has quit IRC02:43
*** elynn has joined #senlin02:43
*** Drago has quit IRC02:44
ruijieand also, for the value, it won't be empty too?02:46
*** yanyanhu has quit IRC02:48
*** yanyanhu has joined #senlin02:49
Qimingem, from API's perspective, we cannot guarantee that02:51
ruijieThanks, Qiming. That makes sense.02:52
*** senk has quit IRC02:57
openstackgerritYanyan Hu proposed openstack/senlin: API support for node_delete2  https://review.openstack.org/39303003:11
openstackgerritYanyan Hu proposed openstack/senlin: Remove dead code about node-delete  https://review.openstack.org/39303103:11
*** Drago5 has joined #senlin03:14
Qimingruijie, when checking the request format for replace_nodes, I'm now thinking that destroy operation should not be included, even in future03:34
Qimingthe payload, as it is documented, is a dict03:34
Qimingthat means we don't have a chance to add more fields for indicating whether node(s) should be destroyed unless we change the protocol03:35
ruijieem03:35
ruijieSo, we can only use that parameter to control the whole dict?03:36
Qimingchanging the payload to a list of dicts will solve the problem, but we will have to bump the api version03:36
ruijiesenlin cluster-replace-nodes -m old1=new1 -m old2=new2 --destroy boolean <cluster>03:36
Qimingyes, that is something doable03:37
Qimingby default, we don't destroy those nodes, em ... makes sense03:38
ruijieYes, but not flexible as the previous one03:38
openstackgerritYanyan Hu proposed openstack/senlin: API support for node_delete2  https://review.openstack.org/39303003:51
openstackgerritYanyan Hu proposed openstack/senlin: Remove dead code about node-delete  https://review.openstack.org/39303103:51
openstackgerritYanyan Hu proposed openstack/senlin: Versioned req object and engine support for node delete  https://review.openstack.org/39243203:51
*** guoshan has quit IRC03:56
*** elynn has quit IRC04:24
*** guoshan has joined #senlin04:57
*** guoshan has quit IRC05:01
*** Drago5 has quit IRC05:32
*** elynn has joined #senlin05:39
*** elynn has quit IRC05:44
*** elynn has joined #senlin05:44
*** openstackgerrit has quit IRC05:48
*** openstackgerrit has joined #senlin05:49
*** ChanServ sets mode: +v openstackgerrit05:49
*** guoshan has joined #senlin05:57
*** guoshan has quit IRC06:02
openstackgerritMerged openstack/senlin: Add filters "policy_name" and "policy_type" for policy binding list  https://review.openstack.org/38850506:08
*** guoshan has joined #senlin06:15
*** guoshan has quit IRC06:19
*** guoshan has joined #senlin06:20
ruijieHi, Qiming, around?06:21
openstackgerritmiaohb proposed openstack/python-senlinclient: Add filters "policy_type" and "policy_name" for policy binding list  https://review.openstack.org/38850906:24
*** zhurong has quit IRC06:25
*** zhurong_ has joined #senlin06:25
Qimingyes?06:28
ruijiehttps://review.openstack.org/gitweb?p=openstack/senlin.git;a=blob;f=senlin/engine/actions/node_action.py;h=0eb6a4342b3c24ef688d0f6932c9367aee24fe3b;hb=6e80bdbd5bb2247f2469b3e2632aba42177c84d2#l10006:30
ruijieSince we already sleep for grace_period06:30
ruijiein cluster action layer06:31
ruijieDo we still need this code06:31
Qimingyes, we still need that06:34
Qimingactually that is a good question06:34
Qimingif you pay attention to line 87 in the same file06:34
Qimingyou will see 'self.cause == base.CAUSE_RPC'06:35
Qimingfor node deletion, it can be an action triggered directly from API request, i.e. senlin node-delete06:35
ruijieyes, Qiming, saw that06:36
Qimingit can be triggered as a child action of a cluster action, e.g. senlin cluster-delete06:36
Qimingif it is the latter case, the grace_period is handled at the cluster action layer06:36
Qimingin other words, self.cause == base.DERIVED06:37
Qimingif it is the former case, grace period is handled at node action layer06:37
ruijieso, actually, the cluster delete action only execute #10406:37
Qimingyes, if function do_delete is invoked from within a cluster action, the logic between line 97-102 will be skipped06:38
Qimingand line 106-115 will be skipped as well06:38
ruijieThanks Qiming. That makes sense.06:39
Qimingnp06:40
*** zhurong_ has quit IRC07:03
*** zhurong has joined #senlin07:04
openstackgerritQiming Teng proposed openstack/senlin: Add UniqueDict field type  https://review.openstack.org/39312207:12
openstackgerritQiming Teng proposed openstack/senlin: Request object for replace nodes request  https://review.openstack.org/39312307:12
openstackgerritQiming Teng proposed openstack/senlin: Engine layer cluster-replace-nodes v2  https://review.openstack.org/39312407:12
openstackgerritQiming Teng proposed openstack/senlin: API support to cluster-replace-nodes v2  https://review.openstack.org/39313107:32
openstackgerritOpenStack Proposal Bot proposed openstack/senlin-dashboard: Imported Translations from Zanata  https://review.openstack.org/38928807:32
openstackgerritQiming Teng proposed openstack/senlin: Remove dead engine code about replace nodes  https://review.openstack.org/39313207:34
*** openstackgerrit has quit IRC07:48
*** openstackgerrit has joined #senlin07:49
*** ChanServ sets mode: +v openstackgerrit07:49
openstackgerritMerged openstack/senlin: Versioned objects for check/recover requests  https://review.openstack.org/39264007:57
openstackgerritMerged openstack/senlin: Engine support to objectified cluster check/recover  https://review.openstack.org/39266508:05
openstackgerritMerged openstack/senlin: API layer support to cluster check/recover v2  https://review.openstack.org/39271208:06
openstackgerritYanyan Hu proposed openstack/senlin: Verioned req object for node check/recover  https://review.openstack.org/39315308:08
openstackgerritYanyan Hu proposed openstack/senlin: Engine support for node_check2 and node_recover2  https://review.openstack.org/39315408:08
openstackgerritYanyan Hu proposed openstack/senlin: API support for node_check2 and node_receove2  https://review.openstack.org/39315508:08
openstackgerritYanyan Hu proposed openstack/senlin: Remove dead code about node check/recover  https://review.openstack.org/39315608:08
openstackgerritMerged openstack/senlin: Versioned req object and engine support for node delete  https://review.openstack.org/39243208:45
openstackgerritMerged openstack/senlin: API support for node_delete2  https://review.openstack.org/39303008:45
openstackgerritMerged openstack/senlin: Remove dead code about node-delete  https://review.openstack.org/39303108:45
openstackgerritMerged openstack/senlin: Add UniqueDict field type  https://review.openstack.org/39312208:45
openstackgerritMerged openstack/senlin: Tune health manager to use new RPC  https://review.openstack.org/39284308:51
openstackgerritMerged openstack/senlin: Remove dead code about cluster check/recover  https://review.openstack.org/39301708:53
openstackgerritMerged openstack/senlin: Remove some dead code in rpc client  https://review.openstack.org/39302008:53
*** zhurong has quit IRC09:14
*** elynn has quit IRC09:29
openstackgerritYanyan Hu proposed openstack/senlin: Verioned req object for node check/recover  https://review.openstack.org/39315309:32
openstackgerritYanyan Hu proposed openstack/senlin: API support for node_check2 and node_receove2  https://review.openstack.org/39315509:32
openstackgerritYanyan Hu proposed openstack/senlin: Engine support for node_check2 and node_recover2  https://review.openstack.org/39315409:32
openstackgerritYanyan Hu proposed openstack/senlin: Remove dead code about node check/recover  https://review.openstack.org/39315609:32
*** yanyanhu has quit IRC09:38
*** yanyanhu has joined #senlin09:38
openstackgerritQiming Teng proposed openstack/senlin: Request object for replace nodes request  https://review.openstack.org/39312309:40
*** yanyanhu has quit IRC09:42
openstackgerritQiming Teng proposed openstack/senlin: Request object for replace nodes request  https://review.openstack.org/39312309:48
*** zhurong has joined #senlin09:49
openstackgerritQiming Teng proposed openstack/senlin: Engine layer cluster-replace-nodes v2  https://review.openstack.org/39312409:53
*** zhurong has quit IRC10:02
*** zhurong has joined #senlin10:04
openstackgerritQiming Teng proposed openstack/senlin: API support to cluster-replace-nodes v2  https://review.openstack.org/39313110:08
openstackgerritQiming Teng proposed openstack/senlin: Remove dead engine code about replace nodes  https://review.openstack.org/39313210:11
*** guoshan_ has joined #senlin10:46
*** guoshan has quit IRC10:49
*** guoshan_ has quit IRC10:50
openstackgerritQiming Teng proposed openstack/senlin: API support to cluster-replace-nodes v2  https://review.openstack.org/39313111:15
*** AlexeyAbashkin has quit IRC11:30
*** AlexeyAbashkin has joined #senlin11:35
openstackgerritQiming Teng proposed openstack/senlin: API support to cluster-replace-nodes v2  https://review.openstack.org/39313111:45
*** AlexeyAbashkin has quit IRC11:49
*** AlexeyAbashkin has joined #senlin11:50
*** zzxwill has joined #senlin11:56
*** zzxwill has quit IRC11:56
*** zzxwill has joined #senlin11:58
openstackgerritRUIJIE YUAN proposed openstack/senlin: destroy nodes after cluster replace  https://review.openstack.org/39328612:27
*** Drago5 has joined #senlin12:40
*** Drago5 has quit IRC12:45
*** Drago5 has joined #senlin12:48
*** Drago5 is now known as Drago12:52
*** zzxwill has quit IRC12:57
*** zzxwill has joined #senlin13:00
*** jruano has joined #senlin13:15
*** jruano has quit IRC13:15
*** Alexey_Abashkin has joined #senlin13:27
*** AlexeyAbashkin has quit IRC13:30
*** zzxwill has quit IRC14:00
*** Drago has quit IRC14:46
*** Drago5 has joined #senlin14:52
*** Drago5 is now known as Drago14:53
*** Alexey_Abashkin_ has joined #senlin16:56
*** Alexey_Abashkin has quit IRC16:59
*** jruano has joined #senlin17:26
*** jruano has quit IRC17:57
*** ruijie has quit IRC18:27
*** jruano has joined #senlin18:54
*** jruano has quit IRC19:35
*** jruano has joined #senlin21:39
*** jruano has quit IRC21:40
*** jruano has joined #senlin21:57
*** yuanying has joined #senlin23:41
*** jruano has quit IRC23:43

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