From 530c678677cc314c159936fdf5e121e83fc1d0cc Mon Sep 17 00:00:00 2001 From: Linda Wang Date: Mon, 5 Mar 2018 03:14:23 +0000 Subject: Add a new env var for nameserver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We should still consider that the nameserver must be handled by all installers instead [1]: - by configuring one or more DNS resolvers in dhcp_agent.ini - by asking a local resolv It eases setting the nameserver in testcases and then allows gating them. 8.8.8.8 is still defined by default. [1] https://docs.openstack.org/neutron/pike/admin/config-dns-res.html Co-Authored-By: Cédric Ollivier Change-Id: Id58dd5ebee612a0fce2ebc40f089769e60899416 Signed-off-by: Linda Wang Signed-off-by: Cédric Ollivier --- functest/opnfv_tests/openstack/tempest/tempest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'functest/opnfv_tests/openstack/tempest/tempest.py') diff --git a/functest/opnfv_tests/openstack/tempest/tempest.py b/functest/opnfv_tests/openstack/tempest/tempest.py index b1384dd1e..f2b82d886 100644 --- a/functest/opnfv_tests/openstack/tempest/tempest.py +++ b/functest/opnfv_tests/openstack/tempest/tempest.py @@ -385,7 +385,8 @@ class TempestResourcesManager(object): 'tempest_private_subnet_name') + self.guid, project_name=project_name, cidr=getattr( - config.CONF, 'tempest_private_subnet_cidr'))])) + config.CONF, 'tempest_private_subnet_cidr'), + dns_nameservers=[env.get('NAMESERVER')])])) if network_creator is None or network_creator.get_network() is None: raise Exception("Failed to create private network") self.creators.append(network_creator) -- cgit 1.2.3-korg