From d9c3076ca968cba260cfb74346b645fa1896cd0e Mon Sep 17 00:00:00 2001 From: Vasyl Saienko Date: Mon, 11 Nov 2024 15:33:42 +0000 Subject: [PATCH] Fix setting alarm_threshold Change-Id: Ia0ec19a4906a50ca7edc7a6c83398bed7284d4f9 Related-Prod: PRODX-47898 --- openstack_controller/filters/tempest/conf/telemetry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack_controller/filters/tempest/conf/telemetry.py b/openstack_controller/filters/tempest/conf/telemetry.py index 6bc8ea88..d23f9600 100644 --- a/openstack_controller/filters/tempest/conf/telemetry.py +++ b/openstack_controller/filters/tempest/conf/telemetry.py @@ -65,4 +65,4 @@ def alarm_threshold(self): # but the script that loads CPU is single threaded, # so it has no sense to use multi-core flavors for this test vcpus = 1 - return target_cpu_util * vcpus * granularity * 1e9 + return str(int(target_cpu_util * vcpus * granularity * 1e9))