designate backend bind9 cannot work on ipv6

Bug #1881849 reported by Xing Zhang
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Confirmed
Undecided
Gaël THEROND

Bug Description

Cannot create zone and other resource when deploy on ipv6.

named.conf
include "/etc/rndc.key";
options {
    listen-on port 53 { 2001:db8::a; };

and port 53 was not listen on this address.

ipv6 is a different config option: listen-on-v6
if leave listen-on to default, all interfaces are used.

Document
https://bind9.readthedocs.io/en/latest/reference.html#interfaces

listen-on port 53 { 127.0.0.1; ip-address; };
Tells BIND on which network interfaces and port to accept client queries. port 53 does not need to be specified explicitly, because 53 is the default port. Enter 127.0.0.1 to permit requests from the local host. If you omit this entry entirely, all interfaces are used by default.

listen-on-v6 port 53 {any; };
Tells BIND on which port it should listen for IPv6 client requests. The only alternative to any is none. As far as IPv6 is concerned, the server only accepts a wild card address.

possible solution(maybe need to consider about dual stack support? this will be used for vms. or just use custom config files by users):

from:
listen-on port {{ designate_bind_port }} { {{ 'api' | kolla_address }}; };
{% if api_interface != dns_interface %}
listen-on port {{ designate_bind_port }} { {{ 'dns' | kolla_address }}; };
{% endif %}

to:

{% if network_address_family == 'ipv4' %}
listen-on port {{ designate_bind_port }} { {{ 'api' | kolla_address }}; };
{% if api_interface != dns_interface %}
listen-on port {{ designate_bind_port }} { {{ 'dns' | kolla_address }}; };
{% endif %}
{% else %}
listen-on port {{ designate_bind_port }} {};
listen-on-v6 port {{ designate_bind_port }} { {{ 'api' | kolla_address }}; };
{% if api_interface != dns_interface %}
listen-on-v6 port {{ designate_bind_port }} { {{ 'dns' | kolla_address }}; };
{% endif %}
{% endif %}

Xing Zhang (xingzhang)
description: updated
summary: - designate bind9 backend cannot work on ipv6
+ designate backend bind9 cannot work on ipv6
Gaël THEROND (gtherond)
Changed in kolla-ansible:
assignee: nobody → Gaël THEROND (fl1nt)
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.