From 11685a8f4a499844418d05fd03df155efa8c1132 Mon Sep 17 00:00:00 2001 From: Michal Arbet Date: Tue, 26 Mar 2024 08:34:49 +0100 Subject: [PATCH] [CI] Force config drive for ipv6 jobs As our CI is ipv6 only and using cirros for tests. Therefore we need to set force_config_drive = true. Change-Id: I07058a4b30d0de1aaf8e82656024c5f6a99b290b --- tests/run.yml | 2 ++ tests/templates/nova-compute-overrides.j2 | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/run.yml b/tests/run.yml index 5c68c1fa93..50c5f26701 100644 --- a/tests/run.yml +++ b/tests/run.yml @@ -164,6 +164,7 @@ become: "{{ item.become | default(false) }}" vars: is_previous_release: "{{ is_upgrade }}" + force_config_drive: "{{ 'true' if address_family == 'ipv6' else 'false' }}" with_items: # Ansible inventory - src: "tests/templates/inventory.j2" @@ -647,6 +648,7 @@ dest: "{{ item.dest }}" vars: is_previous_release: false + force_config_drive: "{{ 'true' if address_family == 'ipv6' else 'false' }}" with_items: # Ansible inventory - src: "tests/templates/inventory.j2" diff --git a/tests/templates/nova-compute-overrides.j2 b/tests/templates/nova-compute-overrides.j2 index ea62a697f5..79b1a6ebfd 100644 --- a/tests/templates/nova-compute-overrides.j2 +++ b/tests/templates/nova-compute-overrides.j2 @@ -1,3 +1,5 @@ +[DEFAULT] +force_config_drive = {{ force_config_drive }} [libvirt] {% if ansible_architecture == 'aarch64' %} cpu_mode = custom