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
This commit is contained in:
Fei Long Wang 2015-07-20 14:11:53 +12:00
parent d385fe5cef
commit 5aa1fb1f38

View File

@ -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)