Wednesday, 2015-12-09

*** xuhaiwei has quit IRC00:02
*** pratikmallya has quit IRC00:03
*** yuanying has quit IRC00:04
*** yuanying has joined #senlin00:05
*** lixinhui has joined #senlin00:06
*** tianc has quit IRC00:22
*** tianc has joined #senlin00:23
*** yuanying has quit IRC00:32
*** yuanying has joined #senlin00:34
*** yuanying has quit IRC00:44
*** yuanying has joined #senlin00:47
*** openstackstatus has quit IRC00:50
*** openstack has joined #senlin00:54
*** xuhaiwei has joined #senlin01:16
openstackgerritlvdongbing proposed openstack/senlin: Format time to cut microsecond  https://review.openstack.org/25481401:22
*** zhenguo has joined #senlin01:24
*** Yanyanhu has joined #senlin01:27
*** Liuqing has joined #senlin01:48
*** Liuqing has quit IRC01:58
*** elynn__ has joined #senlin01:58
*** elynn___ has joined #senlin02:03
*** pratikmallya has joined #senlin02:03
*** elynn__ has quit IRC02:04
openstackgerritxu-haiwei proposed openstack/senlin: Make cluster actions API return a location header  https://review.openstack.org/25463602:06
elynn___Morning ;)02:27
*** elynn___ has quit IRC02:31
*** elynn has joined #senlin02:32
openstackgerritzhangguoqing proposed openstack/python-senlinclient: Fix pep8 error about D300  https://review.openstack.org/25504602:33
openstackgerritxu-haiwei proposed openstack/senlin: Make node-create return a location header  https://review.openstack.org/25504802:40
openstackgerritEthan Lynn proposed openstack/python-senlinclient: Try to show policy after policy created  https://review.openstack.org/25425402:46
xuhaiweican anyone show the senlin api manual PDF version?02:47
elynnxuhaiwei: http://docs-draft.openstack.org/45/252245/10/check/gate-api-site-tox-doc-publish-checkbuild/d1f26a1//publish-docs/api-ref-guides/bk-api-ref-clustering-v1.pdf02:48
xuhaiweithanks02:48
elynnxuhaiwei: np02:48
*** Qiming has joined #senlin02:56
openstackgerritMerged openstack/python-senlinclient: Cluster's timeout is in seconds not minutes  https://review.openstack.org/25460102:58
openstackgerritMerged openstack/python-senlinclient: Try to show policy after policy created  https://review.openstack.org/25425402:58
Qimingxuhaiwei, there?03:07
xuhaiweiyes03:07
Qimingabout patch #25463603:07
QimingI'm afraid returning the cluster dict is not helpful03:07
Qimingnone of the results from executing those actions can be reflected from the cluster dict03:08
Qimingincluding cluster_policy_update03:08
xuhaiweiyou mean update cluster policy may not return cluster body?03:09
Qimingso it seems we don't have things to return other than the action itself03:09
Qimingyes, returning the cluster body is not helpful03:09
Qimingthe object that gets updated is the cluster-policy binding03:09
xuhaiweijust return location heare and action id?03:09
xuhaiweiyes03:10
openstackgerritYanyan Hu proposed openstack/senlin: Fix DB sync issue happened during action dependency update  https://review.openstack.org/25223103:10
xuhaiweiby the way, I also find a bug of cluster_policy_update03:10
Qimingright, you may choose to return the action dict in body03:10
xuhaiweiok03:10
Qimingas we have mentioned yesterday, no one is preventing us from returning something in body for 20203:10
Qimingfile a bug then03:11
xuhaiweiok, I am reading the api docs03:11
xuhaiweifind some tiny problems03:11
xuhaiweiyou may need to fix them, but really cost time03:12
xuhaiweiI will go for lunch, talk to you later03:15
*** lvdongbing has joined #senlin03:15
Qimingok03:19
*** pratikmallya has quit IRC03:21
*** yuanying has quit IRC03:23
lvdongbingHello, everyone, I have a question about: https://review.openstack.org/#/c/254254/03:47
lvdongbingWhy retrieve again if it's not needed?03:47
Qiminglvdongbing, we don't know if it is needed03:50
Qimingit is only about maitaining consistency03:51
lvdongbingOk, for webhook creation, we are sure it's not needed? Cause it doesn't retrieve again.03:53
*** pratikmallya has joined #senlin03:57
*** elynn has quit IRC03:58
*** pratikmallya has quit IRC04:05
openstackgerritxu-haiwei proposed openstack/senlin: Make cluster actions API return a location header  https://review.openstack.org/25463604:11
*** lkarm has joined #senlin04:15
*** lkarm has quit IRC04:19
*** shu-mutou has joined #senlin04:20
xuhaiweiQiming, are you there?04:28
*** yuanying has joined #senlin04:28
Qimingyes sir04:28
xuhaiweiabout the api doc04:29
xuhaiweifind some nits04:29
xuhaiweifirst is English, some verbs on the head of one sentense does not use 'xxxs'04:30
xuhaiweifor example. 'lists the clusters'04:30
xuhaiweisomething like that04:30
xuhaiweihttp://paste.openstack.org/show/481270/04:31
xuhaiweiI listed it here04:31
xuhaiweithe created_time problem maybe caused by a bug04:32
xuhaiweithe URI ones I dont know it wrong or right04:32
*** elynn_ has joined #senlin04:34
QimingURI is right04:35
Qimingit is derived from the query string04:36
xuhaiweipage38 's uri is wrong I think04:36
Qimingempty page cannot be avoided, it is also created from the pdf gen tool04:36
xuhaiweip38 /v1/nodes/{node_id}{?show_details}04:37
xuhaiweiwhy {?show_details} comes out04:37
Qimingit is a query string04:37
Qimingit is correct I think04:37
xuhaiweiok04:38
Qimingif we cannot parse this uri, it is server's problem04:38
Qimingdiane flemming has kindly revised the whole wsdl04:38
Qimingfor your info04:38
Qimingso I'm not very concerned about the English problems now04:38
xuhaiweiok04:39
Qimingcreated_time may not be of right format, let's first get the server response done right and then fix the sample json file04:39
xuhaiweiyes, agree04:40
openstackgerritMerged openstack/senlin: Make node-create return a location header  https://review.openstack.org/25504804:42
*** yuanying has quit IRC04:46
openstackgerritMerged openstack/senlin: Make cluster actions API return a location header  https://review.openstack.org/25463604:47
openstackgerritMerged openstack/senlin: Make node join/leave return a location header  https://review.openstack.org/25464104:51
*** yuanying has joined #senlin05:00
*** Qiming has quit IRC05:22
xuhaiweilvdongbing, are you around?05:25
lvdongbingyes05:25
openstackgerritMerged openstack/python-senlinclient: Add py34 to tox.ini  https://review.openstack.org/25408605:26
xuhaiweithe webhook show also needs a fix?05:26
*** Qiming has joined #senlin05:27
xuhaiweiQiming, for webhook-create, we don't GET webhook when creating it?05:27
xuhaiweifor security concern?05:28
Qimingno05:29
Qimingstill working on a fix now05:29
Qimingpreviously we return everything about a webhook05:29
xuhaiweiyou are fixing it?05:29
Qimingthen we tried to avoid returning the key everytime05:30
xuhaiweiok, I will wait for your patch05:30
Qimingbecause the concern is that if you are returning everything everytime, the security doesn't exist at all05:30
Qimingit maybe that we are doing it wrong05:31
xuhaiweiso we should cover the url?05:31
QimingI'm taking over the receiver design now, will come up with some patches later05:31
lvdongbingNice05:31
Qimingyes, we should return the url05:31
Qimingand everything05:32
Qimingprovided that you are the admin or the owner of the webhook05:32
Qimingthe url won't be the top level key05:33
Qimingbecause it is not generic05:33
Qimingit only makes sense to webhook kind of receiver05:34
xuhaiweibut if I am the admin, I may want to use the webhook many times, so I need somewhere to store the url05:35
xuhaiweiif webhook show doesn't contain the url, I have to memo it somewhere else by myself05:35
Qimingit was a design decision previously05:37
Yanyanhuxuhaiwei, I think we should let user take the responsibility to store the webhook carefully05:37
Qimingyes, that is how you will use Amazon services05:38
Yanyanhusince that url contains credential information05:38
Qimingyou will get a key, and the key has to be stored safely by yourself05:38
xuhaiweimaybe use barbican to store it?05:38
Qimingit doesn't matter if the encrypted data is stored in senlin db or in barbican05:38
Qimingit is an implementation detail05:39
Qimingthe key question here is about how users are supposed to use this interface05:39
openstackgerritYanyan Hu proposed openstack/senlin: Rework functional tests of cluster_list and node_list  https://review.openstack.org/25507705:49
*** lixinhui has quit IRC05:52
*** lixinhui has joined #senlin06:18
*** lkarm has joined #senlin06:42
*** lkarm has quit IRC06:46
*** pratikmallya has joined #senlin07:00
openstackgerritxu-haiwei proposed openstack/python-senlinclient: Add test case for v1/shell.py part2  https://review.openstack.org/25179807:08
openstackgerritlvdongbing proposed openstack/senlin: Format time to cut microsecond  https://review.openstack.org/25481407:28
xuhaiweiQiming, create action API is not included in the API doc, should we make a fix to let it return location header?07:31
Qimingcreat action should return 201 will a full body?07:32
Qimingit doesn't sound like an async operations07:32
Qimingwell, maybe and maybe not07:34
Qimingit all depends on whether we want an action to be launched immediately after creation07:35
xuhaiweicurrently it is a 20007:35
xuhaiwei20107:35
Qimingthen leave it there?07:35
xuhaiweiok07:35
*** pratikmallya has quit IRC07:45
*** lvdongbing has quit IRC07:50
*** lvdongbing has joined #senlin08:05
openstackgerritlvdongbing proposed openstack/senlin: Format time to cut microsecond  https://review.openstack.org/25481408:10
*** lvdongbing has quit IRC08:15
openstackgerritxu-haiwei proposed openstack/python-senlinclient: Add test case for v1/shell.py part2  https://review.openstack.org/25179808:19
*** lvdongbing has joined #senlin08:44
*** openstackstatus has quit IRC09:05
*** openstack has joined #senlin09:09
-wolfe.freenode.net- [freenode-info] if you're at a conference and other people are having trouble connecting, please mention it to staff: http://freenode.net/faq.shtml#gettinghelp09:09
openstackgerritxu-haiwei proposed openstack/senlin: Make webhook-trigger return a location header  https://review.openstack.org/25514209:13
elynn_Hi Qiming09:20
elynn_How to initialize senlinclient? I got an error when using senlinclient in heat09:21
elynn_http://paste.openstack.org/show/481285/09:21
elynn_Seems codes are not fit for senlin now https://github.com/openstack/heat/blob/master/heat/engine/clients/os/senlin.py#L28-L3209:22
elynn_Yanyanhu ^09:23
elynn_Could you give me some hint?09:24
*** lkarm has joined #senlin09:25
Qimingit is an authentication failure09:25
elynn_What args should I use now?09:26
Qimingthe 'passwordCredentials' looks strange to me09:26
elynn_Seems need to pass username in args now.09:27
Qimingyes, either username + user_project_name or userid09:28
elynn_ok, Add userid and try again...09:28
*** lkarm has quit IRC09:29
Qiminghttp://git.openstack.org/cgit/openstack/python-senlinclient/tree/senlinclient/shell.py#n21609:29
elynn_Need password now?09:31
Qimingcertainly09:32
*** openstackgerrit has quit IRC09:32
QimingYanyanhu, xuhaiwei are you there?09:32
elynn_heat can't get password in context09:33
*** openstackgerrit has joined #senlin09:33
elynn_http://paste.openstack.org/show/481287/ adjust codes and met a new error message...09:33
Qimingthen you will have a token09:33
xuhaiweiyes09:34
Qimingelynn_, you are using a token but you are getting error message about password?09:34
elynn_Qiming: Yes...09:35
QimingI see09:35
Qimingthe senlinclient is defaulting to 'password' authentication at the moment09:36
elynn_And I don't see any error message in senlin-engine09:36
Qimingyou are currently blocked by keystone09:37
Qimingthe request has not yet arrived at senlin-api09:37
elynn_auth_plugin can be?09:37
elynn_trust?09:37
Qimingtoken09:39
Qiminghttp://git.openstack.org/cgit/openstack/keystoneauth/tree/setup.cfg#n3709:40
Qimingxuhaiwei, I'm working on the "new" receiver design09:41
xuhaiweiyes09:41
Qimingone way of getting this landed piece by piece is to modify the api, the rpc client, the engine, the database, in this order09:41
Qimingthen the client, the api doc and user doc09:42
Qimingthis is gonna be a disruptive change to any existing webhook related code and test case09:42
elynn_Qiming: token seems not work. http://paste.openstack.org/show/481288/09:42
xuhaiweiso ?09:43
Qimingright, sometimes we are getting 404 directly09:43
xuhaiweithis bad 404 description is from keystoneauth109:44
xuhaiweitoo simple09:44
Qimingone way of testing this is to use senlin CLI directly09:44
Qimingsometimes naive?09:45
xuhaiweialways naive09:45
Qimingelynn_, you can unset all your OS_xxx environment variables09:45
Qimingthen start with export OS_AUTH_URL=abc OS_PROJECT_ID=def ..09:45
*** lvdongbing has quit IRC09:45
Qimingand see why we are getting that authentication failure09:46
Qimingone thing to notice is the auth url, is it v2.0 or v309:46
Qimingas you can see from keystoneauth, they also have v2token, v3token ...09:46
Qimingthey are trying to make some guesses, but I'm suspecting that they are doing things wrong09:47
elynn_v2token doesn't work either... I will follow your way and try again...09:47
Qimingxuhaiwei, regarding the webhook -> receiver transition09:47
openstackgerritMerged openstack/senlin: Format time to cut microsecond  https://review.openstack.org/25481409:47
xuhaiweiyes?09:47
QimingI'm thinking of adding the receiver abstraction step by step: db -> engine -> rpc -> api -> client -> api doc -> user doc09:48
Qimingthen we remove the webhook abstraction in the reverse order09:48
Qimingthis could help avoid pains in breaking existing code09:49
xuhaiweiwhen we have the receiver, webhook is not needed?09:50
Qimingyes09:50
xuhaiweireceiver contains webhook?09:50
Qimingit will be a replacement09:50
Qiminga more generic form of webhook09:50
xuhaiweioh09:50
xuhaiweiok09:50
QimingI was just trying to avoid modifying the webhook code directly09:51
xuhaiweiyes, that's good I think09:51
Qimingstill working on the BP09:52
Qimingwill start with DB layer patches when we have a BP draft09:52
xuhaiweicool09:52
xuhaiweiwait for your patch09:52
Qimingthen wait ...09:53
*** openstackgerrit has quit IRC10:02
*** zhenguo has quit IRC10:02
*** openstackgerrit has joined #senlin10:03
openstackgerritxu-haiwei proposed openstack/python-senlinclient: Make cluster-policy-update help message clear  https://review.openstack.org/25517710:04
elynn_Seems my env is broken...10:17
elynn_always got an 404 not found error when doing cluster-list10:18
elynn_Ah, I need to register the endpoints...10:18
openstackgerritYanyan Hu proposed openstack/senlin: Rework functional tests of cluster_list and node_list  https://review.openstack.org/25507710:20
openstackgerritYanyan Hu proposed openstack/senlin: Fix DB sync issue happened during action dependency update  https://review.openstack.org/25223110:20
*** Yanyanhu has quit IRC10:26
*** yuanying has quit IRC11:07
*** gongysh has quit IRC11:35
*** elynn_ has quit IRC11:59
*** cschulz has quit IRC12:04
*** Liuqing has joined #senlin13:05
*** cschulz has joined #senlin13:08
cschulzQiming can my team start looking into the bug I found yesterday?13:10
Qimingsure13:10
Qimingthanks for the help13:10
cschulzOK Thanks.  _shruti and _mayur are part of my team if they show up on the chat.13:11
Qiminggreat!13:12
openstackgerritzhangguoqing proposed openstack/python-senlinclient: Fix pep8 error about D300  https://review.openstack.org/25504613:27
*** lkarm has joined #senlin13:31
openstackgerritQiming Teng proposed openstack/senlin: Fix MutableList implementation  https://review.openstack.org/25526713:46
openstackgerritQiming Teng proposed openstack/senlin: Improve logging in functional testings  https://review.openstack.org/25527314:05
*** pratikmallya has joined #senlin14:12
openstackgerritQiming Teng proposed openstack/senlin: Shorten the event ID in log output for reability  https://review.openstack.org/25527614:17
*** pratikmallya has quit IRC14:22
*** lixinhui has quit IRC14:31
*** pratikmallya has joined #senlin14:45
*** pratikma_ has joined #senlin14:46
*** pratikmallya has quit IRC14:50
*** Qiming has quit IRC15:45
*** Liuqing has quit IRC15:47
*** pratikma_ has quit IRC17:51
*** pratikmallya has joined #senlin18:18
*** lkarm has quit IRC19:40
*** lkarm has joined #senlin19:44
*** lkarm has quit IRC19:56
*** lkarm has joined #senlin19:57
*** lkarm has quit IRC19:58
*** lkarm has joined #senlin20:05
*** lkarm has quit IRC20:10
*** cschulz has quit IRC21:52
*** pratikma_ has joined #senlin22:02
*** pratikma_ has quit IRC22:03
*** pratikma_ has joined #senlin22:03
*** pratikmallya has quit IRC22:03
*** pratikmallya has joined #senlin22:43
*** pratikma_ has quit IRC22:46
*** pratikmallya has quit IRC22:47
*** yuanying has joined #senlin22:56
*** cschulz has joined #senlin23:16
*** Qiming has joined #senlin23:51
*** lixinhui has joined #senlin23:59

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