Thursday, 2017-01-19

*** catintheroof has joined #senlin00:23
*** zhurong has joined #senlin01:00
*** hanwei has quit IRC01:01
*** XueFengLiu has quit IRC01:07
*** catintheroof has quit IRC01:13
*** catintheroof has joined #senlin01:14
*** hanwei has joined #senlin01:14
*** catintheroof has quit IRC01:14
*** yanyanhu has joined #senlin01:25
*** Drago1 has quit IRC01:28
*** ruijie_ has joined #senlin01:57
*** chohoor has joined #senlin01:59
*** root_____ has joined #senlin02:05
*** root_____ is now known as XueFeng02:05
openstackgerritMerged openstack/senlin: Fix cluster-list failed of ResourceNotFound problem  https://review.openstack.org/42100802:27
*** shu-mutou has joined #senlin02:37
*** chohoor has quit IRC02:41
*** Jeffrey4l_ has joined #senlin03:00
*** Jeffrey4l has quit IRC03:04
*** chohoor has joined #senlin03:19
openstackgerritRUIJIE YUAN proposed openstack/senlin: revise tempest api for cluster 2  https://review.openstack.org/42236903:30
*** zhurong has quit IRC03:34
*** elynn has joined #senlin04:38
*** yanyanhu has quit IRC04:45
openstackgerritQiming Teng proposed openstack/senlin: Fix various problems in doc tree  https://review.openstack.org/42238604:58
openstackgerritmiaohb proposed openstack/senlin: Add db purge in senlin manage  https://review.openstack.org/42066605:04
*** Drago1 has joined #senlin05:09
elynnHi Qiming05:15
Qiminghi05:18
elynnI met a problem when loading cluster data in profile.do_create05:18
elynnhttp://paste.openstack.org/show/595401/05:18
elynnSeems the profile.context didn't have project05:19
Qimingyes05:19
QimingI was worrying about that05:19
Qimingso you may turn to service context with user and project explicitly specified05:20
elynnAny suggestions on how to load cluster data from db?05:20
openstackgerritMerged openstack/senlin: unify exceptions' message  https://review.openstack.org/42110905:20
Qiminguse the code I pasted you05:20
elynnokay... I could have a try05:21
elynnI lost the code you pasted me before..05:21
openstackgerritEthan Lynn proposed openstack/python-senlinclient: Parse nested dict for metadata parameter  https://review.openstack.org/42239205:22
Qimingctx_dict = senlin_context.get_service_context(user=obj.user, project=obj.cluster)05:22
Qimingctx = senlin_context.RequestContext.from_dict(ctx_dict)05:22
Qimingor something similar to this: http://git.openstack.org/cgit/openstack/senlin/tree/senlin/engine/health_manager.py#n7205:23
elynnThanks Qiming05:24
Qimingnp05:24
elynnAnother thing is about 'config' in metadata05:24
elynnSee my patch https://review.openstack.org/42239205:25
elynnclient didn't parse config='{"foo": "bar"}' as a dict.05:25
elynnWhen directly call API, it's fine.05:26
elynnSaw your comments. Qiming05:29
elynnHow are we gonna to handle it at server side?05:30
Qimingwhen we handles it at server side, we have the freedom to cope it case by case05:31
elynnLet me see if I can handle it at server side.05:32
Qimingif it is a value for metadata, we can do test and a conversion from the value when getting it from API request05:32
elynnyes, it would be great if senlin supports this.05:34
elynnIf we support it at server side, what's the format of metadata that's looks like?05:38
elynnQiming, for {config: {foo:bar}}, we could pass config=foo=bar, but for many parameters like {config: {f1:b1,f2:b2}}05:39
elynnWhat's your suggestion to pass them?05:39
Qimingit should be config='{"foo": "bar"}'05:47
QimingI mean .. expose the JSON nature to end users05:47
elynnconfig='{"f1": "b1", "f2":"b2"}' ?05:47
Qimingyes05:47
Qimingdoing another level of translation is gonna get us into a lot of troubles05:48
Qiminge.g. the 'f1' in your example could be another nested dict05:48
elynnIf the parameters are too many, writing such a metadata would be a little boring..05:48
Qimingagreed05:49
Qimingbut incomplete solution is not a solution, right?05:49
Qiming{"f1": {"k1": ["v1", 2], "k2": {"v3": "v4"}}, "f2": "b2"}05:50
Qimingsuch a structure is very difficult to be flattened05:50
elynnokay, at least there's a way to parse json first, then we can improve and figure out a better way.05:50
Qimingexactly05:51
elynnQiming, yes.. that's what struggles me...05:51
wllabssenlin create receiver after06:06
wllabshow to create monitor trigger alarm url06:06
wllabscall os::heat ?06:07
wllabshow to check the cluster when only transfer a alarm url and a cluster id06:08
wllabsQiming06:19
Qimingdon't understand what you are asking ...06:21
Qimingwhat do you mean by "check the cluster" ?06:22
Qimingwhat do you mean by "monitor" ?06:22
openstackgerritEthan Lynn proposed openstack/senlin: Add security_group_find to neutron driver  https://review.openstack.org/42240706:26
elynnHi Qiming , do you have time to review this patch for heat ? https://review.openstack.org/#/c/418339/06:35
Qimingdone06:35
elynnzan06:36
lixinhuielynn06:43
lixinhuiIn heat, can we use yaml to create senlin heat type profile?06:44
lixinhuinever tried that06:44
lixinhuibut assume it works06:44
elynnlixinhui, hi06:46
elynnsenile heat type profile?06:46
elynnu mean use heat yaml and write down a senile profile type which is another heat yaml?06:46
lixinhuiyes06:47
elynnI guess it could.06:47
lixinhuihow can I point to the inner yaml06:47
elynnhttps://github.com/lynic/templates/blob/master/senlin/templates/asg-heat.yaml#L28-L4206:48
lixinhuithanks06:48
elynnSomething like this.06:48
lixinhuiI think I wanna know06:48
elynnI used  that yaml to test senile resources in heat 1 year ago.06:49
elynnthanks god I didn't delete it :)06:49
lixinhuiif I can define something like this in the properties: template: nova_server_template.yaml06:50
lixinhui:)06:50
elynnWhat are you going to do?06:51
lixinhuiuse a heat template to create heat typed senlin profile06:51
lixinhuiin inner yaml describe the trivial information06:52
lixinhuido not know if we can point some property to a ymal file06:52
lixinhuithen automatically read all the definitions in that ymal06:53
openstackgerritMerged openstack/senlin: Add port_create/port_delete to neutron driver  https://review.openstack.org/42170906:53
lixinhuiymal06:53
lixinhuiyaml06:53
elynnlixinhui, not quite sure what you're going to do, call me if you need help.06:53
lixinhuiok06:54
ruijie_Hi, Qiming, I am revising the tempest test.07:04
ruijie_One question is that service layer will raise an exception if you detach a policy that not been attached to the cluster07:05
ruijie_But it will accept requests that attach one policy to a cluster07:06
*** zhurong has joined #senlin07:07
wllabsWhen we create the receiver, we need to create a monitor to trigger it07:07
wllabsI would like to ask is how the monitor is detected07:08
wllabsbecause I like only the cluster ID and alarm url to the monitor07:08
ruijie_wllabs, that is out the scope of Senlin07:09
Qimingwllabs, have you checked this doc? http://docs.openstack.org/developer/senlin/scenarios/autoscaling_ceilometer.html07:09
wllabsok ,thanks a lot for you07:11
openstackgerritEthan Lynn proposed openstack/senlin: Add security_group_find to neutron driver  https://review.openstack.org/42240707:12
openstackgerritEthan Lynn proposed openstack/senlin: [WIP] Add a NFV VDU profile in contrib  https://review.openstack.org/42242207:12
openstackgerritRUIJIE YUAN proposed openstack/senlin: revise tempest api for cluster 3  https://review.openstack.org/42242907:28
*** elynn has quit IRC07:34
*** zhangkun_ has joined #senlin07:35
*** zhangkun_ has left #senlin07:36
*** elynn has joined #senlin07:36
*** Drago1 has quit IRC08:09
*** openstackgerrit has quit IRC08:33
Wu_How to use senlin to create a container cluster? Does it depend on Magnum?08:33
*** zhurong has quit IRC08:35
Qimingno senlin directly invokes docker-py08:38
wllabsI only passed the cluster id to aodh, aodh know how to detect which nodes08:42
Qimingdid you read the doc I sent you?08:43
wllabsI immediately under a closer look08:43
wllabsaodh will do metric aggregation based on the specified metadata.08:53
wllabsTo make aodh aware of the cluster_id metadata senlin injects into each and every VM server created, you may need to add the following line into your /etc/ceilometer/ceilometer.conf file:08:53
wllabsi understand,thank you08:54
*** openstackgerrit has joined #senlin08:59
*** ChanServ sets mode: +v openstackgerrit08:59
openstackgerritMerged openstack/senlin: Add security_group_find to neutron driver  https://review.openstack.org/42240708:59
*** shu-mutou is now known as shu-mutou-AWAY08:59
wllabsbut only for a sinle node, not cluster09:00
openstackgerritEthan Lynn proposed openstack/senlin: [WIP] Add a NFV VDU profile in contrib  https://review.openstack.org/42242209:05
openstackgerritmiaohb proposed openstack/senlin: Add db purge in senlin manage  https://review.openstack.org/42066609:10
openstackgerritMerged openstack/senlin: revise tempest api for cluster 2  https://review.openstack.org/42236909:10
openstackgerritRUIJIE YUAN proposed openstack/senlin: revise tempest api for cluster 3  https://review.openstack.org/42242909:11
openstackgerritHongbin Li proposed openstack/python-senlinclient: Add deprecation of cluster-run cli  https://review.openstack.org/42249809:22
openstackgerritHongbin Li proposed openstack/python-senlinclient: Add deprecation of cluster-run cli  https://review.openstack.org/42249809:30
ruijie_Hi, Qiming, shell we provide an API to do action based recovering?09:34
ruijiee. g I have a cluster with 2 Active node. Then do cluster-scale- in -c 2. But one of these node-delete actions failed.09:47
*** hanwei has quit IRC10:02
wllabsI would like to ask Senlin in the back version will have a lot of feature to join ?10:26
*** zhurong has joined #senlin10:30
*** ruijie has left #senlin10:59
*** zhurong has quit IRC12:05
*** catintheroof has joined #senlin12:43
*** elynn has quit IRC15:41
*** Drago1 has joined #senlin16:06
*** catinthe_ has joined #senlin18:18
*** catintheroof has quit IRC18:18
*** openstackgerrit has quit IRC19:33
*** Drago1 has quit IRC21:19
*** Drago1 has joined #senlin21:34
*** Drago2 has joined #senlin21:34
*** Jeffrey4l_ has quit IRC21:35
*** Jeffrey4l_ has joined #senlin21:36
*** Drago1 has quit IRC21:38

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