On Tue, Jul 14, 2015 at 05:59:27PM +0200, 'Klaus Aehlig' via ganeti-devel wrote:
...thus providing a convenient way to control at which
interval the maintenance daemon does its repairs.

Signed-off-by: Klaus Aehlig <[email protected]>
---
lib/client/gnt_cluster.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/client/gnt_cluster.py b/lib/client/gnt_cluster.py
index d84306b..f62e16e 100644
--- a/lib/client/gnt_cluster.py
+++ b/lib/client/gnt_cluster.py
@@ -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": (
--
2.4.3.573.g4eafbef


LGTM

Reply via email to