Thursday, 2016-02-25

*** Qiming has quit IRC00:11
*** zzxwill has joined #senlin00:15
openstackgerritMerged openstack/senlin: Refactor health manager for future work  https://review.openstack.org/28419300:20
*** Qiming has joined #senlin01:06
openstackgerritMerged openstack/senlin: Refactor scaling policy implementation  https://review.openstack.org/28401101:13
openstackgerritQiming Teng proposed openstack/senlin: Fix target capacity calculation  https://review.openstack.org/28449501:38
*** Liuqing has joined #senlin01:51
*** Yanyanhu has joined #senlin01:59
openstackgerritMerged openstack/senlin: Revised TODO list  https://review.openstack.org/28391502:19
openstackgerritMerged openstack/senlin: Fix target capacity calculation  https://review.openstack.org/28449502:54
openstackgerritQiming Teng proposed openstack/senlin: Documentation for deletion policy  https://review.openstack.org/28355802:57
openstackgerritQiming Teng proposed openstack/senlin: Documentation for scaling policy v1.0  https://review.openstack.org/28450402:57
openstackgerritYanyan Hu proposed openstack/senlin: Minor revise scaling_policy functional test  https://review.openstack.org/28450903:15
Yanyanhuhi, Qiming, did you meet this error when listing cluster?03:15
Yanyanhu'HttpException' object has no attribute 'status_code'03:15
Yanyanhuall other list operations work correctly03:16
Yanyanhujust cluster-list will give this error03:16
Yanyanhuusing latest senlin branch03:16
*** yuanying has quit IRC03:16
Yanyanhulooks like I need to update my senlinclient03:19
Yanyanhushow_nested has been removed03:19
Yanyanhubut this is still an unexpected error msg returned to user03:19
QimingYanyanhu, no I don't see that error03:28
*** Liuqing has quit IRC03:37
*** zzxwill has quit IRC03:37
*** Liuqing has joined #senlin03:38
*** yuanying has joined #senlin04:07
*** Liuqing has quit IRC04:21
*** Liuqing has joined #senlin04:22
*** lixinhui has joined #senlin04:27
*** lixinhui has quit IRC04:34
*** zzxwill has joined #senlin04:58
*** Liuqing has quit IRC05:08
*** Liuqing has joined #senlin05:08
*** sridhar_ram has joined #senlin05:12
openstackgerritQiming Teng proposed openstack/senlin: Fix scaling functional test  https://review.openstack.org/28454005:13
openstackgerritMerged openstack/senlin-dashboard: Add proper created_at in receiver detail page  https://review.openstack.org/28402105:15
Yanyanhuhi, Qiming, I have proposed a patch for functional test :)05:15
Yanyanhuhttps://review.openstack.org/28450905:15
Yanyanhubut seems the gate has some problems to setup the test env05:16
Yanyanhuso the devstack installation always failed for this error: ERROR! Specified hosts options do not match any hosts05:16
Qimingokay05:17
Qimingthat is the gate problem05:17
Yanyanhuyes, will wait for a while05:17
*** yuanying has quit IRC05:47
*** sridhar_ram has quit IRC06:17
*** Liuqing has quit IRC06:53
*** yuanying has joined #senlin06:54
*** yuanying has quit IRC08:01
*** yuanying has joined #senlin08:11
*** yuanying has quit IRC08:16
*** yuanying has joined #senlin08:18
*** idonotknow_ has joined #senlin08:21
idonotknow_Yanyanhu,I am an intern in vmware of R_lixh. I am confused about ceilometer alarm,could you help me?08:24
Yanyanhuidonotknow_, sure, what issue did you meet08:25
*** yuanying has quit IRC08:26
idonotknow_Yanyanhu, I want to use ceilometer to monitor all of members's status in a cluster, that means active or inactive, but this can not be described as a threshold.08:28
Yanyanhuyou mean the status itself?08:29
Yanyanhuin this case, I think you can define a metric which has two states, 0 and 108:29
Yanyanhu0 means active, while 1 means inactive08:29
Yanyanhuthen you can use 1 as the threshold I guess08:29
idonotknow_So I should change pipeline.yaml or where can I define this?08:30
Yanyanhuyes, I think so08:30
Yanyanhuyou need to change the pipeline to add this metric you are interested in08:30
Yanyanhuyou also need to fill in the correct value of metric when generating a sample08:31
*** yuanying has joined #senlin08:32
idonotknow_I want to meter network.services.lb.member which is not included in meter-list,deos that matter?08:32
Yanyanhufor those meters that are not supported by ceilometer, you may need to define it by your self08:33
YanyanhuI remember ceilometer allows users to define their own metrics08:33
Yanyanhubut that also means users have to generate sample by themselves08:34
Yanyanhufor those built-in metrics, you can just add related configuration in pipeline.yaml to enable them08:34
idonotknow_It exists in the source code through yield sample.Sample(XXX)08:35
Yanyanhuyou mean ceilometer has provided the routine to collect this kind of meter and generated sample for it?08:35
Yanyanhuan easy way to verify this is to list samples with specific meter type08:37
idonotknow_yes,I can get the meter without change any source code or conf file.  cause there is * in pipeline.yaml which can produce all the existed meter I guess08:37
Yanyanhuyes, you just need to change it if you need extra calculation based on built-in meter08:37
Yanyanhulike cpu_utils which is based on cpu08:38
Yanyanhuif so, that's much easier08:38
Yanyanhuyou can just define an alarm with that meter type08:38
QimingI don't think a computation is necessary at all08:38
*** yuanying has quit IRC08:38
Yanyanhuceilometer will help you to evaluate the samples and trigger alarm when conditions are satisfied08:39
YanyanhuQiming, you mean the cpu_utils?08:39
idonotknow_But status can not be described as a threshold08:40
Qimingceilometer alarm-create --name lb_alarm_1 --enabled True --alarm-action http://somewhre --period 60 --evaluation-periods 1 -m network.services.lb.member --statistics count --comparison-overator lt --threshold 1 --matching-metadata some_key=somevalue08:41
Qimingwhy not?08:41
Qimingyou can use 'count'08:41
Qimingit is not a metric value for you to do maths08:41
*** yuanying has joined #senlin08:41
Yanyanhucount means once a sample is collected, alarm will be triggered08:41
Qimingthe operator is 'lt'08:42
Yanyanhuthis is suitable for inactive08:42
Qimingit means if the sample is NOT collected08:42
Qimingthis is how you do heatbeat kind of node activity detection, just like this: http://git.openstack.org/cgit/openstack/heat-templates/tree/cfn/F17/WordPress_Single_Instance_With_IHA.template#n10508:43
idonotknow_Thank you very much08:43
Yanyanhuso no obvious obstacle there I think :)08:43
Qimingjust count if you can get the metric or not08:43
Qimingthe tricky part is about --matching-metadata08:44
Qimingyou got to find out how to filter out the correct sample08:44
idonotknow_Maybe I get it, I will give it a try. Thank you~08:45
*** yuanying has quit IRC08:47
Qimingpay attention to the matching_metadata part, I always get that incorrectly specified09:05
idonotknow_OK,I will be careful about this09:05
Yanyanhuthere is no document to clearly describe how to write the match condition correctly :)09:06
Yanyanhuguess so09:07
Yanyanhuhi, Qiming, do we have plan to support get_file in senlinclient?09:16
YanyanhuI remeber ethan abandoned his patch about that support finally09:16
Qiminguse case?09:18
Yanyanhucurrently, if we want to embed a big script into nova server's user_data, we can only define it as a string?09:18
Qimingwe may have to09:32
*** zzxwill has quit IRC09:32
Yanyanhuthat will make the user_data section of nova server profile very difficult to read09:33
Yanyanhusince there could be lots of line in some scripts09:33
Yanyanhulike the bigdata cluster they are using now09:33
Yanyanhuand lots of nested strings09:34
Qimingyep, I know that09:35
Yanyanhuor is there any built-in support in yaml loader can address this issue?09:36
Qimingyes, there is09:37
Qimingthis is something I tried a long time ago09:39
Qimingenv: &ENVIRON109:39
Qiming  parameters:09:39
Qiming    len: 1609:39
Qiming  profiles:09:39
Qiming    os.docker: some.path.docker.driver09:39
Qiming  # preserve newline09:39
Qiming  logo: |09:39
Qiming    .-- .-- . . .   . . .09:39
Qiming    |_  |-- |\| |   | |\|09:39
Qiming    __| |__ | | L__ | . .09:39
Qiming  # don't preserve newline09:39
Qiming  description: >09:39
Qiming    Some description about09:39
Qiming    the usage of the stack09:39
Qiming    to be created09:39
Qiming      for example09:39
Qiming      this line09:39
Qiming    back to normal09:39
Qimingtype: os.heat.stack09:39
Qimingspec:09:39
Qiming  #  template: !include subdir/subdir/my_stack.yaml09:39
Qiming  environment: *ENVIRON109:39
Qiming~09:39
Qimingyou can try the way I was including a environment09:40
*** zzxwill has joined #senlin09:40
Yanyanhuthe include keyword?09:40
Qimingno, include is a variant of get_file09:40
Qimingit is an extension of yaml loader09:40
Qimingthe environment part09:40
Qimingthat is the way you reference something from outside the current structure09:40
Yanyanhuok, I see09:41
Yanyanhuwill have a try.09:41
Yanyanhuhi, Qiming where is env: &ENVIRON1 defined?09:48
Yanyanhuthe same file as os.heat.stack spec?09:48
Yanyanhuoh, I see09:48
Yanyanhustill can't load it correctly09:50
Yanyanhuwill keep trying to tomorrow. Using string works fine.09:53
Qiming&IDENTIFYER09:54
Qimingshould be used in pair with *IDENTIFIER09:54
Yanyanhuyes. And they should defined in the same file?09:54
Qiming'env: &ENVIRON1' this defined an ankor09:55
Qiming'environment: *ENVIRON1' this defines a link09:55
Yanyanhuoh, so 'environment' is also a keywork09:55
Yanyanhuso I should define something like: user_data: {enviornment: &ENVNAME}09:56
Qimingno09:56
Qiminguser_data: *USER_DATA_SCRIPT09:56
Qimingthen you have a key named whatever09:56
Qimingmy_script: &USER_DATA_SCRIPT09:56
Qimingmy_script is moved to the top level09:57
Yanyanhuok, let me have a try again.09:57
Qimingthis is my preferred way of embedding scripts10:02
Yanyanhuthe keyname of 'my_script' always be recognized as a spec item10:02
Qimingthe logic is I really hate having separate files from templates10:02
Qimingthat is something we can fix from client side10:03
Yanyanhusure10:03
Yanyanhuall construction should be done before template reaches service side10:03
Qimingwe can ignore all properties other than 'type', 'version' and 'properties' after parsing10:03
Qimingyes, keeping things in a single file helps manage a complete set of things10:04
Qimingor else when you change your script separately, we don't know if that is a new profile or not10:04
Yanyanhuanyway, directly using string works fine. If user want to make the template more clear, they can use this way to define 'variable'10:04
Yanyanhufor each single script10:04
Qimingyes10:06
*** Yanyanhu has quit IRC10:15
*** zzxwill has quit IRC10:16
*** Qiming has quit IRC10:17
*** zzxwill has joined #senlin10:21
zzxwillIn the section "Manual Installation" of http://docs.openstack.org/developer/senlin/install.html, there should be no <DB PASSWORD> or <SENLIN PASSWORD> in Step 4 without Step 5 being executed.10:27
*** shu-mutou is now known as shu-mutou-AWAY10:29
*** Qiming has joined #senlin11:04
*** Liuqing has joined #senlin12:03
*** Liuqing has quit IRC12:16
*** idonotknow_ has quit IRC12:41
openstackgerritMerged openstack/python-senlinclient: Add OpenstackClient plugin for cluster policy create  https://review.openstack.org/28281812:52
openstackgerritMerged openstack/senlin: Add some backlog of release notes  https://review.openstack.org/28390912:59
openstackgerritMerged openstack/python-senlinclient: Add OpenstackClient plugin for cluster policy update  https://review.openstack.org/28281913:03
openstackgerritMerged openstack/python-senlinclient: Add OpenstackClient plugin for cluster policy delete  https://review.openstack.org/28282013:06
openstackgerritCindia-blue proposed openstack/senlin: Add Registry Table for Health Management  https://review.openstack.org/28470713:13
zzxwillIn the section "Manual Installation" of http://docs.openstack.org/developer/senlin/install.html, there should be no <DB PASSWORD> or <SENLIN PASSWORD> in Step 4 without Step 5 being executed.13:13
Qimingzzxwill, thanks, can you help propose a fix?13:14
zzxwillSure.13:14
openstackgerritMerged openstack/python-senlinclient: OSC plugin for openstack cluster list  https://review.openstack.org/28410413:15
Qiminggreat!13:15
openstackgerritCindia-blue proposed openstack/senlin: Add Registry Table for Health Management  https://review.openstack.org/28470713:15
openstackgerritDi XiaoLi proposed openstack/python-senlinclient: OSC plugin for openstack cluster policy type list  https://review.openstack.org/28286513:59
openstackgerritDi XiaoLi proposed openstack/python-senlinclient: Add OSC plugin for cluster policy type show  https://review.openstack.org/28286614:04
openstackgerritCindia-blue proposed openstack/senlin: Add Registry Table for Health Management  https://review.openstack.org/28470714:28
openstackgerritCindia-blue proposed openstack/senlin: Add Registry Table for Health Management  https://review.openstack.org/28470714:33
openstackgerritCindia-blue proposed openstack/senlin: Add Registry Table for Health Management  https://review.openstack.org/28470714:42
openstackgerritCindia-blue proposed openstack/senlin: Add Registry Table for Health Management  https://review.openstack.org/28470714:50
*** sridhar_ram has joined #senlin15:02
*** Qiming has quit IRC15:28
*** zzxwill has quit IRC15:57
*** idonotknow_ has joined #senlin16:33
*** sridhar_ram has quit IRC16:43
*** sridhar_ram has joined #senlin17:55
*** sridhar_ram has quit IRC18:02
*** sridhar_ram has joined #senlin18:02
*** sridhar_ram has quit IRC18:57
*** sridhar_ram has joined #senlin19:01
*** idonotknow_ has quit IRC19:26
*** Qiming has joined #senlin23:26
*** yuanying has joined #senlin23:33
*** yuanying has quit IRC23:34
*** yuanying has joined #senlin23:34
*** sridhar_ram has quit IRC23:44
*** Qiming has quit IRC23:56

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