[IMPACT]
When running the ovn_central plugin on a non-leader host the sbctl command hangs indefinitely until the sosreport timeout kicks in.
[TEST CASE]
* Run 'sos report -a' (AKA sosreport -a) which should exercise ovn-central, if the detection criteria are met. In this case if package 'ovn-central' is installed.
* Run 'sos report -o ovn_central' (AKA sosreport -o ovn_central
* The plugin will timeout an logs will be as follows:
Setting up plugins ...
[plugin:ovn_central] Could not open DB schema file /usr/share/openvswitch/ovn-nb.ovsschema: [Errno 2] No such file or directory: '/usr/share/openvswitch/ovn-nb.ovsschema'
[plugin:ovn_central] Could not open DB schema file /usr/share/openvswitch/ovn-sb.ovsschema: [Errno 2] No such file or directory: '/usr/share/openvswitch/ovn-sb.ovsschema'
[plugin:ovn_central] added cmd output 'ovn-nbctl show'
[plugin:ovn_central] added cmd output 'ovn-sbctl show'
[plugin:ovn_central] added cmd output 'ovn-sbctl lflow-list'
[plugin:ovn_central] added cmd output 'ovn-nbctl get-ssl'
[plugin:ovn_central] added cmd output 'ovn-nbctl get-connection'
[plugin:ovn_central] added cmd output 'ovn-sbctl get-ssl'
[plugin:ovn_central] added cmd output 'ovn-sbctl get-connection'
[plugin:ovn_central] added cmd output 'ovn-nbctl list Load_Balancer'
[plugin:ovn_central] added cmd output 'ovn-nbctl list ACL'
[plugin:ovn_central] added cmd output 'ovn-nbctl list Logical_Switch_Port'
[plugin:ovn_central] added cmd output 'journalctl --no-pager --unit ovn-northd'
Running plugins. Please wait ...
[IMPACT]
When running the ovn_central plugin on a non-leader host the sbctl command hangs indefinitely until the sosreport timeout kicks in.
[TEST CASE]
* Run 'sos report -a' (AKA sosreport -a) which should exercise ovn-central, if the detection criteria are met. In this case if package 'ovn-central' is installed.
* Run 'sos report -o ovn_central' (AKA sosreport -o ovn_central
* The plugin will timeout an logs will be as follows:
Setting up plugins ... ovn_central] Could not open DB schema file /usr/share/ openvswitch/ ovn-nb. ovsschema: [Errno 2] No such file or directory: '/usr/share/ openvswitch/ ovn-nb. ovsschema' ovn_central] Could not open DB schema file /usr/share/ openvswitch/ ovn-sb. ovsschema: [Errno 2] No such file or directory: '/usr/share/ openvswitch/ ovn-sb. ovsschema' ovn_central] added cmd output 'ovn-nbctl show' ovn_central] added cmd output 'ovn-sbctl show' ovn_central] added cmd output 'ovn-sbctl lflow-list' ovn_central] added cmd output 'ovn-nbctl get-ssl' ovn_central] added cmd output 'ovn-nbctl get-connection' ovn_central] added cmd output 'ovn-sbctl get-ssl' ovn_central] added cmd output 'ovn-sbctl get-connection' ovn_central] added cmd output 'ovn-nbctl list Load_Balancer' ovn_central] added cmd output 'ovn-nbctl list ACL' ovn_central] added cmd output 'ovn-nbctl list Logical_ Switch_ Port' ovn_central] added cmd output 'journalctl --no-pager --unit ovn-northd'
[plugin:
[plugin:
[plugin:
[plugin:
[plugin:
[plugin:
[plugin:
[plugin:
[plugin:
[plugin:
[plugin:
[plugin:
[plugin:
Running plugins. Please wait ...
Starting 1/1 ovn_central [Running: ovn_central] ovn_central] collecting path '/var/log/ ovn/ovn- controller. log' ovn_central] collecting output of 'ovn-nbctl show' ovn_central] collecting output of 'ovn-sbctl show'
[plugin:
[plugin:
[plugin:
[WHERE PROBLEM COULD OCCUR]
[OTHER INFORMATION]
Upstream issue: /github. com/sosreport/ sos/issues/ 2418
https:/
Upstream PR: /github. com/sosreport/ sos/pull/ 2419
https:/