The question which hypervisor versions are safe to migrate between is hypervisor dependent. The default implementation is that it's probably fine if the versions are equal and otherwise be safe and disallow it.
Signed-off-by: Klaus Aehlig <[email protected]> --- lib/hypervisor/hv_base.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/hypervisor/hv_base.py b/lib/hypervisor/hv_base.py index e6f8d50..ea2fab6 100644 --- a/lib/hypervisor/hv_base.py +++ b/lib/hypervisor/hv_base.py @@ -426,6 +426,19 @@ class BaseHypervisor(object): """ raise NotImplementedError + @staticmethod + def VersionsSafeForMigration(src, target): + """Decide if migration between those version is likely to suceed. + + Given two versions of a hypervisor, give a guess whether live migration + from the one version to the other version is likely to succeed. The current + + """ + if src == target: + return True + + return False + def MigrationInfo(self, instance): # pylint: disable=R0201,W0613 """Get instance information to perform a migration. -- 2.1.0.rc2.206.gedb03e5
