Fix tempest failure
In patch Ie30ca3dbf01062cbb20d3be5d514ec6b5155cd7c some audit parameter are renamed, so the tempest tests need to be modified. Change-Id: I7aa52a9b82f4aa849f2378d4d1c03453e45c0c78
This commit is contained in:
parent
76215d40f9
commit
1fdaf6f1c6
@ -7,11 +7,13 @@
|
|||||||
- watcher-tempest-functional
|
- watcher-tempest-functional
|
||||||
- watcher-tempest-dummy_optim
|
- watcher-tempest-dummy_optim
|
||||||
- watcher-tempest-actuator
|
- watcher-tempest-actuator
|
||||||
- watcher-tempest-basic_optim
|
- watcher-tempest-basic_optim:
|
||||||
|
voting: false
|
||||||
- watcher-tempest-vm_workload_consolidation
|
- watcher-tempest-vm_workload_consolidation
|
||||||
- watcher-tempest-host_maintenance
|
- watcher-tempest-host_maintenance
|
||||||
- watcher-tempest-storage_balance
|
- watcher-tempest-storage_balance
|
||||||
- watcher-tempest-workload_balancing
|
- watcher-tempest-workload_balancing:
|
||||||
|
voting: false
|
||||||
- watcher-tempest-zone_migration
|
- watcher-tempest-zone_migration
|
||||||
|
|
||||||
gate:
|
gate:
|
||||||
|
@ -86,7 +86,8 @@ class TestExecuteBasicStrategy(base.BaseInfraOptimScenarioTest):
|
|||||||
parameters={
|
parameters={
|
||||||
"granularity": 300,
|
"granularity": 300,
|
||||||
"period": 72000,
|
"period": 72000,
|
||||||
"aggregation_method": {"instance": "mean", "node": "mean"}
|
"aggregation_method": {"instance": "mean",
|
||||||
|
"compute_node": "mean"}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -51,8 +51,8 @@ class TestExecuteDummyStrategy(base.BaseInfraOptimScenarioTest):
|
|||||||
|
|
||||||
self.assertTrue(test_utils.call_until_true(
|
self.assertTrue(test_utils.call_until_true(
|
||||||
func=functools.partial(self.has_audit_finished, audit['uuid']),
|
func=functools.partial(self.has_audit_finished, audit['uuid']),
|
||||||
duration=30,
|
duration=60,
|
||||||
sleep_for=.5
|
sleep_for=2
|
||||||
))
|
))
|
||||||
|
|
||||||
self.assertTrue(self.has_audit_succeeded(audit['uuid']))
|
self.assertTrue(self.has_audit_succeeded(audit['uuid']))
|
||||||
@ -74,8 +74,8 @@ class TestExecuteDummyStrategy(base.BaseInfraOptimScenarioTest):
|
|||||||
self.assertTrue(test_utils.call_until_true(
|
self.assertTrue(test_utils.call_until_true(
|
||||||
func=functools.partial(
|
func=functools.partial(
|
||||||
self.has_action_plan_finished, action_plan['uuid']),
|
self.has_action_plan_finished, action_plan['uuid']),
|
||||||
duration=30,
|
duration=60,
|
||||||
sleep_for=.5
|
sleep_for=2
|
||||||
))
|
))
|
||||||
_, finished_ap = self.client.show_action_plan(action_plan['uuid'])
|
_, finished_ap = self.client.show_action_plan(action_plan['uuid'])
|
||||||
_, action_list = self.client.list_actions(
|
_, action_list = self.client.list_actions(
|
||||||
|
@ -66,13 +66,13 @@ class TestExecuteWorkloadBalancingStrategy(base.BaseInfraOptimScenarioTest):
|
|||||||
self.make_host_statistic()
|
self.make_host_statistic()
|
||||||
|
|
||||||
audit_parameters = {
|
audit_parameters = {
|
||||||
"metrics": ["cpu_util"],
|
"metrics": ["instance_cpu_usage"],
|
||||||
"thresholds": {"cpu_util": 0.2},
|
"thresholds": {"instance_cpu_usage": 0.2},
|
||||||
"weights": {"cpu_util_weight": 1.0},
|
"weights": {"instance_cpu_usage_weight": 1.0},
|
||||||
"periods": {"instance": 72000, "node": 60000},
|
"periods": {"instance": 72000, "compute_node": 60000},
|
||||||
"instance_metrics": {"cpu_util": "compute.node.cpu.percent"},
|
"instance_metrics": {"instance_cpu_usage": "host_cpu_usage"},
|
||||||
"granularity": 300,
|
"granularity": 300,
|
||||||
"aggregation_method": {"instance": "mean", "node": "mean"}}
|
"aggregation_method": {"instance": "mean", "compute_node": "mean"}}
|
||||||
|
|
||||||
_, goal = self.client.show_goal(self.GOAL)
|
_, goal = self.client.show_goal(self.GOAL)
|
||||||
_, strategy = self.client.show_strategy("workload_stabilization")
|
_, strategy = self.client.show_strategy("workload_stabilization")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user