From 5aa1fb1f38f14fc214c43a0b9c48e0682447d2b3 Mon Sep 17 00:00:00 2001 From: Fei Long Wang Date: Mon, 20 Jul 2015 14:11:53 +1200 Subject: [PATCH] Fix Rally job failure Due to the package rename of Rally, the customized plugin defined in Glance can't be discovered. This patch just fixes it and update an expired link. Closes-Bug: #1476062 Change-Id: Ia9b1ef7cc56fcd06ed6cbea6550a0bcaaf04e47e --- rally-jobs/plugins/plugin_sample.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rally-jobs/plugins/plugin_sample.py b/rally-jobs/plugins/plugin_sample.py index 7a5676eb88..1406e51b1e 100644 --- a/rally-jobs/plugins/plugin_sample.py +++ b/rally-jobs/plugins/plugin_sample.py @@ -16,7 +16,7 @@ """ Sample of plugin for Glance. For more Glance related benchmarks take a look here: -github.com/stackforge/rally/blob/master/rally/benchmark/scenarios/glance/ +github.com/openstack/rally/tree/master/samples/tasks/scenarios/glance About plugins: https://rally.readthedocs.org/en/latest/plugins.html @@ -25,8 +25,8 @@ Rally concepts https://wiki.openstack.org/wiki/Rally/Concepts import os -from rally.benchmark.scenarios import base -from rally.benchmark import utils as bench_utils +from rally.task.scenarios import base +from rally.task import utils as task_utils class GlancePlugin(base.Scenario): @@ -63,10 +63,10 @@ class GlancePlugin(base.Scenario): image = self.clients("glance").images.create(**kw) - image = bench_utils.wait_for( + image = task_utils.wait_for( image, - is_ready=bench_utils.resource_is("active"), - update_resource=bench_utils.get_from_manager(), + is_ready=task_utils.resource_is("active"), + update_resource=task_utils.get_from_manager(), timeout=100, check_interval=0.5)