-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
4.21
-
None
-
False
-
-
None
-
Moderate
-
No
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Description of problem:
sos report hit error during collect datas for openshift_ovn plugin
Version-Release number of selected component (if applicable):
ocp version: 4.21 sos version: sh-5.1# rpm -qa | grep sos sos-4.10.0-4.el9_4.noarch
How reproducible:
always
Steps to Reproduce:
1. setup 4.21 cluster 2. debug into one of the node 3. run sos report to collect datas for openshift_ovn plugin sh-5.1# sos report --only-plugins=openshift_ovn sos report (version 4.10.0) WARNING: unable to set option for disabled or non-existing plugin (crio). WARNING: unable to set option for disabled or non-existing plugin (podman). This command will collect diagnostic and configuration information from this Red Hat Enterprise Linux system and installed applications. An archive containing the collected information will be generated in /host/var/tmp/sos.k_j0wvlj and may be provided to a Red Hat support representative. Any information provided to Red Hat will be treated in accordance with the published support policies at: Distribution Website : https://www.redhat.com/ Commercial Support : https://access.redhat.com/ The generated archive may contain data considered sensitive and its content should be reviewed by the originating organization before being passed to any third party. No changes will be made to system configuration. Press ENTER to continue, or CTRL-C to quit. Optionally, please enter the case id that you are generating this report for: Setting up archive ... Setting up plugins ... caught exception in plugin method "openshift_ovn.setup()" writing traceback to sos_logs/openshift_ovn-plugin-errors.txt Running plugins. Please wait ... Starting 1/1 openshift_ovn [Running: openshift_ovn] Finished running plugins Creating compressed archive... Your sos report has been generated and saved in: /host/var/tmp/sosreport-ip-10-0-33-119-2025-12-08-tjievgx.tar.xz Size 345.62KiB Owner root sha256 b009e4bcb2cf4d183e8c795d1329f5ad7979b4e53153f60adaeabab4a62c2e0c Please send this file to your support representative. sh-5.1# tar -xvf /host/var/tmp/sosreport-ip-10-0-33-119-2025-12-08-tjievgx.tar.xz sosreport-ip-10-0-33-119-2025-12-08-tjievgx/version.txt sosreport-ip-10-0-33-119-2025-12-08-tjievgx/sos_reports/ sosreport-ip-10-0-33-119-2025-12-08-tjievgx/sos_reports/manifest.json sosreport-ip-10-0-33-119-2025-12-08-tjievgx/sos_reports/sos.html sosreport-ip-10-0-33-119-2025-12-08-tjievgx/sos_reports/sos.json sosreport-ip-10-0-33-119-2025-12-08-tjievgx/sos_reports/sos.txt sosreport-ip-10-0-33-119-2025-12-08-tjievgx/sos_logs/ sosreport-ip-10-0-33-119-2025-12-08-tjievgx/sos_logs/openshift_ovn-plugin-errors.txt sosreport-ip-10-0-33-119-2025-12-08-tjievgx/sos_logs/sos.log sosreport-ip-10-0-33-119-2025-12-08-tjievgx/sos_logs/ui.log sosreport-ip-10-0-33-119-2025-12-08-tjievgx/ sosreport-ip-10-0-33-119-2025-12-08-tjievgx/environment sosreport-ip-10-0-33-119-2025-12-08-tjievgx/sos_commands/ sosreport-ip-10-0-33-119-2025-12-08-tjievgx/var/ sosreport-ip-10-0-33-119-2025-12-08-tjievgx/var/lib/ sosreport-ip-10-0-33-119-2025-12-08-tjievgx/var/lib/openvswitch/ sosreport-ip-10-0-33-119-2025-12-08-tjievgx/var/lib/openvswitch/etc/ sosreport-ip-10-0-33-119-2025-12-08-tjievgx/var/lib/openvswitch/etc/keys/ sosreport-ip-10-0-33-119-2025-12-08-tjievgx/var/lib/openvswitch/etc/keys/ipsec-cacert.pem sosreport-ip-10-0-33-119-2025-12-08-tjievgx/var/lib/openvswitch/etc/keys/ipsec-cert.pem sosreport-ip-10-0-33-119-2025-12-08-tjievgx/var/lib/openvswitch/etc/keys/ipsec-privkey.pem sosreport-ip-10-0-33-119-2025-12-08-tjievgx/var/lib/openvswitch/etc/keys/ipsec-req.pem sosreport-ip-10-0-33-119-2025-12-08-tjievgx/var/lib/ovn-ic/ sosreport-ip-10-0-33-119-2025-12-08-tjievgx/var/lib/ovn-ic/etc/ sosreport-ip-10-0-33-119-2025-12-08-tjievgx/var/lib/ovn-ic/etc/libovsdb.log sosreport-ip-10-0-33-119-2025-12-08-tjievgx/var/lib/ovn-ic/etc/ovnnb_db.db sosreport-ip-10-0-33-119-2025-12-08-tjievgx/var/lib/ovn-ic/etc/ovnsb_db.db
Actual results:
There is no directory openshift_ovn under sos_commands directory: sh-5.1# ls -l sosreport-ip-10-0-33-119-2025-12-08-tjievgx/sos_commands/ total 0 And there is errors for collecting openshift_ovn plugin: sh-5.1# cat sosreport-ip-10-0-33-119-2025-12-08-tjievgx/sos_logs/openshift_ovn-plugin-errors.txt Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/sos/report/__init__.py", line 1260, in setup plug.setup() File "/usr/lib/python3.9/site-packages/sos/report/plugins/openshift_ovn.py", line 74, in setup self.add_cmd_output([ File "/usr/lib/python3.9/site-packages/sos/report/plugins/__init__.py", line 2212, in add_cmd_output cmd = self.fmt_container_cmd(container, cmd, runtime=runtime, File "/usr/lib/python3.9/site-packages/sos/report/plugins/__init__.py", line 2970, in fmt_container_cmd return _runtime.fmt_container_cmd(container, cmd, quotecmd) UnboundLocalError: local variable '_runtime' referenced before assignment
Expected results:
sos report can collect datas for openshift_ovn plugins
Additional info: