From 5b3e2ced377c07703532698f65641a10c91df198 Mon Sep 17 00:00:00 2001 From: Roberto Alfieri Date: Tue, 12 May 2026 10:23:53 +0200 Subject: [PATCH] [neutron_adoption] Fix JSON serialization for ml2 baremetal patch The ironic_ml2_baremetal_patch variable is a YAML dict, not a string. Without the to_json filter, Ansible renders it as a Python repr with single quotes, which oc patch rejects as invalid JSON. This breaks adoption jobs that include ironic (e.g. uni04delta-ipv6). Co-Authored-By: Cursor (claude-sonnet-4-20250514) Signed-off-by: Roberto Alfieri --- tests/roles/neutron_adoption/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/roles/neutron_adoption/tasks/main.yaml b/tests/roles/neutron_adoption/tasks/main.yaml index df53d959f..3e6649ecd 100644 --- a/tests/roles/neutron_adoption/tasks/main.yaml +++ b/tests/roles/neutron_adoption/tasks/main.yaml @@ -9,7 +9,7 @@ ansible.builtin.shell: | {{ shell_header }} {{ oc_header }} - oc patch openstackcontrolplane openstack --type=merge --patch '{{ ironic_ml2_baremetal_patch }}' + oc patch openstackcontrolplane openstack --type=merge --patch '{{ ironic_ml2_baremetal_patch | to_json }}' - name: wait for Neutron to start up ansible.builtin.shell: |