amorenoz / ovs-dbg

Scripts to help debug OVS and OVN
Apache License 2.0
23 stars 8 forks source link

ovs-offline: collect-sos-ovn tar: stdout: write error #47

Closed amorenoz closed 2 years ago

amorenoz commented 3 years ago
ovs-offline collect-sos-ovn ~/devel/sosreports/offline/sosreport-hareshcontrollersriov-0-2021-09-28-kakcvko.tar.xz 
tar: stdout: write error
Extracting OVN data from sos report...

It seems to work but we need to see where that error comes from and fix it. Note: also happens on collect-sos-ovs

amorenoz commented 3 years ago

cc @SalDaniele

SalDaniele commented 3 years ago

@amorenoz could you send me this sos report tar that is generating this error? I can't seem to recreate it with any of my k8 / compute node reports, I assume it is something with the controller

amorenoz commented 3 years ago

I think any sos report generates it

amorenoz commented 3 years ago

Note, the extraction works, It's only that the "write error" looks fishy

SalDaniele commented 3 years ago

Hmm. Yeah it must be that first tar to determine the directory name.

When I run the script with tar -verbose and remove the redirect to /dev/null, I only see errors for files not found. Is there some additional debugging measure I might be missing?

./ovs-offline collect-sos-ovn /var/tmp/sosreport-ovn-control-plane-2021-09-29-axfnkgr.tar.xz
Extracting OVN data from sos report...
tar: sosreport-ovn-control-plane-2021-09-29-axfnkgr/var/lib/openvswitch/ovn/ovnnb_db.db: Not found in archive
tar: sosreport-ovn-control-plane-2021-09-29-axfnkgr/var/lib/openvswitch/ovn/ovnsb_db.db: Not found in archive
tar: Exiting with failure status due to previous errors
tar: sosreport-ovn-control-plane-2021-09-29-axfnkgr/usr/local/etc/openvswitch/ovnnb_db.db: Not found in archive
tar: sosreport-ovn-control-plane-2021-09-29-axfnkgr/usr/local/etc/openvswitch/ovnsb_db.db: Not found in archive
tar: Exiting with failure status due to previous errors
sosreport-ovn-control-plane-2021-09-29-axfnkgr/etc/openvswitch/ovnnb_db.db
sosreport-ovn-control-plane-2021-09-29-axfnkgr/etc/openvswitch/ovnsb_db.db

Offline OVS Debugging: OVN data collected and stored in /tmp/ovs-offline
*******************************************************************
[root@fedora bin]# ./ovs-offline collect-sos-ovs /home/sdaniele/Downloads/sosreport_openstack.tar.xz
Extracting OVS data from sos report...
sosreport-hareshcomputesriovoffload-0-haresh-2021-09-24-shrdjlw/sos_commands/rpm/
sosreport-hareshcomputesriovoffload-0-haresh-2021-09-24-shrdjlw/sos_commands/rpm/package-data
sosreport-hareshcomputesriovoffload-0-haresh-2021-09-24-shrdjlw/sos_commands/openvswitch/
[...]
tar: sosreport-hareshcomputesriovoffload-0-haresh-2021-09-24-shrdjlw/var/lib/openvswitch/conf.db: Not found in archive
tar: Exiting with failure status due to previous errors
sosreport-hareshcomputesriovoffload-0-haresh-2021-09-24-shrdjlw/etc/openvswitch/conf.db

Offline OVS Debugging: OVS data collected and stored in /tmp/ovs-offline
*******************************************************************
SalDaniele commented 3 years ago

I believe this can be closed now, unless you are still seeing this issue with the new changes? I am not on my end.