Tuesday, 2016-11-01

shaohe_fengzhenguo: seems something wrong with nimble gate03:10
zhenguoshaohe_feng: ImportError: No module named vine.five03:12
shaohe_fengzhenguo: yes.03:12
shaohe_fengzhenguo: who maintain the gate?03:12
shaohe_fengzhenguo: maybe gate need upgrade.03:13
zhenguoshaohe_feng: seems all projects gate broken?03:13
shaohe_fengzhenguo: do you means, same with nuetron and cinder and others?03:14
shaohe_fengshihanzhang: ping?03:16
zhenguoshaohe_feng: I just checked, other projects don't have this problems03:16
zhenguoshaohe_feng: not sure what's vine.five...03:16
shaohe_fengzhenguo: we need to look into this problem.03:16
zhenguoshaohe_feng: sure03:17
zhenguoshaohe_feng: do you know which patch introduced the problems03:17
shaohe_fengzhenguo: let me check it03:18
zhenguoshaohe_feng: thanks03:19
shaohe_fengzhenguo: in my env, kombu.VERSION,  version_info_t(major=3, minor=0, micro=37, releaselevel='', serial='')03:24
shaohe_fengzhenguo: and kombu.five does not import vine.five03:25
zhenguoshaohe_feng: I can't connect my env now,03:25
shaohe_fengzhenguo: can you access the gate?03:25
shaohe_fengzhenguo: can you check the which version of kombu?03:25
zhenguoshaohe_feng: let me check03:25
shaohe_fengzhenguo: and run:  $ python -c "import kombu; print kombu.VERSION"03:26
zhenguoshaohe_feng: I can't connect my vm :(03:27
shaohe_fengzhenguo: and run $ python -c "import kombu; print globals()['kombu']"03:28
shaohe_fengzhenguo: open the kombu/five.py, check does it import vine.five ?03:29
zhenguoshaohe_feng: maybe shihanzhang can help to do this, @shihanzhang, why I can't connect my VM?03:31
shihanzhangzhenguo, your VM in xi'an has problem?03:43
zhenguoshihanzhang: yes, can't connect now, I just talked with zhaobo :)03:44
shihanzhangok, he will help you to check it.03:45
*** Kevin_Zheng has joined #openstack-nimble06:16
*** lei-zh has joined #openstack-nimble07:46
openstackgerritZhenguo Niu proposed openstack/nimble: Use upper constraints  https://review.openstack.org/39206007:47
lei-zhso where is the tox install command inherited from?07:50
lei-zhtheir gate must be failing either:)07:51
zhenguoshaohe_feng, lei-zh: the gate problems will be addressed with https://review.openstack.org/39206007:53
*** lei-zh has left #openstack-nimble07:56
*** lei-zh has joined #openstack-nimble07:56
openstackgerritMerged openstack/nimble: Use upper constraints  https://review.openstack.org/39206007:57
zhenguoshaohe_feng: I find you add a class._resource for authorization, but if there are multi operations running at the same time, like A wants to power on node1 and B wants to power off node2, how would you keep _resource as you expected?08:16
* zhenguo brb08:22
*** lei-zh has quit IRC08:43
*** lei-zh has joined #openstack-nimble08:49
*** lei-zh has quit IRC09:10
*** lei-zh has joined #openstack-nimble09:20
shaohe_fengzhenguo: yes. _resource is class attribute. But very operations, there will be a instance of the controller. And you can see very _resource call is instance attribute instead of class attribute.09:26
shaohe_fengzhenguo: I will do a example for you.09:27
zhenguoshaohe_feng: ok, will check when my env is ready :)09:28
shaohe_fengzhenguo: http://paste.openstack.org/show/587520/09:31
shaohe_fengzhenguo: I have check the upper-constraints  https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt09:34
shaohe_fengzhenguo: It use kombu===3.0.3709:34
shaohe_fengzhenguo: it the same version with my evn.09:35
shaohe_fengzhenguo: so it will not import vine.five09:35
zhenguoshaohe_feng: yes, but my new env use kombu 4.009:35
zhenguoshaohe_feng: which introduce vine.five09:36
shaohe_fengzhenguo: so when will nimble will upgrade to kombu 4.0?09:37
zhenguoshaohe_feng: I have fixed the probelems to keep use upper-constraints09:38
zhenguoshaohe_feng: maybe when oslo.messaging fixed the dependency problems09:38
zhenguoshaohe_feng: we don't directly depends on kombu09:39
shaohe_fengzhenguo: OK. let oslo.messaging upgrade it.09:39
shaohe_fengzhenguo: https://review.openstack.org/#/c/391773/209:39
shaohe_fengzhenguo: This is Zhong Luyao and lei-zh 's patch for multil tenant.09:40
zhenguoshaohe_feng: ok, will review later :)09:40
shaohe_fengzhenguo: You can see we add a new parameter "contex" for model_query09:40
shaohe_fengzhenguo: but we just get project_id from "contex"  in model_query.09:41
shaohe_fengzhenguo: so we need to dicuss it is necessary to pass "contex"09:42
zhenguoshaohe_feng: I think it's ok, in case of other parameters in context used in future09:42
shaohe_fengzhenguo: yes.09:42
zhenguoshaohe_feng: or we can discuss whether more parameters needed in future09:42
shaohe_fengzhenguo: but nova also get the "session" from "contex"09:43
shaohe_fengzhenguo: we did not know why nova need "session". need dive into it.09:43
shaohe_fengzhenguo: yes, for extension, we can add the new parameter "contex"09:44
shaohe_fengzhenguo: anyone know why nova need to get the "session" from "contex"?09:44
zhenguoshaohe_feng: maybe RuiChen and Kevin_Zheng can help with that09:45
shaohe_fengSo let's ping RuiChen and Kevin_Zheng  ^09:45
zhenguoliusheng: our functinal tests has enabled in gate jobs, but it's failed :(09:47
zhenguoshaohe_feng: our gate broken again09:47
shaohe_fengzhenguo: let check it.09:47
* zhenguo brb09:49
zhenguoseems because 'bash: line 1: ./gate_hook.sh: Permission denied'10:09
zhenguowill check later10:09
*** lei-zh has quit IRC10:11
shaohe_fengzhenguo: come back.10:36
shaohe_fengzhenguo: $ ls -l  devstack/gate/gate_hook.sh10:36
shaohe_feng-rw-rw-r-- 1 shhfeng shhfeng 1030 10月 20 01:15 devstack/gate/gate_hook.sh10:36
shaohe_fengzhenguo: I list other project:10:38
shaohe_feng$ ls -l magnum/magnum/tests/contrib/gate_hook.sh10:38
shaohe_feng-rwxrwxr-x 1 shhfeng shhfeng 4733 10月  1 10:50 magnum/magnum/tests/contrib/gate_hook.sh10:38
shaohe_fengzhenguo: they are all have "excute" permission10:40
openstackgerritShaoHe Feng proposed openstack/nimble: add execute permission for gate_hook.sh  https://review.openstack.org/39210110:42
openstackgerritShaoHe Feng proposed openstack/nimble: add execute permission for gate_hook.sh  https://review.openstack.org/39210110:44
openstackgerritShaoHe Feng proposed openstack/nimble: add execute permission for gate_hook.sh  https://review.openstack.org/39210110:45
zhenguoshaohe_feng: thanks for the patch, will check when I'm home10:46
shaohe_fengzhenguo: OK. Thanks.10:50
shaohe_fengzhenguo: you can read the commit of this patch:  https://review.openstack.org/#/c/389277/10:50
shaohe_fengzhenguo: I have mentioned Another way to check the authorization is in the Pencan before Hook.10:50
shaohe_fengzhenguo: Today, Zang Rui go through the neutron code. and I have find it is really do authorization during Pencan Hook.10:52
shaohe_fengzhenguo: you can see the neutron code here: https://github.com/openstack/neutron/blob/master/neutron/pecan_wsgi/hooks/policy_enforcement.py10:53
zhenguoshaohe_feng: ok, maybe that's better, will check when I'm home latter, thanks10:53
shaohe_fengzhenguo: I have check other code, they all use hard code to do authorization, they are arguly.10:54
zhenguoshaohe_feng: haha10:54
shaohe_fengzhenguo: now nimble use decorator to do the authorization, and neutron use hook.10:54
shaohe_fengzhenguo: Do we need to follow neutron way?10:55
zhenguoshaohe_feng: I think that's better, we can leverage pecan hook10:55
shaohe_fengzhenguo: Or just keep our way.  I have consider these two ways. And the commit of my patch also mentioned these two way.10:56
zhenguoshaohe_feng: ok will read it, and ttyl10:57
shaohe_fengzhenguo: But I did not know neurton use hook. So I add a decorator, just from sketch.10:59
shaohe_fengzhenguo: I add _resource attribute,  nuetorn add a resource_info. https://github.com/openstack/neutron/blob/master/neutron/pecan_wsgi/hooks/policy_enforcement.py#L6211:02
shaohe_fengzhenguo: I need to go home11:02
shaohe_fengzhenguo: when will you go here to set up a physical env for nimble?11:02
shaohe_fengzhenguo: liusheng: which project include this file safe-devstack-vm-gate-wrap.sh?12:25
openstackgerritZhenguo Niu proposed openstack/nimble: Enable required services in gate_hook  https://review.openstack.org/39217113:59
zhenguoshaohe_feng: I added a patch to enable all required services to solve the gate devstack problems14:00
zhenguoshaohe_feng: your patch have addressed the permission issue14:01
openstackgerritZhenguo Niu proposed openstack/nimble: Enable required services in gate_hook  https://review.openstack.org/39217114:58
openstackgerritZhenguo Niu proposed openstack/nimble: Enable required services in gate_hook  https://review.openstack.org/39217115:14
openstackgerritZhenguo Niu proposed openstack/nimble: Enable required services in gate_hook  https://review.openstack.org/39217115:50

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