Monday, 2016-03-28

*** zzxwill has joined #senlin01:14
openstackgerritMerged openstack/senlin: Set API version request on request objects  https://review.openstack.org/29640701:23
*** xuhaiwei has joined #senlin01:33
*** yanyanhu has joined #senlin01:43
*** Qiming has joined #senlin01:52
*** elynn has joined #senlin02:11
*** zzxwill has quit IRC02:14
*** zzxwill has joined #senlin02:16
elynnmorning senlin02:26
openstackgerritQiming Teng proposed openstack/senlin: Add global API version check for micronversion  https://review.openstack.org/29808102:37
yanyanhumorning, elynn02:52
openstackgerritMerged openstack/senlin: Make version resource a subclass of Controller  https://review.openstack.org/29649202:54
elynnHi Qiming03:03
Qimingyes, elynn?03:03
elynnSaw your comments on tempest plugin patch,03:03
elynndo you mean we will expose action id in cluster/node create API?03:04
elynnin the future?03:04
QimingI am suggesting we do this in a consistent way03:04
Qimingeither explicitly exposing or implicitly exposing it in body should be okay03:05
Qimingmy concern is about the inconsistency03:05
Qimingsometimes we are throwing away all other fields, leaving only the action id03:06
Qimingsometimes, we don't03:06
elynnok, so actually we should change location pointed to action id in creation if it returns 202, right?03:06
Qimingyep03:07
Qimingwe'd better strive to make the caller's life simpler03:07
Qimingfor example, when you are invoking a (senlin) api, you will first check if the status code is 20203:08
Qimingand you will check the 'location' field in the body if the code is 20203:08
elynnyes, I think you are right, let me modify the codes in senlin-engine first.03:09
QimingI don't think we have anything wrong in senlin-engine03:09
Qimingwe are already returning whatever needed from senlin-api03:09
Qimingthe point is about how would you check it from sdk and from client side03:10
elynnnow the location pointed to cluster resource itself I think.03:10
Qimingwhich api are you talking about?03:10
elynnlet me check03:10
elynnhttps://github.com/openstack/senlin/blob/master/senlin/api/openstack/v1/clusters.py#L18003:11
elynnhttps://github.com/openstack/senlin/blob/master/senlin/api/openstack/v1/nodes.py#L12003:12
elynnThese two .03:12
Qimingokay, that one is a mistack, it should reference the action id03:12
elynnyes, What I mean is to change these two places :)03:13
*** zzxwill has quit IRC03:13
Qimingok03:13
elynnI will prepare a patch for it :)  then modify the tempest patch.03:14
Qiminggreat03:14
*** zzxwill has joined #senlin03:14
elynnAnd I think I also encounter db problems when running tempest tests, it still there...03:15
Qimingdb problems?03:17
elynnsomething like transaction locked03:18
Qimingwell, file a bug if you can reproduce it03:18
elynnCan't find the logs right now, will paste it later if it happens.03:19
*** zzxwill has quit IRC03:52
*** yuanying has quit IRC03:53
*** elynn has quit IRC04:07
*** zzxwill has joined #senlin04:22
*** zzxwill has quit IRC04:40
*** elynn has joined #senlin04:50
*** elynn has quit IRC04:54
*** elynn has joined #senlin04:54
*** yuanying has joined #senlin04:56
*** zzxwill has joined #senlin05:09
openstackgerritQiming Teng proposed openstack/senlin: Rework senlin docs based on CLI changes  https://review.openstack.org/29755205:16
*** yuanying has quit IRC05:40
*** elynn has quit IRC05:41
*** yuanying has joined #senlin05:48
*** elynn has joined #senlin05:49
*** elynn has quit IRC05:54
*** elynn has joined #senlin05:54
*** elynn has quit IRC06:09
*** elynn has joined #senlin06:12
openstackgerritQiming Teng proposed openstack/senlin: Add API version header in responses  https://review.openstack.org/29810806:12
*** elynn has quit IRC06:16
*** elynn has joined #senlin06:16
openstackgerritMerged openstack/senlin: Add versioned method support  https://review.openstack.org/29763906:20
yanyanhuhi, elynn, around?06:22
*** elynn has quit IRC06:25
yanyanhuhi, Qiming, around?06:31
yanyanhuIs defining sdk profile the only way to specify parameters like region, service name when creating a senlinclient object?06:32
*** elynn has joined #senlin06:38
openstackgerritQiming Teng proposed openstack/senlin: Add API version header in responses  https://review.openstack.org/29810806:41
*** elynn has quit IRC06:42
*** elynn has joined #senlin06:43
yanyanhuhi, elynn, around?06:48
*** gongysh has joined #senlin06:53
*** elynn has quit IRC06:53
*** Liuqing has joined #senlin06:59
*** elynn has joined #senlin07:00
*** elynn has quit IRC07:05
*** elynn has joined #senlin07:06
openstackgerritQiming Teng proposed openstack/senlin: Refactor API version range support  https://review.openstack.org/29812907:08
Qiminglixinhui, there?07:10
lixinhuiYes, Qiming07:11
Qiminggot a question about lbaas07:12
Qimingis it a hard requirement for us to use octavia if we use lbaas v2?07:12
lixinhuino it is not07:13
Qimingokay07:13
Qimingit is optional, right?07:13
lixinhuiyes, only one of the backend07:13
lixinhuiof lbaas07:13
Qimingokay07:13
Qimingis it fair to say that our preliminary experience with octavia is not good?07:14
lixinhuino07:14
lixinhuiI wanna give fair feedback07:15
lixinhuijust the bugs are still there07:15
Qimingit is just an learning curve and some common mistakes made by new users?07:15
lixinhuiI think its configurations are quiet easy by following their sample07:17
lixinhuibut diagnosis is hard07:17
Qimingor .. we can say, we spent about two weeks on integrating octavia into the whole picture but we gave up eventually because there are some bugs to be fixed07:17
lixinhuiwhen suffering from network problem07:17
lixinhuiyes07:17
lixinhuithat is the fact07:17
Qimingokay07:17
Qimingdon't want to exaggerate, just share our experience with others07:18
lixinhuiOkay, I see07:18
QimingI do believe creating an "invisible" vm and doing a lot of things "secretly" will make it a painful process to debug07:20
lixinhuiindeed it is07:20
Qimingokay07:20
Qimingthanks07:20
lixinhuinp07:21
yanyanhuhi, Qiming, around?07:22
yanyanhuI'm now trying to add senlinclient plugin for rally07:23
yanyanhubut I found the only way to specify region_name when creating senlinclient is to creating a sdk profile to wrap the region_name and pass it07:24
Qimingokay?07:24
yanyanhuthat means we need to add sdk requirement to rally which could not be appropriate07:25
yanyanhuhttp://git.openstack.org/cgit/openstack/python-senlinclient/tree/senlinclient/v1/client.py#n1807:25
yanyanhuthis line07:25
yanyanhuI'm thinking maybe we can handle the region_name kwargs and create sdk profile in senlinclient07:26
Qimingyes07:26
yanyanhuto hide this detail from enduser or other services who invoke senlinclient07:26
Qimingneed to check with elynn07:27
Qiminghow is 'preferences' parameter used in Heat07:27
yanyanhuyes, heat plugin has the same issue07:27
Qimingwe got to be consistent about the model07:27
yanyanhuactually, it isn't used now...07:27
yanyanhuI think07:27
yanyanhuin heat client plugin for senlin07:27
yanyanhulet me check it again07:27
Qimingokay, better double check07:28
yanyanhuhttp://git.openstack.org/cgit/openstack/heat/tree/heat/engine/clients/os/senlin.py#n3907:28
yanyanhulooks so07:28
yanyanhuso it looks like a common requirement07:29
Qimingokay07:29
yanyanhuwill talk with elynn to see how to handle it07:29
yanyanhuto meet requirement from both heat and rally side07:29
Qimingyes07:29
Qimingsenlinclient should check if preferences is specified07:30
Qimingand it should ALSO check if 'region_name' is provided in the kwargs07:30
yanyanhuyes07:31
yanyanhuwill open a bug for it07:31
yanyanhudoes this count new feature or just a bug?07:32
Qimingfile a bug would be okay07:32
yanyanhuok07:33
*** EldonZhao has joined #senlin07:34
elynnHi, i'm back, yanyanhu so you suspect that senlin plugin can 't work in multi region env?07:39
yanyanhuit can, just not convenient for enduser07:39
yanyanhuto define the region_name parameter inside sdk profile07:39
EldonZhaoI got the same question about muti-region scene.07:40
EldonZhaomy openstack server has two regions07:40
yanyanhuas Qiming said, we should handle both cases of profile or kwarg region_name is provided07:40
yanyanhuwhen creating senlinclient object07:40
yanyanhuprofile/preference07:41
elynnlet me check..07:41
elynnIs there any docs about how sdk works with region_name?07:42
yanyanhuhttp://git.openstack.org/cgit/openstack/python-senlinclient/tree/senlinclient/v1/client.py#n1807:42
yanyanhuhere07:42
yanyanhuyou can refer to the docstring of Connection class07:42
yanyanhuI guess no detail document there...07:42
yanyanhulet me find the code for u07:42
yanyanhuhttp://git.openstack.org/cgit/openstack/python-openstacksdk/tree/openstack/connection.py#n14807:43
yanyanhuhere07:43
elynnhmm... seems it's bug in senlin plugin, I haven't setup the client correctly.07:45
elynnThen senlin dashboard has the same problem...07:46
yanyanhuelynn, I think the current implementation works07:46
yanyanhujust could induce extra dependency for sdk if user to define region_name07:47
yanyanhuneed to define07:47
yanyanhuwill try to propose a patch for it.07:47
elynnWhy do we need t o depend on sdk?07:48
elynnyou mean heat need to depend on idk?07:48
elynnsdk07:48
yanyanhuif you want to specify region_name when creating senlinclient, you have to define a profile object to wrap it07:48
Qimingeither you explicitly pass a region_name in kwargs (thus we need to fix senlinclient)07:48
Qimingor you have to construct a openstack.preferences object and pass it to the senlinclient.v1.client constructor07:49
yanyanhuexactly07:49
QimingI believe the former one is more user friendly07:49
elynnFrom the string in sdk, I think we just need  to pass a parameter 'profile' include region_name in it is ok?07:49
yanyanhuI think adding a handling here will work07:49
yanyanhuhttp://git.openstack.org/cgit/openstack/python-senlinclient/tree/senlinclient/v1/client.py#n1807:49
Qimingopentack profile is not a dict, it is an object07:49
Qimingthat is an arguable design07:50
elynnoh...07:50
elynnThen I think yanyanhu's solution is workable, maybe we can expose region_name as parameter and wrap it in senlinclient.07:51
yanyanhuhi, elynn,  no need to add extra parameter I think, just handle region_name kwarg if user provides it07:53
elynnok07:54
yanyanhunot a difficult fix : )07:54
yanyanhujust for compatibility07:54
elynnsounds ok for me07:55
openstackgerritQiming Teng proposed openstack/senlin: Add API version header in responses  https://review.openstack.org/29810808:08
openstackgerritQiming Teng proposed openstack/senlin: Refactor API version range support  https://review.openstack.org/29812908:13
*** yuanying has quit IRC08:31
*** yuanying has joined #senlin08:31
*** yuanying has quit IRC08:32
*** yuanying has joined #senlin08:39
*** EldonZhao has quit IRC08:40
*** zzxwill has quit IRC08:45
yanyanhunetwork is broken again, ft08:55
yanyanhucan't do any test...08:55
*** zzxwill has joined #senlin08:56
openstackgerritQiming Teng proposed openstack/senlin: Rework senlin docs based on CLI changes  https://review.openstack.org/29755208:56
*** zzxwill has quit IRC08:57
openstackgerritYanyan Hu proposed openstack/python-senlinclient: Support more parameters for senlinclient creation  https://review.openstack.org/29814708:59
openstackgerritYanyan Hu proposed openstack/python-senlinclient: Support more parameters for senlinclient creation  https://review.openstack.org/29814709:03
*** zzxwill has joined #senlin09:05
*** EldonZhao has joined #senlin09:05
openstackgerritMerged openstack/senlin: Add global API version check for micronversion  https://review.openstack.org/29808109:05
*** EldonZhao has left #senlin09:05
*** zzxwill has quit IRC09:06
*** EldonZhao has joined #senlin09:06
*** yuanying has quit IRC09:16
*** Qiming has quit IRC09:17
*** Qiming has joined #senlin09:17
*** shu-mutou has joined #senlin09:18
*** EldonZhao has quit IRC09:34
*** EldonZhao has joined #senlin09:35
openstackgerritEthan Lynn proposed openstack/senlin: Modify location to point to action  https://review.openstack.org/29817509:36
Qimingelynn, I'm +2 ing your patch above09:44
Qimingbut please understand this is because we do have a flexibility here: http://git.openstack.org/cgit/openstack/api-wg/tree/guidelines/http.rst#n10509:44
Qimingwhen asynchronously creating a resource, we can point the location to either the resource or the "status resource" ('action' in our case)09:45
elynnok09:48
elynnso you mean my commit message misguide others?09:48
Qimingelynn, please also propose a patch to api doc here:09:49
Qiminghttp://git.openstack.org/cgit/openstack/api-site/tree/api-ref/src/wadls/clustering-api/src/v1/wadl/clustering-api.wadl#n21209:49
Qimingline 212 should be changed to "&actionLocationParameter;"09:49
elynnoh, yes, will propose patch for api doc.09:49
openstackgerritYanyan Hu proposed openstack/python-senlinclient: Support more parameters for senlinclient creation  https://review.openstack.org/29814709:55
openstackgerritYanyan Hu proposed openstack/python-senlinclient: Support more parameters for senlinclient creation  https://review.openstack.org/29814710:02
*** yanyanhu has quit IRC10:14
*** elynn has quit IRC10:18
*** zzxwill has joined #senlin10:19
*** Qiming has quit IRC10:24
*** Liuqing has quit IRC10:25
*** shu-mutou is now known as shu-mutou-AFK10:40
*** Liuqing has joined #senlin10:51
*** Liuqing_ has joined #senlin11:15
*** Liuqing has quit IRC11:16
*** Qiming has joined #senlin11:30
*** zzxwill has quit IRC11:47
*** shu-mutou-AFK has quit IRC11:56
*** Liuqing_ has quit IRC12:02
*** zzxwill has joined #senlin12:17
*** zzxwill has quit IRC12:29
*** EldonZhao has quit IRC12:34
*** zzxwill has joined #senlin12:42
openstackgerritMerged openstack/python-senlinclient: Support more parameters for senlinclient creation  https://review.openstack.org/29814713:08
openstackgerritEthan Lynn proposed openstack/senlin: Modify location to point to action  https://review.openstack.org/29817513:19
*** zzxwill has quit IRC13:36
*** openstackgerrit has quit IRC13:48
*** openstackgerrit has joined #senlin13:49
*** zzxwill has joined #senlin13:59
openstackgerritMerged openstack/senlin: Add API version header in responses  https://review.openstack.org/29810814:48
-openstackstatus- NOTICE: Gerrit is restarting on review.openstack.org in an attempt to address an issue reading an object from the ec2-api repository15:22
openstackgerritMerged openstack/senlin: Rework senlin docs based on CLI changes  https://review.openstack.org/29755215:25
*** Qiming has quit IRC15:29
*** zzxwill has quit IRC16:13
*** cschulz has quit IRC21:14
*** cschulz has joined #senlin21:23
*** yuanying has joined #senlin23:11
*** Qiming has joined #senlin23:29

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