Commit 56754fa4 authored by Klaus Aehlig's avatar Klaus Aehlig

Add --maintenance-interval to gnt-cluster modify

...thus providing a convenient way to control at which
interval the maintenance daemon does its repairs.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
parent d22ddfbd
......@@ -1360,6 +1360,7 @@ def SetClusterParams(opts, args):
opts.compression_tools is not None or
opts.shared_file_storage_dir is not None or
opts.enabled_user_shutdown is not None or
opts.maint_round_delay is not None or
opts.data_collector_interval or
opts.enabled_data_collectors):
ToStderr("Please give at least one of the parameters.")
......@@ -1505,6 +1506,7 @@ def SetClusterParams(opts, args):
shared_file_storage_dir=opts.shared_file_storage_dir,
compression_tools=compression_tools,
enabled_user_shutdown=opts.enabled_user_shutdown,
maint_round_delay=opts.maint_round_delay,
enabled_data_collectors=enabled_data_collectors,
data_collector_interval=data_collector_interval,
)
......@@ -2495,7 +2497,8 @@ commands = {
INSTANCE_POLICY_OPTS +
[GLOBAL_FILEDIR_OPT, GLOBAL_SHARED_FILEDIR_OPT, ZEROING_IMAGE_OPT,
COMPRESSION_TOOLS_OPT] +
[ENABLED_DATA_COLLECTORS_OPT, DATA_COLLECTOR_INTERVAL_OPT],
[ENABLED_DATA_COLLECTORS_OPT, DATA_COLLECTOR_INTERVAL_OPT,
MAINT_INTERVAL_OPT],
"[opts...]",
"Alters the parameters of the cluster"),
"renew-crypto": (
......
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