[Verify] Don't create new image when image already exists

The current Tempest resources context creates an image in the cloud every
time when we run the tests and even when we run only one test. It is not
optimal. In order to avoid creating the image every time a new option for
`rally verify start` was added. So if we want to run tests, but we want
to use some existing image, we should execute the following command:

    $ rally verify start --discover

This option will tell Rally to search for the image with name that is
configured in the rally.conf file and the discovered image will be used
for the tests.

The next step will be to add the same functionality for flavors.

Change-Id: I0400d5451585ca3c1a82450a58b33125a2488b42
This commit is contained in:
Yaroslav Lobankov 2016-01-30 21:27:02 -06:00
parent 80960777de
commit 0aecd73eed
2 changed files with 12 additions and 3 deletions

View File

@ -657,12 +657,21 @@
# CirrOS image URL (string value)
#cirros_img_url = http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img
# Image disk format (string value)
# Image disk format to use when creating the image (string value)
#disk_format = qcow2
# Image container formate (string value)
# Image container format to use when creating the image (string value)
#container_format = bare
# Regular expression for name of an image to discover it in the cloud
# and use it for the tests. Note that when Rally is searching for the
# image, case insensitive matching is performed. Specify nothing
# ('name_regex =') if you want to disable discovering. In this case
# Rally will create needed resources by itself if the values for the
# corresponding config options are not specified in the Tempest config
# file (string value)
#name_regex = ^.*(cirros|testvm).*$
[role]