Skip to content

Commit fa13678

Browse files
committed
Fix Bifrost host variable file generation
In deployments without an IPv4 gateway defined, for example when behind a proxy, Bifrost host variable file generation was failing. Fix by allowing ipv4_gateway to be set to an empty string, which is supported in Bifrost. Closes-Bug: #2133489 Change-Id: I988810541b4620ac196d216bf54896a774282fdd Signed-off-by: Pierre Riteau <pierre@stackhpc.com>
1 parent 1b7b9f2 commit fa13678

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ansible/kolla-bifrost-hostvars.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# If the admin network does not have a gateway defined and seed SNAT is
2727
# enabled, use the seed as a gateway to allow external access until other
2828
# networks have been configured. Otherwise, do not set any gateway.
29-
ipv4_gateway: "{{ (admin_oc_net_name | net_gateway) or (admin_oc_net_name | net_ip(seed_host) if seed_enable_snat | bool) }}"
29+
ipv4_gateway: "{{ (admin_oc_net_name | net_gateway) or (admin_oc_net_name | net_ip(seed_host) if seed_enable_snat | bool) or '' }}"
3030
ipv4_nameserver: "{{ resolv_nameservers }}"
3131
network_mtu: "{{ admin_oc_net_name | net_mtu or '1500' }}"
3232
vlan_id: "{{ '' if admin_oc_net_name == provision_oc_net_name else (admin_oc_net_name | net_vlan) }}"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes generation of Bifrost host variable files when ``ipv4_gateway`` is
5+
undefined. `LP#2133489 <https://bugs.launchpad.net/kayobe/+bug/2133489>`__

0 commit comments

Comments
 (0)