There is now a new option (--diagnose-data-collector-filename) in `gnt-cluster modify` to specify the filename of the script diagnose data collector will run to get information about node health.
List the option in gnt-cluster's man page. Signed-off-by: BSRK Aditya <[email protected]> --- lib/client/gnt_cluster.py | 3 +++ man/gnt-cluster.rst | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/lib/client/gnt_cluster.py b/lib/client/gnt_cluster.py index 8ca1751..2add806 100644 --- a/lib/client/gnt_cluster.py +++ b/lib/client/gnt_cluster.py @@ -1364,6 +1364,7 @@ def SetClusterParams(opts, args): opts.maint_balance is not None or opts.maint_balance_threshold is not None or opts.data_collector_interval or + opts.diagnose_data_collector_filename is not None or opts.enabled_data_collectors): ToStderr("Please give at least one of the parameters.") return 1 @@ -1513,6 +1514,7 @@ def SetClusterParams(opts, args): maint_balance_threshold=opts.maint_balance_threshold, enabled_data_collectors=enabled_data_collectors, data_collector_interval=data_collector_interval, + diagnose_data_collector_filename=opts.diagnose_data_collector_filename ) return base.GetResult(None, opts, SubmitOrSend(op, opts)) @@ -2502,6 +2504,7 @@ commands = { [GLOBAL_FILEDIR_OPT, GLOBAL_SHARED_FILEDIR_OPT, ZEROING_IMAGE_OPT, COMPRESSION_TOOLS_OPT] + [ENABLED_DATA_COLLECTORS_OPT, DATA_COLLECTOR_INTERVAL_OPT, + DIAGNOSE_DATA_COLLECTOR_FILENAME_OPT, MAINT_INTERVAL_OPT, MAINT_BALANCE_OPT, MAINT_BALANCE_THRESHOLD_OPT], "[opts...]", "Alters the parameters of the cluster"), diff --git a/man/gnt-cluster.rst b/man/gnt-cluster.rst index 38f236e..cd60f6e 100644 --- a/man/gnt-cluster.rst +++ b/man/gnt-cluster.rst @@ -715,6 +715,7 @@ MODIFY | [\--maintenance-interval *seconds*] | [\--auto-balance-cluster {yes \| no }] | [\--auto-balance-threshold *score* ] +| [\--diagnose-data-collector-filename *filename*] Modify the options for the cluster. @@ -786,6 +787,11 @@ data collector. The second option expects similar pairs of collector name and number of seconds specifying the interval at which the collector shall be collected. +The ``--diagnose-data-collector-filename`` option specifies the filename +of the script diagnose data collector should run. If this value is an +empty string, the data collector will return sucess without running +anything. The default value is empty string. + The ``--maintenance-interval`` option specified the minimal waiting time by the maintenance daemon between maintenance rounds. The ``--auto-balance-cluster`` option tell the maintenance daemon -- 2.5.0.rc2.392.g76e840b
