From 9265bdb1da39637adb1f207ffc2292a7e7b1260b Mon Sep 17 00:00:00 2001 From: Sridhar Seshasayee Date: Tue, 2 Jul 2024 13:15:56 +0530 Subject: [PATCH] qa/tasks: Initialize 'monitoring_profiles' spec to an empty dict Initialize 'monitoring_profiles' to an empty python dictionary instead of 'None' to prevent the cbt task from failing due to the TypeError exception when attempting to iterate a 'NoneType'. The bug was introduced as part of https://github.com/ceph/ceph/pull/51438 and commit e174c6e2cf6c90bd130320eb1f251b62d4b4d6c2. Signed-off-by: Sridhar Seshasayee Fixes: https://tracker.ceph.com/issues/66799 --- qa/tasks/cbt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/tasks/cbt.py b/qa/tasks/cbt.py index 90fcdb5c60d..84e096520b4 100644 --- a/qa/tasks/cbt.py +++ b/qa/tasks/cbt.py @@ -64,7 +64,7 @@ class CBT(Task): (remote.ssh.get_transport().getpeername() for (remote, role_list) in remotes_and_roles)] benchmark_config['cosbench']['auth'] = "username=cosbench:operator;password=intel2012;url=http://%s:80/auth/v1.0;retry=9" %(ips[0]) client_endpoints_config = self.config.get('client_endpoints', None) - monitoring_profiles = self.config.get('monitoring_profiles', None) + monitoring_profiles = self.config.get('monitoring_profiles', {}) return dict( cluster=cluster_config, -- 2.39.5