Revision e3e66f02 lib/hypervisor/hv_xen.py

b/lib/hypervisor/hv_xen.py
214 214
    """
215 215
    raise NotImplementedError
216 216

  
217

  
218 217
  def Verify(self):
219 218
    """Verify the hypervisor.
220 219

  
221 220
    For Xen, this verifies that the xend process is running.
222 221

  
223 222
    """
224
    if not utils.CheckDaemonAlive('/var/run/xend.pid', 'xend'):
225
      return "xend daemon is not running"
223
    result = utils.RunCmd(["xm", "info"])
224
    if result.failed:
225
      return "'xm info' failed: %s" % result.fail_reason
226 226

  
227 227
  @staticmethod
228 228
  def _GetConfigFileDiskData(disk_template, block_devices):

Also available in: Unified diff