In 2.17, an additional data collector has been added, named kvm-inst-rss. So, the 2.17 configuration also contains an entry for this collector; when downgrading to 2.17 remove this entry as well.
Signed-off-by: Klaus Aehlig <[email protected]> --- lib/tools/cfgupgrade.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/tools/cfgupgrade.py b/lib/tools/cfgupgrade.py index cbcb675..bc091da 100644 --- a/lib/tools/cfgupgrade.py +++ b/lib/tools/cfgupgrade.py @@ -717,11 +717,11 @@ class CfgUpgrade(object): cluster = self.config_data["cluster"] if "diagnose_data_collector_filename" in cluster: del cluster["diagnose_data_collector_filename"] - if ("data_collectors" in cluster and - constants.DATA_COLLECTOR_DIAGNOSE in - cluster["data_collectors"]): - del (cluster["data_collectors"] - [constants.DATA_COLLECTOR_DIAGNOSE]) + if "data_collectors" in cluster: + if constants.DATA_COLLECTOR_DIAGNOSE in cluster["data_collectors"]: + del cluster["data_collectors"][constants.DATA_COLLECTOR_DIAGNOSE] + if constants.DATA_COLLECTOR_KVM_R_S_S in cluster["data_collectors"]: + del cluster["data_collectors"][constants.DATA_COLLECTOR_KVM_R_S_S] if "ipolicy" in cluster: ipolicy = cluster["ipolicy"] if "memory-ratio" in ipolicy: -- 2.6.0.rc2.230.g3dd15c0
