From 5f5291416f5cdbc4b6320c360cd8739a294f4ddf Mon Sep 17 00:00:00 2001 From: Damian Dabrowski Date: Thu, 20 Jan 2022 00:15:41 +0100 Subject: [PATCH] Do not store unnecessary sections in tempest.conf tempest.conf should store configuration only for services installed in the current environment. Additionally, I removed empty sections and improved their ordering. Now service sections are placed at the end of the file. Change-Id: I43c97758b6db2e5e134d8f54e0911ade3ced8fdf --- templates/tempest.conf.j2 | 166 ++++++++++++++++++++------------------ 1 file changed, 88 insertions(+), 78 deletions(-) diff --git a/templates/tempest.conf.j2 b/templates/tempest.conf.j2 index e043cbd1..ab6642a8 100644 --- a/templates/tempest.conf.j2 +++ b/templates/tempest.conf.j2 @@ -6,7 +6,6 @@ use_stderr = False debug = {{ debug }} log_file = {{ tempest_log_dir}}/tempest.log - [auth] {% if tempest_test_accounts | length > 0 %} use_dynamic_credentials = False @@ -20,83 +19,26 @@ admin_password = {{ keystone_auth_admin_password }} create_isolated_networks = {{ tempest_create_isolated_networks }} {% endif %} - -[baremetal] -endpoint_type = {{ tempest_endpoint_type }} - - -[compute] -image_ref = {{ tempest_glance_image_id_1 }} -image_ref_alt = {{ tempest_glance_image_id_2 }} -flavor_ref = {{ tempest_nova_flavor_id_1 }} -flavor_ref_alt = {{ tempest_nova_flavor_id_2 }} -{% if not tempest_create_isolated_networks | bool %} -fixed_network_name = {{ tempest_fixed_network_name }} -{% endif %} -endpoint_type = {{ tempest_endpoint_type }} -build_timeout = 600 - - -[data_processing] -endpoint_type = {{ tempest_endpoint_type }} - [debug] - -[identity] -disable_ssl_certificate_validation = {{ tempest_keystone_interface_insecure | bool }} -uri = {{ keystone_service_internaluri }}/v2.0 -uri_v3 = {{ keystone_service_internalurl }} -v2_admin_endpoint_type = {{ tempest_endpoint_type }} -v2_public_endpoint_type = {{ tempest_endpoint_type }} -v3_endpoint_type = {{ tempest_endpoint_type }} - - -[image] -endpoint_type = {{ tempest_endpoint_type }} -http_image = {{ tempest_images[0]['url'] }} -build_timeout = 600 - - -[input-scenario] - -[messaging] - - -[negative] - - -[network] -endpoint_type = {{ tempest_endpoint_type }} -public_network_id = {{ tempest_neutron_public_network_id }} -floating_network_name = {{ tempest_public_net_name }} -build_timeout = 600 - - -[object-storage] -endpoint_type = {{ tempest_endpoint_type }} -operator_role = swiftoperator - - -[heat_plugin] -endpoint_type = {{ tempest_endpoint_type }} -instance_type = tempest1 - +[validation] +run_validation = {{ tempest_compute_run_ssh }} +image_ssh_user = {{ tempest_compute_image_ssh_user }} +ping_timeout = 240 +connect_timeout = 120 +ssh_timeout = 600 [oslo_concurrency] lock_path = {{ tempest_venv_bin | dirname }}/locks - [scenario] img_file = {{ tempest_image_dir }}/{{ tempest_images[0]['url'] | basename }} img_container_format = bare img_disk_format = {{ tempest_images[0]['format'] }} - [service-clients] http_timeout = 120 - [service_available] cinder = {{ tempest_service_available_cinder }} neutron = {{ tempest_service_available_neutron }} @@ -117,24 +59,92 @@ panko = {{ tempest_service_available_panko }} trove = {{ tempest_service_available_trove }} zun = {{ tempest_service_available_zun }} -[telemetry] +[identity] +disable_ssl_certificate_validation = {{ tempest_keystone_interface_insecure | bool }} +uri = {{ keystone_service_internaluri }}/v2.0 +uri_v3 = {{ keystone_service_internalurl }} +v2_admin_endpoint_type = {{ tempest_endpoint_type }} +v2_public_endpoint_type = {{ tempest_endpoint_type }} +v3_endpoint_type = {{ tempest_endpoint_type }} + +{% if tempest_service_available_nova | bool %} +[compute] +image_ref = {{ tempest_glance_image_id_1 }} +image_ref_alt = {{ tempest_glance_image_id_2 }} +flavor_ref = {{ tempest_nova_flavor_id_1 }} +flavor_ref_alt = {{ tempest_nova_flavor_id_2 }} +{% if not tempest_create_isolated_networks | bool %} +fixed_network_name = {{ tempest_fixed_network_name }} +{% endif %} endpoint_type = {{ tempest_endpoint_type }} - -[dashboard] -dashboard_url = {{ tempest_dashboard_url }} - -[alarming] -endpoint_type = {{ tempest_endpoint_type }} - -[validation] -run_validation = {{ tempest_compute_run_ssh }} -image_ssh_user = {{ tempest_compute_image_ssh_user }} -ping_timeout = 240 -connect_timeout = 120 -ssh_timeout = 600 +build_timeout = 600 +{% endif %} +{% if tempest_service_available_cinder | bool %} [volume] endpoint_type = {{ tempest_endpoint_type }} catalog_type = volumev3 build_timeout = 600 +{% endif %} + + +{% if tempest_service_available_glance | bool %} +[image] +endpoint_type = {{ tempest_endpoint_type }} +http_image = {{ tempest_images[0]['url'] }} +build_timeout = 600 +{% endif %} + + +{% if tempest_service_available_neutron | bool %} +[network] +endpoint_type = {{ tempest_endpoint_type }} +public_network_id = {{ tempest_neutron_public_network_id }} +floating_network_name = {{ tempest_public_net_name }} +build_timeout = 600 +{% endif %} + + +{% if tempest_service_available_ironic | bool %} +[baremetal] +endpoint_type = {{ tempest_endpoint_type }} +{% endif %} + + +{% if tempest_service_available_sahara | bool %} +[data_processing] +endpoint_type = {{ tempest_endpoint_type }} +{% endif %} + + +{% if tempest_service_available_ceilometer | bool %} +[telemetry] +endpoint_type = {{ tempest_endpoint_type }} +{% endif %} + + +{% if tempest_service_available_horizon | bool %} +[dashboard] +dashboard_url = {{ tempest_dashboard_url }} +{% endif %} + + +{% if tempest_service_available_aodh | bool %} +[alarming] +endpoint_type = {{ tempest_endpoint_type }} +{% endif %} + + +{% if tempest_service_available_swift | bool %} +[object-storage] +endpoint_type = {{ tempest_endpoint_type }} +operator_role = swiftoperator +{% endif %} + + +{% if tempest_service_available_heat | bool %} +[heat_plugin] +endpoint_type = {{ tempest_endpoint_type }} +instance_type = tempest1 +{% endif %}