Bug 226509 - net/openvswitch: Requires /var/run/openvswitch/ but nothing creates it
Summary: net/openvswitch: Requires /var/run/openvswitch/ but nothing creates it
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-11 01:21 UTC by Gavin Atkinson
Modified: 2018-03-11 01:35 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (koue)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gavin Atkinson freebsd_committer freebsd_triage 2018-03-11 01:21:46 UTC
Hi,

As far as I can tell, /var/run/openvswitch/ has to exist, but nothing creates the directory during install or start.  It's not clear to me whether it would be best to create this during install or during the service start, which is why I've not fixed it myself.

root@omega:~ # service ovsdb-server onestart
Starting ovsdb_server.
2018-03-11T01:03:36Z|00001|fatal_signal|WARN|could not unlink "/var/run/openvswitch/db.sock" (No such file or directory)
2018-03-11T01:03:36Z|00002|stream_unix|ERR|/var/run/openvswitch/db.sock: binding failed: No such file or directory
2018-03-11T01:03:36Z|00003|ovsdb_jsonrpc_server|ERR|punix:/var/run/openvswitch/db.sock: listen failed: No such file or directory
2018-03-11T01:03:36Z|00004|fatal_signal|WARN|could not unlink "/var/run/openvswitch/ovsdb-server.57376.ctl" (No such file or directory)
2018-03-11T01:03:36Z|00005|stream_unix|ERR|/var/run/openvswitch/ovsdb-server.57376.ctl: binding failed: No such file or directory
ovsdb-server: could not initialize control socket punix:/var/run/openvswitch/ovsdb-server.57376.ctl (No such file or directory)
/usr/local/etc/rc.d/ovsdb-server: WARNING: failed to start ovsdb_server
root@omega:~ # mkdir /var/run/openvswitch
root@omega:~ # service ovsdb-server onestart
Starting ovsdb_server.

Thanks,

Gavin
Comment 1 Gavin Atkinson freebsd_committer freebsd_triage 2018-03-11 01:35:36 UTC
Close this.  I don't know what was wrong for me, but I can see there is already code to create the directory, and I can't recreate the problem.

Gavin