Enable ovsdb debug messages in functional and fullstack

Enable the configuration flag "ovsdb_debug" for functional and
fullstack tests. If enable, NeutronOvsdbIdl won't define any log
level when setting up the logger; if not "max_level" is defined,
all messages are logged.

Change-Id: I1185c1ca2556e2aed27051efd98a1d141f5298c9
Related-Bug: #1802640
This commit is contained in:
Rodolfo Alonso Hernandez 2020-01-22 13:34:29 +00:00
parent 5fb92c16e4
commit cf36bd4ca5
3 changed files with 4 additions and 2 deletions

View File

@ -43,7 +43,6 @@ EXTRA_LOG_LEVEL_DEFAULTS = [
'OfctlService=INFO',
'os_ken.base.app_manager=INFO',
'os_ken.controller.controller=INFO',
'ovsdbapp.backend.ovs_idl.vlog=INFO'
]
# Register the configuration options

View File

@ -204,6 +204,7 @@ class OVSConfigFixture(ConfigFixture):
'integration_bridge': self._generate_integration_bridge(),
'bridge_mappings': '%s:%s' % (PHYSICAL_NETWORK_NAME, ext_dev),
'of_inactivity_probe': '0',
'ovsdb_debug': 'True',
},
'securitygroup': {
'firewall_driver': host_desc.firewall_driver,

View File

@ -92,7 +92,9 @@ class BaseSudoTestCase(BaseLoggingTestCase):
def _override_default_config():
# NOTE(ralonsoh): once https://review.opendev.org/#/c/641681/ is
# merged, we should increase the default value of those new parameters.
ovs_agent_opts = [('ovsdb_timeout', 30, 'OVS')]
ovs_agent_opts = [('ovsdb_timeout', 30, 'OVS'),
('ovsdb_debug', True, 'OVS'),
]
ovs_agent_decorator = config_decorator(
ovs_conf.register_ovs_agent_opts, ovs_agent_opts)
mock.patch.object(ovs_conf, 'register_ovs_agent_opts',