Tuesday, 2016-12-20

*** kevinz has joined #openstack-nimble00:56
*** Jeffrey4l has joined #openstack-nimble01:23
openstackgerritliusheng proposed openstack/python-nimbleclient: Support availability zone in nimbleclient  https://review.openstack.org/41169001:43
liushengzhenguo: ^^^01:44
liushengmorning nimble!01:44
*** l4yerffeJ_ has quit IRC01:44
*** l4yerffeJ_ has joined #openstack-nimble01:44
zhenguoliusheng: o/01:54
shaohe_fengmorning01:54
shaohe_fengzhenguo: Where do we remove the retry node when rescheduler?01:55
zhenguoshaohe_feng: you mean the node failed to deploy?01:56
shaohe_fengzhenguo: yes.01:57
shaohe_fengzhenguo: for example. get 10 nodes [node0, .... , node9] candidate.01:57
shaohe_fengzhenguo: first scheduler to node0, failed.01:58
shaohe_fengzhenguo: then, we need to remove the node0, and try node101:58
zhenguoshaohe_feng: currently I remove the node from cache after schedule, but If the cache refresh again and the ironic node doesn't go to a unavailable state, it may have some problems01:59
shaohe_fengzhenguo: I find node0 will be in retry["nodes"]01:59
zhenguoshaohe_feng: yes, it's in scheduler filter_properties02:00
zhenguoshaohe_feng: maybe we can add a check in scheduler, to ignore node which in retry[]02:01
shaohe_fengzhenguo: Then why not set(candidate) - set(retry["nodes"])02:02
zhenguoshaohe_feng: good suggestion02:03
zhenguoshaohe_feng: do you retired the node again on your test?02:05
shaohe_fengzhenguo: retry failed last night. maybe ironic problem.02:06
shaohe_fengzhenguo: I'm trying again.02:07
zhenguoshaohe_feng: I have merged the patch which adds lock when accessing node_cache, and remove the selected node from cache, please try with that02:08
openstackgerritliusheng proposed openstack/python-nimbleclient: Support availability zone in nimbleclient  https://review.openstack.org/41169002:08
shaohe_fengzhenguo: OK. with the new patch.02:10
*** l4yerffeJ__ has joined #openstack-nimble02:14
*** l4yerffeJ_ has quit IRC02:14
openstackgerritliusheng proposed openstack/python-nimbleclient: Support availability zone in nimbleclient  https://review.openstack.org/41169002:15
*** Jeffrey4l has quit IRC02:22
openstackgerritliusheng proposed openstack/python-nimbleclient: Remove python2.4 compatibility support  https://review.openstack.org/41269702:22
openstackgerritliusheng proposed openstack/python-nimbleclient: Add Python 3.5 classifier and venv  https://review.openstack.org/41270002:27
*** yuntongjin has joined #openstack-nimble02:40
*** l4yerffeJ_ has joined #openstack-nimble02:52
shaohe_fengzhenguo:$ git pull                                                                   │02:53
shaohe_fengfatal: Could not read from remote repository.                                                                               │02:53
shaohe_feng                                                                                                                            │02:53
shaohe_fengPlease make sure you have the correct access rights                                                                         │02:53
shaohe_fengand the repository exists.02:53
*** l4yerffeJ__ has quit IRC02:55
liushengshaohe_feng: maybe just retry02:56
zhenguoshaohe_feng, liusheng: sorry, I am in a internal meeting, will be back soon02:57
* zhenguo meeting02:57
shaohe_fengzhenguo: liusheng: I'm also in an internal meeting. :)03:01
liushengshaohe_feng: :)03:03
*** Jeffrey4l has joined #openstack-nimble03:14
zhenguoshaohe_feng, liusheng: I'm back03:16
zhenguoshaohe_feng, liusheng: but maybe I have to support a POC next few days :(03:17
liushengzhenguo: :(, will you have a business trip ?03:21
zhenguoliusheng: no, just support in office03:21
liushengzhenguo: that will spend your much time03:23
zhenguoliusheng: I think it is, yes03:24
liushengzhenguo: it is a pity, PTL will AFK :)03:26
zhenguoliusheng: lol,03:28
zhenguoliusheng: I will try to keep online,03:28
liushengzhenguo: I will wait to captrue to review, hah03:30
*** l4yerffeJ_ has quit IRC03:46
*** l4yerffeJ_ has joined #openstack-nimble03:46
*** yuntongjin has quit IRC04:39
*** yuntongjin has joined #openstack-nimble05:11
*** yuntongjin has quit IRC05:41
shaohe_fengliusheng: zhenguo: OK06:56
shaohe_fengping06:56
shaohe_fengdo nimble support availability_zone?06:56
liushengshaohe_feng: yes06:56
zhenguoshaohe_feng: yes06:56
shaohe_fengOK. an new API?06:57
shaohe_fenghow do we create a availability_zone06:57
shaohe_fengby a API?06:57
shaohe_fengliusheng: zhenguo: I'm write a summary to JF. :)06:57
zhenguoshaohe_feng: we get az from ironic properties06:58
shaohe_fengzhenguo: How do we set the az?06:58
shaohe_fengzhenguo: we need to set az for different nodes.06:58
zhenguoshaohe_feng: set availability_zone='xxx' to ironic node properties like instance type06:59
shaohe_fengzhenguo: liusheng: nimble support 3 filters: availability_zone, capabilities_filter, instance_type06:59
liushengzhenguo, shaohe_feng may you can also help to review the as support in client side: https://review.openstack.org/#/c/411690/ :)06:59
liushengs/as/az/06:59
shaohe_fengzhenguo: liusheng: I do not see concrete weight in nimble.07:00
shaohe_fengliusheng: OK. will do it after the summary.07:01
shaohe_fengliusheng: good.07:01
shaohe_fengliusheng: it is availability zone  support.07:01
liushengzhenguo: yes07:02
liushengshaohe_feng: yes07:02
zhenguoliusheng: ok, will make sure them be merged in by today :)07:02
zhenguoshaohe_feng: yes, no weight currently, and seems not needed07:02
liushengzhenguo: thank you sir! lol07:02
zhenguoliusheng: hah07:02
zhenguoshaohe_feng: maybe need weight to select nodes with different ports, like one has 2 ports and others has more than 2 ports07:03
*** yuntongjin has joined #openstack-nimble07:04
* zhenguo away07:05
shaohe_fengzhenguo: yes. maybe we also need to filter for  ports07:05
shaohe_fengliusheng: multi-ports filter maybe need.07:06
liushengshaohe_feng: good idea, that maybe future task07:07
shaohe_fengliusheng: yes. In plan.07:07
shaohe_fengliusheng: so the tempest tests has support, right?07:13
liushengshaohe_feng: it is still be stucked07:14
liushengshaohe_feng: I mean the instance creation tempest07:14
liushengshaohe_feng: the instance_tpye tests is ok07:14
shaohe_fengliusheng: Got it. Thanks.07:15
shaohe_fengzhenguo: liusheng: $ vim doc/source/api.rst07:23
shaohe_fengI only get the instance related API description07:24
shaohe_fengon instance-type.07:24
shaohe_fengno instance-type07:24
liushengshaohe_feng: seems it is missing07:26
shaohe_fengliusheng: zhenguo: http://paste.openstack.org/show/592868/07:40
shaohe_fengabout the summary07:40
shaohe_fengany supplement?07:41
shaohe_fengenrich?07:41
liushengactions of instance.(create, delete, list, show) -- also support update07:43
liushengshaohe_feng: and az support in api07:43
shaohe_fengliusheng: Thanks. also update the https://etherpad.openstack.org/p/nimble-task07:47
shaohe_fengliusheng: we need to update the docs. and this link can help remider us to do it.07:47
liushengshaohe_feng: ok, I will pick the task if I have enough time :)07:48
openstackgerritliusheng proposed openstack/nimble: Use oslo context instead of the native context implementation  https://review.openstack.org/41235007:55
openstackgerritliusheng proposed openstack/nimble: Remove unused print statement  https://review.openstack.org/41285208:01
shaohe_fengliusheng: for the  context, it maintains a session  for sqlalchemy08:09
liushengshaohe_feng: sorry, what's that mean08:10
shaohe_fengliusheng: https://github.com/openstack/nimble/blob/master/nimble/db/sqlalchemy/api.py#L6908:11
shaohe_fengliusheng: can we use the session.08:11
shaohe_fengliusheng: I go through nova's code, find nova's ontext has a session field.08:11
shaohe_fengliusheng: Guess oslo context also has a session.08:12
shaohe_fengliusheng: let me show the nova code.08:12
liushengshaohe_feng: there isn't a session in oslo_context08:14
shaohe_fengliusheng: https://github.com/openstack/nova/blob/master/nova/db/sqlalchemy/api.py#L57108:15
shaohe_fengliusheng: got it. nova store the session in context.08:15
shaohe_fengliusheng: I do not know the benefit.08:16
liushengshaohe_feng: I am not sure they are same things, but seems nimble don't use that08:18
liushengshaohe_feng: is the "context" in Nova is RequestContext object?08:18
shaohe_fengliusheng: yes, it is.08:22
shaohe_fengliusheng: https://github.com/openstack/nova/blob/master/nova/context.py#L6408:22
shaohe_fengzhenguo: liusheng: ^08:22
shaohe_fengthis code, it use @enginefacade.transaction_context_provider to fill the session in RequestContext08:23
liushengshaohe_feng: hmm, seems it is. not sure is it benifit for Nimble08:24
shaohe_fengliusheng: not sure, the session can be across the components in nova.08:27
liushengshaohe_feng: may we can improve that if we really think it is valuable in the future, for now, if not necessary, not by entity, what do you think ? lol08:30
shaohe_fengliusheng: yes, agree. We have more important things to do.08:32
liushengshaohe_feng: agree!08:33
openstackgerritliusheng proposed openstack/nimble: Use oslo context instead of the native context implementation  https://review.openstack.org/41235008:46
*** kevinz has quit IRC09:05
*** kevinz has joined #openstack-nimble09:05
liushengshaohe_feng, zhenguo how about just remove nimble/doc/source/api.rst09:23
shaohe_fengliusheng: sames it is OK.09:25
liushengshaohe_feng, zhenguo since we have a detailed api-ref09:25
shaohe_fengliusheng: yes.09:29
zhenguoliusheng, shaohe_feng: it's just a design API instruction,  not all API there are implemented09:30
liushengzhenguo: you mean the api.rst, but it only include the instance APIs, and every api description only includes a method and url.  the api-ref is more detailed09:32
liushengzhenguo: we also have api-sampels09:32
liushengzhenguo, shaohe_feng can you take a look at https://review.openstack.org/#/c/412350/, since it is easy to conflict with others changes, lol09:33
zhenguoliusheng: yes, it's just a list of API that we want to implement, some of them are not exist now09:35
zhenguoliusheng: we should remove it after all it's implemented09:35
liushengzhenguo: but the doc doesn't include instnace type related, az related APIs09:36
liushengzhenguo: it doesn't like a api work todo list09:36
zhenguoliusheng: yes, hah, and you can remove the API which already exist09:36
liushengzhenguo: do yo prefer to supplyign than deletion ?09:37
zhenguoliusheng: I want to have a file to list all non-implemented APIs09:37
liushengzhenguo: if for this reason, this file need to be delted, hah09:38
liushengzhenguo: it is a subset of the implemented APIs09:38
liushengzhenguo: and may not be this name "api.rst"09:38
zhenguoliusheng: hah09:38
liushengzhenguo: lol09:38
zhenguoliusheng: yes, it seems some kind of strange in our repo,09:39
zhenguoliusheng: maybe you can just delete them and create a etherpad to list APIs we want to implement in future09:39
liushengzhenguo: sure, or just add a *api* section in our existed etherpad or wiki :)09:42
zhenguoliusheng: ok,09:43
zhenguoliusheng, shaohe_feng: wrt https://review.openstack.org/#/c/412852/ , does the log print always or only when there are some errors happend with the tests?09:46
liushengzhenguo: will always print09:47
shaohe_fengzhenguo: $ git show b2b241f085d208450614d6a7b4fcdeabb2a610ad09:49
shaohe_fengzhenguo: you add it. The commit does not tell us the reason you add it?09:50
*** kevinz has quit IRC09:56
shaohe_fengzhenguo: liusheng: go home10:15
zhenguoliusheng: in fact, that LOG copied from ironic, but I'm OK with removing it, we can add it manually if some errors happened10:39
liushengzhenguo: ok10:39
zhenguoshaohe_feng: yes, but seems 'Add update instance support' is enough :P10:40
*** yuntongjin has quit IRC10:45
openstackgerritZhenguo Niu proposed openstack/python-nimbleclient: Add support for setting power state for instance  https://review.openstack.org/41172911:22
openstackgerritMerged openstack/nimble: Remove unused print statement  https://review.openstack.org/41285211:24
openstackgerritMerged openstack/python-nimbleclient: Add support for updating instance  https://review.openstack.org/41159111:24
openstackgerritMerged openstack/python-nimbleclient: Support availability zone in nimbleclient  https://review.openstack.org/41169011:25
openstackgerritMerged openstack/nimble: Remove valueless api.rst in doc/source  https://review.openstack.org/41297511:34
*** l4yerffeJ_ has quit IRC12:20
*** l4yerffeJ_ has joined #openstack-nimble12:20
openstackgerritliusheng proposed openstack/nimble: Fix the instance type extra related APIs  https://review.openstack.org/41305312:20
openstackgerritliusheng proposed openstack/nimble: Correct the api samples of type extra APIs  https://review.openstack.org/41305612:29
openstackgerritliusheng proposed openstack/nimble: Correct the api samples of type extra APIs  https://review.openstack.org/41305612:33
*** yuntongjin has joined #openstack-nimble12:34
*** yuntongjin has quit IRC13:29
*** l4yerffeJ has joined #openstack-nimble21:33
*** l4yerffeJ_ has quit IRC21:34
*** Jeffrey4l has quit IRC21:35
*** Jeffrey4l has joined #openstack-nimble21:47

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