Revision ff8ab07e lib/cmdlib.py

b/lib/cmdlib.py
9517 9517
    if not disks_ok:
9518 9518
      raise errors.OpExecError("Cannot activate block device to grow")
9519 9519

  
9520
    # First run all grow ops in dry-run mode
9521
    for node in instance.all_nodes:
9522
      self.cfg.SetDiskID(disk, node)
9523
      result = self.rpc.call_blockdev_grow(node, disk, self.op.amount, True)
9524
      result.Raise("Grow request failed to node %s" % node)
9525

  
9526
    # We know that (as far as we can test) operations across different
9527
    # nodes will succeed, time to run it for real
9520 9528
    for node in instance.all_nodes:
9521 9529
      self.cfg.SetDiskID(disk, node)
9522 9530
      result = self.rpc.call_blockdev_grow(node, disk, self.op.amount, False)

Also available in: Unified diff