From 17cfa6157b0e83f3cdc8bc8e8bb9e53c32903f78 Mon Sep 17 00:00:00 2001 From: Periyasamy Palanisamy Date: Wed, 30 Aug 2023 09:56:40 +0200 Subject: [PATCH] Collect logs from ovnkube-controller container This enables ovn sos report plugin to collect logs ovnkube-controller container because ovn-kubernetes now provides option to run both ovnkube-node and ovnkube-controller in same container with this PR https://github.com/ovn-org/ovn-kubernetes/pull/3807. Signed-off-by: Periyasamy Palanisamy --- sos/report/plugins/openshift_ovn.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sos/report/plugins/openshift_ovn.py b/sos/report/plugins/openshift_ovn.py index 347b15eeaa..cb48057d33 100644 --- a/sos/report/plugins/openshift_ovn.py +++ b/sos/report/plugins/openshift_ovn.py @@ -16,7 +16,8 @@ class OpenshiftOVN(Plugin, RedHatPlugin): """ short_desc = 'Openshift OVN' plugin_name = "openshift_ovn" - containers = ('ovnkube-master', 'ovnkube-node', 'ovn-ipsec') + containers = ('ovnkube-master', 'ovnkube-node', 'ovn-ipsec', + 'ovnkube-controller') profiles = ('openshift',) def setup(self): @@ -54,6 +55,10 @@ def setup(self): 'ovs-appctl -t /var/run/ovn/ovn-controller.*.ctl ' + 'ct-zone-list'], container='ovnkube-node') + self.add_cmd_output([ + 'ovs-appctl -t /var/run/ovn/ovn-controller.*.ctl ' + + 'ct-zone-list'], + container='ovnkube-controller') # Collect ovs ct-zone-list directly on host for interconnect setup. self.add_cmd_output([ 'ovs-appctl -t /var/run/ovn-ic/ovn-controller.*.ctl ' +