Friday, 2017-05-26

*** wanghao has joined #openstack-mogan00:32
*** wanghao has quit IRC00:49
*** wanghao has joined #openstack-mogan00:49
zhenguomorning mogan!00:57
openstackgerritZhenguo Niu proposed openstack/mogan master: Add requested neworks check with the specified flavor  https://review.openstack.org/46669405:36
openstackgerritZhenguo Niu proposed openstack/mogan master: Add requested neworks check with the specified flavor  https://review.openstack.org/46669406:21
*** shaohe_feng has quit IRC07:17
*** shaohe_feng has joined #openstack-mogan07:40
*** openstackgerrit has quit IRC07:48
*** wanghao_ has joined #openstack-mogan07:51
*** wanghao has quit IRC07:55
*** wanghao_ has quit IRC07:57
*** wanghao has joined #openstack-mogan07:58
*** openstackgerrit has joined #openstack-mogan07:59
openstackgerritXinran WANG proposed openstack/mogan master: Detach interface for server  https://review.openstack.org/46176707:59
*** wanghao has quit IRC08:09
*** wanghao has joined #openstack-mogan08:10
*** wanghao has quit IRC08:12
*** wanghao has joined #openstack-mogan08:12
*** shaohe_feng has quit IRC08:23
*** shaohe_feng has joined #openstack-mogan08:32
openstackgerritZhenguo Niu proposed openstack/mogan master: Add requested neworks check with the specified flavor  https://review.openstack.org/46669408:59
zhenguoshaohe_feng: hah, really thanks for your reviews.09:07
openstackgerritZhenguo Niu proposed openstack/mogan master: Add requested neworks check with the specified flavor  https://review.openstack.org/46669409:20
*** wanghao has quit IRC09:35
zhenguoluyao: I just tested attach interface, seems it's not trigger the real port configuration of the target switch port09:44
shaohe_fengzhenguo: we should do more reviews: :(10:01
luyaozhenguo, can you give some details?10:24
luyaozhenguo,  did you test it on the real hardware env?10:30
zhenguoshaohe_feng: sure10:58
zhenguoluyao: yes, I test it on my physical env, the switch port vlan doens't changed.10:59
luyaozhenguo, i don't have physical env,how can i fix this bug11:01
zhenguoluyao: did you test it in vm before? after attach interface, can it get an ip?11:02
zhenguoluyao: you can change to use another network when doing attach action to see whether the ip changed or use dhclient to force get a new ip11:03
luyaozhenguo, yes, i show you on bug smash11:03
zhenguoluyao: you can show the two neutron ports to see the difference11:06
luyaozhenguo, ok11:07
zhenguoluyao: this may help https://github.com/openstack/ironic/blob/master/ironic/drivers/modules/network/common.py#L183-L21011:15
zhenguoluyao: maybe it's better to call ironic vif_attach instead of doing it ourselves11:19
zhenguoXinran: also the detach interface11:20
luyaozhenguo, ok, thank you for your comments. I will try again : )11:20
zhenguoluayo: thanks, I just checked the ironic attach/detach vif api will do neutron port update, we can leverage it11:21
Xinranzhenguo,  any problem with detach?11:22
zhenguoXinran: not sure if our detach will trigger the switch port changing it's configuration11:23
zhenguoXinran: maybe also switch to call ironic detach_vif API11:24
Xinrandetach switch port  will call unplug_vifs in ironic driver and in unplug_vifs , it will call  port.updata11:27
zhenguoXinran: currently we call ironic unplug vif for detach interface?11:28
Xinranzhenguo, for detach ironic port but there are also neutron port to detach11:29
zhenguoXinran: ironic will handle that, we don't manually call ironic port update, just use detach vif instead11:30
Xinranzhenguo,  In engine.manager, we call unplug_vifs to detach ironic  we dont call port update11:33
Xinranzhenguo, port update is in unplug_vif11:33
zhenguoXinran: aha, yes, but I dont' mean the driver.unplug_vif, you can refer to ironic code to see the vif_attach API11:36
zhenguoXinran: I propose to add a new driver interface vif_attach and vif_detach11:36
Xinranzhenguo, do you mean : in the vif_detach to be added, we can call ironic vif_detach to detach a neutron port from node11:45
zhenguoXinran: the ironic vif_detach will update it's own port and unbind the neutron port, we also need to remove the neutron port afterwards11:46
Xinranzhenguo,  yes agrees with you11:47
zhenguoXinran: we need the unbin neutron port action to make the port  cant access to the network11:47
zhenguos/unbin/unbind11:47
zhenguoshaohe_feng, luyao, Xinran: why are you intel guys still in office now?11:48
Xinranzhenguo,  so first unbind neutron port then remove neutron port?11:48
zhenguoXinran: I think so, only remove neutron port can't trigger switch configuration changed11:49
Xinranzhenguo, ok i know11:50
zhenguoXinran: call this https://github.com/openstack/nova/blob/master/nova/virt/ironic/driver.py#L128711:50
Xinranzhenguo, question: why dont use unplug_vif , it doesnt change the configuration ?11:51
*** litao__ has quit IRC11:55
zhenguoXinran: yes we inplemented unplug_vif ourselves, it only call ironic port update :(11:56
Xinranzhenguo, haha ok i know11:56
zhenguoXinran: ironic detach_vif includes port update and neutron port unbind11:56
zhenguoXinran: ^^11:56
shaohe_fengzhenguo: I go to office very late these days. I need to care my baby. I love my baby. Baby first.11:57
zhenguoXinran: you can change our unplug_vif to this https://github.com/openstack/nova/blob/master/nova/virt/ironic/driver.py#L1274-L129111:58
shaohe_fengzhenguo: I need to make up my work.11:58
zhenguoshaohe_feng: hah, fair enough11:58
shaohe_fengzhenguo: I'm going through the multi server patch.11:59
zhenguoshaohe_feng: do you find something wrong expect the gate issue?12:00
*** luyao has left #openstack-mogan12:00
Xinranzhenguo,  ok will fix it soon12:00
Xinranzhenguo, thanks for the infos12:00
shaohe_fengzhenguo: not finished. try to find.12:00
zhenguoXiran: thanks, I would encourage you go home early :D12:01
zhenguoshaohe_feng: hah, thanks for go back to review patches :)12:01
zhenguos/go/come12:02
Xinranzhenguo, hah I accept you encouragement ...12:02
zhenguoXinran: lol12:02
zhenguoshaohe_feng: I also have to go home, see you tomorrow12:03
*** luyao has joined #openstack-mogan12:03
shaohe_fengzhenguo: But I have less time to take care my baby.12:03
shaohe_fengzhenguo: see you tomorrow.12:04
zhenguoshaohe_feng: hah12:04
zhenguoluyao, Xinran: see you12:04
shaohe_fengzhenguo: let do our best to push mogan in big tent12:04
zhenguoshaohe_feng: thanks, hah12:04
zhenguoI have to go12:05
luyaosee you. :D12:05
* zhenguo disappeared12:05
*** dims has quit IRC13:07
*** dims has joined #openstack-mogan14:04

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