Commit 0ae89533 authored by Iustin Pop's avatar Iustin Pop
Browse files

Rename OpNodeEvacuationStrategy and LUNodeEvacuationStrategy


Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent d817d49f
......@@ -254,9 +254,9 @@ def EvacuateNode(opts, args):
dst_node = opts.dst_node
iallocator = opts.iallocator
op = opcodes.OpNodeEvacuationStrategy(nodes=args,
iallocator=iallocator,
remote_node=dst_node)
op = opcodes.OpNodeEvacStrategy(nodes=args,
iallocator=iallocator,
remote_node=dst_node)
result = SubmitOpCode(op, cl=cl, opts=opts)
if not result:
......
......@@ -8545,7 +8545,7 @@ class LURepairNodeStorage(NoHooksLU):
(self.op.name, self.op.node_name))
class LUNodeEvacuationStrategy(NoHooksLU):
class LUNodeEvacStrategy(NoHooksLU):
"""Computes the node evacuation strategy.
"""
......
......@@ -731,7 +731,7 @@ class OpMigrateNode(OpCode):
]
class OpNodeEvacuationStrategy(OpCode):
class OpNodeEvacStrategy(OpCode):
"""Compute the evacuation strategy for a list of nodes."""
OP_ID = "OP_NODE_EVAC_STRATEGY"
OP_DSC_FIELD = "nodes"
......
......@@ -420,9 +420,9 @@ class R_2_nodes_name_evacuate(baserlib.R_Generic):
cl = baserlib.GetClient()
op = opcodes.OpNodeEvacuationStrategy(nodes=[node_name],
iallocator=iallocator,
remote_node=remote_node)
op = opcodes.OpNodeEvacStrategy(nodes=[node_name],
iallocator=iallocator,
remote_node=remote_node)
job_id = baserlib.SubmitJob([op], cl)
# we use custom feedback function, instead of print we log the status
......
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