Fix configuration template rendering

Add planner_ prexix to relevant configuration values in order to be
correctly filled inside templated configuration file.

Change-Id: I5afdacb1f5b33f79c3e83d39a43a056e01aa682f
Signed-off-by: Stamatis Katsaounis <skatsaounis@admin.grnet.gr>
This commit is contained in:
Stamatis Katsaounis
2020-02-26 23:30:23 +02:00
parent c6df61e4db
commit 698f97fb1e

View File

@@ -202,27 +202,27 @@ planner = {{ options.planner }}
# These weights are used to schedule the actions. Action Plan will be build in
# accordance with sets of actions ordered by descending weights. Two action
# types cannot have the same weight. (dict value)
weights = {{ options.weights }}
weights = {{ options.planner_weights }}
# Number of actions to be run in parallel on a per action type basis. (dict
# value)
parallelization = {{ options.parallelization }}
parallelization = {{ options.planner_parallelization }}
{%- endif %}
{% if 'workload_stabilization' == options.planner -%}
[watcher_planners.workload_stabilization]
# These weights are used to schedule the actions. (dict value)
weights = {{ options.weights }}
weights = {{ options.planner_weights }}
{%- endif %}
{% if 'basic' == options.planner -%}
[watcher_strategies.basic]
# Check optimize metadata field in instance before migration. (boolean value)
check_optimize_metadata = {{ options.check_optimize_metadata }}
check_optimize_metadata = {{ options.planner_check_optimize_metadata }}
{%- endif %}
{% if 'storage_capacity_balance' == options.planner -%}
[watcher_strategies.storage_capacity_balance]
# exclude pools (list value)
ex_pools = {{ options.ex_pools }}
ex_pools = {{ options.planner_ex_pools }}
{%- endif %}