Browse Source

Fix krb-service-principals with service_net_map_replace

The CloudNameStorageManagement property was used for almost all
networks when service_net_map_replace is defined. This should
not be hardcoded to StorageManagement, it needs to be replaced
by {{network.name}}.

Closes-Bug: #1862679
Change-Id: I140aa8e44134130d03f6670a9314783288396dde
(cherry picked from commit 0af021bc5f)
changes/99/709599/1
Harald Jensås 1 year ago
committed by Bob Fournier
parent
commit
a95fc76f27
2 changed files with 7 additions and 1 deletions
  1. +1
    -1
      extraconfig/nova_metadata/krb-service-principals/role.role.j2.yaml
  2. +6
    -0
      releasenotes/notes/fix-krb-service-principals-with-service-net-map-replace-463dd1296766cc47.yaml

+ 1
- 1
extraconfig/nova_metadata/krb-service-principals/role.role.j2.yaml View File

@ -101,7 +101,7 @@ resources:
{%- endif %}
{%- else %}
{%- if network.service_net_map_replace is defined %}
{{network.service_net_map_replace}}: {get_param: CloudNameStorageManagement}
{{network.service_net_map_replace}}: {get_param: CloudName{{network.name}}}
{%- else %}
{{network.name_lower}}: {get_param: CloudName{{network.name}}}
{%- endif %}


+ 6
- 0
releasenotes/notes/fix-krb-service-principals-with-service-net-map-replace-463dd1296766cc47.yaml View File

@ -0,0 +1,6 @@
---
fixes:
- |
Fixes an issue where the parameter ``CloudNameStorageManagement`` was used
for all custom networks with service_net_map_replace defined.
(See bug: `1862679 <https://bugs.launchpad.net/tripleo/+bug/1862679>`_.)

Loading…
Cancel
Save