Square Brackets in IPv6 address variable break dnsmasq
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Takashi Kajinami |
Bug Description
Description
When deploying the Undercloud with IPv6 addresses, the IP is saved in Hiera with square brackets and results in dnsmasq not being able to start.
Environment:
TripleO Wallaby
Reproduce:
Deploy a undercloud with the following:
[DEFAULT]
clean_nodes = true
cleanup = false
container_cli = podman
container_
container_
deployment_user = stack
enable_ironic = true
enable_
enable_neutron = true
enable_
generate_
ipv6_address_mode = dhcpv6-stateful
ipxe_enabled = true
local_interface = enp8s0
local_ip = aaaa:aaaa:
subnets = ctlplane-subnet
undercloud_
undercloud_hostname = undercloud.com
undercloud_
undercloud_
undercloud_timezone = UTC
[ctlplane-subnet]
cidr = aaaa:aaaa:aaaa::/64
dhcp_end = aaaa:aaaa:aaaa::f
dhcp_start = aaaa:aaaa:aaaa::a
gateway = aaaa:aaaa:aaaa::1
inspection_iprange = aaaa:aaaa:
Observe the ironic_pxe_tftp container failing to start and complaining about the dnsmasq command:
$ sudo podman logs ironic_pxe_tftp
dnsmasq: bad command line options: try --help
dnsmasq: bad command line options: try --help
dnsmasq: bad command line options: try --help
dnsmasq: bad command line options: try --help
The variable we use for BIND_HOST has [ ] around the IP address which cause the issue:
https:/
[root@undercloud stack]# sudo hiera ironic:
[aaaa:aaaa:aaaa::1]
Changed in tripleo: | |
importance: | Undecided → High |
assignee: | nobody → Takashi Kajinami (kajinamit) |
milestone: | none → zed-1 |
Fix proposed to branch: master /review. opendev. org/c/openstack /tripleo- heat-templates/ +/846081
Review: https:/