From: Sridhar Seshasayee Date: Tue, 2 Jul 2024 07:45:56 +0000 (+0530) Subject: qa/tasks: Initialize 'monitoring_profiles' spec to an empty dict X-Git-Tag: testing/wip-pdonnell-testing-20240703.143006-debug~12^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9265bdb1da39637adb1f207ffc2292a7e7b1260b;p=ceph-ci.git 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 --- 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,