From 535275750e82d3532bb9f93ca08d5ec070f7014c Mon Sep 17 00:00:00 2001 From: Felipe Reyes Date: Tue, 14 Feb 2023 12:52:39 -0300 Subject: [PATCH] Add magnum section to tempest.conf template The magnum section is used to declare configuration specific information used by magnum-tempest-plugin The keys used are: - nic_id, to indicate the external network - image_id, to indicate the fedora-coreos image to be used - flavor_id, the flavor id to use when creating clusters - dns_nameserver, the upstream dns server IP. - network_driver, the network driver to test (flannel). - labels, to pass a custom (local) image registry. - insecure_registry, to mark the custom image registry as http (instead of https). --- .../charm_tests/tempest/templates/tempest_v3.j2 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/zaza/openstack/charm_tests/tempest/templates/tempest_v3.j2 b/zaza/openstack/charm_tests/tempest/templates/tempest_v3.j2 index c7ba8a5..06932d9 100644 --- a/zaza/openstack/charm_tests/tempest/templates/tempest_v3.j2 +++ b/zaza/openstack/charm_tests/tempest/templates/tempest_v3.j2 @@ -122,5 +122,19 @@ test_server_path = {{ workspace_path }}/test_server.bin provider = amphora {% endif %} +{%- if 'magnum' in enabled_services %} +[magnum] +nic_id = {{ ext_net }} +image_id = {{ fedora_coreos_id }} +master_flavor_id = {{ flavor_ref }} +flavor_id = {{ flavor_ref }} +dns_nameserver = {{ test_name_server }} +network_driver = flannel +{%- if test_registry_prefix %} +labels = container_infra_prefix:{{ test_registry_prefix }} +insecure_registry = {{ test_registry_prefix }} +{%- endif %} +{%- endif %} + [dns] nameservers = {{ test_name_server }}