Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-ganeti
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
snf-ganeti
Commits
fdc267f4
Commit
fdc267f4
authored
17 years ago
by
Iustin Pop
Browse files
Options
Downloads
Patches
Plain Diff
Fix docstrings of many opcodes
Reviewed-by: imsnah
parent
f6441c7c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/opcodes.py
+14
-14
14 additions, 14 deletions
lib/opcodes.py
with
14 additions
and
14 deletions
lib/opcodes.py
+
14
−
14
View file @
fdc267f4
...
@@ -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 clust
er.
"""
"""
Do a master failov
er.
"""
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
):
"""
C
ompute the list of
instance
s
.
"""
"""
C
reate 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
):
"""
Remov
e an instance.
"""
"""
Activat
e 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
):
"""
Remov
e an instance.
"""
"""
Deactivat
e an instance
'
s disks
.
"""
OP_ID
=
"
OP_INSTANCE_DEACTIVATE_DISKS
"
OP_ID
=
"
OP_INSTANCE_DEACTIVATE_DISKS
"
__slots__
=
[
"
instance_name
"
]
__slots__
=
[
"
instance_name
"
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment