From dabab08597c0b9726b520a28c177e9c11682b5a5 Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Mon, 8 Jul 2019 11:11:20 +0000 Subject: [PATCH] Do not use privsep context when listing the namespaces in fullstack The aim of this patch is to speed up the namespace listing and avoid overloading the privsep daemon during the fullstack tests. Change-Id: I95f024684c864aa75506b08a5f904a55267d09a8 Related-Bug: #1833717 Related-Bug: #1811515 (cherry picked from commit 9c5f394b73812fb748695eb0834e2b1b569b7876) --- neutron/tests/fullstack/resources/config.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/neutron/tests/fullstack/resources/config.py b/neutron/tests/fullstack/resources/config.py index 1118e9d359c..c15294a8348 100644 --- a/neutron/tests/fullstack/resources/config.py +++ b/neutron/tests/fullstack/resources/config.py @@ -180,7 +180,8 @@ class OVSConfigFixture(ConfigFixture): 'agent': { 'l2_population': str(self.env_desc.l2_pop), 'arp_responder': str(self.env_desc.arp_responder), - 'debug_iptables_rules': str(env_desc.debug_iptables) + 'debug_iptables_rules': str(env_desc.debug_iptables), + 'use_helper_for_ns_read': 'False', } }) @@ -291,7 +292,8 @@ class LinuxBridgeConfigFixture(ConfigFixture): 'firewall_driver': host_desc.firewall_driver, }, 'AGENT': { - 'debug_iptables_rules': str(env_desc.debug_iptables) + 'debug_iptables_rules': str(env_desc.debug_iptables), + 'use_helper_for_ns_read': 'False', } }) if env_desc.qos: @@ -338,6 +340,9 @@ class L3ConfigFixture(ConfigFixture): 'debug': 'True', 'test_namespace_suffix': self._generate_namespace_suffix(), }) + self.config.update({ + 'agent': {'use_helper_for_ns_read': 'False'} + }) if host_desc.availability_zone: self.config['agent'].update({ 'availability_zone': host_desc.availability_zone @@ -376,8 +381,11 @@ class DhcpConfigFixture(ConfigFixture): 'dhcp_confs': self._generate_dhcp_path(), 'test_namespace_suffix': self._generate_namespace_suffix() }) + self.config.update({ + 'AGENT': {'use_helper_for_ns_read': 'False'} + }) if host_desc.availability_zone: - self.config['agent'].update({ + self.config['AGENT'].update({ 'availability_zone': host_desc.availability_zone })