Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
remove_instance=opts.remove_instance,
ignore_remove_failures=ignore_remove_failures)
remove_instance=opts.remove_instance,
ignore_remove_failures=ignore_remove_failures)
- SubmitOpCode(op, opts=opts)
"""
op = opcodes.OpBackupRemove(instance_name=args[0])
"""
op = opcodes.OpBackupRemove(instance_name=args[0])
- SubmitOpCode(op, opts=opts)
ExportInstance, ARGS_ONE_INSTANCE,
[FORCE_OPT, SINGLE_NODE_OPT, NOSHUTDOWN_OPT, SHUTDOWN_TIMEOUT_OPT,
REMOVE_INSTANCE_OPT, IGNORE_REMOVE_FAILURES_OPT, DRY_RUN_OPT,
ExportInstance, ARGS_ONE_INSTANCE,
[FORCE_OPT, SINGLE_NODE_OPT, NOSHUTDOWN_OPT, SHUTDOWN_TIMEOUT_OPT,
REMOVE_INSTANCE_OPT, IGNORE_REMOVE_FAILURES_OPT, DRY_RUN_OPT,
+ PRIORITY_OPT, SUBMIT_OPT],
"-n <target_node> [opts...] <name>",
"Exports an instance to an image"),
"import": (
"-n <target_node> [opts...] <name>",
"Exports an instance to an image"),
"import": (
"[...] -t disk-type -n node[:secondary-node] <name>",
"Imports an instance from an exported image"),
"remove": (
"[...] -t disk-type -n node[:secondary-node] <name>",
"Imports an instance from an exported image"),
"remove": (
- RemoveExport, [ArgUnknown(min=1, max=1)], [DRY_RUN_OPT, PRIORITY_OPT],
+ RemoveExport, [ArgUnknown(min=1, max=1)],
+ [DRY_RUN_OPT, PRIORITY_OPT, SUBMIT_OPT],
"<name>", "Remove exports of named instance from the filesystem."),
}
"<name>", "Remove exports of named instance from the filesystem."),
}
-**export** {-n *node*} [\--shutdown-timeout=*N*] [\--noshutdown]
-[\--remove-instance] [\--ignore-remove-failures] {*instance*}
+| **export** {-n *node*} [\--shutdown-timeout=*N*] [\--noshutdown]
+| [\--remove-instance] [\--ignore-remove-failures] [\--submit]
+| {*instance*}
Exports an instance to the target node. All the instance data and
its configuration will be exported under the
Exports an instance to the target node. All the instance data and
its configuration will be exported under the
that for any non-zero exit code, the backup is considered invalid,
and retried.
that for any non-zero exit code, the backup is considered invalid,
and retried.
+See **ganeti(7)** for a description of ``--submit`` and other common
+options.
+
Example::
# gnt-backup export -n node1.example.com instance3.example.com
Example::
# gnt-backup export -n node1.example.com instance3.example.com
| [-t [diskless | plain | drbd | file]]
| [\--identify-defaults]
| [\--ignore-ipolicy]
| [-t [diskless | plain | drbd | file]]
| [\--identify-defaults]
| [\--ignore-ipolicy]
| {*instance*}
Imports a new instance from an export residing on *source-node* in
| {*instance*}
Imports a new instance from an export residing on *source-node* in
affect the hypervisor, backend and NIC parameters, both read from
the export file and passed in via the command line.
affect the hypervisor, backend and NIC parameters, both read from
the export file and passed in via the command line.
+See **ganeti(7)** for a description of ``--submit`` and other common
+options.
+
Example for identical instance import::
# gnt-backup import -n node1.example.com instance3.example.com
Example for identical instance import::
# gnt-backup import -n node1.example.com instance3.example.com