[ovs-discuss] OVS does not start without openvswitch log directory
balazs.nemeth at ericsson.com
Fri Sep 25 12:10:49 UTC 2015
No, I deleted the folder and I started openvswitch-switch process. I built on branch v2.3 and installed the debs. I got this output:
balazs at ubuntu:~> sudo service openvswitch-switch start
/etc/init.d/openvswitch-switch: 65: /etc/init.d/openvswitch-switch: cannot create /var/log/openvswitch/ovs-ctl.log: Directory nonexistent
tee: /var/log/openvswitch/ovs-ctl.log: No such file or directory
* Starting ovsdb-server
* Configuring Open vSwitch system IDs
* Starting ovs-vswitchd
* Enabling remote OVSDB managers
I think a check would be enough if /var/log/openvswitch directory is existing or not. And if not, make a directory.
From: Andy Zhou [mailto:azhou at nicira.com]
Sent: 22 September 2015 22:47
To: Balazs Nemeth
Cc: bugs at openvswitch.org
Subject: Re: [ovs-discuss] OVS does not start without openvswitch log directory
What solutions do you have in mind?
In this case, it seems there is a script involved in starting ovs. If true, I wonder if it possible to create the directory if necessary at the beginning of the script?
On Tue, Sep 22, 2015 at 2:39 AM, Balazs Nemeth <balazs.nemeth at ericsson.com> wrote:
> Dear All,
> I’m using OVS version 2.3.0. I wanted to delete ovs log files and
> accidentally I deleted the whole folder /var/log/openvswitch/. I
> noticed that openvswitch-switch service was unable to start because of
> this. The error message was (I did not delete /var/run/openvswitch/):
> start: Job failed to start
> open: No such file or directory
> ovs-appctl: cannot read pidfile
> "/var/run/openvswitch/ovs-vswitchd.pid" (No such file or directory)
> If the log directory exists but empty, the openvswitch-switch service
> will start. The problem comes up when the directory doesn’t exist.
> Please investigate this bug.
> Best regards,
> Balazs Nemeth
> discuss mailing list
> discuss at openvswitch.org
More information about the discuss