neutron/neutron/cmd
Harald Jensås 00dca13b66 Use dhcp-host tag support when supported
In dnsmasq 2.81 there is a regression (see [1] for details).
Prior versions of dnsmasq would select a host record where:
a) no address is present in the host record.
b) an address matching address family of the client request
   is present in the host record.

dnsmasq 2.81 will also use a host record where a only an address
not matching the address family of the client request is present.

The same issue is also backported to the dnsmasq-2.79-11.el8.x86_64
which is e.g. in RHEL 8.2 and Centos 8.

dnsmasq version 2.81 also adds support for using tag's on host
records. When a dhcpv6 request is received, dnsmasq automatically
sets the tag 'dhcpv6'.

This change adds a runtime check, testing for dnsmasq host entry
tag support. And adds 'tag:dhcpv6' to all IPv6 host records when
dnsmasq supports this.

Adding the tag makes dnsmasq prefer the tagged host for dhcpv6
requests, i.e it's a workaround fix for the regression issue.

[1] http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2020q2/014051.html

Closes-Bug: #1876094
Change-Id: Ie654c84137914226bdc3e31e16219345c2efaac9
(cherry picked from commit f951871430)
2020-05-13 21:24:42 +00:00
..
eventlet remove neutron.common.rpc 2019-02-06 11:05:55 -07:00
sanity DHCPv6 - Use addr6_list in dnsmasq 2020-03-16 21:03:43 +01:00
upgrade_checks Remove 'gateway_external_network_id' config option 2019-07-26 13:19:14 +02:00
__init__.py Fix logging error for Guru Meditation Report 2016-02-08 16:52:17 -08:00
ipset_cleanup.py Make use of -w argument for iptables calls 2017-08-31 20:28:53 +00:00
keepalived_state_change.py Replace keepalived notifier bash script with Python ip monitor 2015-03-18 18:59:33 -04:00
linuxbridge_cleanup.py Switch IPDevice.exists() method to use pyroute2 2018-03-19 11:56:45 +01:00
netns_cleanup.py Remove Neutron LBaaS 2019-09-20 07:46:06 +00:00
ovs_cleanup.py Remove deprecated 'external_network_bridge' option 2019-03-09 22:07:38 +00:00
pd_notify.py Fix pylint R1714 (consider-using-in) refactor messages 2019-02-21 21:11:34 +00:00
runtime_checks.py Use dhcp-host tag support when supported 2020-05-13 21:24:42 +00:00
sanity_check.py Add info about nf_conntrack_proto_gre when ovs fw is used 2019-05-10 15:41:29 +02:00
status.py Add check for external_network_bridge in neutron-status 2019-03-22 13:14:24 +00:00