Fixed issue on compute nodes iteration

In this changeset, I fixed the issue with the basic server
consolidation strategy to now loop over all compute nodes
as expected instead of stopping after the first one.

Change-Id: If594f0df41e39dfb0ef8f0fce41822018490c4ec
Closes-bug: #1548874
This commit is contained in:
Vincent Françoise
2016-09-16 14:55:51 +02:00
parent e621f5ddc6
commit 55537d254e
6 changed files with 123 additions and 69 deletions

View File

@@ -70,6 +70,13 @@ class FakerModelCollector(base.BaseClusterDataModelCollector):
"""
return self.load_model('scenario_3_with_metrics.xml')
def generate_scenario_4(self):
"""Simulates a cluster
With 4 nodes and 6 instances spread on all nodes
"""
return self.load_model('scenario_4_with_metrics.xml')
class FakeCeilometerMetrics(object):
def __init__(self, model):