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:
parent
5fb92c16e4
commit
cf36bd4ca5
|
@ -43,7 +43,6 @@ EXTRA_LOG_LEVEL_DEFAULTS = [
|
||||||
'OfctlService=INFO',
|
'OfctlService=INFO',
|
||||||
'os_ken.base.app_manager=INFO',
|
'os_ken.base.app_manager=INFO',
|
||||||
'os_ken.controller.controller=INFO',
|
'os_ken.controller.controller=INFO',
|
||||||
'ovsdbapp.backend.ovs_idl.vlog=INFO'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# Register the configuration options
|
# Register the configuration options
|
||||||
|
|
|
@ -204,6 +204,7 @@ class OVSConfigFixture(ConfigFixture):
|
||||||
'integration_bridge': self._generate_integration_bridge(),
|
'integration_bridge': self._generate_integration_bridge(),
|
||||||
'bridge_mappings': '%s:%s' % (PHYSICAL_NETWORK_NAME, ext_dev),
|
'bridge_mappings': '%s:%s' % (PHYSICAL_NETWORK_NAME, ext_dev),
|
||||||
'of_inactivity_probe': '0',
|
'of_inactivity_probe': '0',
|
||||||
|
'ovsdb_debug': 'True',
|
||||||
},
|
},
|
||||||
'securitygroup': {
|
'securitygroup': {
|
||||||
'firewall_driver': host_desc.firewall_driver,
|
'firewall_driver': host_desc.firewall_driver,
|
||||||
|
|
|
@ -92,7 +92,9 @@ class BaseSudoTestCase(BaseLoggingTestCase):
|
||||||
def _override_default_config():
|
def _override_default_config():
|
||||||
# NOTE(ralonsoh): once https://review.opendev.org/#/c/641681/ is
|
# NOTE(ralonsoh): once https://review.opendev.org/#/c/641681/ is
|
||||||
# merged, we should increase the default value of those new parameters.
|
# 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_agent_decorator = config_decorator(
|
||||||
ovs_conf.register_ovs_agent_opts, ovs_agent_opts)
|
ovs_conf.register_ovs_agent_opts, ovs_agent_opts)
|
||||||
mock.patch.object(ovs_conf, 'register_ovs_agent_opts',
|
mock.patch.object(ovs_conf, 'register_ovs_agent_opts',
|
||||||
|
|
Loading…
Reference in New Issue