Revision 2a10865c lib/backend.py

b/lib/backend.py
672 672
  return True
673 673

  
674 674

  
675
def MigrateInstance(instance, target, live):
676
  """Migrates an instance to another node.
677

  
678
  """
679
  hyper = hypervisor.GetHypervisor()
680

  
681
  try:
682
    hyper.MigrateInstance(instance, target, live)
683
  except errors.HypervisorError, err:
684
    msg = "Failed to migrate instance: %s" % str(err)
685
    logger.Error(msg)
686
    return (False, msg)
687
  return (True, "Migration successfull")
688

  
689

  
675 690
def CreateBlockDevice(disk, size, owner, on_primary, info):
676 691
  """Creates a block device for an instance.
677 692

  

Also available in: Unified diff