Revision 01eaf2fb

b/lib/hypervisor/hv_kvm.py
923 923
    if not alive:
924 924
      raise errors.HypervisorError("Instance not running, cannot migrate")
925 925

  
926
    if not netutils.TcpPing(target, port, live_port_needed=True):
927
      raise errors.HypervisorError("Remote host %s not listening on port"
928
                                   " %s, cannot migrate" % (target, port))
929

  
930 926
    if not live:
931 927
      self._CallMonitorCommand(instance_name, 'stop')
932 928

  

Also available in: Unified diff