neutron/neutron/tests/unit
yatinkarel 6a5aa9b83c [OVN] Correctly set dns_server in dhcpv4/v6 options
When ovn/dns_servers consist of IPv6 dns nameservers,
it was getting added to IPv4 dhcp options also, and due to
this an invalid nameserver(last 4 octets of an IPv6 address)
is set in the instances.

This patch filters IPv4/IPv6 dns nameservers and set
dhcpv4/dhcpv6 options accordingly.

Also when dns_nameservers are not set for IPv6 subnets,
get those from ovn/dns_servers config or system nameservers
just like it's done with the IPv4 subnets. Updated
get_system_dns_resolvers to pick both IPv4/IPv6 valid
ips, this also requires bump of oslo.utils minimum version
to 4.8.0 to use strict option for IPv4[1].

Additionally fix some unit tests which were setting IPv4 dns
nameservers on the IPv6 subnets, this is not allowed with api.

[1] https://github.com/openstack/oslo.utils/commit/3288539

Conflicts:
  lower-constraints.txt
  requirements.txt

[Stable Only] Since Neutron stable policy do not allow bumping
of minimum version of a requirement in stable releases, so doing
a partial backport by not backporting requirements.txt changes and
updated get_system_dns_resolvers to work with older version of
oslo.utils.

Depends-On: https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/826647
Closes-Bug: #1951816
Change-Id: I9f914e721201072e43a8c6c266ed97ca85fcc13d
(cherry picked from commit 4a06685098)
(cherry picked from commit 4b89ad6403)
2022-04-22 06:27:30 +00:00
..
agent Merge "Repeat few times put new interface in the namespace" into stable/ussuri 2022-04-21 12:59:30 +00:00
api DHCP notification optimization 2021-04-23 10:02:14 +00:00
cmd Added common config and SR-IOV agent config to sanity check 2021-06-11 14:44:08 +00:00
common [OVN] Correctly set dns_server in dhcpv4/v6 options 2022-04-22 06:27:30 +00:00
conf/agent
core_extensions Add "qos_network_policy_id" to port definition 2020-01-17 17:57:11 +00:00
db Remove exception ``IpAddressAllocationNotFound`` 2022-03-17 06:28:55 +00:00
debug Remove deprecated 'external_network_bridge' option 2019-03-09 22:07:38 +00:00
extensions Force security_group_id uuid validation of sg rules 2022-03-23 02:01:02 +00:00
hacking Allow usage of assert_called_once method in unit tests 2020-03-02 14:17:26 +02:00
ipam Remove exception ``IpAddressAllocationNotFound`` 2022-03-17 06:28:55 +00:00
notifiers Add config option ``http_retries`` 2020-07-09 10:11:22 +00:00
objects Randomize segmentation ID assignation 2021-09-10 11:27:15 +02:00
pecan_wsgi Removing deprecated module neutron.api.versions 2018-03-28 14:15:50 +07:00
plugins [OVN] Correctly set dns_server in dhcpv4/v6 options 2022-04-22 06:27:30 +00:00
privileged [SR-IOV] Fix QoS extension to set min/max values 2022-03-04 13:30:56 +00:00
quota use get reader/writer session from neutron-lib 2018-07-06 14:43:31 -06:00
scheduler Revert "DVR: Remove control plane arp updates for DVR" 2021-03-09 13:08:28 +00:00
services [OVN] Handle RouterNotFound exception in set_gateway_mtu 2022-02-28 14:51:52 +01:00
tests Remove references to unittest2 library 2020-01-14 09:03:26 +00:00
__init__.py
_test_extension_portbindings.py Remove the unit test 'test_ports_vnic_type_list' 2018-06-15 15:12:10 +00:00
dummy_plugin.py Remove Neutron LBaaS 2019-09-20 07:46:06 +00:00
extension_stubs.py
fake_resources.py [OVN] Fix RowNotFound exception while waiting for metadata networks 2022-01-06 07:39:29 +01:00
test_auth.py Fix context deprecation warnings 2018-02-13 15:02:49 -05:00
test_manager.py Remove Neutron LBaaS 2019-09-20 07:46:06 +00:00
test_neutron_plugin_base_v2.py Add unit test to validate non DB base core plugin can be loaded 2017-11-15 21:21:35 +00:00
test_opts.py Provide the rpc_response_max_timeout parameter to sriov-agent 2021-06-14 14:02:28 +00:00
test_policy.py Fix handling of network:shared field in policy module 2019-05-07 11:31:25 +02:00
test_service.py fix test nit 2019-08-04 12:31:46 +08:00
test_worker.py
test_wsgi.py Merge "Stop testing python 2" 2019-10-28 00:52:16 +00:00
testlib_api.py use SqlFixture and StaticSqlFixture from neutron-lib 2019-07-08 11:26:34 -06:00