Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
fdc267f4
Commit
fdc267f4
authored
Sep 12, 2007
by
Iustin Pop
Browse files
Fix docstrings of many opcodes
Reviewed-by: imsnah
parent
f6441c7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/opcodes.py
View file @
fdc267f4
...
...
@@ -63,37 +63,37 @@ class OpDestroyCluster(OpCode):
class
OpQueryClusterInfo
(
OpCode
):
"""
Initialise the cluster
."""
"""
Query cluster information
."""
OP_ID
=
"OP_CLUSTER_QUERY"
__slots__
=
[]
class
OpClusterCopyFile
(
OpCode
):
"""
Initialise the cluster
."""
"""
Copy a file to multiple nodes
."""
OP_ID
=
"OP_CLUSTER_COPYFILE"
__slots__
=
[
"nodes"
,
"filename"
]
class
OpRunClusterCommand
(
OpCode
):
"""
Initialise the cluster
."""
"""
Run a command on multiple nodes
."""
OP_ID
=
"OP_CLUSTER_RUNCOMMAND"
__slots__
=
[
"nodes"
,
"command"
]
class
OpVerifyCluster
(
OpCode
):
"""
Initialise
the cluster."""
"""
Verify
the cluster
state
."""
OP_ID
=
"OP_CLUSTER_VERIFY"
__slots__
=
[]
class
OpMasterFailover
(
OpCode
):
"""
Initialise the clust
er."""
"""
Do a master failov
er."""
OP_ID
=
"OP_CLUSTER_MASTERFAILOVER"
__slots__
=
[]
class
OpDumpClusterConfig
(
OpCode
):
"""
Initialise
the cluster."""
"""
Dump
the cluster
configuration
."""
OP_ID
=
"OP_CLUSTER_DUMPCONFIG"
__slots__
=
[]
...
...
@@ -131,7 +131,7 @@ class OpQueryNodeVolumes(OpCode):
# instance opcodes
class
OpCreateInstance
(
OpCode
):
"""C
ompute the list of
instance
s
."""
"""C
reate an
instance."""
OP_ID
=
"OP_INSTANCE_CREATE"
__slots__
=
[
"instance_name"
,
"mem_size"
,
"disk_size"
,
"os_type"
,
"pnode"
,
"disk_template"
,
"snode"
,
"swap_size"
,
"mode"
,
...
...
@@ -140,7 +140,7 @@ class OpCreateInstance(OpCode):
class
OpReinstallInstance
(
OpCode
):
"""Reinstall an instance."""
"""Reinstall an instance
's OS
."""
OP_ID
=
"OP_INSTANCE_REINSTALL"
__slots__
=
[
"instance_name"
,
"os_type"
]
...
...
@@ -152,13 +152,13 @@ class OpRemoveInstance(OpCode):
class
OpStartupInstance
(
OpCode
):
"""
Remove
an instance."""
"""
Startup
an instance."""
OP_ID
=
"OP_INSTANCE_STARTUP"
__slots__
=
[
"instance_name"
,
"force"
,
"extra_args"
]
class
OpShutdownInstance
(
OpCode
):
"""
Remove
an instance."""
"""
Shutdown
an instance."""
OP_ID
=
"OP_INSTANCE_SHUTDOWN"
__slots__
=
[
"instance_name"
]
...
...
@@ -176,7 +176,7 @@ class OpRemoveMDDRBDComponent(OpCode):
class
OpReplaceDisks
(
OpCode
):
"""Replace disks of an instance."""
"""Replace
the
disks of an instance."""
OP_ID
=
"OP_INSTANCE_REPLACE_DISKS"
__slots__
=
[
"instance_name"
,
"remote_node"
]
...
...
@@ -188,19 +188,19 @@ class OpFailoverInstance(OpCode):
class
OpConnectConsole
(
OpCode
):
"""
Failover
an instance."""
"""
Connect to
an instance
's console
."""
OP_ID
=
"OP_INSTANCE_CONSOLE"
__slots__
=
[
"instance_name"
]
class
OpActivateInstanceDisks
(
OpCode
):
"""
Remov
e an instance."""
"""
Activat
e an instance
's disks
."""
OP_ID
=
"OP_INSTANCE_ACTIVATE_DISKS"
__slots__
=
[
"instance_name"
]
class
OpDeactivateInstanceDisks
(
OpCode
):
"""
Remov
e an instance."""
"""
Deactivat
e an instance
's disks
."""
OP_ID
=
"OP_INSTANCE_DEACTIVATE_DISKS"
__slots__
=
[
"instance_name"
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment