amorenoz / ovs-dbg

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

Container won't start without required directories on the host #71

Closed lewisdenny closed 2 years ago

lewisdenny commented 2 years ago

ovs-offline start fails to run due to missing directories on the host

The error:

ovs-offline start
Error: statfs /tmp/ovs-offline/var-run/ovn_sb: no such file or directory
Error: statfs /tmp/ovs-offline/var-run/ovn_nb: no such file or directory

Resolution:

mkdir -p /tmp/ovs-offline/var-run/ovn_nb
mkdir -p /tmp/ovs-offline/var-run/ovn_sb
amorenoz commented 2 years ago

You cannot "start" the offline debugging session without first "collecting" information from sos report or database file.

But maybe we can print a nicer error message, e.g: "Working directory not found, please run ovs-offline collect-... first"

SalDaniele commented 2 years ago

Hi Lewis,

My pr #82 addresses the issue Adrian mentioned. However, I was able to recreate the issue you encountered even after running ovs-collect.. when using podman instead of docker.

Were you using podman when this error occurred? It would seem podman requires the directories to be explicitly created prior to podman run... as opposed to docker, which does not.

I hopefully addressed this issue in #84

lewisdenny commented 2 years ago

Hi Sal,

Yes you are correct, I am using podman, after creating the dirs all is fine. This is required even after collecting the information from a SoS report.

I have left a comment on your PR