Browse Source

Don't use service_net_map_replace in krb-svc-principals

Using the service_net_map replace in role_networks and
as networks keys causes the actual custom networks to
be filtered. I.e the service principals are not created.

Not using service_net_map fixes the problem.

This reverts commit f708ab7a82.
This partial reverts commit 578bcb2ffa.

Releted-Bug: #1946239
Closes-Bug: #1886915
Change-Id: I76a87473b2f21576570a55d0a5ef19f642521336
changes/98/815598/1
Harald Jensås 10 months ago
parent
commit
f6eddad78c
  1. 20
      extraconfig/nova_metadata/krb-service-principals/role.role.j2.yaml

20
extraconfig/nova_metadata/krb-service-principals/role.role.j2.yaml

@ -61,11 +61,7 @@ resources:
role_networks:
- ctlplane
{%- for network in networks if network.name in role.networks %}
{%- if network.service_net_map_replace is defined %}
- {{network.service_net_map_replace}}
{%- else %}
- {{network.name_lower}}
{%- endif %}
{%- endfor %}
# Generates entries for nova metadata with the following format:
@ -82,29 +78,13 @@ resources:
fqdns:
{%- for network in networks if network.vip|default(false) and network.name in role.networks %}
{%- if network.name == 'External' %}
{%- if network.service_net_map_replace is defined %}
{{network.service_net_map_replace}}: {get_param: CloudName}
{%- else %}
{{network.name_lower}}: {get_param: CloudName}
{%- endif %}
{%- elif network.name == 'InternalApi' %}
{%- if network.service_net_map_replace is defined %}
{{network.service_net_map_replace}}: {get_param: CloudNameInternal}
{%- else %}
{{network.name_lower}}: {get_param: CloudNameInternal}
{%- endif %}
{%- elif network.name == 'StorageMgmt' %}
{%- if network.service_net_map_replace is defined %}
{{network.service_net_map_replace}}: {get_param: CloudNameStorageManagement}
{%- else %}
{{network.name_lower}}: {get_param: CloudNameStorageManagement}
{%- endif %}
{%- else %}
{%- if network.service_net_map_replace is defined %}
{{network.service_net_map_replace}}: {get_param: CloudName{{network.name}}}
{%- else %}
{{network.name_lower}}: {get_param: CloudName{{network.name}}}
{%- endif %}
{%- endif %}
{%- endfor %}
ctlplane: {get_param: CloudNameCtlplane}

Loading…
Cancel
Save