yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #93702
[Bug 2056778] Re: TestOVNMechanismDriver some ipv6 tests fails if host has ipv6 dns_names configured
Reviewed: https://review.opendev.org/c/openstack/neutron/+/912475
Committed: https://opendev.org/openstack/neutron/commit/2a196fefd4a8a0c15176fe87d88b05d1690ab5fa
Submitter: "Zuul (22348)"
Branch: master
commit 2a196fefd4a8a0c15176fe87d88b05d1690ab5fa
Author: Arnau Verdaguer <averdagu@xxxxxxxxxx>
Date: Mon Mar 11 17:30:11 2024 +0100
Fix TestOVNMechanismDriver ipv6 tests
- test_update_subnet_dhcp_options_in_ovn_ipv6_not_change
- test_enable_subnet_dhcp_options_in_ovn_ipv6
This tests will fail if host where unit tests has ipv6 dns_servers
configured. This patch mocks get_system_dns_servers to avoid tests
to look at the host configuration.
Closes-Bug: #2056778
Change-Id: I2e703ab4b63c90d7a14f0dc41d37b0a98163bce0
** Changed in: neutron
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2056778
Title:
TestOVNMechanismDriver some ipv6 tests fails if host has ipv6
dns_names configured
Status in neutron:
Fix Released
Bug description:
If host where tests are executed has ipv6 dns_servers configured on /etc/resolv.conf two test fails.
The tests are:
- neutron.tests.unit.plugins.ml2.drivers.ovn.mech_driver.test_mech_driver.TestOVNMechanismDriver.test_update_subnet_dhcp_options_in_ovn_ipv6_not_change
- neutron.tests.unit.plugins.ml2.drivers.ovn.mech_driver.test_mech_driver.TestOVNMechanismDriver.test_enable_subnet_dhcp_options_in_ovn_ipv6
This is due to not patching the ovn_utils.get_system_dns_resolvers which ends up looking at host for dns_servers.
This doesn't happen on ipv4 since on the setup the ipv4 dns_servers are set using ovn_conf.cfg.CONF.set_override.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2056778/+subscriptions
References