Skip to content
Snippets Groups Projects
Commit fdc267f4 authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix docstrings of many opcodes

Reviewed-by: imsnah
parent f6441c7c
No related branches found
No related tags found
No related merge requests found
...@@ -63,37 +63,37 @@ class OpDestroyCluster(OpCode): ...@@ -63,37 +63,37 @@ class OpDestroyCluster(OpCode):
class OpQueryClusterInfo(OpCode): class OpQueryClusterInfo(OpCode):
"""Initialise the cluster.""" """Query cluster information."""
OP_ID = "OP_CLUSTER_QUERY" OP_ID = "OP_CLUSTER_QUERY"
__slots__ = [] __slots__ = []
class OpClusterCopyFile(OpCode): class OpClusterCopyFile(OpCode):
"""Initialise the cluster.""" """Copy a file to multiple nodes."""
OP_ID = "OP_CLUSTER_COPYFILE" OP_ID = "OP_CLUSTER_COPYFILE"
__slots__ = ["nodes", "filename"] __slots__ = ["nodes", "filename"]
class OpRunClusterCommand(OpCode): class OpRunClusterCommand(OpCode):
"""Initialise the cluster.""" """Run a command on multiple nodes."""
OP_ID = "OP_CLUSTER_RUNCOMMAND" OP_ID = "OP_CLUSTER_RUNCOMMAND"
__slots__ = ["nodes", "command"] __slots__ = ["nodes", "command"]
class OpVerifyCluster(OpCode): class OpVerifyCluster(OpCode):
"""Initialise the cluster.""" """Verify the cluster state."""
OP_ID = "OP_CLUSTER_VERIFY" OP_ID = "OP_CLUSTER_VERIFY"
__slots__ = [] __slots__ = []
class OpMasterFailover(OpCode): class OpMasterFailover(OpCode):
"""Initialise the cluster.""" """Do a master failover."""
OP_ID = "OP_CLUSTER_MASTERFAILOVER" OP_ID = "OP_CLUSTER_MASTERFAILOVER"
__slots__ = [] __slots__ = []
class OpDumpClusterConfig(OpCode): class OpDumpClusterConfig(OpCode):
"""Initialise the cluster.""" """Dump the cluster configuration."""
OP_ID = "OP_CLUSTER_DUMPCONFIG" OP_ID = "OP_CLUSTER_DUMPCONFIG"
__slots__ = [] __slots__ = []
...@@ -131,7 +131,7 @@ class OpQueryNodeVolumes(OpCode): ...@@ -131,7 +131,7 @@ class OpQueryNodeVolumes(OpCode):
# instance opcodes # instance opcodes
class OpCreateInstance(OpCode): class OpCreateInstance(OpCode):
"""Compute the list of instances.""" """Create an instance."""
OP_ID = "OP_INSTANCE_CREATE" OP_ID = "OP_INSTANCE_CREATE"
__slots__ = ["instance_name", "mem_size", "disk_size", "os_type", "pnode", __slots__ = ["instance_name", "mem_size", "disk_size", "os_type", "pnode",
"disk_template", "snode", "swap_size", "mode", "disk_template", "snode", "swap_size", "mode",
...@@ -140,7 +140,7 @@ class OpCreateInstance(OpCode): ...@@ -140,7 +140,7 @@ class OpCreateInstance(OpCode):
class OpReinstallInstance(OpCode): class OpReinstallInstance(OpCode):
"""Reinstall an instance.""" """Reinstall an instance's OS."""
OP_ID = "OP_INSTANCE_REINSTALL" OP_ID = "OP_INSTANCE_REINSTALL"
__slots__ = ["instance_name", "os_type"] __slots__ = ["instance_name", "os_type"]
...@@ -152,13 +152,13 @@ class OpRemoveInstance(OpCode): ...@@ -152,13 +152,13 @@ class OpRemoveInstance(OpCode):
class OpStartupInstance(OpCode): class OpStartupInstance(OpCode):
"""Remove an instance.""" """Startup an instance."""
OP_ID = "OP_INSTANCE_STARTUP" OP_ID = "OP_INSTANCE_STARTUP"
__slots__ = ["instance_name", "force", "extra_args"] __slots__ = ["instance_name", "force", "extra_args"]
class OpShutdownInstance(OpCode): class OpShutdownInstance(OpCode):
"""Remove an instance.""" """Shutdown an instance."""
OP_ID = "OP_INSTANCE_SHUTDOWN" OP_ID = "OP_INSTANCE_SHUTDOWN"
__slots__ = ["instance_name"] __slots__ = ["instance_name"]
...@@ -176,7 +176,7 @@ class OpRemoveMDDRBDComponent(OpCode): ...@@ -176,7 +176,7 @@ class OpRemoveMDDRBDComponent(OpCode):
class OpReplaceDisks(OpCode): class OpReplaceDisks(OpCode):
"""Replace disks of an instance.""" """Replace the disks of an instance."""
OP_ID = "OP_INSTANCE_REPLACE_DISKS" OP_ID = "OP_INSTANCE_REPLACE_DISKS"
__slots__ = ["instance_name", "remote_node"] __slots__ = ["instance_name", "remote_node"]
...@@ -188,19 +188,19 @@ class OpFailoverInstance(OpCode): ...@@ -188,19 +188,19 @@ class OpFailoverInstance(OpCode):
class OpConnectConsole(OpCode): class OpConnectConsole(OpCode):
"""Failover an instance.""" """Connect to an instance's console."""
OP_ID = "OP_INSTANCE_CONSOLE" OP_ID = "OP_INSTANCE_CONSOLE"
__slots__ = ["instance_name"] __slots__ = ["instance_name"]
class OpActivateInstanceDisks(OpCode): class OpActivateInstanceDisks(OpCode):
"""Remove an instance.""" """Activate an instance's disks."""
OP_ID = "OP_INSTANCE_ACTIVATE_DISKS" OP_ID = "OP_INSTANCE_ACTIVATE_DISKS"
__slots__ = ["instance_name"] __slots__ = ["instance_name"]
class OpDeactivateInstanceDisks(OpCode): class OpDeactivateInstanceDisks(OpCode):
"""Remove an instance.""" """Deactivate an instance's disks."""
OP_ID = "OP_INSTANCE_DEACTIVATE_DISKS" OP_ID = "OP_INSTANCE_DEACTIVATE_DISKS"
__slots__ = ["instance_name"] __slots__ = ["instance_name"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment