Reviewed: https://review.openstack.org/434870 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=1f48d3d83b4d5f6f9cd96ee06d2fc005635c1ff9 Submitter: Zuul Branch: master
commit 1f48d3d83b4d5f6f9cd96ee06d2fc005635c1ff9 Author: Sivasathurappan Radhakrishnan <[email protected]> Date: Thu Feb 16 12:51:45 2017 +0000 Port binding based on events during live migration Currently port binding call is made at destination compute in post live migration phase. This may cause network outage during post-copy as the virtual CPUs are paused immediately at source and unpaused at destination by transferring a minimum set of pages. The following domain life cycle events are emitted in this order during post-copy: * VIR_DOMAIN_EVENT_STARTED(destination) * VIR_DOMAIN_EVENT_SUSPENDED_POSTCOPY(source)--migration entered post-copy mode * VIR_DOMAIN_EVENT_RESUMED_POSTCOPY(destination)--guest is running on the destinaton host while some if its memory pages still remain on sourcehost. * VIR_DOMAIN_EVENT_RESUMED_MIGRATED(destination) * VIR_DOMAIN_EVENT_STOPPED_MIGRATED(source)--migration finished successfully and the destination host holds a complete guest state. In this change, dest host port binding activation is done when the following events are emitted at source for post-copy and pre-copy: * VIR_DOMAIN_EVENT_SUSPENDED_POSTCOPY * VIR_DOMAIN_EVENT_SUSPENDED_MIGRATED This reduces the network outage during live migration as network switch is done right before VM resumes at destination. Co-Authored-By: Matt Riedemann <[email protected]> Change-Id: Ic5cab99944df9e501ba2032eb96911c36304494d Closes-Bug: #1605016 ** Changed in: nova Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1605016 Title: Post copy live migration interrupts network connectivity Status in OpenStack Compute (nova): Fix Released Bug description: Post copy live migration causes loss of networking for the duration of the post copy phase. Post copy live migration is implemented for the libvirt virt driver with qemu. It works by switching the active VM to the destination early (before the copy is complete) and then completes the copy using the post copy algorithm. Port rebind is done in post_live_migration_at_destination() which is called after the migration has completed. So the destination VM has no networking for the duration of the post copy phase. The network ports should be rebound to the destination immediately after the switch so the destination VM has access to its networking. To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1605016/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

