Commit 14e9e7f3 authored by Iustin Pop's avatar Iustin Pop

Move cluster verify options to cli.py

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 29392516
......@@ -58,6 +58,7 @@ __all__ = [
"DISK_TEMPLATE_OPT",
"DRAINED_OPT",
"ENABLED_HV_OPT",
"ERROR_CODES_OPT",
"FIELDS_OPT",
"FILESTORE_DIR_OPT",
"FILESTORE_DRIVER_OPT",
......@@ -84,6 +85,7 @@ __all__ = [
"NOMODIFY_ETCHOSTS_OPT",
"NONICS_OPT",
"NONLIVE_OPT",
"NONPLUS1_OPT",
"NOSTART_OPT",
"NOSSH_KEYCHECK_OPT",
"NOVOTING_OPT",
......@@ -781,6 +783,14 @@ NOMODIFY_ETCHOSTS_OPT = cli_option("--no-etc-hosts", dest="modify_etc_hosts",
help="Don't modify /etc/hosts",
action="store_false", default=True)
ERROR_CODES_OPT = cli_option("--error-codes", dest="error_codes",
help="Enable parseable error messages",
action="store_true", default=False)
NONPLUS1_OPT = cli_option("--no-nplus1-mem", dest="skip_nplusone_mem",
help="Skip N+1 memory redundancy tests",
action="store_true", default=False)
def _ParseArgs(argv, commands, aliases):
"""Parser for the command line arguments.
......
......@@ -625,13 +625,7 @@ commands = {
" to the nodes in the cluster"),
'verify': (VerifyCluster, ARGS_NONE,
[DEBUG_OPT, VERBOSE_OPT, DEBUG_SIMERR_OPT,
cli_option("--error-codes", dest="error_codes",
help="Enable parseable error messages",
action="store_true", default=False),
cli_option("--no-nplus1-mem", dest="skip_nplusone_mem",
help="Skip N+1 memory redundancy tests",
action="store_true", default=False),
],
ERROR_CODES_OPT, NONPLUS1_OPT],
"", "Does a check on the cluster configuration"),
'verify-disks': (VerifyDisks, ARGS_NONE, [DEBUG_OPT],
"", "Does a check on the cluster disk status"),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment