Func tests use fedora-heat-test-image

This runs the existing functional tests using the images built in
http://tarballs.openstack.org/heat-test-image/

This image should be a suitable alternative to
Fedora-x86_64-20-20140618-sda, with the extra benefit that it is
prepared to install the heat config agent projects during boot
so that test_server_software_config can be enabled.

This will also allow devstack to no longer load
Fedora-x86_64-20-20140618-sda onto the nodepool images which will reduce
gate resource consumption.

Change-Id: I6041b8d6e7e9422f6e220d7aef0ca38857085e4b
This commit is contained in:
Steve Baker 2015-03-11 13:47:08 +13:00
parent 5a1c30e4c3
commit 02a085b60a
3 changed files with 11 additions and 4 deletions

View File

@ -66,8 +66,8 @@ IntegrationTestGroup = [
default='private',
help="Visible fixed network name "),
cfg.StrOpt('boot_config_env',
default='heat_integrationtests/scenario/templates'
'/boot_config_none_env.yaml',
default=('heat_integrationtests/scenario/templates'
'/boot_config_none_env.yaml'),
help="Path to environment file which defines the "
"resource type Heat::InstallConfigAgent. Needs to "
"be appropriate for the image_ref."),

View File

@ -28,7 +28,10 @@ cd $DEST/heat/heat_integrationtests
iniset heat_integrationtests.conf DEFAULT instance_type m1.heat_int
nova flavor-create m1.heat_int 452 512 0 1
iniset heat_integrationtests.conf DEFAULT image_ref Fedora-x86_64-20-20140618-sda
# Register the glance image for testing
glance image-create --name fedora-heat-test-image --disk-format qcow2 --container-format bare --is-public True --location http://tarballs.openstack.org/heat-test-image/fedora-heat-test-image.qcow2
iniset heat_integrationtests.conf DEFAULT image_ref fedora-heat-test-image
iniset heat_integrationtests.conf DEFAULT boot_config_env $DEST/heat-templates/hot/software-config/boot-config/test_image_env.yaml
iniset heat_integrationtests.conf DEFAULT minimal_image_ref cirros-0.3.2-x86_64-uec
cat heat_integrationtests.conf

View File

@ -77,8 +77,12 @@ class SoftwareConfigIntegrationTest(scenario_base.ScenarioTestsBase):
sid, res, 'CREATE_COMPLETE')
except (exceptions.StackResourceBuildErrorException,
exceptions.TimeoutException) as e:
self._log_console_output(servers=[server])
raise e
finally:
# attempt to log the server console regardless of deployments
# going to complete. This allows successful and failed boot
# logs to be compared
self._log_console_output(servers=[server])
# Check that stack was fully created
self._wait_for_stack_status(sid, 'CREATE_COMPLETE')