Skip to content

Commit c6798e9

Browse files
mnietojiclaude
authored andcommitted
[ci_gen_kustomize_values] fix: Preserve nodes config from architecture repo in all NFV templates
Extend the fix from fffa721 (HCI template) to all remaining NFV templates. Preserve the complete node configuration (ansibleHost, networks, fixedIP) from the architecture repository instead of overwriting it with just hostName. Affected templates: ovs-dpdk, ovs-dpdk-sriov, ovs-dpdk-sriov-ipv6, sriov, ovs-dpdk-sriov-2nodesets, ovs-dpdk-sriov-ipv6-2nodesets, and ovs-dpdk-sriov-networker. Signed-off-by: Miguel Angel Nieto Jimenez <mnietoji@redhat.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 42582bf commit c6798e9

10 files changed

Lines changed: 38 additions & 19 deletions

File tree

roles/ci_gen_kustomize_values/templates/nfv-ovs-dpdk-sriov-hci/edpm-nodeset-values/values.yaml.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ data:
3232
nodes:
3333
{% for instance in instances_names %}
3434
{% set node_name = 'edpm-' + instance %}
35+
{% set node_config = _original_nodes[node_name] | default({}) | combine({'hostName': instance}) %}
3536
{{ node_name }}:
36-
{{ _original_nodes[node_name] | default({'hostName': instance}) | to_nice_yaml(indent=2) | indent(8, first=true) }}
37+
{{ node_config | to_nice_yaml(indent=2) | indent(8, first=true) }}
3738
{% endfor %}
3839

3940
{% if ('repo-setup' not in (_original_nodeset['services'] | default([]))) and

roles/ci_gen_kustomize_values/templates/ovs-dpdk-sriov-2nodesets/edpm-nodeset-values/values.yaml.j2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ data:
4444
{% endif %}
4545
nodes:
4646
{% for instance in instances_names %}
47-
edpm-{{ instance }}:
48-
hostName: {{ instance }}
47+
{% set node_name = 'edpm-' + instance %}
48+
{% set node_config = _original_nodes[node_name] | default({}) | combine({'hostName': instance}) %}
49+
{{ node_name }}:
50+
{{ node_config | to_nice_yaml(indent=2) | indent(8, first=true) }}
4951
{% endfor %}
5052

5153
{% if ('repo-setup' not in (_original_nodeset['services'] | default([]))) and

roles/ci_gen_kustomize_values/templates/ovs-dpdk-sriov-2nodesets/edpm-nodeset2-values/values.yaml.j2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ data:
4444
{% endif %}
4545
nodes:
4646
{% for instance in instances_names %}
47-
edpm-{{ instance }}:
48-
hostName: {{ instance }}
47+
{% set node_name = 'edpm-' + instance %}
48+
{% set node_config = _original_nodes[node_name] | default({}) | combine({'hostName': instance}) %}
49+
{{ node_name }}:
50+
{{ node_config | to_nice_yaml(indent=2) | indent(8, first=true) }}
4951
{% endfor %}
5052

5153
{% if ('repo-setup' not in (_original_nodeset['services'] | default([]))) and

roles/ci_gen_kustomize_values/templates/ovs-dpdk-sriov-ipv6-2nodesets/edpm-nodeset-values/values.yaml.j2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ data:
4444
{% endif %}
4545
nodes:
4646
{% for instance in instances_names %}
47-
edpm-{{ instance }}:
48-
hostName: {{ instance }}
47+
{% set node_name = 'edpm-' + instance %}
48+
{% set node_config = _original_nodes[node_name] | default({}) | combine({'hostName': instance}) %}
49+
{{ node_name }}:
50+
{{ node_config | to_nice_yaml(indent=2) | indent(8, first=true) }}
4951
{% endfor %}
5052

5153
{% if ('repo-setup' not in (_original_nodeset['services'] | default([]))) and

roles/ci_gen_kustomize_values/templates/ovs-dpdk-sriov-ipv6-2nodesets/edpm-nodeset2-values/values.yaml.j2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ data:
4444
{% endif %}
4545
nodes:
4646
{% for instance in instances_names %}
47-
edpm-{{ instance }}:
48-
hostName: {{ instance }}
47+
{% set node_name = 'edpm-' + instance %}
48+
{% set node_config = _original_nodes[node_name] | default({}) | combine({'hostName': instance}) %}
49+
{{ node_name }}:
50+
{{ node_config | to_nice_yaml(indent=2) | indent(8, first=true) }}
4951
{% endfor %}
5052

5153
{% if ('repo-setup' not in (_original_nodeset['services'] | default([]))) and

roles/ci_gen_kustomize_values/templates/ovs-dpdk-sriov-ipv6/edpm-nodeset-values/values.yaml.j2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ data:
3131
{% endif %}
3232
nodes:
3333
{% for instance in instances_names %}
34-
edpm-{{ instance }}:
35-
hostName: {{ instance }}
34+
{% set node_name = 'edpm-' + instance %}
35+
{% set node_config = _original_nodes[node_name] | default({}) | combine({'hostName': instance}) %}
36+
{{ node_name }}:
37+
{{ node_config | to_nice_yaml(indent=2) | indent(8, first=true) }}
3638
{% endfor %}
3739

3840
{% if ('repo-setup' not in (_original_nodeset['services'] | default([]))) and

roles/ci_gen_kustomize_values/templates/ovs-dpdk-sriov-networker/edpm-common-nodeset-values/values.yaml.j2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ data:
4545
{% endif %}
4646
nodes:
4747
{% for instance in instance_names %}
48-
edpm-{{ instance }}:
49-
hostName: {{ instance }}
48+
{% set node_name = 'edpm-' + instance %}
49+
{% set node_config = _original_nodes[node_name] | default({}) | combine({'hostName': instance}) %}
50+
{{ node_name }}:
51+
{{ node_config | to_nice_yaml(indent=2) | indent(8, first=true) }}
5052
{% endfor %}
5153

5254
{% if ('repo-setup' not in (_original_nodeset['services'] | default([]))) and

roles/ci_gen_kustomize_values/templates/ovs-dpdk-sriov/edpm-nodeset-values/values.yaml.j2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ data:
3131
{% endif %}
3232
nodes:
3333
{% for instance in instances_names %}
34-
edpm-{{ instance }}:
35-
hostName: {{ instance }}
34+
{% set node_name = 'edpm-' + instance %}
35+
{% set node_config = _original_nodes[node_name] | default({}) | combine({'hostName': instance}) %}
36+
{{ node_name }}:
37+
{{ node_config | to_nice_yaml(indent=2) | indent(8, first=true) }}
3638
{% endfor %}
3739

3840
{% if ('repo-setup' not in (_original_nodeset['services'] | default([]))) and

roles/ci_gen_kustomize_values/templates/ovs-dpdk/edpm-nodeset-values/values.yaml.j2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ data:
3131
{% endif %}
3232
nodes:
3333
{% for instance in instances_names %}
34-
edpm-{{ instance }}:
35-
hostName: {{ instance }}
34+
{% set node_name = 'edpm-' + instance %}
35+
{% set node_config = _original_nodes[node_name] | default({}) | combine({'hostName': instance}) %}
36+
{{ node_name }}:
37+
{{ node_config | to_nice_yaml(indent=2) | indent(8, first=true) }}
3638
{% endfor %}
3739
{% if ('repo-setup' not in (_original_nodeset['services'] | default([]))) and
3840
('repo-setup' in ci_gen_kustomize_edpm_nodeset_predeployed_services) %}

roles/ci_gen_kustomize_values/templates/sriov/edpm-nodeset-values/values.yaml.j2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ data:
3131
{% endif %}
3232
nodes:
3333
{% for instance in instances_names %}
34-
edpm-{{ instance }}:
35-
hostName: {{ instance }}
34+
{% set node_name = 'edpm-' + instance %}
35+
{% set node_config = _original_nodes[node_name] | default({}) | combine({'hostName': instance}) %}
36+
{{ node_name }}:
37+
{{ node_config | to_nice_yaml(indent=2) | indent(8, first=true) }}
3638
{% endfor %}
3739
{% if ('repo-setup' not in (_original_nodeset['services'] | default([]))) and
3840
('repo-setup' in ci_gen_kustomize_edpm_nodeset_predeployed_services) %}

0 commit comments

Comments
 (0)