From 1c6e5cf6905b2bd951982da9b712b13e2cb21295 Mon Sep 17 00:00:00 2001 From: Andrew Yourtchenko Date: Mon, 5 Feb 2018 17:27:57 +0100 Subject: acl-plugin: an elog-based tracing implementation for troubleshooting the conn cleaner threads interactions This replaces some of the early-stage commented-out printf()s with an elog-based debug collector. It is aimed to be "better than nothing" initial implementation to be available in the field. It will be refined/updated based on use. This initial code is focused on the main/worker threads interactions, hence uses just the worker tracks. This code adds a developer debug CLI "set acl-plugin session table event-trace 1", which allows to gather the events pertaining to connection cleaning. The CLI is deliberately not part of the online help, as the express declaration that the semantics/trace levels, etc. are subject to change without notice. Change-Id: I3536309f737b73e50639cd5780822dcde667fc2c Signed-off-by: Andrew Yourtchenko --- test/test_acl_plugin_conns.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/test_acl_plugin_conns.py') diff --git a/test/test_acl_plugin_conns.py b/test/test_acl_plugin_conns.py index 43e8b69f930..ce02a1d3a22 100644 --- a/test/test_acl_plugin_conns.py +++ b/test/test_acl_plugin_conns.py @@ -133,6 +133,8 @@ class ACLPluginConnTestCase(VppTestCase): super(ACLPluginConnTestCase, self).setUpClass() # create pg0 and pg1 self.create_pg_interfaces(range(2)) + cmd = "set acl-plugin session table event-trace 1" + self.logger.info(self.vapi.cli(cmd)) for i in self.pg_interfaces: i.admin_up() i.config_ip4() @@ -151,6 +153,7 @@ class ACLPluginConnTestCase(VppTestCase): self.logger.info(self.vapi.cli("show acl-plugin acl")) self.logger.info(self.vapi.cli("show acl-plugin interface")) self.logger.info(self.vapi.cli("show acl-plugin tables")) + self.logger.info(self.vapi.cli("show event-logger all")) def run_basic_conn_test(self, af, acl_side): """ Basic conn timeout test """ -- cgit 1.2.3-korg