Fix invalid variable issue with StorageNFS

The `ganesha_vip` comes from a network
called StorageNFS; but its lookup in the
`net_vip_map` dictionary was incorrect.

Change-Id: I5a8b49cce65963d35b610e138808030ed84de2de
Closes-Bug: #1849393
This commit is contained in:
Goutham Pacha Ravi 2019-10-17 12:17:19 -07:00
parent 00c45cf3c6
commit e3625095ea
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,6 @@
---
fixes:
- |
An incorrect lookup issue with respect to the StorageNFS network has
been fixed. See `Launchpad bug 1849393
<https://bugs.launchpad.net/tripleo/+bug/1849393>`_ for more details.

View File

@ -14,7 +14,7 @@
{% set _ = vip_data.__setitem__('network_virtual_ips', network_virtual_ips) %}
{% for network in enabled_networks %}
{% if network == 'StorageNFS' %}
{% set _ = vip_data.__setitem__('ganesha_vip', (net_vip_map[storagenfs_net_name])) %}
{% set _ = vip_data.__setitem__('ganesha_vip', (net_vip_map[networks['StorageNFS']['name_lower']])) %}
{% endif %}
{% if network == 'StorageDashboard' %}
{% set _ = vip_data.__setitem__('ceph_grafana_vip', (net_vip_map.storage_dashboard)) %}