Monday, 2015-11-02

*** lvdongbing has joined #senlin00:30
*** zhenguo has joined #senlin01:20
*** elynn has joined #senlin01:55
*** Yanyanhu has joined #senlin01:57
*** xuhaiwei has joined #senlin01:59
openstackgerritMerged openstack/senlin: Fix the log message issue in engine.service.profile_create  https://review.openstack.org/23961902:08
*** yangyapeng has joined #senlin02:08
openstackgerritMerged openstack/senlin: Use assertTrue/False instead of assertEqual(T/F)  https://review.openstack.org/23960902:11
*** elynn has quit IRC02:13
openstackgerritMerged openstack/senlin: Use assertIsNone(observed) instead of assertEqual(None, observed)  https://review.openstack.org/23959802:17
*** elynn has joined #senlin02:20
openstackgerritMerged openstack/senlin: Add oslo_config "IPOpt" and  "PortOpt" support  https://review.openstack.org/23935002:21
*** Qiming has joined #senlin02:21
*** Qiming has quit IRC02:21
*** Qiming has joined #senlin02:22
Qimingmorning02:22
Yanyanhumorning02:22
Yanyanhuhi, Qiming, I think maybe we should updated TODO.rst based on our discussion result in meetup?https://etherpad.openstack.org/p/senlin-mitaka-meetup02:23
Qimingyes02:23
Yanyanhuok, will try to look through all those workitems and fill them into TODO files02:23
Qimingcool, thx02:24
Yanyanhunp :)02:24
openstackgerritYanyan Hu proposed openstack/senlin: Add config option for name unique  https://review.openstack.org/23405102:27
openstackgerritYanyan Hu proposed openstack/senlin: Add config option for name unique  https://review.openstack.org/23405102:28
openstackgerritlvdongbing proposed openstack/senlin: API resource names should not include underscores  https://review.openstack.org/24074002:29
*** TianYuan has joined #senlin02:33
openstackgerritYanyan Hu proposed openstack/senlin: Add config option for name uniqueness  https://review.openstack.org/23405102:45
*** TianYuan has quit IRC02:53
*** TianYuan has joined #senlin02:54
*** elynn_ has joined #senlin03:05
*** elynn has quit IRC03:08
elynn_morning03:08
openstackgerritlvdongbing proposed openstack/senlin: API resource names should not include underscores  https://review.openstack.org/24074003:27
*** Qiming has quit IRC03:32
openstackgerritMerged openstack/python-senlinclient: Update gitignore file  https://review.openstack.org/23959304:37
*** ldb_ has joined #senlin04:47
*** lvdongbing has quit IRC04:49
*** Qiming has joined #senlin05:01
openstackgerritQiming Teng proposed openstack/senlin: Fix setup-service script for RC/role checking  https://review.openstack.org/24076005:24
*** yangyapeng has quit IRC05:31
*** TianYuan has quit IRC05:35
*** yangyapeng has joined #senlin05:51
openstackgerritYanyan Hu proposed openstack/senlin: Update TODO item list  https://review.openstack.org/23843206:06
openstackgerritYanyan Hu proposed openstack/senlin: Update TODO item list  https://review.openstack.org/24076406:06
openstackgerritMerged openstack/senlin: Update TODO item list  https://review.openstack.org/23843207:28
openstackgerritYanyan Hu proposed openstack/senlin: Update TODO item list  https://review.openstack.org/24076407:35
*** lawrancejing has joined #senlin07:48
*** lawrancejing has quit IRC07:50
openstackgerritLiuqing Jing proposed openstack/senlin-dashboard: Add python-senlinclient in requirements.txt  https://review.openstack.org/22724908:06
Qimingelynn_, there?08:07
elynn_Hi08:08
Qiminghttps://review.openstack.org/#/c/24077608:08
elynn_yes?08:08
Qimingabout this one, I think we should put it on hold08:08
Qimingfrom the code you can see the logic is not right08:08
elynn_ok...but why08:08
Qimingit is senlinclient's problem08:09
Qimingor we can say it is sdk's problem08:09
elynn_You mean those cluster_* functions?08:09
Qimingyes08:09
elynn_Yes, I notices that...08:09
Qimingfrom a service/software that invokes senlinclient08:09
Qimingthe api should reads straightforward08:10
Qimingfor example:08:10
Qimingclusters = self.client().clusters()08:10
elynn_Yes, that would be elegent.08:11
Qimingcluster = self.client().create_cluster(params)08:11
elynn_So I should change senlinclient first, isn't it?08:11
Qimingthis has been a mistake for historical reasons08:11
Qimingwe were misled by the sdk examples08:11
Qimingbut anyway, we should stick to the suggested way to invoke sdk, including the senlin service08:12
QimingI'm thinking that we should put this work on a high priority08:12
Qimingbecause the senlin-dashboard has been suffering from the same problem08:12
elynn_But I notice that openstacksdk doesn't support *profile* functions yet, will it block?08:13
Qimingyes, I'll push sdk guys for a review08:13
elynn_Yes, I copy codes from senlin-dashboard...08:13
Qiminghttps://review.openstack.org/#/c/209743/08:14
Qimingit is there but not yet reviewed08:14
Qimingso, imho, we have two things to do08:15
Qimingone is to refine senlinclient to expose a much easier interface for other service to invoke08:15
Qimingthis can be done even before the sdk has adopted all senline abstractions(resources)08:15
Qimingthe other one is we push all senlin abstractions/resources to sdk, so we can throw away a huge amount of code from senlinclient08:16
Qimingin fact, this is one of the reasons why I haven't been put much efforts into the senlinclient test cases08:16
elynn_ok, I will try to redefine senlinclient first.08:17
Qimingyep, that would be great08:17
Qimingin the long run, senlinclient will disappear, hopefully08:18
Qimingfor command line, people should use openstackclient08:18
Qimingfor api invocation, people should use openstacksdk08:18
Qimingbut .... we are not living in a perfect world08:18
Qimingstill a lot dirty things to do before we are getting there08:18
elynn_yes, hope I can help you with it ;)08:19
Qimingsure08:19
Qiminghelp the team, :)08:19
Qimingit really doesn't make senses for each openstack project to have its own xxxclient project08:19
elynn_Another question is that is it ok to add senlinclient into requirements.txt in heat?08:20
elynn_Since senlin is not official yet, it's still stackforge even if the namespace changed.08:20
Qimingyes, it is already in global requirements08:21
Qimingit doesn't matter whether senlin is an official project, senlinclient is a valid dependency because it is in global requirements08:21
Qimingelynn_, how about this08:22
elynn_ok, got it.08:22
elynn_?08:22
QimingI will start a patch doing revisions to senlinclient08:23
Qimingsince we have a lot of commands to rewrite, will need helps from you (and others) to get this change done asap08:23
QimingI'll try illustrate how the client should be refactored with one or two examples08:24
elynn_Cool, sounds good to me.08:25
Qimingthen we can sync on the particular commands each of us can work on08:25
elynn_yes, but how will you illustrate?08:25
elynn_On text or f2f?08:25
Qimingillustrate using code08:35
openstackgerritMerged openstack/senlin-dashboard: Change repository from stackforge to openstack  https://review.openstack.org/23668608:37
elynn_ok08:38
openstackgerritMerged openstack/senlin: Fix setup-service script for RC/role checking  https://review.openstack.org/24076008:46
Qimingelynn_, https://review.openstack.org/#/c/194496/4/requirements.txt09:10
Qimingtypo09:10
elynn_oops...09:10
elynn_I should directly copy from global requirements.09:11
Qiming:)09:11
*** ldb_ has quit IRC09:42
openstackgerritQiming Teng proposed openstack/python-senlinclient: Revised client interface  https://review.openstack.org/24080509:43
Qimingelynn_, ^09:43
Qimingthis is what I meant to rework the client side interface09:44
elynn_you are so quick.09:44
Qimingjust some starting points09:45
elynn_Qiming, If do cluster_create, do we need to add related functions to senlinclient?09:51
elynn_Like what you did to profile operation.09:51
Qimingyes09:51
Qimingthat will make your heat side code stable09:51
Qimingwe will have some mess to clean up and some negotiations with SDK, but I don't want heat side code to be changed this way and that way09:52
elynn_If openstacksdk is stable in future, do we need to clean all of these new added codes ?09:53
Yanyanhuhi, Qiming, just looked this patch, https://review.openstack.org/#/c/240805/1/senlinclient/v1/client.py what you mean by the comment of line 39 and 40?09:54
Yanyanhuyou mean after all senlin resources are adopted by openstacksdk, other software(e.g. heat) should directly invoke openstacksdk to talk with senlin service?09:54
Qimingyes, ideally09:55
Qimingthey can choose not to09:55
Qiming:)09:55
Yanyanhuunderstand09:55
Qimingthat is one thing for senlin users09:55
Qiminginside senlinclient, we will need to revise the translation layer again09:55
Qimingwe talk directly to sdk, instead of maintaining our own models09:56
Yanyanhuyes, that's why you add the comments in line 82-8609:57
Qimingyes09:57
*** zhenguo has quit IRC09:57
YanyanhuBTW, just as you said, I also think the methods defined in line 43-81 maybe helpful to keep the interface stable09:57
Qimingthey are only useful before we are not supported by sdk directly09:57
Qimingright09:58
Yanyanhusince currently, the way invoking interfaces of senlinclient is a little different from the way using other xxxclients09:58
QimingI was writing those logics to be very similar to the interface you will expect from openstacksdk directly09:58
Yanyanhuok09:59
elynn_Ok. I got your point.09:59
Qimingthe most weird thing is client needs to know 'models.xxx', that is stupid09:59
Yanyanhuyes09:59
Qimingit was acceptable if only shell calls the client09:59
Qimingit is definitely not okay for other software, i.e. Heat, senlin-dashboard ...09:59
Yanyanhuyes10:00
Qimingsenlin's proposal to big tent will be voted this week10:00
Qimingjust got email from tttttx10:00
Qiminggot to be there early in the morning, 4am, sigh10:00
Yanyanhuso we just put this layer in client.py(maybe temporarily) and let user to choose which way to use(invoking those interfaces defined in this layer or invoking sdk directly)10:00
Yanyanhu...10:01
Qimingthey will invoke senlinclient I think10:01
Yanyanhuhmm, also think so10:01
Qimingbut I won't suggest people to do that in the long run10:01
Yanyanhuat least in this stage10:01
Yanyanhuyep10:01
Qimingthe problem is serious in Heat10:01
Qimingthey should not invoke all those other clients10:02
Qimingit ... is messy10:02
Qiminghard to keep track on all the clients an orhestrator needs to follow10:02
Yanyanhuyes, that's the meaning of openstackclient and openstacksdk :)10:02
Qimingsadly, not so many people today really cares about sdk10:02
elynn_May be because sdk is not in big tent?10:04
QimingI should have gone to a temple back in Tokyo10:04
Yanyanhuthat's possible10:04
Qimingto pray10:04
Qimingsdk ... Brian has his own thoughts10:04
Qiminghe doesn't believe SDK should be in the big tent10:04
QimingI don't quite understand the logic behind10:04
Yanyanhu...sigh10:05
Qimingit was about some rackspace, mirantis concerns .... whatever10:05
Qimingfrom a community job's standing point, I'd really like to see that happening10:06
Yanyanhuyes, but most companies usually don't think like this10:07
Qimingright, they have their own agenda maybe10:08
Qiminghungry now10:09
Yanyanhu:)10:09
YanyanhuI'm not :P10:09
Yanyanhualthough I don't know why10:09
Qiminghave to go home before starved to death10:09
Qimingyour container is small10:10
Qiming:)10:10
Yanyanhuguess so, haha10:10
Qimingttyl10:10
Yanyanhusee U tomorrow10:10
elynn_See U~10:11
*** elynn_ has quit IRC10:12
*** Qiming has quit IRC10:14
*** yangyapeng has quit IRC10:49
*** Yanyanhu has quit IRC10:52
*** Qiming has joined #senlin11:08
openstackgerritLiuqing Jing proposed openstack/senlin-dashboard: Add python-senlinclient in requirements.txt  https://review.openstack.org/22724911:22
*** Liuqing has joined #senlin11:44
openstackgerritQiming Teng proposed openstack/senlin: Move policy detach from action to cluster  https://review.openstack.org/24068511:56
*** Qiming has quit IRC12:22
*** Qiming has joined #senlin12:22
*** Liuqing_ has joined #senlin13:27
*** Liuqing has quit IRC13:30
openstackgerritMerged openstack/senlin-dashboard: Add python-senlinclient in requirements.txt  https://review.openstack.org/22724915:05
*** Liuqing_ has quit IRC15:10
*** pratikma_ has joined #senlin15:33
pratikma_hello! How is senlin different from using resource groups in openstack heat?15:33
Qiminghi, pratikma_15:33
Qimingsenlin is designed to provide more knobs for user to control a group of things15:34
Qimingwith heat, you will have to go 'stack-update' to change anything inside a resource-group15:35
Qimingwith senlin, you will get more APIs on doing membership management, policy management, etc.15:35
pratikma_Qiming: thanks! So, I'm guessing that one would use RG for simple cases, and when more management is required, then use Senlin?15:36
Qimingpratikma_, yes15:36
Qimingwe are working on adding senlin 'cluster' resource type support into heat15:37
Qimingbut due to heat's design, you won't be able to 'enjoy' all flexibilities you get from senlin, :)15:37
pratikma_Qiming: I guess I'm having trouble understanding that if Senlin can manage heat stacks, then you're also proposing heat can manage Senlin clusters?15:39
Qimingthat is a question a lot of people asked15:40
pratikma_Qiming: btw it was the patch for Senlin resources that piqued my curiosity about Senlin :)15:40
Qimingif you have ever written some C code15:40
Qimingyou can think of a heat stack as a 'struct', senlin cluster as an array15:40
Qimingyou can have arrays in your struct, you can also build arrays of struct15:41
pratikma_ah, I see15:44
*** lkarm has joined #senlin15:44
Qimingnight, all16:02
*** Qiming has quit IRC16:02
*** pratikma_ has quit IRC17:39
*** pratikmallya has joined #senlin18:05
*** pratikmallya has quit IRC18:06
*** pratikmallya has joined #senlin18:06
*** pratikma_ has joined #senlin18:33
*** pratikmallya has quit IRC18:36
*** lkarm has quit IRC19:55
*** lkarm has joined #senlin19:55
*** lkarm has quit IRC19:56
*** lkarm has joined #senlin19:57
*** pratikma_ has quit IRC20:45
*** pratikmallya has joined #senlin21:08
*** lkarm has quit IRC21:18
*** jdandrea has joined #senlin21:22
*** lkarm has joined #senlin21:23
*** pratikma_ has joined #senlin21:24
*** pratikmallya has quit IRC21:27
*** pratikma_ has quit IRC21:53
*** pratikmallya has joined #senlin22:31
*** lkarm has quit IRC22:32
*** lkarm has joined #senlin22:33
*** lkarm has quit IRC22:37
*** pratikma_ has joined #senlin22:52
*** pratikmallya has quit IRC22:54
*** lkarm has joined #senlin23:18
*** lkarm has quit IRC23:23

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