Revision 03e5cdd5 lib/cmdlib.py

b/lib/cmdlib.py
9015 9015
      edata = device.ComputeNodeTree(instance.primary_node)
9016 9016
    for node, disk in edata:
9017 9017
      lu.cfg.SetDiskID(disk, node)
9018
      msg = lu.rpc.call_blockdev_remove(node, disk).fail_msg
9019
      if msg:
9018
      result = lu.rpc.call_blockdev_remove(node, disk)
9019
      if result.fail_msg:
9020 9020
        lu.LogWarning("Could not remove disk %s on node %s,"
9021
                      " continuing anyway: %s", idx, node, msg)
9022
        all_result = False
9021
                      " continuing anyway: %s", idx, node, result.fail_msg)
9022
        if not (result.offline and node != instance.primary_node):
9023
          all_result = False
9023 9024

  
9024 9025
    # if this is a DRBD disk, return its port to the pool
9025 9026
    if device.dev_type in constants.LDS_DRBD:

Also available in: Unified diff