diff options
author | 2018-03-05 03:14:23 +0000 | |
---|---|---|
committer | 2018-03-07 03:36:40 +0100 | |
commit | 530c678677cc314c159936fdf5e121e83fc1d0cc (patch) | |
tree | dc206cc94f933c696721b064ba00c48ce20e7872 /functest/opnfv_tests/openstack/rally/rally.py | |
parent | 8ea8434a1d02d57f61c34113b676d9f8f2530dde (diff) |
Add a new env var for nameserver
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 <cedric.ollivier@orange.com>
Change-Id: Id58dd5ebee612a0fce2ebc40f089769e60899416
Signed-off-by: Linda Wang <wangwulin@huawei.com>
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/opnfv_tests/openstack/rally/rally.py')
-rw-r--r-- | functest/opnfv_tests/openstack/rally/rally.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/functest/opnfv_tests/openstack/rally/rally.py b/functest/opnfv_tests/openstack/rally/rally.py index 5c7acfded..f9fb7b8a4 100644 --- a/functest/opnfv_tests/openstack/rally/rally.py +++ b/functest/opnfv_tests/openstack/rally/rally.py @@ -464,7 +464,8 @@ class RallyBase(testcase.TestCase): segmentation_id=rally_segmentation_id, subnet_settings=[SubnetConfig( name=subnet_name, - cidr=self.RALLY_PRIVATE_SUBNET_CIDR)])) + cidr=self.RALLY_PRIVATE_SUBNET_CIDR, + dns_nameservers=[env.get('NAMESERVER')])])) if network_creator is None: raise Exception("Failed to create private network") self.priv_net_id = network_creator.get_network().id |