Commit 019dbee1 authored by Iustin Pop's avatar Iustin Pop
Browse files

Rename OpFailoverInstance and LUFailoverInstance


Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent e176281f
......@@ -794,7 +794,7 @@ def FailoverInstance(opts, args):
if not AskUser(usertext):
return 1
op = opcodes.OpFailoverInstance(instance_name=instance_name,
op = opcodes.OpInstanceFailover(instance_name=instance_name,
ignore_consistency=opts.ignore_consistency,
shutdown_timeout=opts.shutdown_timeout)
SubmitOrSend(op, opts, cl=cl)
......
......@@ -326,7 +326,7 @@ def FailoverNode(opts, args):
jex = JobExecutor(cl=cl, opts=opts)
for iname in pinst:
op = opcodes.OpFailoverInstance(instance_name=iname,
op = opcodes.OpInstanceFailover(instance_name=iname,
ignore_consistency=opts.ignore_consistency)
jex.QueueJob(iname, op)
results = jex.GetResults()
......
......@@ -5541,7 +5541,7 @@ class LUQueryInstances(NoHooksLU):
return self.iq.OldStyleQuery(self)
class LUFailoverInstance(LogicalUnit):
class LUInstanceFailover(LogicalUnit):
"""Failover an instance.
"""
......
......@@ -875,7 +875,7 @@ class OpReplaceDisks(OpCode):
]
class OpFailoverInstance(OpCode):
class OpInstanceFailover(OpCode):
"""Failover an instance."""
OP_ID = "OP_INSTANCE_FAILOVER"
OP_DSC_FIELD = "instance_name"
......
......@@ -648,7 +648,7 @@ class Burner(object):
Log("Failing over instances")
for instance in self.instances:
Log("instance %s", instance, indent=1)
op = opcodes.OpFailoverInstance(instance_name=instance,
op = opcodes.OpInstanceFailover(instance_name=instance,
ignore_consistency=False)
self.ExecOrQueue(instance, [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