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 9c5f394b73)
This commit is contained in:
Rodolfo Alonso Hernandez 2019-07-08 11:11:20 +00:00
parent e0f498aae9
commit dabab08597
1 changed files with 11 additions and 3 deletions

View File

@ -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
})