Friday, 2016-04-01

*** Qiming has quit IRC00:34
*** yanyanhu has joined #senlin01:04
*** zzxwill has joined #senlin01:23
*** yanyanhu has quit IRC01:26
*** yanyanhu has joined #senlin01:27
*** Qiming has joined #senlin01:31
openstackgerritQiming Teng proposed openstack/python-senlinclient: Revert "Remove senlin CLI commands"  https://review.openstack.org/30028102:01
zzxwillWe will keep the CLI for a while until openstacksdk is ready?02:04
Qimingyes, zzxwill02:19
Qimingit is not about openstacksdk, it is about this one: https://review.openstack.org/#/c/29855302:19
yanyanhuhi, Qiming, round?02:26
yanyanhuaround02:26
yanyanhulooks like we can't get action id from the cluster_delete senlinclient interface?02:27
yanyanhuI found by default, Rally relies on checking resource status switching e.g. 'DELETE_COMPLETE' to decide whether the resource has been deleted completely02:28
yanyanhuso we may need to replacing it by checking action status switching to 'SUCCEEDED'02:29
yanyanhusince the db item of cluster will be removed after cluster is deleted02:30
yanyanhuso is that possible to expose action_id to enduser from senlinclient when performing resource deletion operations02:32
yanyanhumy fault, I noticed that resource call in cluster resource of sdk has included location into the return value02:44
yanyanhuso I think we can get action_id from that attire02:45
*** yuanying has quit IRC02:51
Qimingokay02:56
*** yanyanhu has quit IRC03:40
*** yanyanhu has joined #senlin03:41
*** yuanying has joined #senlin03:49
*** zzxwill has quit IRC04:00
*** zzxwill has joined #senlin04:20
*** zzxwill has quit IRC04:38
*** zzxwill has joined #senlin04:54
yanyanhuhi, Qiming, around?05:22
Qimingyes05:25
yanyanhuhi, Qiming, I'm wondering whether we need to refactor the parameter definition in senlinclient interfaces05:28
yanyanhuhttp://git.openstack.org/cgit/openstack/python-senlinclient/tree/senlinclient/v1/client.py05:28
yanyanhuit's very difficult to just refer to the code to know how to invoke those interfaces05:29
yanyanhuall input parameters are now included in a single dictionary attrs05:29
Qimingyes, that is the way we make the interface consistent and stable05:30
yanyanhuI check the code of senlin proxy interfaces in sdk side, also the same05:30
yanyanhuyes, if so I think we may need some docstring to help user understand it05:30
Qimingthey are the same so that in future people can avoid depending on senlinclient05:30
yanyanhue.g. which parameters are optional and which are not05:30
Qimingfor developers invoking senlin api, they are going to explore the API doc05:31
yanyanhuunderstand. I'm now invoking senlin client in Rally and found I need to check code of Senlin API to know which parameters I have to provide :)05:31
Qimingor you can check api doc?05:31
yanyanhuyes, there is no problem for API invoking since the description is clear in API doc05:32
Qimingreading source code for developers is a pain, we know that ...05:32
yanyanhuI see. so maybe we need give user a hint that the parameter definition in senlinclient interface is completely consistent with the API interfaces05:33
Qimingthat is implied05:33
Qimingwe are always striving to make things consistent05:33
Qimingif there are inconsistency, we should treat them as bugs05:33
Qimingmaybe I can find a better reference for you05:33
yanyanhuyes. We know that. Just concern maybe a new user don't know they are same :)05:33
yanyanhusince senlinclient interface is actually different from other xxxclient05:34
Qimingwhy there is such a concern?05:35
Qimingyou mean the code are different from the doc?05:36
yanyanhubecause usually when a guy first tries to invoke senlinclient interface to talk with senlin, the first place they try to find reference is here: http://git.openstack.org/cgit/openstack/python-senlinclient/tree/senlinclient/v1/client.py05:37
Qimingokay05:38
yanyanhubut they can't find any doc there. Then they need to check the code of sdk to understand the 'attrs' are exactly consistent with those properties that described in senlin API doc05:38
Qimingso what you are talking about is to better documenting the client api05:38
Qimingwe have done that05:38
Qimingin sdk side05:38
yanyanhuexactly05:38
Qimingbut I cannot find the generated code at the moment05:38
Qiminggive me 5 minutes okay?05:38
yanyanhuok05:38
Qiminghttp://developer.openstack.org/sdks/python/openstacksdk/users/proxies/cluster.html05:42
yanyanhuyes, this is generated from the docstring of proxy calls of senlin service05:44
Qimingthat is about the interface calls05:44
Qimingif we create another set of docs at senlinclient side05:45
Qiminghow are we planning to maintain them?05:45
yanyanhumaybe just some parameter description embedded inline?05:45
yanyanhuactually not necessary05:45
Qimingeach time some parameter changed at server side, we will need to modify the server api, bump the api version, update the api doc and update the sdk proxy then senlinclient docstring?05:46
yanyanhujust letting user know they can directly refer the API doc is ok05:46
QimingI think they should know that05:46
yanyanhuok, I see.05:46
yanyanhunot very diffult05:47
Qimingwe have done an excellent job synchronizing the api doc with the code05:47
yanyanhuyep05:47
Qimingif there is something we can improve and we should do05:47
Qimingit would be add some pointers in the senlinclient.v1.client module to the location of the api doc05:47
Qimingwe should not duplicate the docs here and there05:48
yanyanhuthat would be the best05:48
Qimingit would be a huge headache moving forward05:48
yanyanhuright05:48
Qimingyou have to remember that there are other docs out of sync05:48
Qimingfor example, for the cluster_create method05:50
Qimingwe can add a docstring: http://developer.openstack.org/api-ref-clustering-v1.html#createCluster05:50
Qimingin the API doc, we have documented almost everything, the parameters needed (optional), data type, meanings, default values (if any) and even sample bodies05:52
yanyanhuYes05:52
openstackgerritYanyan Hu proposed openstack/python-senlinclient: Add a link to API doc in client module  https://review.openstack.org/30031506:01
yanyanhuhi, Qiming, just propose a patch to add that description.06:01
yanyanhubut feel it's not that noticeable...06:02
Qimingyes06:03
Qimingit is not achieving the goal we talked above06:04
yanyanhuso maybe a line for each methods06:05
QimingI'm afraid so06:06
yanyanhuI see. Let me add them06:07
Qimingbtw, I'm a little bit concerned about the deprecation of senlinclient cli now06:10
QimingI was very optimistic about it before and I believed that is the right direction to go06:10
yanyanhusince some users have used it?06:10
Qiminghowever, seeing that a single openstack command seemingly integrated all other client commands06:11
QimingI'm doubting about it now06:11
Qimingwhether that is something that will eventually happen06:12
Qimingconsider we have all service clients with OSC plugins implemented06:12
Qiminghow can anybody avoid conflicts between commands and/or options if they are all implemented in their own client code base06:13
yanyanhuthis is a problem...06:13
Qimingif the thing is to be integrated, it has better be done within openstackclient project06:13
Qimingwe are blocked by the --profile parameter there06:14
QimingI don't see a good chance to rename that to --os-profile as suggested, BEAUSE IT HAS BEEN RELEASED06:14
Qimingwe cannot make change either, BECAUSE WE HAVE HAD SENLINCLIENT RELEASED06:14
yanyanhu...06:15
Qimingimagine this, when magnum, mistral, trove, zaqar, heat, sahara, barbican, ... all pouring into the single 'openstack' command06:15
Qimingwhat will happen?06:15
openstackgerritEldonZhao proposed openstack/python-senlinclient: Add action-id to output of node-delete  https://review.openstack.org/30032006:16
yanyanhuQiming, that's true. Unless openstackclient can help to coordinate06:23
openstackgerritEldonZhao proposed openstack/python-senlinclient: Add action-id to output of node-delete  https://review.openstack.org/30032006:26
*** yanyanhu has quit IRC06:28
*** yanyanhu has joined #senlin06:31
openstackgerritEldonZhao proposed openstack/python-senlinclient: Add action-id to output of node-delete  https://review.openstack.org/30032006:43
openstackgerritEldonZhao proposed openstack/python-senlinclient: Add action-id to output of node-delete  https://review.openstack.org/30032006:58
openstackgerritEldonZhao proposed openstack/python-senlinclient: Add action-id to output of node-delete  https://review.openstack.org/30032007:06
*** zzxwill has quit IRC07:34
*** zzxwill has joined #senlin07:38
*** yanyanhu has quit IRC07:59
*** yanyanhu has joined #senlin08:00
*** zzxwill has quit IRC08:31
openstackgerritYanyan Hu proposed openstack/python-senlinclient: Add link to API doc in client module  https://review.openstack.org/30031508:37
openstackgerritEldonZhao proposed openstack/senlin: Protect node form deleting when node status is creating  https://review.openstack.org/30035908:37
openstackgerritEldonZhao proposed openstack/python-senlinclient: Add action-id to output of node-delete  https://review.openstack.org/30032008:41
yanyanhuhi, Qiming, the API doc of profile creating is incorrect?08:49
yanyanhuhttp://developer.openstack.org/api-ref-clustering-v1.html#createProfile08:49
yanyanhuthere is no 'profile' parameter for createProfile API call?08:49
yanyanhushould be context I think08:50
Qiming?08:51
yanyanhuI mean the request parameters08:51
yanyanhuthere is a parameter named as 'profile'08:52
Qimingyes08:53
yanyanhumaybe that should be context?08:53
Qimingit should be context08:53
yanyanhuok, will try to fix it08:53
yanyanhuso this should be a patch to doc project?08:53
Qimingwait a minute08:53
yanyanhuok08:54
Qimingthe api is not accurate08:54
Qimingfor profile create request08:54
Qimingthe only parameter allowed is a dict named 'profile'08:54
Qiminginside that profile dict, there are up to 4 keys: name, spec, metadata, context08:55
Qimingso ... it is a difference between REST API and Python API08:55
Qimingfor REST API, we are accepting a {'profile': {...}} JSON as body08:56
Qimingfor Python API, we are accepting (name=, spec=, context=, metadata=)08:56
yanyanhuI see08:57
Qimingand ...08:57
yanyanhuso just need to replace profile with context08:57
Qimingeven context is not part of profile08:57
yanyanhuthe example request is correct08:57
Qimings/not/now/08:57
QimingSDK interface is correct08:58
Qimingdoc is broken08:58
Qimingserver side implementation is broken08:58
yanyanhuyou mean context is actually part of spec08:59
yanyanhuwe never used it08:59
Qimingyes08:59
yanyanhuso didn't find this error I think...08:59
Qimingcheck heat stack sample ...09:00
Qimingcontext is part of spec09:00
yanyanhuyes, that's the design09:00
Qimingthis has to be fixed09:00
yanyanhuI see, will propose a bug report for it09:01
Qimingno wonder why eldon was complaining09:01
Qimingthanks09:01
yanyanhuno problem09:01
openstackgerritEldonZhao proposed openstack/senlin: Protect node form deleting when node status is creating  https://review.openstack.org/30035909:09
openstackgerritYanyan Hu proposed openstack/senlin: Fix create profile API interface  https://review.openstack.org/30037909:17
* Qiming is hitting his head against the wall ...09:24
QimingSecondaryIPAddresses09:25
Qimingthis is what docker_inspect tells me:09:26
Qiming        "State": {09:26
Qiming            "Dead": false,09:26
Qiming            "Error": "",09:26
Qiming            "ExitCode": 0,09:26
Qiming            "FinishedAt": "2016-03-17T10:04:11.051160162Z",09:26
Qiming            "OOMKilled": false,09:26
Qiming            "Paused": false,09:26
Qiming            "Pid": 0,09:26
Qiming            "Restarting": false,09:26
Qiming            "Running": false,09:26
Qiming            "StartedAt": "2016-03-17T10:04:11.036002407Z"09:26
Qiming        }09:26
Qiminghow would I explain that?09:26
yanyanhu...09:26
yanyanhunever noticed that before09:26
Qimingit is a mess09:26
Qimingthis is the complete output from docker_inspect: http://paste.openstack.org/show/492707/09:29
Qimingwhen I'm doing senlin node-show docker-1 --details09:29
QimingAm I supposed to dump the whole shit?09:29
yanyanhuit's mainly about the process info I think09:30
yanyanhumost of them are useless09:30
yanyanhureally a mess09:30
Qimingbecause I'm not doing a lot network/storage customization yet09:31
openstackgerritMerged openstack/senlin: Fix create profile API interface  https://review.openstack.org/30037909:52
yanyanhuhi, Qiming, has proposed fix to api-site and added you to reviewer list09:57
yanyanhuhttps://review.openstack.org/30039009:57
*** Qiming has quit IRC10:15
*** yanyanhu has quit IRC10:15
*** zzxwill has joined #senlin10:32
*** zzxwill has quit IRC10:34
*** cschulz has joined #senlin11:36
*** Qiming has joined #senlin12:46
*** openstackgerrit has quit IRC13:33
*** openstackgerrit has joined #senlin13:34
*** Liuqing has joined #senlin13:48
*** zzxwill has joined #senlin13:50
LiuqingHELLO, Qiming, now the obj_id of event-list is not cluster or node short_id, so how could we filter events of cluster/node, filter by obj_name?13:50
*** openstack has quit IRC13:58
*** openstack has joined #senlin14:02
ddejaHi, is it possible to use Senlin for VM creation when using Nova Network?14:07
openstackgerritYanyan Hu proposed openstack/python-senlinclient: Add link to API doc in client module  https://review.openstack.org/30031514:11
openstackgerritLiuqing Jing proposed openstack/senlin-dashboard: Remove useless variable assignment  https://review.openstack.org/30050614:12
openstackgerritLiuqing Jing proposed openstack/senlin-dashboard: Remove policies which had attached to cluster while attaching policy  https://review.openstack.org/30051214:20
*** Liuqing has quit IRC14:47
openstackgerritLiuqing Jing proposed openstack/senlin-dashboard: Add cluster policies in cluster detail page  https://review.openstack.org/30053614:47
*** Liuqing has joined #senlin14:48
*** Liuqing has quit IRC15:07
*** Liuqing has joined #senlin15:09
*** zzxwill has quit IRC15:09
*** Liuqing has quit IRC15:12
*** zzxwill has joined #senlin15:37
*** zzxwill has quit IRC15:44
*** zzxwill has joined #senlin15:54
*** zzxwill has quit IRC16:04
*** Qiming has quit IRC16:26
*** openstackgerrit has quit IRC16:31
*** openstackgerrit has joined #senlin16:46

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