Commit cc0dec7b authored by Iustin Pop's avatar Iustin Pop
Browse files

Rename OpConnectConsole and LUConnectConsole

Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarRené Nussbaumer <>
parent 83f5d475
......@@ -39,7 +39,7 @@ Integration
- Added new tool for running commands on many machines,
- Implemented more verbose result in ``OpConnectConsole`` opcode, also
- Implemented more verbose result in ``OpInstanceConsole`` opcode, also
improving the ``gnt-instance console`` output
- Allowed customisation of disk index separator at ``configure`` time
- Export node group allocation policy to :doc:`iallocator <iallocator>`
......@@ -291,7 +291,7 @@ By default, all LUs will invalidate the caches for all nodes and
instances they lock. If an LU uses the BGL, then it will invalidate the
entire cache. In time, it is expected that LUs will be modified to not
invalidate, if they are not expected to change the node's and/or
instance's state (e.g. ``LUConnectConsole``, or
instance's state (e.g. ``LUInstanceConsole``, or
Invalidation of a node's properties will also invalidate the capacity
......@@ -888,7 +888,7 @@ def ConnectToInstanceConsole(opts, args):
instance_name = args[0]
op = opcodes.OpConnectConsole(instance_name=instance_name)
op = opcodes.OpInstanceConsole(instance_name=instance_name)
cl = GetClient()
......@@ -906,7 +906,7 @@ def ConnectToInstanceConsole(opts, args):
def _DoConsole(console, show_command, cluster_name, feedback_fn=ToStdout,
"""Acts based on the result of L{opcodes.OpConnectConsole}.
"""Acts based on the result of L{opcodes.OpInstanceConsole}.
@type console: L{objects.InstanceConsole}
@param console: Console object
......@@ -7686,7 +7686,7 @@ class LUCreateInstance(LogicalUnit):
return list(iobj.all_nodes)
class LUConnectConsole(NoHooksLU):
class LUInstanceConsole(NoHooksLU):
"""Connect to an instance's console.
This is somewhat special in that it returns the command line that
......@@ -925,7 +925,7 @@ class OpMoveInstance(OpCode):
class OpConnectConsole(OpCode):
class OpInstanceConsole(OpCode):
"""Connect to an instance's console."""
OP_DSC_FIELD = "instance_name"
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