Revision 6b93ec9d daemons/ganeti-noded

b/daemons/ganeti-noded
232 232
    disks = [objects.Disk.FromDict(cf) for cf in params[1]]
233 233
    return backend.CloseBlockDevices(params[0], disks)
234 234

  
235
  # blockdev/drbd specific methods ----------
236

  
237
  @staticmethod
238
  def perspective_drbd_disconnect_net(params):
239
    """Disconnects the network connection of drbd disks.
240

  
241
    Note that this is only valid for drbd disks, so the members of the
242
    disk list must all be drbd devices.
243

  
244
    """
245
    nodes_ip, disks = params
246
    disks = [objects.Disk.FromDict(cf) for cf in disks]
247
    return backend.DrbdDisconnectNet(nodes_ip, disks)
248

  
249
  @staticmethod
250
  def perspective_drbd_attach_net(params):
251
    """Attaches the network connection of drbd disks.
252

  
253
    Note that this is only valid for drbd disks, so the members of the
254
    disk list must all be drbd devices.
255

  
256
    """
257
    nodes_ip, disks, instance_name, multimaster = params
258
    disks = [objects.Disk.FromDict(cf) for cf in disks]
259
    return backend.DrbdAttachNet(nodes_ip, disks, instance_name, multimaster)
260

  
261
  @staticmethod
262
  def perspective_drbd_wait_sync(params):
263
    """Wait until DRBD disks are synched.
264

  
265
    Note that this is only valid for drbd disks, so the members of the
266
    disk list must all be drbd devices.
267

  
268
    """
269
    nodes_ip, disks = params
270
    disks = [objects.Disk.FromDict(cf) for cf in disks]
271
    return backend.DrbdWaitSync(nodes_ip, disks)
272

  
235 273
  # export/import  --------------------------
236 274

  
237 275
  @staticmethod

Also available in: Unified diff