)]}'
{"ansible/roles/ironic/templates/ironic-dnsmasq.conf.j2":[{"author":{"_account_id":14200,"name":"Maksim Malchuk","email":"maksim.malchuk@gmail.com","username":"mmalchuk"},"change_message_id":"d052877eb36658cf46a14f7fa3d00a8bd90dfbc5","unresolved":true,"context_lines":[{"line_number":9,"context_line":"{%     set tag \u003d item.tag | default(\u0027range_\u0027 ~ loop.index) %}"},{"line_number":10,"context_line":"{%     set lease_time \u003d item.lease_time | default(ironic_dnsmasq_dhcp_default_lease_time) %}"},{"line_number":11,"context_line":"dhcp-range\u003dset:{{ tag }},{{ item.range }},{{ lease_time }}"},{"line_number":12,"context_line":"{%     if item.routers is defined %}dhcp-option\u003dtag:{{ tag }},option:router,{{ item.routers }}"},{"line_number":13,"context_line":"{%     endif %}"},{"line_number":14,"context_line":"{%     if item.ntp_server is defined %}dhcp-option\u003dtag:{{ tag }},option:ntp-server,{{ item.ntp_server }}"},{"line_number":15,"context_line":"{%     endif %}"},{"line_number":16,"context_line":"{%     if item.dns_servers is defined %}dhcp-option\u003dtag:{{ tag }},option:dns-server,{{ item.dns_servers }}"},{"line_number":17,"context_line":"{%     endif %}"},{"line_number":18,"context_line":"{% endfor %}"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"{% if api_address_family \u003d\u003d \u0027ipv6\u0027 %}"},{"line_number":21,"context_line":"{# TODO(yoctozepto): IPv6-only support - DHCPv6 PXE support #}"}],"source_content_type":"text/x-jinja2","patch_set":2,"id":"181d3cd6_8af9051c","line":18,"range":{"start_line":12,"start_character":0,"end_line":18,"end_character":0},"updated":"2026-09-11 21:32:51.000000000","message":"This won’t work either.\nThere should be one long line.","commit_id":"9d19c549dba965602ca3d074a42c6de962fadadb"},{"author":{"_account_id":38508,"name":"Warren Jeffs","display_name":"wjeffs","email":"me@warrenjeffs.me","username":"sundee"},"change_message_id":"883fa28a795626ec5938cdd0d2f002639ba0c009","unresolved":false,"context_lines":[{"line_number":9,"context_line":"{%     set tag \u003d item.tag | default(\u0027range_\u0027 ~ loop.index) %}"},{"line_number":10,"context_line":"{%     set lease_time \u003d item.lease_time | default(ironic_dnsmasq_dhcp_default_lease_time) %}"},{"line_number":11,"context_line":"dhcp-range\u003dset:{{ tag }},{{ item.range }},{{ lease_time }}"},{"line_number":12,"context_line":"{%     if item.routers is defined %}dhcp-option\u003dtag:{{ tag }},option:router,{{ item.routers }}"},{"line_number":13,"context_line":"{%     endif %}"},{"line_number":14,"context_line":"{%     if item.ntp_server is defined %}dhcp-option\u003dtag:{{ tag }},option:ntp-server,{{ item.ntp_server }}"},{"line_number":15,"context_line":"{%     endif %}"},{"line_number":16,"context_line":"{%     if item.dns_servers is defined %}dhcp-option\u003dtag:{{ tag }},option:dns-server,{{ item.dns_servers }}"},{"line_number":17,"context_line":"{%     endif %}"},{"line_number":18,"context_line":"{% endfor %}"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"{% if api_address_family \u003d\u003d \u0027ipv6\u0027 %}"},{"line_number":21,"context_line":"{# TODO(yoctozepto): IPv6-only support - DHCPv6 PXE support #}"}],"source_content_type":"text/x-jinja2","patch_set":2,"id":"d5463ba5_7ab34995","line":18,"range":{"start_line":12,"start_character":0,"end_line":18,"end_character":0},"in_reply_to":"181d3cd6_8af9051c","updated":"2026-09-14 12:00:00.000000000","message":"I have confirmed this in our lab as this has been breaking out 2026.1 ironic test clusters.\n\nAnd also with a manual render of the file:\n\nUsing the following as input:\nironic_dnsmasq_dhcp_ranges:\n  - range: \"192.168.209.100,192.168.209.250,255.255.255.0\"\n    routers: \"192.168.209.254\"\n    dns_servers: \"192.168.0.6\"\n\nBefore:\ndhcp-range\u003dset:range_1,192.168.209.100,192.168.209.250,255.255.255.0,10m\ndhcp-option\u003dtag:range_1,option:router,192.168.209.254dhcp-option\u003dtag:range_1,option:dns-server,192.168.0.6\n\nOptions appear all on a single line which stops dnsmasq from starting.\n\nAfter fix:\ndhcp-range\u003dset:range_1,192.168.209.100,192.168.209.250,255.255.255.0,10m\ndhcp-option\u003dtag:range_1,option:router,192.168.209.254\ndhcp-option\u003dtag:range_1,option:dns-server,192.168.0.6\n\nThe issue is due to the way j2 templates handle the endif and dont treat the new line after as a new line when rendering the file\n\nThanks","commit_id":"9d19c549dba965602ca3d074a42c6de962fadadb"}]}
