Add fix for hardware.cpu.util meter in sd-strategy

This patch set removes normalizing for hardware.cpu.util meter
since the values that comes from ceilometer hardware.cpu.util
are already normalized.

Closes-Bug: #1588257

Change-Id: I9494f2cc9bbaa6dfd168fb515f679eb6d7f2398a
This commit is contained in:
Alexander Chadin
2016-06-02 13:11:35 +03:00
parent 46091385d8
commit ca37358cac
3 changed files with 18 additions and 21 deletions

View File

@@ -192,9 +192,6 @@ class WorkloadStabilization(base.WorkloadStabilizationBaseStrategy):
def normalize_hosts_load(self, hosts, current_model):
normalized_hosts = deepcopy(hosts)
for host in normalized_hosts:
if 'cpu_util' in normalized_hosts[host]:
normalized_hosts[host]['cpu_util'] /= float(100)
if 'memory.resident' in normalized_hosts[host]:
h_memory = current_model.get_resource_from_id(
resource.ResourceType.memory).get_capacity(