Re: [openstack-dev] Does Neutron itself add VM ports to ovs?
Thx for the answer, i finally locate the implementation in nova.network.linux_net.create_ovs_vif_port but how could nova execute the ovs-vsctl for the compute-node hypervisor just in the control-node? At 2016-04-12 13:13:48, "Sławek Kapłoński" <sla...@kaplonski.pl> wrote: >Hello, > >I don't know this ODL and how it works but for ovs-agent nova-compute is part >which adds port to ovs bridge (see for example nova/virt/libvirt/vif.py) > >-- >Pozdrawiam / Best regards >Sławek Kapłoński >sla...@kaplonski.pl > >Dnia wtorek, 12 kwietnia 2016 12:31:01 CEST 张晨 pisze: >> Hello everyone, >> >> >> I have a question about Neutron. I learn that the ovs-agent receives the >> update-port rpc notification,and updates ovsdb data for VM port. >> >> >> But what is the situation when i use SDN controllers instead of OVS >> mechanism driver? I found no where in ODL to add the VM port to ovs. >> >> >> I asked the author of the related ODL plugin, but he told me that OpenStack >> adds the VM port to ovs. >> >> >> Then, where is the implementation in OpenStack to add the VM port to ovs, >> when i'm using ODL replacing the OVSmechanism driver? >> >> >> Thanks __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
[openstack-dev] Does Neutron itself add VM ports to ovs?
Hello everyone, I have a question about Neutron. I learn that the ovs-agent receives the update-port rpc notification,and updates ovsdb data for VM port. But what is the situation when i use SDN controllers instead of OVS mechanism driver? I found no where in ODL to add the VM port to ovs. I asked the author of the related ODL plugin, but he told me that OpenStack adds the VM port to ovs. Then, where is the implementation in OpenStack to add the VM port to ovs, when i'm using ODL replacing the OVSmechanism driver? Thanks__ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
[openstack-dev] in which function does neutronv2 assign IP address for instance?
hi everyone, i have a question for the neutron code in liberty: how does neutron assign IP address for instance? in nova.network, it seems that neutron sever gets a feasible ip from the DB pool, which looks like this: nova.compute.manager.ComputeVirtAPI._allocate_network_async() -> nova.network.api.API.allocate_for_instance() -> nova.network.manager.NetworkManager.allocate_for_instance() -> nova.network..manager.NetworkManager_allocate_fixed_ips() but in nova.network.neutronv2.0, It looks like this: nova.compute.manager.ComputeVirtAPI._allocate_network_async() -> neutronv2.api.allocate_for_instance() and it seems that in neutronv2.api.allocate_for_instance(), it doesn't fetch IP address from DB if the para "fixed_ip" == none in allocate_for_instance, but directly calls "_create_port" for a REST API. so my question is whether neutron server will surely assign a fixed IP from DB for instance? Or else, it allows the DHCP agent to take over the IP-MAC selection? __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev