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
48de3413
Commit
48de3413
authored
16 years ago
by
Iustin Pop
Browse files
Options
Downloads
Patches
Plain Diff
Documentation updates for gnt-backup
Reviewed-by: imsnah
parent
d70b3058
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/gnt-backup
+22
-32
22 additions, 32 deletions
scripts/gnt-backup
with
22 additions
and
32 deletions
scripts/gnt-backup
+
22
−
32
View file @
48de3413
...
@@ -36,12 +36,11 @@ _VALUE_TRUE = "true"
...
@@ -36,12 +36,11 @@ _VALUE_TRUE = "true"
def
PrintExportList
(
opts
,
args
):
def
PrintExportList
(
opts
,
args
):
"""
Prints a list of all the exported system images.
"""
Prints a list of all the exported system images.
Args:
@param opts: the command line options selected by the user
opts - class with options as members (should be empty)
@type args: list
args - should be empty
@param args: should be an empty list
@rtype: int
Returns:
@return: the desired exit code
nothing
"""
"""
exports
=
GetClient
().
QueryExports
(
opts
.
nodes
)
exports
=
GetClient
().
QueryExports
(
opts
.
nodes
)
...
@@ -61,12 +60,12 @@ def PrintExportList(opts, args):
...
@@ -61,12 +60,12 @@ def PrintExportList(opts, args):
def
ExportInstance
(
opts
,
args
):
def
ExportInstance
(
opts
,
args
):
"""
Export an instance to an image in the cluster.
"""
Export an instance to an image in the cluster.
Args:
@param opts: the command line options selected by the user
opts - class with options as members
@type args: list
args - list with a singl
e element, the
instance
name
@param args: should contain only on
e element, the name
of the instance to be exported
Returns:
@rtype: int
1 in case of error, 0 otherwis
e
@return: the desired exit cod
e
"""
"""
op
=
opcodes
.
OpExportInstance
(
instance_name
=
args
[
0
],
op
=
opcodes
.
OpExportInstance
(
instance_name
=
args
[
0
],
...
@@ -79,19 +78,11 @@ def ExportInstance(opts, args):
...
@@ -79,19 +78,11 @@ def ExportInstance(opts, args):
def
ImportInstance
(
opts
,
args
):
def
ImportInstance
(
opts
,
args
):
"""
Add an instance to the cluster.
"""
Add an instance to the cluster.
Args:
@param opts: the command line options selected by the user
opts - class with options as members
@type args: list
args - list with a single element, the new instance name
@param args: should contain only one element, the new instance name
Opts used:
@rtype: int
memory - amount of memory to allocate to instance (MiB)
@return: the desired exit code
size - amount of disk space to allocate to instance (MiB)
os - which OS to run on instance
node - node to run new instance on
src_node - node containing the export
src_dir - directory on the old node with the export in it
Returns:
1 in case of error, 0 otherwise
"""
"""
instance
=
args
[
0
]
instance
=
args
[
0
]
...
@@ -128,13 +119,12 @@ def ImportInstance(opts, args):
...
@@ -128,13 +119,12 @@ def ImportInstance(opts, args):
def
RemoveExport
(
opts
,
args
):
def
RemoveExport
(
opts
,
args
):
"""
Remove an export from the cluster.
"""
Remove an export from the cluster.
Args:
@param opts: the command line options selected by the user
opts - class with options as members
@type args: list
args - list with a single element, the exported instance to remove
@param args: should contain only one element, the name of the
Opts used:
instance whose backup should be removed
@rtype: int
Returns:
@return: the desired exit code
1 in case of error, 0 otherwise
"""
"""
instance
=
args
[
0
]
instance
=
args
[
0
]
...
...
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