Revision 20a0c9ef

b/lib/backend.py
660 660
                     (disk, size))
661 661
  if on_primary or disk.AssembleOnSecondary():
662 662
    if not device.Assemble():
663
      raise errors.BlockDeviceError("Can't assemble device after creation,"
664
                                    " very unusual event - check the node"
665
                                    " daemon logs")
663
      errorstring = "Can't assemble device after creation"
664
      logger.Error(errorstring)
665
      raise errors.BlockDeviceError("%s, very unusual event - check the node"
666
                                    " daemon logs" % errorstring)
666 667
    device.SetSyncSpeed(constants.SYNC_SPEED)
667 668
    if on_primary or disk.OpenOnSecondary():
668 669
      device.Open(force=True)

Also available in: Unified diff