Revision ba55d062

b/lib/backend.py
1780 1780
    os.mkdir(constants.LOG_OS_DIR, 0750)
1781 1781
  real_disk = _RecursiveFindBD(disk)
1782 1782
  if real_disk is None:
1783
    raise errors.BlockDeviceError("Block device '%s' is not set up" %
1784
                                  str(disk))
1783
    _Fail("Block device '%s' is not set up", disk)
1784

  
1785 1785
  real_disk.Open()
1786 1786

  
1787 1787
  export_env['EXPORT_DEVICE'] = real_disk.dev_path
......
1810 1810
  result = utils.RunCmd(command, env=export_env)
1811 1811

  
1812 1812
  if result.failed:
1813
    logging.error("os snapshot export command '%s' returned error: %s"
1814
                  " output: %s", command, result.fail_reason, result.output)
1815
    return False
1813
    _Fail("OS snapshot export command '%s' returned error: %s"
1814
          " output: %s", command, result.fail_reason, result.output)
1816 1815

  
1817
  return True
1816
  return (True, None)
1818 1817

  
1819 1818

  
1820 1819
def FinalizeExport(instance, snap_disks):
b/lib/cmdlib.py
6491 6491
      if dev:
6492 6492
        result = self.rpc.call_snapshot_export(src_node, dev, dst_node.name,
6493 6493
                                               instance, cluster_name, idx)
6494
        if result.failed or not result.data:
6494
        msg = result.RemoteFailMsg()
6495
        if msg:
6495 6496
          self.LogWarning("Could not export block device %s from node %s to"
6496
                          " node %s", dev.logical_id[1], src_node,
6497
                          dst_node.name)
6497
                          " node %s: %s", dev.logical_id[1], src_node,
6498
                          dst_node.name, msg)
6498 6499
        msg = self.rpc.call_blockdev_remove(src_node, dev).RemoteFailMsg()
6499 6500
        if msg:
6500 6501
          self.LogWarning("Could not remove snapshot block device %s from node"

Also available in: Unified diff