Commit 22d31e49 authored by Michael Hanselmann's avatar Michael Hanselmann

Fix usage of OpReplaceDisks.

Reviewed-by: iustinp
parent bcee9cb4
......@@ -131,7 +131,9 @@ def EvacuateNode(opts, args):
good_cnt = bad_cnt = 0
for iname in sinst:
op = opcodes.OpReplaceDisks(instance_name=iname,
remote_node=dst_node)
remote_node=dst_node,
mode=constants.REPLACE_DISK_ALL,
disks=["sda", "sdb"])
try:
logger.ToStdout("Replacing disks for instance %s" % iname)
SubmitOpCode(op)
......
......@@ -145,7 +145,9 @@ def BurninCluster(opts, args):
# failover
for instance_name in args:
op = opcodes.OpReplaceDisks(instance_name=instance_name,
remote_node=None)
remote_node=None,
mode=constants.REPLACE_DISK_ALL,
disks=["sda", "sdb"])
Feedback("- Replace disks for instance %s" % (instance_name))
result = proc.ExecOpCode(op)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment