def MigrateInstance(cluster_name, instance, target, live):
  hyper = hypervisor.GetHypervisor(instance.hypervisor)

  try:
    hyper.MigrateInstance(cluster_name, instance, target, live)
  except errors.HypervisorError, err:
    _Fail("Failed to migrate instance: %s", err, exc=True)
Migrates an instance to another node.
dataset/ETHPy150Open ganeti/ganeti/lib/backend.py/MigrateInstance