Fix rally internal Heat job
Previous scenarious were obsolete. This patch adds necessary paramater "template_path". Also default.yaml template was added for using in this list of scenarios. Additionally fix wrong import in sample_plugin.py Change-Id: I31cd295d322d907883a22cddef25b5ccc609f2c1
This commit is contained in:
parent
fe2d05164c
commit
396e1c2075
1
rally-scenarios/extra/default.yaml
Normal file
1
rally-scenarios/extra/default.yaml
Normal file
@ -0,0 +1 @@
|
|||||||
|
heat_template_version: 2014-10-16
|
@ -1,6 +1,8 @@
|
|||||||
---
|
---
|
||||||
HeatStacks.create_and_list_stack:
|
HeatStacks.create_and_list_stack:
|
||||||
-
|
-
|
||||||
|
args:
|
||||||
|
template_path: "~/.rally/extra/default.yaml"
|
||||||
runner:
|
runner:
|
||||||
type: "constant"
|
type: "constant"
|
||||||
times: 2000
|
times: 2000
|
||||||
@ -12,6 +14,8 @@
|
|||||||
|
|
||||||
HeatStacks.create_and_delete_stack:
|
HeatStacks.create_and_delete_stack:
|
||||||
-
|
-
|
||||||
|
args:
|
||||||
|
template_path: "~/.rally/extra/default.yaml"
|
||||||
runner:
|
runner:
|
||||||
type: "constant"
|
type: "constant"
|
||||||
times: 200
|
times: 200
|
||||||
|
@ -24,12 +24,12 @@ Rally concepts https://wiki.openstack.org/wiki/Rally/Concepts
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
from rally.benchmark.scenarios import base
|
from rally.plugins.openstack import scenario
|
||||||
|
|
||||||
|
|
||||||
class HeatPlugin(base.Scenario):
|
class HeatPlugin(scenario.OpenStackScenario):
|
||||||
|
|
||||||
@base.scenario(context={"cleanup": ["heat"]})
|
@scenario.configure(context={"cleanup": ["heat"]})
|
||||||
def list_benchmark(self, container_format,
|
def list_benchmark(self, container_format,
|
||||||
image_location, disk_format, **kwargs):
|
image_location, disk_format, **kwargs):
|
||||||
"""Get heatclient and do whatever."""
|
"""Get heatclient and do whatever."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user