Commit ea7da5152cdca7ba674e2137c3899909995e2287 added a path to using
migrateToURI2 for live migration if the version of libvirt used has the
VIR_DOMAIN_XML_MIGRATABLE flag set.
However, a bug in older versions of libvirt causes the live migration to
fail because it's incorrectly validating the old and new domain xml's
for ABI stability.
Not all distros are running with the patched version of libvirt so add a
check in place such that if we fail live migration on the new path with
VIR_ERR_CONFIG_UNSUPPORTED, assume it's due to this issue and attempt
the legacy migrateToURI call.
Reviewed: https:/ /review. openstack. org/123811 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=867bdedf815 33f283aae4de448 8d54c254bb7f07
Committed: https:/
Submitter: Jenkins
Branch: master
commit 867bdedf81533f2 83aae4de4488d54 c254bb7f07
Author: Matt Riedemann <email address hidden>
Date: Wed Sep 24 11:21:59 2014 -0700
Fallback to legacy live migration if config error
Commit ea7da5152cdca7b a674e2137c38999 09995e2287 added a path to using DOMAIN_ XML_MIGRATABLE flag set.
migrateToURI2 for live migration if the version of libvirt used has the
VIR_
However, a bug in older versions of libvirt causes the live migration to
fail because it's incorrectly validating the old and new domain xml's
for ABI stability.
Not all distros are running with the patched version of libvirt so add a ERR_CONFIG_ UNSUPPORTED, assume it's due to this issue and attempt
check in place such that if we fail live migration on the new path with
VIR_
the legacy migrateToURI call.
Closes-Bug: #1362929
Related-Bug: #1279563
Change-Id: Ie82566121c2ed3 a6d55919bc11135 8f4129cb404