Thursday, 2017-07-13

openstackgerritwanghao proposed openstack/mogan master: Refactor exception raise by using mogan exception  https://review.openstack.org/47597100:49
zhenguomorning mogan!00:51
zhenguoliusheng: I cleaned up the 'small' flavor in tempest with this https://review.openstack.org/#/c/482430/00:52
wanghaomorning!00:52
*** litao__ has joined #openstack-mogan00:53
openstackgerritliusheng proposed openstack/python-moganclient master: Remove log translations  https://review.openstack.org/48282500:56
*** liujiong has joined #openstack-mogan01:26
openstackgerritMerged openstack/mogan master: Remove old flavor test mock  https://review.openstack.org/48252601:28
openstackgerritliusheng proposed openstack/mogan master: Update the quickstart doc about spawning server  https://review.openstack.org/48315101:37
liushenglitao__: please see the commit message of the moganclient patch01:51
openstackgerritliusheng proposed openstack/mogan master: Update the quickstart doc about spawning server  https://review.openstack.org/48315101:56
zhenguohi all, the weekly meeting will happen soon, please move to #openstack-meeting01:59
shaohe_fengmorning zhenguo01:59
zhenguoshaohe_feng: o/02:00
*** zhuli_ has quit IRC02:01
openstackgerritXinran WANG proposed openstack/mogan master: Add filters to server list API  https://review.openstack.org/47332302:04
litao__liusheng: OK03:01
liushengzhenguo: hi zhenguo, I am debuging the detach/attach tempest test, do you konw if the attach vif in Ironic is a async operation ?03:02
zhenguoliusheng: seems not03:02
zhenguoliusheng: I remember it's a call instead of cast03:02
zhenguoliusheng: let me check03:02
liushengzhenguo: according to the situation, after attaching call return, seems the vif didn't be attached immediatelly03:03
zhenguoliusheng: https://github.com/openstack/ironic/blob/master/ironic/conductor/rpcapi.py#L92803:04
zhenguoliusheng: maybe some bug with attaching interface?03:05
liushengzhenguo: that is strange, but if we wait seconds after attaching then detach, the test is ok03:05
zhenguoliusheng: seems it is not always fail03:07
liushengzhenguo: yes, sometimes, the detaching step of the test returns the interface notfound of the server03:08
liushengzhenguo: just tested with ironic vif-attach and vif-detach command at same time, it is ok03:30
zhenguoliusheng: wrt https://review.openstack.org/#/c/482430/ , how about adding specific flavor in another patch, the purpose of the patch is change to use IRONIC_RESOURCE_CLASS, and keep the original way of testing03:30
zhenguoliusheng: there's a TODO for you to add specific flavors :D03:31
liushengzhenguo: yes, I am ok, and have replied you, you can leave the TODO, if you don't fix it, please don't remove it. hah03:31
zhenguoliusheng: sure03:32
zhenguoliusheng: do you think we should keep the FlavorNotFound exception?03:35
liushengzhenguo: I think we should, we need to consider run tempest if there isn't a default flavor03:37
zhenguoliusheng: ok, will add it back03:37
liushengzhenguo: the exception an show explicit info of this situation03:37
openstackgerritZhenguo Niu proposed openstack/mogan master: Use IRONIC_USE_RESOURCE_CLASSES in devstack plugin  https://review.openstack.org/48243003:39
*** wanghao_ has joined #openstack-mogan04:20
*** wanghao has quit IRC04:21
zhenguoshaohe_feng: please have a look at this again https://review.openstack.org/#/c/482430/05:01
openstackgerritZhenguo Niu proposed openstack/mogan master: Add indexes to tables  https://review.openstack.org/48320305:48
*** zhuli_ has joined #openstack-mogan06:14
zhenguoliusheng: any new clues about the attach-detach-test-case?06:44
liushengzhenguo: no :(06:56
liushengzhenguo: still debuging06:57
zhenguoliusheng: hah06:57
*** wanghao has joined #openstack-mogan07:05
*** wanghao_ has quit IRC07:08
zhenguoliusheng, shaohe_feng, wanghao, litao__, zhangyang: https://etherpad.openstack.org/p/mogan-cfp-sydney07:21
zhenguoplease paste your ideas there, thanks07:22
openstackgerritZhenguo Niu proposed openstack/mogan master: Add indexes to tables  https://review.openstack.org/48320307:43
*** wanghao has quit IRC07:48
*** wanghao has joined #openstack-mogan07:49
wanghaozhenguo: sure07:51
zhenguowanghao: thanks08:10
litao__liusheng: If we needn't use '_', should we remove '_' in i18n.py file?08:20
liushenglitao__: why we needn't "_" ?08:20
liushenglitao__: we have use _() in client code08:21
litao__liusheng: But in your patch, you remove the '_'  in you log message08:26
liushenglitao__: don't need to translate log, but _() is not only used in log translation08:27
liushenglitao__: is also used in exception message08:28
liushenglitao__: or help messages08:28
litao__liusheng: got it08:32
liushenglitao__: thanks08:32
zhenguoliusheng: please remmeber to upadte the placement patch08:37
liushengzhenguo: yes, I am modifying08:38
zhenguoliusheng: ok, wrt attach-detach, maybe just skip it or add a sleep and improve it later08:38
liushengzhenguo: hmm, maybe add a sleep and a TODO, and when I debuging the test, seems another problem occurd08:39
zhenguoliusheng: what?08:39
liushengzhenguo: if I create a server and then delete server, then, I run the tempest, it will fail and say the server not fonud, but the notfound server is the previous deleted server08:40
liushengzhenguo: it is strange08:40
zhenguoliusheng: in local env?08:41
liushengzhenguo: yes08:41
zhenguoliusheng: ...08:41
liushengzhenguo: seems because some unknown reason, the "server = self._resource or self._get_resource(server_uuid)" in controller.py cache the previous server08:41
liushengzhenguo: just guess so08:42
liushengzhenguo: s/controller.py/servers.py08:42
zhenguoliusheng: the uuid is same?08:42
liushengzhenguo: yes, it uuid is the previous deleted server08:44
liushengzhenguo: but if I restart mogan-api and mogan-engine after delete the server, it is ok08:44
liushengzhenguo: so I guess may it can cache the previous server's uuid08:44
zhenguoliusheng: seems yes08:46
zhenguoliusheng: not sure what's the reason we use the cache08:49
zhenguoliusheng: what happen if you manually delete then create and delete?08:52
liushengzhenguo: it seems only occurd in tempest08:52
liushengzhenguo: but I don't met that previously08:53
openstackgerritliusheng proposed openstack/mogan master: Clean the compute_node and compute_port objects and db interfaces  https://review.openstack.org/47840608:55
openstackgerritliusheng proposed openstack/mogan master: Get rid of listing availability zone api and clean some legacy code  https://review.openstack.org/47840308:55
openstackgerritliusheng proposed openstack/mogan master: Clean the methods about updating node resources to Mogan db  https://review.openstack.org/47835708:55
openstackgerritliusheng proposed openstack/mogan master: Get rid of node listing api of Mogan  https://review.openstack.org/47836108:55
openstackgerritliusheng proposed openstack/mogan master: Refactor the scheduler to use placement service  https://review.openstack.org/47742608:55
zhenguoliusheng: seems the _get_resouce will be used by policy authorize08:58
zhenguoliusheng: then it will cache the resource, so seems there's no problems08:58
liushengzhenguo: yes08:58
liushengzhenguo: no, in my situation, it will cache the server of last request08:58
liushengzhenguo: not very sure, will git later08:59
zhenguoliusheng: only for tempest?08:59
liushengzhenguo: seems ye08:59
zhenguoliusheng: the tempest will create then delete the server, right?09:14
zhenguoliusheng: but because you create and delete a server before, so it will have a cache now09:14
liushengzhenguo: yes, but Notfound error occured when detach the interface, before deleting09:15
zhenguoliusheng: detach interface?09:15
liushengzhenguo: and the Notfond server isn't the server created by this tempest test09:15
liushengzhenguo: create a server -- > attach interface --> detach interface --> delete server09:16
zhenguoliusheng: it's the tempest workflow right?09:16
liushengzhenguo: yes09:16
zhenguoliusheng: without atatch/detach it will be ok?09:17
liushengzhenguo: seems, yes09:17
zhenguoliusheng: seems I got the reason09:18
zhenguoliusheng: authorize_wsgi have a need_target parameter09:19
zhenguoliusheng: only if it's True we will do _get_resouce to update the cache09:19
zhenguoliusheng: so the parameter on policy check for attach_interface should change to True09:19
liushengzhenguo: hmm, it is possible09:20
zhenguoliusheng: you can try09:20
liushengzhenguo: I confuse me a long time :(09:20
liushengzhenguo: ok, let me update the placement patch firstly09:21
zhenguoliusheng: ok, I will update the detach patch. hah09:21
liushengzhenguo: thanks09:21
openstackgerritliusheng proposed openstack/mogan master: Clean the compute_node and compute_port objects and db interfaces  https://review.openstack.org/47840609:25
openstackgerritliusheng proposed openstack/mogan master: Get rid of listing availability zone api and clean some legacy code  https://review.openstack.org/47840309:25
openstackgerritliusheng proposed openstack/mogan master: Clean the methods about updating node resources to Mogan db  https://review.openstack.org/47835709:25
openstackgerritliusheng proposed openstack/mogan master: Get rid of node listing api of Mogan  https://review.openstack.org/47836109:25
openstackgerritliusheng proposed openstack/mogan master: Refactor the scheduler to use placement service  https://review.openstack.org/47742609:25
liushengzhenguo: ^^ I have updated the placement patch as we dicussed09:26
zhenguoliusheng: thanks, seems it almost ready to land, lol09:26
liushengzhenguo: hah, you can test and review again09:27
openstackgerritZhenguo Niu proposed openstack/mogan master: Detach interface for server  https://review.openstack.org/46176709:29
zhenguoliusheng: ok, will test when my env is ready09:29
liushengzhenguo: thanks, let me run again with your newest patchset09:30
zhenguoliusheng: hah09:30
*** wanghao has quit IRC09:38
*** wanghao has joined #openstack-mogan09:38
zhenguoliusheng: seems I always need to run unstack.sh twice to kill the  mogan services09:38
*** wanghao has quit IRC09:38
liushengzhenguo: why? I didn't found that09:39
zhenguoliusheng: not sure, hah09:39
*** wanghao has joined #openstack-mogan09:39
* zhenguo brb09:39
*** wanghao has quit IRC09:39
*** wanghao has joined #openstack-mogan09:40
*** wanghao has quit IRC09:40
*** wanghao has joined #openstack-mogan09:41
*** wanghao has quit IRC09:41
*** wanghao has joined #openstack-mogan09:41
*** wanghao has quit IRC09:42
*** wanghao has joined #openstack-mogan09:42
*** wanghao has quit IRC09:42
*** wanghao has joined #openstack-mogan09:43
*** liusheng has quit IRC09:43
*** wanghao has quit IRC09:43
*** liusheng has joined #openstack-mogan09:44
*** liusheng has quit IRC09:44
*** liusheng has joined #openstack-mogan09:45
liushengzhenguo: seems your updates or the detack/attach patch solve my problem09:45
*** wanghao_ has joined #openstack-mogan09:48
zhenguoliusheng: hah09:52
zhenguoliusheng: need to get rid of the False parameter09:52
liushengzhenguo: I should told you this problem early, hah09:54
liushengzhenguo: it confuse me a long time09:54
zhenguoliusheng: hah, I also don't quite familiar with that either,09:54
zhenguoliusheng: it's done by shaohe_feng09:54
liushengzhenguo: oh, but I couldn't think aout that09:55
zhenguoliusheng: hah09:55
zhenguoliusheng: please help to look at this https://review.openstack.org/#/c/483203/ when you got time09:55
zhenguoliusheng: after dinner, my env will be ready for testing the placement patches.09:56
* zhenguo away09:56
*** liujiong has quit IRC10:22
openstackgerritMerged openstack/mogan master: Use IRONIC_USE_RESOURCE_CLASSES in devstack plugin  https://review.openstack.org/48243010:26
zhenguoliusheng: seems the detach patch need to be rebased as the project-config change10:57
openstackgerritZhenguo Niu proposed openstack/mogan master: Detach interface for server  https://review.openstack.org/46176710:57
openstackgerritliusheng proposed openstack/mogan master: Support running api under uWSGI  https://review.openstack.org/48205711:15
zhenguoliusheng: not sure if the server_ids and nodes order will be same between in scheduler and in engine manager11:36
zhenguoliusheng: we set allocations based on that, and then on engine manager we also use the list to assgin node to server11:37
liushengzhenguo: I confirmed that, it is in same order11:40
zhenguoliusheng: always in the same order?11:41
zhenguoliusheng: if so, it's ok11:41
liushengzhenguo: zhenguo yes11:42
zhenguoliusheng: I found you implement a delete _allocations_fo_resource_providers11:42
liushengzhenguo: yes, I think placement should provide the api. hah11:42
zhenguoliusheng: liusheng: hah11:43
zhenguoliusheng: the patch LGTM, only one thing left, please check my comments11:49
zhenguoliusheng: when reverting, seems we should also not delete the allocations11:49
openstackgerritliusheng proposed openstack/mogan master: Refactor the scheduler to use placement service  https://review.openstack.org/47742611:51
liushengzhenguo: done11:52
zhenguoliusheng: thanks11:52
zhenguoliusheng: the detach patch just passed the gate, please help to +2 again11:53
liushengzhenguo: done, hah11:53
zhenguoliusheng: hah11:53
* zhenguo away11:54
*** litao__ has quit IRC11:59
openstackgerritMerged openstack/mogan master: Update the quickstart doc about spawning server  https://review.openstack.org/48315112:03
openstackgerritMerged openstack/mogan master: Detach interface for server  https://review.openstack.org/46176712:29
openstackgerritOpenStack Proposal Bot proposed openstack/mogan master: Updated from global requirements  https://review.openstack.org/48333412:40
*** liusheng has quit IRC17:25
*** liusheng has joined #openstack-mogan17:26
*** harlowja has quit IRC17:27
*** shaohe_feng has quit IRC18:36
*** shaohe_feng has joined #openstack-mogan18:37
*** harlowja has joined #openstack-mogan18:54
*** harlowja has quit IRC20:19
*** harlowja has joined #openstack-mogan20:22

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