Wednesday, 2016-11-09

openstackgerritZhenguo Niu proposed openstack/nimble: Add object test utils  https://review.openstack.org/37948400:09
openstackgerritMerged openstack/nimble: Updated from global requirements  https://review.openstack.org/39519000:12
*** yuntongjin has joined #openstack-nimble01:33
*** lei-zh has joined #openstack-nimble01:46
openstackgerritZhenguo Niu proposed openstack/nimble: Add launched_at to instance API object and update doc  https://review.openstack.org/39528602:37
openstackgerritZhong Luyao proposed openstack/nimble: Use sqlalchemyutils.model_query  https://review.openstack.org/39177303:04
*** yuntongjin has quit IRC03:18
zhenguoshaohe_feng: are you around?03:20
*** lei-zh has quit IRC03:54
*** RuiChen has quit IRC04:19
*** yuntongjin has joined #openstack-nimble04:32
shaohe_fengzhenguo: yes04:54
shaohe_fengzhenguo: I just see you have add the db utils04:54
shaohe_fengzhenguo: I have update it just now. And find it merged.  I will file a patch for add a context and give a simple test case for it.04:56
shaohe_fengzhenguo: then others can add their own db_test cases.04:56
zhenguoshaohe_feng: thanks04:56
zhenguoshaohe_feng: and I just commented this https://review.openstack.org/#/c/379484/3/nimble/tests/unit/__init__.py, not sure why ironic still keep eventlet imported there04:57
zhenguoshaohe_feng: I am preparing the api test base infras, need object utils merged first :)04:58
shaohe_fengzhenguo: yes, need to  look into it.04:59
zhenguoshaohe_feng: ok, thanks04:59
zhenguoshaohe_feng: I would like to hold an irc meeting this week, please feel free to add agenda here https://wiki.openstack.org/wiki/Meetings/Nimble05:00
shaohe_fengzhenguo: let me look into it.05:00
zhenguoshaohe_feng: and we have to choose a feasible time for our meeting05:01
zhenguohi all, please feel free to add agenda here https://wiki.openstack.org/wiki/Meetings/Nimble for our first irc meeting05:02
openstackgerritShaoHe Feng proposed openstack/nimble: Add context parameter for DB test utils  https://review.openstack.org/37948405:05
shaohe_fengzhenguo: I have update the DB util patch. add a text case. And the text case pass.05:07
shaohe_fengzhenguo: So others can base on this util, add their own patch.05:07
zhenguoshaohe_feng: thanks05:07
shaohe_fengzhenguo: 3 places update.05:08
shaohe_fengzhenguo: 1. extra should be a text05:08
shaohe_feng2. need a context.05:08
zhenguoshaohe_feng: ok, I find we don't use extra field anywhere now, should we add it to API instance object?05:09
shaohe_feng3.  we use instance_create  to create a instance.05:09
shaohe_fengzhenguo: but ironic use create_node. the create in prefix.05:09
zhenguoshaohe_feng: and seems we don't have an API for updating instance now :(05:09
zhenguoshaohe_feng: yes, my mistake05:10
shaohe_fengzhenguo: not sure. But there is a extra in db. anyway, we add it. There is no harmful in utils05:11
shaohe_fengzhenguo: $ python -m testtools.run  nimble.tests.unit.db.test_instances05:11
zhenguoshaohe_feng: yes, I just considered to use it05:11
shaohe_fengzhenguo:  Use this command to check the only db testcase.05:12
zhenguoshaohe_feng: ok05:12
shaohe_fengzhenguo: just used to create check utils can works well. :) and an example for others05:13
zhenguoshaohe_feng: ok, I will push the api base tests ASAP05:14
* zhenguo away05:24
*** lei-zh has joined #openstack-nimble05:26
openstackgerritMerged openstack/nimble: Add context parameter for DB test utils  https://review.openstack.org/37948405:30
openstackgerritMerged openstack/nimble: Updated from global requirements  https://review.openstack.org/39534105:31
openstackgerritMerged openstack/nimble: Add launched_at to instance API object and update doc  https://review.openstack.org/39528605:36
openstackgerritShaoHe Feng proposed openstack/nimble: Add object test utils  https://review.openstack.org/39541106:12
openstackgerritShaoHe Feng proposed openstack/nimble: Add object test utils  https://review.openstack.org/39541106:14
zhenguoshaohe_feng: please see comments here https://review.openstack.org/#/c/395411/206:18
shaohe_fengzhenguo: yes. I have check nimble use PBR06:21
zhenguoshaohe_feng: so we don't need that anymore, right?06:21
shaohe_fengzhenguo: And I think, the current object test do not need eventlet.06:21
shaohe_fengzhenguo: only wsgi_server and rpc use eventlet06:22
zhenguoshaohe_feng: yes06:23
shaohe_fengzhenguo: the monkey_patch can help to improve the socket performance.06:23
shaohe_fengzhenguo: so let me remove it.06:23
zhenguoshaohe_feng: ok, thanks06:23
openstackgerritShaoHe Feng proposed openstack/nimble: Add object test utils  https://review.openstack.org/39541106:24
shaohe_fengzhenguo: after these 2 utils, now others can add their focus testcase more easily.06:28
zhenguoshaohe_feng: yes, these utils really helpful :)06:29
zhenguoshaohe_feng: can we merge  the last two patches for multi-tenant support today, so they can focus on test cases work :P06:32
shaohe_fengzhenguo: yes.06:34
zhenguoshaohe_feng: thanks a lot06:34
shaohe_fenglei-zh: any comments on  https://review.openstack.org/#/c/391773/  and https://review.openstack.org/#/c/389562/806:35
shaohe_fenglei-zh: let's we merge it today. But there's a -1 on https://review.openstack.org/#/c/389562/806:35
zhenguoshaohe_feng: seems it needs a reabase as the depends on patch updated.06:36
zhenguos/reabase/rebase06:36
*** Kevin_Zheng has joined #openstack-nimble06:39
shaohe_fengzhenguo: OK. let's rebase06:40
zhenguoKevin_Zheng:  Do you have time to add instance types related UT this week or we have to assign the task to someone else?06:43
Kevin_Zhengzhenguo: I'm working on a nova priority spec this week, not sure I can do it or not06:44
zhenguoKevin_Zheng: ok06:45
*** shihanzhang has quit IRC07:21
shaohe_fengzhenguo: I have check the ironic code  https://github.com/openstack/ironic/blob/master/ironic/db/sqlalchemy/models.py#L14508:09
shaohe_fengzhenguo: the extra = Column(db_types.JsonEncodedDict)08:10
openstackgerritMerged openstack/nimble: Add object test utils  https://review.openstack.org/39541108:10
zhenguoshaohe_feng: so it's not  a string08:10
shaohe_fengzhenguo: https://github.com/openstack/nimble/blob/master/nimble/db/sqlalchemy/models.py#L13608:11
shaohe_fengzhenguo: yes, nimbel code is text.08:11
zhenguoshaohe_feng: haha08:11
zhenguoshaohe_feng: what's type of nova instance extra field?08:11
shaohe_fengzhenguo: but  https://github.com/openstack/nimble/blob/master/nimble/objects/instance.py#L4508:12
shaohe_fengzhenguo: let me check it.08:12
shaohe_fengzhenguo: just a minute08:12
zhenguoshaohe_feng: thanks08:12
shaohe_fengzhenguo: https://github.com/openstack/nova/blob/master/nova/db/sqlalchemy/models.py#L16508:17
shaohe_fengzhenguo: extra_resources for computeNode . it is text08:18
zhenguoshaohe_feng: seems json is more better, users can use it directly08:21
*** yuntongjin has quit IRC08:23
zhenguoshaohe_feng: but we can convert before send it to users, not sure the difference between them in db column type.08:23
openstackgerritZhong Luyao proposed openstack/nimble: Add project filtering for instance api  https://review.openstack.org/38956208:33
*** lei-zh has quit IRC08:42
*** openstackgerrit has quit IRC08:48
*** openstackgerrit has joined #openstack-nimble08:49
*** lei-zh has joined #openstack-nimble09:05
shaohe_fengzhenguo: sure. now the object layer is json, and db layer is text.09:14
shaohe_fengzhenguo: we need to convert json to text by jsonutils.loads/jsonutils.dumps09:14
zhenguoshaohe_feng: ok, and I would like to return extra field with instance details request.09:16
* zhenguo brb09:23
shaohe_fengzhenguo: now I think there is a bug in our code about extra.09:23
shaohe_fengzhenguo: please see this link: http://paste.openstack.org/show/588517/09:24
shaohe_fengzhenguo: now I do use really db instead of mock for instance_get test. It failed.09:24
shaohe_fengzhenguo: just because the extra in object is json, but in db layer is text.09:26
shaohe_fengzhenguo: and maybe none of us has  create a instance with extra.09:26
shaohe_fengzhenguo: another thing I need to talk is about do we use really db for object test or just mock db09:28
shaohe_fengzhenguo: you can see ironic code is that: https://github.com/openstack/ironic/blob/master/ironic/tests/unit/objects/test_node.py#L3809:29
shaohe_fengzhenguo: they are mock db test. but the TestNodeObject is derived from base.DbTestCase.    class TestNodeObject(base.DbTestCase):09:30
shaohe_fengzhenguo: so we can use really DB for test.09:30
shaohe_fengzhenguo: but really DB may be time consumed.09:31
zhenguoshaohe_feng: sorry, I was away for smoking :P09:34
zhenguoshaohe_feng: regarding extra, as it's not in API Instance object, so we can't create instance with extra field09:35
zhenguoshaohe_feng: I think it's ok to use really db like Ironic now, if time consuming is serious, we can change in future.09:37
shaohe_fengshaohe_feng: OK, got it. Thanks.09:39
shaohe_fengzhenguo: so we need to fix this bug. let also use extra as json. just like ironic. https://github.com/openstack/ironic/blob/master/ironic/db/sqlalchemy/models.py#L14509:43
zhenguoshaohe_feng: yes, we need to fix it09:43
shaohe_fengzhenguo: or leave it as text. and convert it from json to text, when object layer pass it to DB layer?09:44
shaohe_fengzhenguo: which one do you prefer?09:44
zhenguoshaohe_feng: seems like change it to json in DB layer is more easier, wdyt?09:44
shaohe_fengzhenguo: yes. It it more easier.09:45
zhenguoshaohe_feng: hah09:45
shaohe_fengzhenguo: but not user we need to update  db migration.09:45
shaohe_fengzhenguo: not user/not sure09:45
zhenguoshaohe_feng: I think we don't need to update db migration before we go public09:46
shaohe_fengzhenguo: OK, got it.09:46
zhenguoshaohe_feng: just like we don't need to update api microversion09:46
shaohe_fengzhenguo: yes. seems to maintain these change is tedious09:47
zhenguoshao_feng: lol09:47
*** RuiChen has joined #openstack-nimble09:48
RuiChenHi nimble folks, I update the Nimble wiki page to add some fresh content, architecture, development tips, devstack link page and some use cases, feel free to check and update it09:51
zhenguoRuiChen: thanks a lot09:52
RuiChenhttps://wiki.openstack.org/wiki/Nimble09:52
RuiChenand all the nimble contributors in the list :-)09:54
RuiChenzhenguo: thank you loading picture for me09:55
zhenguoRuiChen: haha09:55
zhenguoabout the contributors, @shaohe_feng should Zhong Luyao be added?09:56
zhenguoshaohe_feng: does he has an irc nick?09:57
RuiChenfeel free to add yourself :-)09:58
* zhenguo is away for dinner...09:59
* RuiChen dinner time09:59
shaohe_fengzhenguo: maybe she has not register  IRC.10:01
shaohe_fengzhenguo: we should add her.10:01
*** lei-zh has quit IRC10:03
openstackgerritShaoHe Feng proposed openstack/nimble: change the type of extra to JsonEncodedDict  https://review.openstack.org/39550810:22
openstackgerritShaoHe Feng proposed openstack/nimble: Use sqlalchemyutils.model_query  https://review.openstack.org/39177310:32
openstackgerritZhong Luyao proposed openstack/nimble: Use sqlalchemyutils.model_query  https://review.openstack.org/39177310:40
openstackgerritZhong Luyao proposed openstack/nimble: Add project filtering for instance api  https://review.openstack.org/38956210:40
openstackgerritZhenguo Niu proposed openstack/nimble: change the type of extra to JsonEncodedDict  https://review.openstack.org/39550810:52
openstackgerritZhong Luyao proposed openstack/nimble: Use sqlalchemyutils.model_query  https://review.openstack.org/39177311:25
RuiChenshaohe_feng: done, add her into wiki11:40
zhenguoshaohe_feng, RuiChen: a girl?  lol12:01
*** yuntongjin has joined #openstack-nimble12:55
*** yuntongjin has quit IRC13:03
openstackgerritShaoHe Feng proposed openstack/nimble: use really DB for instance object test  https://review.openstack.org/39561014:01
shaohe_fengzhenguo: yes, a girl.14:02
shaohe_fengzhenguo: use really DB instead of mock DB. https://review.openstack.org/39561014:03
openstackgerritShaoHe Feng proposed openstack/nimble: Use sqlalchemyutils.model_query  https://review.openstack.org/39177314:05
shaohe_fengzhenguo: a student from USTC(University of Science and Technology of China)14:07
zhenguoshaohe_feng: got it, haha14:39
openstackgerritZhenguo Niu proposed openstack/nimble: Correct instance type create API response location  https://review.openstack.org/39566415:11
zhenguoshaohe_feng: are you still around?15:15
openstackgerritMerged openstack/nimble: Correct instance type create API response location  https://review.openstack.org/39566415:52
openstackgerritZhenguo Niu proposed openstack/nimble: Add base API tests and utils  https://review.openstack.org/39568816:07
*** RuiChen has quit IRC20:46
*** RuiChen has joined #openstack-nimble20:47

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