Revision 235a6b29 lib/server/noded.py

b/lib/server/noded.py
445 445
    return backend.DrbdWaitSync(target_node_uuid, nodes_ip, disks)
446 446

  
447 447
  @staticmethod
448
  def perspective_drbd_needs_activation(params):
449
    """Checks if the drbd devices need activation
450

  
451
    Note that this is only valid for drbd disks, so the members of the
452
    disk list must all be drbd devices.
453

  
454
    """
455
    nodes_ip, disks, target_node_uuid = params
456
    disks = [objects.Disk.FromDict(cf) for cf in disks]
457
    return backend.DrbdNeedsActivation(target_node_uuid, nodes_ip, disks)
458

  
459
  @staticmethod
448 460
  def perspective_drbd_helper(params):
449 461
    """Query drbd helper.
450 462

  

Also available in: Unified diff