Friday, 2016-07-29

*** zzxwill_ has joined #senlin00:21
*** zzxwill has joined #senlin00:21
*** zzxwill_ has quit IRC00:47
*** zzxwill has quit IRC00:47
*** Liuqing has joined #senlin01:12
*** yanyanhu has joined #senlin01:15
*** zzxwill has joined #senlin01:26
*** zzxwill_ has joined #senlin01:26
openstackgerritMerged openstack/senlin-dashboard: Updated from global requirements  https://review.openstack.org/34432102:06
*** Drago has quit IRC02:16
*** Liuqing has quit IRC02:32
*** Liuqing has joined #senlin02:33
openstackgerritOpenStack Proposal Bot proposed openstack/python-senlinclient: Updated from global requirements  https://review.openstack.org/34868302:35
openstackgerritOpenStack Proposal Bot proposed openstack/senlin: Updated from global requirements  https://review.openstack.org/34868902:35
*** elynn has joined #senlin02:37
*** Liuqing has quit IRC02:37
*** Liuqing has joined #senlin02:39
*** yuanying_ has quit IRC02:57
openstackgerritYanyan Hu proposed openstack/senlin: [WIP]Add version support to schema and spec  https://review.openstack.org/34870903:32
openstackgerritYanyan Hu proposed openstack/senlin: [WIP]Add version support to schema and spec  https://review.openstack.org/34870903:33
openstackgerritYanyan Hu proposed openstack/senlin: [WIP]Add version support to schema and spec  https://review.openstack.org/34870903:36
openstackgerritYanyan Hu proposed openstack/senlin: [WIP]Add version support to schema and spec  https://review.openstack.org/34870903:38
*** yuanying has joined #senlin03:51
*** elynn has quit IRC04:33
*** elynn has joined #senlin05:00
openstackgerritMerged openstack/senlin: Updated from global requirements  https://review.openstack.org/34868905:04
*** elynn has quit IRC05:05
*** elynn has joined #senlin05:05
*** yanyanhu has quit IRC05:19
*** yanyanhu has joined #senlin05:21
openstackgerritEldonZhao proposed openstack/senlin: Set node status ERROR when physical id is none  https://review.openstack.org/34773205:50
openstackgerritYanyan Hu proposed openstack/senlin: Add version support to schema and spec  https://review.openstack.org/34870905:58
Qiminghi, eldon_06:07
eldon_yes~06:11
openstackgerritQiming Teng proposed openstack/python-senlinclient: Update senlinclient for new sdk version  https://review.openstack.org/34874606:17
Qiminghi, eldon06:17
Qimingsaw your patch06:17
QimingI think you are on the right direction to solve this problem06:17
Qimingbut I want to know which version of openstacksdk are you using06:18
eldon_Let me see. 0.7.306:23
Qiming...06:23
Qimingit is too old06:23
Qimingyou are running out of sync from the world06:24
Qimingin global requirements, we are forced to use openstacksdk>=0.9.006:25
Qimingsee: http://git.openstack.org/cgit/openstack/requirements/tree/global-requirements.txt#n32306:25
QimingThe reason I am checking sdk version is that in new version of openstacksdk, they are throwing exceptions in different ways06:25
eldon_Oh, my god. How can I solve this problem:)06:26
Qimingand those exceptions are mostly (if not all) caught by this logic in senlin: http://git.openstack.org/cgit/openstack/senlin/tree/senlin/drivers/openstack/sdk.py#n8506:26
eldon_Our product uses the old one.06:26
Qimingif no other project is using sdk,  you can upgrade separately06:27
Qiminglet me show you how things work, so you can have a better idea how driver level exceptions are handled in senlin06:28
Qimingas you may know, the profile code calls to the driver code (under drivers/openstack/) for interacting with nova, heat ... etc06:29
eldon_yes~06:29
Qimingand we believe there could be many unexpected exceptions thrown by those backend services06:30
Qimingwe cannot handle them one by one, because ... in the worst cases, those exceptions are not documented06:30
Qimingso here is what we did06:30
Qimingwhen, for example, nova server profile calls server_create() : http://git.openstack.org/cgit/openstack/senlin/tree/senlin/profiles/os/nova/server.py#n38706:31
Qimingit is calling the code at the driver layer: http://git.openstack.org/cgit/openstack/senlin/tree/senlin/drivers/openstack/nova_v2.py#n9706:32
Qimingnote that the server_create() function called (line 97) has an annotator "@sdk.translate_exception"06:32
Qimingthat annotator is located here: http://git.openstack.org/cgit/openstack/senlin/tree/senlin/drivers/openstack/sdk.py#n8506:33
eldon_yes, I see06:33
Qimingwe are effectively wrapping all calls to sdk functions into a try..except block on line 90-9406:33
eldon_great,  we use decorator to deal with such scene.06:33
Qimingbefore raising the exception, we do a parse_exception() processing (see line 34 in the same module)06:34
Qimingwe check if it is a SDK HttpException, or SDKException or requests.RequestException ...06:34
Qimingeven something we cannot figure out -- line 7906:35
Qimingthis logic is actually trying to handle all exceptions that may get thrown by sdk or the backend services06:35
Qimingwe preserve the exception message (for debugging), but translate the exception type to senlin.common.exception.InternalError06:36
Qimingthen we can handle all exceptions in a common way06:36
Qiminghope this explanation helps you understand how we are handling all exceptions here06:37
Qimingif you still have some exceptions we cannot catch, there must be something wrong ...06:37
Qimingthat is why yanyan and I are very curious about the problem you met, and we hope you can help identify the case we missed06:38
*** eldon_ has left #senlin06:38
*** eldon_ has quit IRC06:38
*** eldon_ has joined #senlin06:38
eldon_Thank you very much, Qiming:)06:39
Qimingno problem06:39
eldon_Now I got a deep understanding of it, thank you.06:39
eldon_have you ever encountered such problem when running tox?06:41
eldon_ERROR: InvocationError: '/media/eldon/work/git/senlin/.tox/functional/bin/ostestr --slowest'06:42
Qimingtry:06:42
Qimingtox -r -e functional06:42
eldon_the same problem06:47
eldon_Details: Credentials are: {'username': None, 'project_name': None, 'user_id': None, 'tenant_name': None, 'tenant_id': None, 'project_id': None} Password is not defined.06:47
openstackgerritYanyan Hu proposed openstack/senlin: Add version support to schema and spec  https://review.openstack.org/34870906:57
eldon_:q06:59
*** zhenguo has joined #senlin07:04
Qimingokay07:04
Qimingwhen you run functional test07:04
Qimingyou will need to source your senlinrc file07:04
*** yanyanhu has quit IRC07:17
*** jdandrea has joined #senlin07:25
*** jdandrea_ has quit IRC07:29
openstackgerritOpenStack Proposal Bot proposed openstack/senlin-dashboard: Imported Translations from Zanata  https://review.openstack.org/34816207:31
openstackgerritQiming Teng proposed openstack/senlin: Move some config options into senlin_api group  https://review.openstack.org/34877208:01
openstackgerritQiming Teng proposed openstack/senlin: Move some config options into senlin_api group  https://review.openstack.org/34877208:05
openstackgerritQiming Teng proposed openstack/senlin: Move some config options into senlin_api group  https://review.openstack.org/34877208:45
openstackgerritYanyan Hu proposed openstack/senlin: Add version support to schema and spec  https://review.openstack.org/34870908:50
*** yanyanhu has joined #senlin08:51
openstackgerritQiming Teng proposed openstack/senlin: User scenario documentation for autoscaling (1)  https://review.openstack.org/34879809:15
openstackgerritQiming Teng proposed openstack/senlin: Move some config options into senlin_api group  https://review.openstack.org/34877209:20
*** yanyanhu has quit IRC09:20
*** Liuqing has quit IRC10:03
*** chenfei has quit IRC10:08
*** Qiming has quit IRC10:08
*** chenfei has joined #senlin10:13
*** Qiming has joined #senlin10:13
*** elynn has quit IRC10:16
openstackgerritShan Guo proposed openstack/senlin: command in doc is incorrect  https://review.openstack.org/34883010:23
*** Qiming has quit IRC10:25
*** chenfei has quit IRC10:25
*** chenfei_ has joined #senlin10:25
*** Qiming has joined #senlin10:27
*** Qiming has quit IRC10:46
*** chenfei_ has quit IRC10:46
*** chenfei has joined #senlin10:51
*** Qiming has joined #senlin10:52
*** chenfei has quit IRC10:56
*** Qiming has quit IRC10:57
openstackgerritQiming Teng proposed openstack/senlin: Move some config options into senlin_api group  https://review.openstack.org/34877211:00
*** Qiming has joined #senlin11:01
*** chenfei has joined #senlin11:02
*** Liuqing has joined #senlin12:20
*** Drago has joined #senlin14:05
*** Drago has quit IRC14:05
*** Drago has joined #senlin14:05
*** Liuqing has quit IRC15:33
*** zzxwill has quit IRC16:11
*** zzxwill_ has quit IRC16:11
*** Liuqing has joined #senlin16:21
*** Liuqing has quit IRC16:44
*** Liuqing has joined #senlin16:47
*** Liuqing has quit IRC16:54
*** Liuqing has joined #senlin16:55
*** Liuqing has quit IRC17:36

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