Revision 78411c60 lib/hypervisor/hv_kvm.py

b/lib/hypervisor/hv_kvm.py
72 72
      hv_base.ParamInSet(True, constants.HT_KVM_VALID_DISK_TYPES),
73 73
    constants.HV_USB_MOUSE:
74 74
      hv_base.ParamInSet(False, constants.HT_KVM_VALID_MOUSE_TYPES),
75
    constants.HV_MIGRATION_PORT: hv_base.NET_PORT_CHECK,
75 76
    }
76 77

  
77 78
  _MIGRATION_STATUS_RE = re.compile('Migration\s+status:\s+(\w+)',
......
556 557
    # to shutdown and restart.
557 558
    pidfile, pid, alive = self._InstancePidAlive(instance.name)
558 559
    if not alive:
559
      raise errors.HypervisorError("Failed to reboot instance %s: not running" %
560
                                             (instance.name))
560
      raise errors.HypervisorError("Failed to reboot instance %s:"
561
                                   " not running" % instance.name)
561 562
    # StopInstance will delete the saved KVM runtime so:
562 563
    # ...first load it...
563 564
    kvm_runtime = self._LoadKVMRuntime(instance)

Also available in: Unified diff