Browse Source

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
changes/36/270636/6
Sergey Kraynev 7 years ago
parent
commit
396e1c2075
  1. 1
      rally-scenarios/extra/default.yaml
  2. 4
      rally-scenarios/heat-fakevirt.yaml
  3. 6
      rally-scenarios/plugins/sample_plugin.py

1
rally-scenarios/extra/default.yaml

@ -0,0 +1 @@
heat_template_version: 2014-10-16

4
rally-scenarios/heat-fakevirt.yaml

@ -1,6 +1,8 @@
---
HeatStacks.create_and_list_stack:
-
args:
template_path: "~/.rally/extra/default.yaml"
runner:
type: "constant"
times: 2000
@ -12,6 +14,8 @@
HeatStacks.create_and_delete_stack:
-
args:
template_path: "~/.rally/extra/default.yaml"
runner:
type: "constant"
times: 200

6
rally-scenarios/plugins/sample_plugin.py

@ -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,
image_location, disk_format, **kwargs):
"""Get heatclient and do whatever."""

Loading…
Cancel
Save