Implement setup_networks_on_host for Neutron networks
setup_networks_on_host has not been implemented for
neutron networks and only implemented for nova net.
In order to address the L3 network issues related to the
live-migration in neutron, 'setup_networks_on_host' should
be implemented in the neutronv2/api.
This patch implements the function and updates the portbinding
profile dictionary with the 'migrating_to' key pointing to the
destination host in pre-live migration phase.
port:{'binding:profile':{'migrating_to': 'host'}}
When migrate_instance_finish() is called, it should clear
the migration profile before binding the host to the destination
port to prevent neutron from taking any action when the port-update
happens after the port migrates.
Based on the port profile update with the destination host,
the neutron will be able to create any associated L3 networks
on the destination host.
Further work is planned to issue a status update notification
to nova during the pre-live migration phase after the
L3 networks have been created on the destination host and
before the port lands on the destination host. This will
be addressed in a different patch, since we don't have such
wait state in nova at this time.
The neutron side changes are handled in different patch sets shown
below [1] server side and [2] agent side.
Reviewed: https:/ /review. openstack. org/275073 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=55f3d476a12 dce8a70d3e485f0 f2f9c752cf0b3d
Committed: https:/
Submitter: Jenkins
Branch: master
commit 55f3d476a12dce8 a70d3e485f0f2f9 c752cf0b3d
Author: Swaminathan Vasudevan <email address hidden>
Date: Tue Feb 2 00:35:24 2016 -0800
Implement setup_networks_ on_host for Neutron networks
setup_ networks_ on_host has not been implemented for
neutron networks and only implemented for nova net.
In order to address the L3 network issues related to the networks_ on_host' should
live-migration in neutron, 'setup_
be implemented in the neutronv2/api.
This patch implements the function and updates the portbinding
profile dictionary with the 'migrating_to' key pointing to the
destination host in pre-live migration phase.
port: {'binding: profile' :{'migrating_ to': 'host'}}
When migrate_ instance_ finish( ) is called, it should clear
the migration profile before binding the host to the destination
port to prevent neutron from taking any action when the port-update
happens after the port migrates.
Based on the port profile update with the destination host,
the neutron will be able to create any associated L3 networks
on the destination host.
Further work is planned to issue a status update notification
to nova during the pre-live migration phase after the
L3 networks have been created on the destination host and
before the port lands on the destination host. This will
be addressed in a different patch, since we don't have such
wait state in nova at this time.
The neutron side changes are handled in different patch sets shown
below [1] server side and [2] agent side.
[1] https:/ /review. openstack. org/#/c/ 275420/ /review. openstack. org/#/c/ 260738/
[2] https:/
NOTE: Older versions of neutron may ignore the new port binding
migrating profile information.
Change-Id: Ib1cc44bf9d01ba f4d1f1d26c2a368 a5ca7c6ab68
Partial-Bug: #1456073