From 48ed6294c8b487d9503a2a865aae5cb00a4483d7 Mon Sep 17 00:00:00 2001 From: Michele Baldessari Date: Tue, 26 Oct 2021 18:11:58 +0200 Subject: [PATCH] Do not error out when a network is ipv6 only Currently with the following network definition in network-data: - name: InternalApi name_lower: internal_api mtu: 1500 vip: true ipv6: true subnets: internal_api_subnet: ipv6_subnet: fd00:fd00:fd00:1000::/64 ipv6_allocation_pools: - start: fd00:fd00:fd00:1000::50 end: fd00:fd00:fd00:1000::90 We fail as follows: Error rendering template /home/stack/overcloud-deploy/overcloud/tripleo-heat-templates/network/internal_api.yaml : 'dict object' has no attribute 'ip_subnet' Traceback (most recent call last): File "/usr/share/openstack-tripleo-heat-templates/tools/process-templates.py", line 97, in _j2_render_to_file r_template = template.render(**j2_data) File "/usr/lib/python3.9/site-packages/jinja2/environment.py", line 1304, in render self.environment.handle_exception() File "/usr/lib/python3.9/site-packages/jinja2/environment.py", line 925, in handle_exception raise rewrite_traceback_stack(source=source) File "